Hi,
Sorry if this is in the wrong section to post this thread but I though it wasn't really asking how to implement something or a design issue. In my mind this is closest to an announcement so I put it here.
At the moment my bootloader scans the PCI bus and reads the vendor and device id from each device. These are then compared with a list that it loads and it sees whether they match. Using this method it decides what type of card it is i.e. an rtl8139, an ne2000, a sis900 etc. I have now got to the stage where I need to start adding more device and vendor ids to the file it loads. Would it be possible for you to provide me with the device and vendor ids for cards that you know are rtl8139s etc. I know the pci database exists but there are many network devices where it does not state rtl8139 etc. and this therefore means I can't use them. I will put this list up somewhere online when its been generated so that everyone may benefit from it.
Also, if anyone has an easier method of identifying whether a card is an rtl8139 or ne200 etc. than comparing its device and vendor id with a list then I would be very grateful if you could share that with me. I'll put up the list I currently have here.
Device and Vendor ID list for network devices.
Device and Vendor ID list for network devices.
- Attachments
-
- NetworkDeviceData.asm
- File with the list
- (2.56 KiB) Downloaded 105 times
Re: Device and Vendor ID list for network devices.
Here are from my rtl8139 list
Code: Select all
;=========================================================;
; RTL8139 Vendor and Device ID's 05/12/08 ;
;---------------------------------------------------------;
; Add any new vendor/device ID in here and inc ID Count ;
; ;
;=========================================================;
DeviceVendorID:
dd 0x813910ec
dd 0x813810ec
dd 0x12111113
dd 0x13601500
dd 0x13604033
dd 0x13001186
dd 0x13401186
dd 0xab0613d1
dd 0xa1171259
dd 0xa11e1259
dd 0xab0614ea
dd 0xab0714ea
dd 0x123411db
dd 0x91301432
dd 0x101202ac
dd 0x0106018a
dd 0x1211126c
dd 0x81391743
dd 0x8139021b
-
- Member
- Posts: 118
- Joined: Mon May 05, 2008 5:51 pm
Re: Device and Vendor ID list for network devices.
Well Im not sure of any other method but there are a few things you can do to speed up the search.
- Group Device IDs by vendor. From the looks of it vendors only make one of the 7 so check the vendor numbers and then if it matches look at the dev ID to confirm.
- Use a smart searching method. It may take a little more code to accomplish and a little extra setup but a binary tree search method will yeild much faster searching than a simple list search. O(log n) is much better than waiting on a O(n)
- Group Device IDs by vendor. From the looks of it vendors only make one of the 7 so check the vendor numbers and then if it matches look at the dev ID to confirm.
- Use a smart searching method. It may take a little more code to accomplish and a little extra setup but a binary tree search method will yeild much faster searching than a simple list search. O(log n) is much better than waiting on a O(n)