ref: da54e4bfc29443fb96d89a39b2eeb8e9e6a34de1
parent: 9f054063ec0f092f0fd0470a704650e4e761e4d7
author: cinap_lenrek <[email protected]>
date: Fri Nov 20 19:41:57 EST 2020
kernel: remove unused pcinextcap() function
--- a/sys/src/9/port/pci.c
+++ b/sys/src/9/port/pci.c
@@ -934,17 +934,6 @@
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)
{
--- a/sys/src/9/port/pci.h
+++ b/sys/src/9/port/pci.h
@@ -247,7 +247,6 @@
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);