Changeset 8ce16a4 in rtems


Ignore:
Timestamp:
Mar 2, 2016, 7:30:27 PM (4 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
3b697232
Parents:
12c9dc8f
git-author:
Joel Sherrill <joel@…> (03/02/16 19:30:27)
git-committer:
Joel Sherrill <joel@…> (03/10/16 16:26:49)
Message:

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

File:
1 edited

Legend:

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

    r12c9dc8f r8ce16a4  
    287287  return ucBusCount;
    288288}
    289 
    290 /*
    291  * Generate Special Cycle
    292  */
    293 int
    294 pcib_special_cycle(int busNo, int data)
    295 {
    296   if (!pcibInitialized) {
    297     return PCIB_ERR_UNINITIALIZED;
    298   }
    299 
    300   pcibExchg[0] = pcibEntry;
    301   pcibExchg[1] = busNo << 8;
    302   pcibExchg[2] = data;
    303 
    304   __asm__ ("    pusha");
    305   __asm__ ("    movl pcibExchg, %edi");
    306   __asm__ ("    movb $0xb1, %ah");
    307   __asm__ ("    movb $0x06, %al");
    308   __asm__ ("    movl pcibExchg+4, %ebx");
    309   __asm__ ("    movl pcibExchg+8, %edx");
    310   __asm__ ("    pushl %cs");
    311   __asm__ ("    call *%edi");
    312   __asm__ ("    movl %eax, pcibExchg");
    313   __asm__ ("    movl %ebx, pcibExchg+4");
    314   __asm__ ("    popa");
    315 
    316   return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
    317 }
    318 
    319289
    320290/*
Note: See TracChangeset for help on using the changeset viewer.