Changeset bdc2572 in rtems


Ignore:
Timestamp:
Mar 4, 2005, 9:48:00 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
037864f5
Parents:
b3f80031
Message:

2005-03-04 Joel Sherrill <joel@…>

  • shared/pci/pcibios.c, shared/pci/pcibios.h: Make PCI initialize function part of the unified PCI API as pci_initialize().
Location:
c/src/lib/libbsp/i386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/ChangeLog

    rb3f80031 rbdc2572  
     12005-03-04      Joel Sherrill <joel@OARcorp.com>
     2
     3        * shared/pci/pcibios.c, shared/pci/pcibios.h: Make PCI initialize
     4        function part of the unified PCI API as pci_initialize().
     5
    162005-01-19      Joel Sherrill <joel@OARcorp.com>
    27
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    rb3f80031 rbdc2572  
    3838 */
    3939int
    40 pcib_init(void)
     40pci_initialize(void)
    4141{
    4242  unsigned char *ucp;
     
    212212}
    213213 
    214 #define PCI_MULTI_FUNCTION       0x80
    215 #define PCI_MAX_DEVICES          16
    216 #define PCI_MAX_FUNCTIONS        8
    217 
    218 #define PCI_VENDOR_ID           0x00    /* 16 bits */
    219 #define PCI_DEVICE_ID           0x02    /* 16 bits */
    220 #define PCI_CLASS_REVISION      0x08
    221 #define PCI_HEADER_TYPE         0x0e 
    222 #define PCI_SUBORDINATE_BUS     0x1a
    223 
    224 #define  PCI_CLASS_BRIDGE_PCI           0x0604
     214#define PCI_MULTI_FUNCTION      0x80
    225215
    226216static unsigned8 ucBusCount = 0xff;
    227217
    228 
    229 int
     218unsigned char
    230219BusCountPCI()
    231220{
  • c/src/lib/libbsp/i386/shared/pci/pcibios.h

    rb3f80031 rbdc2572  
    99#define _PCIB_H
    1010
    11 /* Error codes */
    12 #define PCIB_ERR_SUCCESS       (0)
    13 #define PCIB_ERR_UNINITIALIZED (-1)  /* PCI BIOS is not initilized */
    14 #define PCIB_ERR_NOTPRESENT    (-2)  /* PCI BIOS not present */
    15 #define PCIB_ERR_NOFUNC        (-3)  /* Function not supported */
    16 #define PCIB_ERR_BADVENDOR     (-4)  /* Bad Vendor ID */
    17 #define PCIB_ERR_DEVNOTFOUND   (-5)  /* Device not found */
    18 #define PCIB_ERR_BADREG        (-6)  /* Bad register number */
     11#include <rtems/pci.h>
    1912
    2013/*
     
    3528#endif
    3629
    37 int pcib_init(void);
    3830int pcib_find_by_devid(int vendorId, int devId, int idx, int *sig);
    3931int pcib_find_by_class(int classCode, int idx, int *sig);
Note: See TracChangeset for help on using the changeset viewer.