Changeset bdc2572 in rtems
- Timestamp:
- 03/04/05 21:48:00 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 037864f5
- Parents:
- b3f80031
- Location:
- c/src/lib/libbsp/i386
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/ChangeLog
rb3f80031 rbdc2572 1 2005-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 1 6 2005-01-19 Joel Sherrill <joel@OARcorp.com> 2 7 -
c/src/lib/libbsp/i386/shared/pci/pcibios.c
rb3f80031 rbdc2572 38 38 */ 39 39 int 40 pci b_init(void)40 pci_initialize(void) 41 41 { 42 42 unsigned char *ucp; … … 212 212 } 213 213 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 225 215 226 216 static unsigned8 ucBusCount = 0xff; 227 217 228 229 int 218 unsigned char 230 219 BusCountPCI() 231 220 { -
c/src/lib/libbsp/i386/shared/pci/pcibios.h
rb3f80031 rbdc2572 9 9 #define _PCIB_H 10 10 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> 19 12 20 13 /* … … 35 28 #endif 36 29 37 int pcib_init(void);38 30 int pcib_find_by_devid(int vendorId, int devId, int idx, int *sig); 39 31 int pcib_find_by_class(int classCode, int idx, int *sig);
Note: See TracChangeset
for help on using the changeset viewer.