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 /sys/src/9/port/pci.c | |
parent | 9f054063ec0f092f0fd0470a704650e4e761e4d7 (diff) |
kernel: remove unused pcinextcap() function
Diffstat (limited to 'sys/src/9/port/pci.c')
-rw-r--r-- | sys/src/9/port/pci.c | 11 |
1 files changed, 0 insertions, 11 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) { |