PCI Bus haze

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

PCI Bus haze

Post by 01000101 »

I just finished writing a successful PCI device enumerator with a working byte/word/dword configuration space reader.

I also have the prototypes for the configuration space writer, but I'm at a point where I have no clue what to do TO the config space. I guess I am just generally confused from the PCIbus->PCIdevice concept.

If someone could point me in the right direction for reading or give me a basic rundown of what to do next to aid me in the process of communicating with my network controller, that would be much appreciated.

oh, also, come to think about it, that is the one thing that my OS wont detect on the PCIbus. It reads me Nvidia card and my normal ISA controller and such, but not my ethernet card.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Perhaps you have more then one PCI bus ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

I have come to the conclusion that the PCI ethernet cards can only be detected (for me atleast) if they have an rj-45 connected to them on system bootup. Strange, but after I plugged the eth-line into the card, rebooted, and my os detected the card right off.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

I found the same thing with my NE2000 card... I wonder why this is so?
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

I have never had this problem, and are detected with or without rj-45 plug in.
Are you scaning for device types (class etc ) or are you testing for Vendor/device ID ?.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

eureka.
that was it.
I scanned for the maj/min id instead of the returned class codes and was able to find the eth cards in my device list. The class codes only returned a successful byte when the rj-45 was connected, but the id returned successful either way.
Post Reply