Subject: Re: first try on device driver - success but more questions
To: None <firstname.lastname@example.org>
From: Michael Lorenz <email@example.com>
Date: 12/28/2006 15:27:41
-----BEGIN PGP SIGNED MESSAGE-----
On Dec 28, 2006, at 15:09, Richard K=E4stner wrote:
> Here come my questions:
> 1. Can I / how can I access two different IO-spaces in one driver?
> to start the adc, I need to set a bit in DeviceCfg (on chip=20
> register) and
> only thereafter, I may access the adc registers
You can bus_space_map whatever you want.
> as can be seen, I gave the 'epadc' a rather huge size, to be able to=20=
> ADC-Registers and DeviceCfg: 'epadc0 at epsoc0 addr=20
> For me this appears quite brute force - or is it ok, to map the=20
> entire IO
> space ? (hard to believe)
Nothing says you have to bus_space_map the whole thing or even only one=20=
block - just map the range(s) you need and run with them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
-----END PGP SIGNATURE-----