kernel: remove unused pcinextcap() function

This commit is contained in:
cinap_lenrek 2020-11-21 00:41:57 +01:00
parent 9f054063ec
commit da54e4bfc2
2 changed files with 0 additions and 12 deletions

View file

@ -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)
{

View file

@ -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);