summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-02 13:31:45 -0600
committerJoel Sherrill <joel@rtems.org>2016-03-10 10:26:52 -0600
commit3b6972327e951c9f8f7f85caea67199d830f4862 (patch)
tree2acac030f80ea56560363ada1c5b4e47031b88a1
parenti386/shared/pci/pcibios.c: Remove unused pcib_special_cycle() (diff)
downloadrtems-3b6972327e951c9f8f7f85caea67199d830f4862.tar.bz2
i386/shared/pci/pcibios.c: Remove unused pcib_find_by_class()
-rw-r--r--c/src/lib/libbsp/i386/shared/pci/pcibios.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/c/src/lib/libbsp/i386/shared/pci/pcibios.c b/c/src/lib/libbsp/i386/shared/pci/pcibios.c
index 48c2c60056..7dc53a125e 100644
--- a/c/src/lib/libbsp/i386/shared/pci/pcibios.c
+++ b/c/src/lib/libbsp/i386/shared/pci/pcibios.c
@@ -194,42 +194,6 @@ pci_find_device(
return status ? -1 : 0;
}
-/*
- * Find specified class code return device signature: combination
- * of bus number, device number and function number
- */
-int
-pcib_find_by_class(int classCode, int idx, int *sig)
-{
- if (!pcibInitialized) {
- return PCIB_ERR_UNINITIALIZED;
- }
-
- pcibExchg[0] = pcibEntry;
- pcibExchg[1] = classCode;
- pcibExchg[2] = idx;
-
- __asm__ (" pusha");
- __asm__ (" movl pcibExchg, %edi");
- __asm__ (" movb $0xb1, %ah");
- __asm__ (" movb $0x03, %al");
- __asm__ (" movl pcibExchg+4, %ecx");
- __asm__ (" movl pcibExchg+8, %esi");
- __asm__ (" pushl %cs");
- __asm__ (" call *%edi");
- __asm__ (" movl %eax, pcibExchg");
- __asm__ (" movl %ebx, pcibExchg+4");
- __asm__ (" popa");
-
- if ((pcibExchg[0] & 0xff00) != 0) {
- return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
- }
-
- *sig = pcibExchg[1] & 0xffff;
-
- return PCIB_ERR_SUCCESS;
-}
-
static uint8_t ucBusCount = 0xff;
unsigned char