summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-16 14:47:31 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-16 16:11:44 -0500
commit13647019152fa267c2a8f5237b016d266c23e46d (patch)
treea294bd5013d6b5afb9dffefa0ed7838f9b5bd933 /c/src/lib
parentLEON: moved register definitions into grlib header file (diff)
downloadrtems-13647019152fa267c2a8f5237b016d266c23e46d.tar.bz2
mvme5500 and cpukit pci.h - Eliminate mvme5500 specific pci.h
All constants that should have been in cpukit pci.h were moved there. One naming style was corrected. This impacted if_wm.c. All other contents were the same as powerpc/shared/pci.h so BSP specific pci.h could be eliminated.
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/Makefile.am3
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c2
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c2
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/pci/pci.h59
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/preinstall.am2
5 files changed, 5 insertions, 63 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
index 4fb0cb4558..8e25579cae 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
@@ -51,7 +51,8 @@ include_bsp_HEADERS += ../../powerpc/shared/console/consoleIo.h
libbsp_a_SOURCES += ../../powerpc/shared/console/uart.c \
../../powerpc/shared/console/console.c
-include_bsp_HEADERS += pci/gtpcireg.h pci/pci.h
+include_bsp_HEADERS += pci/gtpcireg.h
+include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
# pci
libbsp_a_SOURCES += pci/pci.c pci/pci_interface.c pci/detect_host_bridge.c \
pci/pcifinddevice.c
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c b/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
index 4e8427bd4a..b434e50733 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
@@ -309,7 +309,7 @@ int rtems_i82544EI_driver_attach(struct rtems_bsdnet_ifconfig *config, int attac
sprintf(sc->dv_xname, "%s%d", name, unit);
- if (pci_find_device(PCI_VENDOR_ID_INTEL,PCI_DEVICE_INTEL_82544EI_COPPER,
+ if (pci_find_device(PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID_INTEL_82544EI_COPPER,
unit-1,&b, &d, &f))
rtems_panic("i82544EI device ID not found\n");
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
index 56f97f8618..6c7b2fd6a9 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
@@ -411,7 +411,7 @@ int pci_initialize(void)
return(0);
}
-void FixupPCI( struct _int_map *bspmap, int (*swizzler)(int,int) )
+void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
{
}
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.h b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.h
deleted file mode 100644
index dc85f2a0fb..0000000000
--- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- *
- * PCI defines and function prototypes
- * Copyright 1994, Drew Eckhardt
- * Copyright 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
- *
- * For more information, please consult the following manuals (look at
- * http://www.pcisig.com/ for how to get them):
- *
- * PCI BIOS Specification
- * PCI Local Bus Specification
- * PCI to PCI Bridge Specification
- * PCI System Design Guide
- *
- * pci.h,v 1.2 2002/05/14 17:10:16 joel Exp
- *
- * S. Kate Feng : Added support for Marvell and PLX. 3/5/2004.
-
- */
-
-#ifndef RTEMS_PCI_H
-#define RTEMS_PCI_H
-
-#include <rtems/pci.h>
-
-#define PCI_CAPABILITY_LIST_POINTER 0x34 /* <SKF> */
-
-/* Device classes and subclasses */
-#define PCI_CLASS_GT6426xAB_BRIDGE_PCI 0x0580 /* <SKF> */
-
-/*
- * Vendor and card ID's: sort these numerically according to vendor
- * (and according to card ID within vendor). Send all updates to
- * <linux-pcisupport@cck.uni-kl.de>.
- */
-#define PCI_VENDOR_ID_MARVELL 0x11ab /* <SKF> */
-#define PCI_DEVICE_ID_MARVELL_GT6426xAB 0x6430 /* <SKF> */
-
-/* Note : The PLX Technology Inc. had the old VENDOR_ID.
- * See PCI_VENDOR_ID_PLX, PCI_VENDOR_ID_PLX_9050, ..etc.
- */
-#define PCI_VENDOR_ID_PLX2 0x3388 /* <SKF> */
-#define PCI_DEVICE_ID_PLX2_PCI6154_HB2 0x26 /* <SKF> */
-
-#define PCI_DEVICE_INTEL_82544EI_COPPER 0x1008 /* <SKF> */
-
-struct _pin_routes
-{
- int pin, int_name[4];
-};
-struct _int_map
-{
- int bus, slot, opts;
- struct _pin_routes pin_route[5];
-};
-
-void FixupPCI( struct _int_map *, int (*swizzler)(int,int) );
-
-#endif /* RTEMS_PCI_H */
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/preinstall.am b/c/src/lib/libbsp/powerpc/mvme5500/preinstall.am
index 48ab2a60c4..a4017e8f2a 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/preinstall.am
+++ b/c/src/lib/libbsp/powerpc/mvme5500/preinstall.am
@@ -73,7 +73,7 @@ $(PROJECT_INCLUDE)/bsp/gtpcireg.h: pci/gtpcireg.h $(PROJECT_INCLUDE)/bsp/$(dirst
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/gtpcireg.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/gtpcireg.h
-$(PROJECT_INCLUDE)/bsp/pci.h: pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
+$(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h