Hi,
Le Tue, 1 Aug 2006 12:18:00 -0500,
"Thanh Tran" <ttran@xxxxxxxxxxxxx> a Ãcrit :
> I am writing a pci device driver in linux to talk to a modem module.
> My driver code has detected the modem module using
>
> pci_find_device()
> startAddr = pci_resource_start(pciDev,i);
> flags = pci_resource_flags(pciDev,i);
>
> Now that I have the starting physical address of the pci device, do I
> have to use ioremap() on this physical address in order to talk to the
> device (in kernel space) ? Can I talk the device using the detected
> physical address directly?
I don't know anything about PCI, but Linux Device Drivers has a
complete chapter about it: http://lwn.net/images/pdf/LDD3/ch12.pdf
Sincerly,
Thomas
--
PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7
Attachment:
signature.asc
Description: PGP signature