summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGongYuJian <gongyujian@acoinfo.com>2018-01-11 19:37:40 +0800
committerGongYuJian <gongyujian@acoinfo.com>2018-01-11 19:37:40 +0800
commitfac7cef02bb62f9378b67202c2de43ed36270177 (patch)
tree9f50a0298b906adc7f8a7735dfa92bb7c85c0c18
parent42e9feeae01c83f1cf858c3b2e9ffdd8d0c222d2 (diff)
downloadpciutils-fac7cef02bb62f9378b67202c2de43ed36270177.tar.gz
Specification interface usage.
-rw-r--r--lib/sylixos-ports.c6
-rw-r--r--pci.ids2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/sylixos-ports.c b/lib/sylixos-ports.c
index 67d6472..d835256 100644
--- a/lib/sylixos-ports.c
+++ b/lib/sylixos-ports.c
@@ -53,7 +53,7 @@ int sylixos_pci_traversal (int (*func)(), void *arg, int min_bus_num, int max_b
for (ibus = min_bus_num; ibus <= max_bus_num; ibus++) {
for (islot = 0; islot < PCI_MAX_SLOTS; islot++) {
for (ifunc = 0; ifunc < PCI_MAX_FUNCTIONS; ifunc++) {
- API_PciConfigInWord(ibus, islot, ifunc, PCI_VENDOR_ID, &vendor);
+ pciConfigInWord(ibus, islot, ifunc, PCI_VENDOR_ID, &vendor);
if (PCI_VENDOR_ID_IS_INVALIDATE(vendor)) {
if (ifunc == 0) {
@@ -67,7 +67,7 @@ int sylixos_pci_traversal (int (*func)(), void *arg, int min_bus_num, int max_b
}
if (ifunc == 0) {
- API_PciConfigInByte(ibus, islot, ifunc, PCI_HEADER_TYPE, &header);
+ pciConfigInByte(ibus, islot, ifunc, PCI_HEADER_TYPE, &header);
if ((header & PCI_HEADER_MULTI_FUNC) != PCI_HEADER_MULTI_FUNC) {
break;
}
@@ -302,7 +302,7 @@ sylixos_fill_info(struct pci_dev *d, int flags)
break;
}
- hDevHandle = API_PciDevHandleGet(d->bus, d->dev, d->func);
+ hDevHandle = pciDevHandleGet(d->bus, d->dev, d->func);
if (!hDevHandle) {
return (ret);
}
diff --git a/pci.ids b/pci.ids
index 6eb2743..62b6b3d 100644
--- a/pci.ids
+++ b/pci.ids
@@ -2195,7 +2195,7 @@
# FX-797A-TNBC
1682 3213 HD 7970 Black Edition
1682 3214 Double D HD 7970
- 1787 201c HD 7970 IceQ X2
+ 1787 201c HD 7970 IceQ X^2
# Radeon HD 7970 X2
1787 2317 Radeon HD 7990
1787 3000 Tahiti XT2 [Radeon HD 7970 GHz Edition]