diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-11-21 00:41:57 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-11-21 00:41:57 +0100 |
commit | da54e4bfc29443fb96d89a39b2eeb8e9e6a34de1 (patch) | |
tree | 2512c958329346e13c4c36aa8075354d49acaafb | |
parent | 9f054063ec0f092f0fd0470a704650e4e761e4d7 (diff) | |
download | plan9front-da54e4bfc29443fb96d89a39b2eeb8e9e6a34de1.tar.xz |
kernel: remove unused pcinextcap() function
-rw-r--r-- | sys/src/9/port/pci.c | 11 | ||||
-rw-r--r-- | sys/src/9/port/pci.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/sys/src/9/port/pci.c b/sys/src/9/port/pci.c index 63d051ac9..5c4125424 100644 --- a/sys/src/9/port/pci.c +++ b/sys/src/9/port/pci.c @@ -934,17 +934,6 @@ pcisetpms(Pcidev* p, int state) return ostate; } -int -pcinextcap(Pcidev *pci, int offset) -{ - if(offset == 0) { - if((pcicfgr16(pci, PciPSR) & (1<<4)) == 0) - return 0; /* no capabilities */ - offset = PciCAP-1; - } - return pcicfgr8(pci, offset+1) & ~3; -} - void pcienable(Pcidev *p) { diff --git a/sys/src/9/port/pci.h b/sys/src/9/port/pci.h index 25a6bb803..176117119 100644 --- a/sys/src/9/port/pci.h +++ b/sys/src/9/port/pci.h @@ -247,7 +247,6 @@ extern void pcisetmwi(Pcidev* p); extern void pciclrmwi(Pcidev* p); extern int pcicap(Pcidev *p, int cap); -extern int pcinextcap(Pcidev *pci, int offset); extern int pcihtcap(Pcidev *p, int cap); extern int pcigetpms(Pcidev* p); extern int pcisetpms(Pcidev* p, int state); |