:-) Thank You Very Much Nick. I found that my PCI card maps its all ports one after another, that is on conjugative spaces of 8 memory locations (because UART has 8 reg), but I am still not able to find out (programmatically) number of ports in my card . So issue 6 is solved but 5 still remain for me.
I have user manual of my PCI card but it contains general information about UART used ..crad installation steps etc.. but it doesn't contain any information, which a programmer requires. Well, Nike thank you, at least now I can face in the right direction to solve this issue. Thx n Rgrds -Anupam --- Nick Garnett <[EMAIL PROTECTED]> wrote: > anupam sakargayan <[EMAIL PROTECTED]> writes: > > > Hello Friends, > > > > I am working on PCI bus. My target board is i386 > PC > > motherboard; I want to write a PCI scan code for > it, > > which should gives me all the details about the > card > > inserted into the PCI slot. > > > > Information like: > > > > > > 5) Number of ports in the card of same function > > 6) Base address of all the ports > > The PCI config space registers cannot give you this > information. All > PCI tells you is the base addresses of the IO and > memory regions that > the card has been allocated. The contents of these > regions is up to > the card definition. You will have to look at the > documentation of the > cards you are using, or maybe the documentation of > the chips on the > card. > > Given that the 2 port card defines one IO region and > the 4 port card > defines two, I would guess that the ports are paired > up in some > way. Either with the second following the first, or > accessed through > the same set of register in some way. Again, the > card documentation > will tell you this. > > > -- > Nick Garnett eCos > Kernel Architect > http://www.ecoscentric.com The eCos and > RedBoot experts > Visit us at ESC Silicon Valley, April 4-6 2006, > Booth 2044 > San Jose McEnery Convention Center > http://www.embedded.com/esc/sv > > > -- > Before posting, please read the FAQ: > http://ecos.sourceware.org/fom/ecos > and search the list archive: > http://ecos.sourceware.org/ml/ecos-discuss > > __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
