openblt

a hobby OS from the late 90s
git clone http://frotz.net/git/openblt.git
Log | Files | Refs | LICENSE

pci.h (383B)


      1 
      2 typedef struct 
      3 {
      4 	uchar reg:8;
      5 	uchar func:3;
      6 	uchar dev:5;
      7 	uchar bus:8;
      8 	uchar rsvd:7;
      9 	uchar enable:1;
     10 } confadd;
     11 
     12 typedef struct 
     13 {
     14 	uint16 vendor_id;
     15 	uint16 device_id;
     16 	
     17 	uint16 command;
     18 	uint16 status;
     19 	
     20 	uint8 revision_id;
     21 	uint8 interface;
     22 	uint8 sub_class;
     23 	uint8 base_class;
     24 	
     25 	uint8 cache_line_size;
     26 	uint8 latency_timer;
     27 	uint8 header_type;
     28 	uint8 bist;	
     29 } pci_cfg;
     30 
     31