version 1.77, 2009/01/20 13:54:43 |
version 1.78, 2010/01/13 12:18:55 |
Line 431 pci_devinfo(pcireg_t id_reg, pcireg_t cl |
|
Line 431 pci_devinfo(pcireg_t id_reg, pcireg_t cl |
|
else { |
else { |
if (subclassp == NULL || subclassp->name == NULL) |
if (subclassp == NULL || subclassp->name == NULL) |
cp += snprintf(cp, ep - cp, |
cp += snprintf(cp, ep - cp, |
"%s subclass 0x%02x", |
"%s, subclass 0x%02x", |
classp->name, subclass); |
classp->name, subclass); |
else |
else |
cp += snprintf(cp, ep - cp, "%s %s", |
cp += snprintf(cp, ep - cp, "%s %s", |
Line 859 pci_conf_print_pcie_cap(const pcireg_t * |
|
Line 859 pci_conf_print_pcie_cap(const pcireg_t * |
|
printf(" Command Completed Interrupt Enabled\n"); |
printf(" Command Completed Interrupt Enabled\n"); |
if ((regs[o2i(capoff + 0x18)] & 0x0020) != 0) |
if ((regs[o2i(capoff + 0x18)] & 0x0020) != 0) |
printf(" Hot-Plug Interrupt Enabled\n"); |
printf(" Hot-Plug Interrupt Enabled\n"); |
printf(" Attention Indictor Control: "); |
printf(" Attention Indicator Control: "); |
switch ((regs[o2i(capoff + 0x18)] & 0x00a0) >> 6) { |
switch ((regs[o2i(capoff + 0x18)] & 0x00c0) >> 6) { |
case 0x0: |
case 0x0: |
printf("reserved\n"); |
printf("reserved\n"); |
break; |
break; |
Line 874 pci_conf_print_pcie_cap(const pcireg_t * |
|
Line 874 pci_conf_print_pcie_cap(const pcireg_t * |
|
printf("off\n"); |
printf("off\n"); |
break; |
break; |
} |
} |
printf(" Power Indictor Control: "); |
printf(" Power Indicator Control: "); |
switch ((regs[o2i(capoff + 0x18)] & 0x0300) >> 8) { |
switch ((regs[o2i(capoff + 0x18)] & 0x0300) >> 8) { |
case 0x0: |
case 0x0: |
printf("reserved\n"); |
printf("reserved\n"); |