Re: Address mapping for pci driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux