Messages in this thread | | | Subject | Re: 2.5.4, cs46xx snd, and virt_to_bus | Date | Mon, 11 Feb 2002 18:10:04 +0000 (GMT) | From | Alan Cox <> |
| |
> address and a physical address (via dma_addr_t), so it should be simple > to change the code to use this function. However, I don't know where > the hell I'm supposed to find pci_dev -- I'll try rereading the > driver-model.txt code again :).
For ISA devices pass NULL. For the PCI devices you get it when you do the initial PCI probing. So for the cs46xx you'll see its passed to cs46xx_probe() and saved in card->pci_dev for future use. So you can get it from there.
If you are going to hack on cs46xx.c please pick up the one from 2.4.18pre9 and use that not the one in 2.5 , unless someone also updated that to match the 2.4 changes. The one in 2.5 seems to still have holes where any user can oops the system that will get fixed by porting forward the current driver
Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |