Lines 123-129
Link Here
|
123 |
d->config_cached += 64; |
123 |
d->config_cached += 64; |
124 |
} |
124 |
} |
125 |
pci_setup_cache(p, d->config, d->config_cached); |
125 |
pci_setup_cache(p, d->config, d->config_cached); |
126 |
pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_IRQ | PCI_FILL_BASES | PCI_FILL_ROM_BASE | PCI_FILL_SIZES); |
126 |
pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_CLASS | PCI_FILL_IRQ | PCI_FILL_BASES | PCI_FILL_ROM_BASE | PCI_FILL_SIZES); |
127 |
return d; |
127 |
return d; |
128 |
} |
128 |
} |
129 |
|
129 |
|
Lines 255-261
Link Here
|
255 |
printf(" %s: %s", |
255 |
printf(" %s: %s", |
256 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), |
256 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), |
257 |
PCI_LOOKUP_CLASS, |
257 |
PCI_LOOKUP_CLASS, |
258 |
get_conf_word(d, PCI_CLASS_DEVICE)), |
258 |
p->device_class), |
259 |
pci_lookup_name(pacc, devbuf, sizeof(devbuf), |
259 |
pci_lookup_name(pacc, devbuf, sizeof(devbuf), |
260 |
PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE, |
260 |
PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE, |
261 |
p->vendor_id, p->device_id)); |
261 |
p->vendor_id, p->device_id)); |
Lines 267-273
Link Here
|
267 |
c = get_conf_byte(d, PCI_CLASS_PROG); |
267 |
c = get_conf_byte(d, PCI_CLASS_PROG); |
268 |
x = pci_lookup_name(pacc, devbuf, sizeof(devbuf), |
268 |
x = pci_lookup_name(pacc, devbuf, sizeof(devbuf), |
269 |
PCI_LOOKUP_PROGIF | PCI_LOOKUP_NO_NUMBERS, |
269 |
PCI_LOOKUP_PROGIF | PCI_LOOKUP_NO_NUMBERS, |
270 |
get_conf_word(d, PCI_CLASS_DEVICE), c); |
270 |
p->device_class, c); |
271 |
if (c || x) |
271 |
if (c || x) |
272 |
{ |
272 |
{ |
273 |
printf(" (prog-if %02x", c); |
273 |
printf(" (prog-if %02x", c); |
Lines 1585-1591
Link Here
|
1585 |
struct pci_dev *p = d->dev; |
1585 |
struct pci_dev *p = d->dev; |
1586 |
word status = get_conf_word(d, PCI_STATUS); |
1586 |
word status = get_conf_word(d, PCI_STATUS); |
1587 |
word cmd = get_conf_word(d, PCI_COMMAND); |
1587 |
word cmd = get_conf_word(d, PCI_COMMAND); |
1588 |
word class = get_conf_word(d, PCI_CLASS_DEVICE); |
1588 |
word class = p->device_class; |
1589 |
byte bist = get_conf_byte(d, PCI_BIST); |
1589 |
byte bist = get_conf_byte(d, PCI_BIST); |
1590 |
byte htype = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f; |
1590 |
byte htype = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f; |
1591 |
byte latency = get_conf_byte(d, PCI_LATENCY_TIMER); |
1591 |
byte latency = get_conf_byte(d, PCI_LATENCY_TIMER); |
Lines 1783-1789
Link Here
|
1783 |
show_slot_name(d); |
1783 |
show_slot_name(d); |
1784 |
putchar('\n'); |
1784 |
putchar('\n'); |
1785 |
printf("Class:\t%s\n", |
1785 |
printf("Class:\t%s\n", |
1786 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), PCI_LOOKUP_CLASS, get_conf_word(d, PCI_CLASS_DEVICE))); |
1786 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), PCI_LOOKUP_CLASS, p->device_class)); |
1787 |
printf("Vendor:\t%s\n", |
1787 |
printf("Vendor:\t%s\n", |
1788 |
pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR, p->vendor_id, p->device_id)); |
1788 |
pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR, p->vendor_id, p->device_id)); |
1789 |
printf("Device:\t%s\n", |
1789 |
printf("Device:\t%s\n", |
Lines 1805-1811
Link Here
|
1805 |
show_slot_name(d); |
1805 |
show_slot_name(d); |
1806 |
printf(" \"%s\" \"%s\" \"%s\"", |
1806 |
printf(" \"%s\" \"%s\" \"%s\"", |
1807 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), PCI_LOOKUP_CLASS, |
1807 |
pci_lookup_name(pacc, classbuf, sizeof(classbuf), PCI_LOOKUP_CLASS, |
1808 |
get_conf_word(d, PCI_CLASS_DEVICE)), |
1808 |
p->device_class), |
1809 |
pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR, |
1809 |
pci_lookup_name(pacc, vendbuf, sizeof(vendbuf), PCI_LOOKUP_VENDOR, |
1810 |
p->vendor_id, p->device_id), |
1810 |
p->vendor_id, p->device_id), |
1811 |
pci_lookup_name(pacc, devbuf, sizeof(devbuf), PCI_LOOKUP_DEVICE, |
1811 |
pci_lookup_name(pacc, devbuf, sizeof(devbuf), PCI_LOOKUP_DEVICE, |
Lines 1929-1935
Link Here
|
1929 |
last_br = &host_bridge.chain; |
1929 |
last_br = &host_bridge.chain; |
1930 |
for(d=first_dev; d; d=d->next) |
1930 |
for(d=first_dev; d; d=d->next) |
1931 |
{ |
1931 |
{ |
1932 |
word class = get_conf_word(d, PCI_CLASS_DEVICE); |
1932 |
word class = d->dev->device_class; |
1933 |
byte ht = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f; |
1933 |
byte ht = get_conf_byte(d, PCI_HEADER_TYPE) & 0x7f; |
1934 |
if (class == PCI_CLASS_BRIDGE_PCI && |
1934 |
if (class == PCI_CLASS_BRIDGE_PCI && |
1935 |
(ht == PCI_HEADER_TYPE_BRIDGE || ht == PCI_HEADER_TYPE_CARDBUS)) |
1935 |
(ht == PCI_HEADER_TYPE_BRIDGE || ht == PCI_HEADER_TYPE_CARDBUS)) |