PCI Devices - Is This Right?
PCI Devices - Is This Right?
...
Last edited by Lprogster on Tue Oct 23, 2007 11:01 am, edited 2 times in total.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Two notes:Does that correctly identify the vendor, device and version of a PCI device?
Code: Select all
version = pci_read_short ( bus , slot , 0 , 8 ) >> 8;
Also, your code does not support multifunction devices, Several motherboard resources are commonly collected on one 'slot' with different functions. A cheap way to detect those is by checking wether there are different device/vendor IDs in different functions.
AFAIK, that's hardware-dependent business. As a matter of fact I'm trying to get that to work on my ATI card but its accellerator CRTC declared war on meOh, an something I've been wondering: does VESA support hardware cursors? I haven't found anything on it so far...
I would go with this link as example http://www.osdev.org/osfaq2/index.php/W ... n%20PCI%3F
Okay, good luck with that - though I'm sure you'll manage!AFAIK, that's hardware-dependent business. As a matter of fact I'm trying to get that to work on my ATI card but its accellerator CRTC declared war on me...
...this reads in the Class code and subclass, then discards the former. You probably want to read a short 0xA which is the Revision ID.
Thank you both,
Lster
Last edited by Lprogster on Tue Oct 23, 2007 11:02 am, edited 1 time in total.