b***@gmail.com
2007-10-02 10:29:19 UTC
Hi all,
I am quite new to vxworks and I would like an advice on a matter which
is confusing me.
I am trying to write a driver for a via 82c686 audio chip, on a
standard pentium 3 bsp. I am not developing a plain vxworks driver,
but instead I am using WindML "hardware abstraction layer" etc...
There are some example drivers for Linux, based on OSS model, that are
helping a lot but despite the large pile of docs I read, I am still
confused about PCI I/O space mapping.
During my attempts of driving the audio chip, I have verified that I
can read the PCI configuration of the board ( memory base, irq etc), I
can access various offsets and read/wirte values, but I haven't been
able to access register in I/O space.
My first attempt was to use the BAR0 value as a raw pointer to memory,
then I realized ( thanks to previous posts on this group) that this
was the wrong approach and that this region must be appropriately
mapped to memory space in order to access it. But I am confused on how
I should do this :S
Can anyone point me in the right direction? Is there some WindRiver
doc that cover this topic and that I missed?
Thanks in advance!
Giacomo Benelli
I am quite new to vxworks and I would like an advice on a matter which
is confusing me.
I am trying to write a driver for a via 82c686 audio chip, on a
standard pentium 3 bsp. I am not developing a plain vxworks driver,
but instead I am using WindML "hardware abstraction layer" etc...
There are some example drivers for Linux, based on OSS model, that are
helping a lot but despite the large pile of docs I read, I am still
confused about PCI I/O space mapping.
During my attempts of driving the audio chip, I have verified that I
can read the PCI configuration of the board ( memory base, irq etc), I
can access various offsets and read/wirte values, but I haven't been
able to access register in I/O space.
My first attempt was to use the BAR0 value as a raw pointer to memory,
then I realized ( thanks to previous posts on this group) that this
was the wrong approach and that this region must be appropriately
mapped to memory space in order to access it. But I am confused on how
I should do this :S
Can anyone point me in the right direction? Is there some WindRiver
doc that cover this topic and that I missed?
Thanks in advance!
Giacomo Benelli