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

Re: Address mapping for pci driver



-----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¥?ì?ëzZ^iÈh¶«?æ«?¦èºÛax¸§»®w¥·!?÷¡¶Úþf¢?ye?{±¢¸??êçzYÞÁ¸?³ñ@Bm§ÿäz¹Þ?w°n'¬¢¸?}ª¿