Changeset 3b697232 in rtems


Ignore:
Timestamp:
Mar 2, 2016, 7:31:45 PM (4 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
36717645
Parents:
8ce16a4
git-author:
Joel Sherrill <joel@…> (03/02/16 19:31:45)
git-committer:
Joel Sherrill <joel@…> (03/10/16 16:26:52)
Message:

i386/shared/pci/pcibios.c: Remove unused pcib_find_by_class()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    r8ce16a4 r3b697232  
    193193  *pfun = PCIB_DEVSIG_FUNC(sig);
    194194  return status ? -1 : 0;
    195 }
    196 
    197 /*
    198  * Find specified class code return device signature: combination
    199  * of bus number, device number and function number
    200  */
    201 int
    202 pcib_find_by_class(int classCode, int idx, int *sig)
    203 {
    204   if (!pcibInitialized) {
    205     return PCIB_ERR_UNINITIALIZED;
    206   }
    207 
    208   pcibExchg[0] = pcibEntry;
    209   pcibExchg[1] = classCode;
    210   pcibExchg[2] = idx;
    211 
    212   __asm__ ("    pusha");
    213   __asm__ ("    movl pcibExchg, %edi");
    214   __asm__ ("    movb $0xb1, %ah");
    215   __asm__ ("    movb $0x03, %al");
    216   __asm__ ("    movl pcibExchg+4, %ecx");
    217   __asm__ ("    movl pcibExchg+8, %esi");
    218   __asm__ ("    pushl %cs");
    219   __asm__ ("    call *%edi");
    220   __asm__ ("    movl %eax, pcibExchg");
    221   __asm__ ("    movl %ebx, pcibExchg+4");
    222   __asm__ ("    popa");
    223 
    224   if ((pcibExchg[0] & 0xff00) != 0) {
    225     return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
    226   }
    227 
    228   *sig = pcibExchg[1] & 0xffff;
    229 
    230   return PCIB_ERR_SUCCESS;
    231195}
    232196
Note: See TracChangeset for help on using the changeset viewer.