Re: Address mapping for pci driver

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

"Thanh Tran" <ttran@xxxxxxxxxxxxx> [2006-08-01]:
> 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);

I think the functions you're using are obsolete. I use

 - pci_enable_device()
 - pci_request_regions()
 - pci_iomap()

> 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 think no because the physical addresses have to be mapped by the MMU
to be accessible in logical address space.


Regards,
  Bernhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEz5jIiGU2lt2vZFQRAq4ZAJ92AVPJBr038AjWSYR2Fkb1GkO49QCgsIMG
83LzGNm4TK6KHPKV0hdVb3c=
=61FZ
-----END PGP SIGNATURE-----
ÿò?®w¥?ì?ëÿéiy§!¢Ø^®W?®v?¢ëm?ââ?ìdz¹Þ?ð+r¯{øm¶?ÿþf¢?ùåþX§»è®äz¹Þ?w°n'¬üPþm§ÿÿ?êçzYÞÁ¸?³ú+?÷Ú


[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