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+ 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 use in freebsd as equivalent of
> > > linux's ioremap().
> > >
> > > Any ideas are appreciated. Thanks!
> > I think the equivalent of linux's ioremap() in FreeBSD is pmap_mapdev().
> > -- Suleiman
> Is there a reason that there is no manual page about pmap_mapdev, and it's not
> mentioned in the other pmap_* man pages?
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:
I did a presentation at BSDcan on writing devices drivers:
The handout is a cheat sheet of useful functions for writing a device
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."