beginner question - OHCI and PCI

Hello,

I am new to PCI programming and try to start with a simple PCI data access
to read some connected PCI hardware (it uses OHCI interface).

I’ve used the pci_write_config32() and pci_read_config32() functions to
access the PCI registers. It works fine, but how can I read values from the
OHCI (base address in PCI configuration register at offset 0x10)? Is this
base address a physical address that I am to add the OHCI offset address to
access OHCI register data? Does mmap() do the job or mmap_device_memory()?
How can I easily access it?

Thanks.

Nnamdi

Nnamdi Kohn <nnamdi.kohn@web.de> wrote in message
news:c7tbok$63t$1@inn.qnx.com

Hello,

I am new to PCI programming and try to start with a simple PCI data access
to read some connected PCI hardware (it uses OHCI interface).

I’ve used the pci_write_config32() and pci_read_config32() functions to
access the PCI registers. It works fine, but how can I read values from
the
OHCI (base address in PCI configuration register at offset 0x10)? Is this
base address a physical address that I am to add the OHCI offset address
to
access OHCI register data? Does mmap() do the job or mmap_device_memory()?
How can I easily access it?

you need to use mmap_device_memory()

see attached file.
(you do know that there are drivers for USB OHCI chipset right ? )


Thanks.

Nnamdi

begin 666 map_hc.c
M"B-I;F-L=61E(#QS=&1I;RYH/@HC:6YC;‘5D92 <WES+VUM86XN:#X*(VEN
M8VQU9&4@/&AW+W!C:2YH/@HC:6YC;‘5D92 :’<O<&-I7V1E=FEC97,N:#X*
M(VEN8VQU9&4@/’-Y<R]P<F]C;6=R+F@^“B-I;F-L=61E(#QS>7,O;F5U=’)I
M;F\N:#X*“FEN=”!M86EN*”!V;VED(“D*>PH):6YT(” )“0EP:&1L.R @(” @
M(" @(" @(" @+R@<&-I(’-E<G9E<B!H86YD;&4*“79O:60@“0D)G!D978[
M(" @(" @(" @(" @("\O(’!C:2!D979I8V4@:&%N9&QE"@ES=’)U8W0@<&-I
M7V1E=E]I;F9O(" @("!P8VE?:6YF.PH)=F]I9 D)"2I(8V]R.PH
"51H<F5A
M9$-T;”@@7TY43U]40U1,7TE/+”!.54Q,(“D[”@H)<&AD;" ](’!C:5]A='1A
M8V@H(# @3L"@EP8VE?:6YF+D-L87-S(#T@,‘AC,#,Q,#L*"@EI9B H("$H
M<&1E=B ](’!C:5]A='1A8VA?9&5V:6-E*"!.54Q,+"!00TE?4T5!4D-(7T-,
M05-3('P@4$-)7TE.251?04Q,('P*(" @(" @(" @(%!#25]-05-415)?14Y!
M0DQ%+" P+" F<&-I7VEN9B I(“D@2!["@D)<’)I;G1F” B0V]U;&1N="!A
M='1A8V@@=&@9&5V:6-E7&XB3L"0EE>&ET*" M,2 I.PH)?0H*“2\O($UA
M<”!I;B!(0PH):68@" H2&-O<B ](&UM87!?9&5V:6-E7VUE;6]R>2@@,“P@
M<&-I7VEN9BY"87-E061D<F5SF5;,%TL”@D@4%)/5%]214%$('P@4%)/
M5%]74DE412!(%!23U1?3D]#04-(12P
"2!-05!?4TA!4D5$('P@34%07U!(
M65,L(%!#25]-14U?041$4B@@<&-I7VEN9BY#<‘5"87-E061D<F5S<ULP72 I
M(“D@2 ]/2!-05!?1D%)3$5$(“D@>PH)“7!R:6YT9B@@(D9A:6QE9”!T;R!M
M87 @2$-<;B(@3L"2 @(” @(" @<F5T=7)N
” M,2 I.PH)?0H*"2\O(’)E
M860@2$-?4D5625-)3TX@<F5G:7-T97("7!R:6YT9B@@(DAC(’)E=FES:6]N
M(&ES(“5X7&XB+” J
%]U:6YT,S(@BE(8V]R(“D[”@D"65X:70H(# @3L@
#"GT

`
end

Henry VanDyke wrote

(you do know that there are drivers for USB OHCI chipset right ? )

Unless it’s about a 1394 OHCI PCI adapter - a FireWire card.

If it’s the case, you could take a look at this product:
http://www.mindready.com/eng/embedded_software.asp

I have worked with both the LLA and the Stack on QNX 6.0, 6.1 and 6.2 and
they’re all doing well.

Bernard

MindReady does not support QNX 6.3. Also, their licenses are
expensive. The free technical support is now very limited or
inexistant.
If someone knows an alternative, please, please tell me more about
it…

Sim
sombol20 @ hotmail.com