kernel: remove unused pcinextcap() function
This commit is contained in:
parent
9f054063ec
commit
da54e4bfc2
2 changed files with 0 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue