Re: linux ioremap equivalent on freebsd

2006-08-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Niki Denev [EMAIL PROTECTED] writes: : On Monday 07 August 2006 16:28, Niki Denev wrote: : On Monday 07 August 2006 15:45, Suleiman Souhlal wrote: : : I think the equivalent of linux's ioremap() in FreeBSD is pmap_mapdev(). : : -- Suleiman : :

Re: linux ioremap equivalent on freebsd

2006-08-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] John-Mark Gurney [EMAIL PROTECTED] writes: : Niki Denev wrote this message on Mon, Aug 07, 2006 at 22:03 +0300: : On Monday 07 August 2006 21:34, John-Mark Gurney wrote: : Because for the most part it is only suppose to be used by MD code... : : The

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread Suleiman Souhlal
Niki Denev wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm in the middle of a struggle to port the linux nozomi(Option GloberTrotter 3G+ HSDPA cardbus adapter) driver to freebsd. And given the fact that i have very little previous kernel coding experience i can't find what i can

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread Niki Denev
On Monday 07 August 2006 15:45, Suleiman Souhlal wrote: Niki Denev wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm in the middle of a struggle to port the linux nozomi(Option GloberTrotter 3G+ HSDPA cardbus adapter) driver to freebsd. And given the fact that i have

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread Niki Denev
On Monday 07 August 2006 16:28, Niki Denev wrote: On Monday 07 August 2006 15:45, Suleiman Souhlal wrote: I think the equivalent of linux's ioremap() in FreeBSD is pmap_mapdev(). -- Suleiman Thanks! Is there a reason that there is no manual page about pmap_mapdev, and it's not

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread John-Mark Gurney
Niki Denev wrote this message on Mon, Aug 07, 2006 at 16:28 +0300: On Monday 07 August 2006 15:45, Suleiman Souhlal wrote: Niki Denev wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm in the middle of a struggle to port the linux nozomi(Option GloberTrotter 3G+

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread Niki Denev
On Monday 07 August 2006 21:34, John-Mark Gurney wrote: Because for the most part it is only suppose to be used by MD code... The correct way to get device's memory is to use bus_alloc_resource_any... Make sure you review the handbook on device driver writing:

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread John-Mark Gurney
Niki Denev wrote this message on Mon, Aug 07, 2006 at 22:03 +0300: On Monday 07 August 2006 21:34, John-Mark Gurney wrote: Because for the most part it is only suppose to be used by MD code... The correct way to get device's memory is to use bus_alloc_resource_any... Make sure you review

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread Niki Denev
On Monday 07 August 2006 22:43, John-Mark Gurney wrote: The only thing special that I believe you have to do is provide an additional DRIVER_MODULE line to attach to cardbus in addition to (or instead of) pci... For example: DRIVER_MODULE(re, pci, re_driver, re_devclass, 0, 0);