summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-09 10:08:33 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-09 10:08:33 +0000
commit51b98999714f4a7c6f69832aedc527f807290c16 (patch)
treeec6cf308e98651b2db6c6de8ba30d1905b96ebe9 /c
parent2004-03-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-51b98999714f4a7c6f69832aedc527f807290c16.tar.bz2
2004-03-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libchip/network/dec21140.c: Use __PPC__ instead of __PPC. Cosmetics.
Diffstat (limited to 'c')
-rw-r--r--c/src/ChangeLog5
-rw-r--r--c/src/libchip/network/dec21140.c19
2 files changed, 13 insertions, 11 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index ace25f9d91..ce44a53056 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,5 +1,10 @@
2004-03-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+ * libchip/network/dec21140.c: Use __PPC__ instead of __PPC.
+ Cosmetics.
+
+2004-03-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
* aclocal/canonicalize-tools.m4: Revert Joel's 2004-03-04's patch.
There are no application level Makefiles in here.
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index 960c4f37c7..5699753f67 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -86,7 +86,7 @@
#if defined(__i386__)
#include <irq.h>
#endif
-#if defined(__PPC)
+#if defined(__PPC__)
#include <bsp/irq.h>
#endif
@@ -152,7 +152,7 @@
#define RESET_CHIP 0x00000001
-#if defined(__PPC)
+#if defined(__PPC__)
#define CSR0_MODE 0x0030e002 /* 01b08000 */
#else
#define CSR0_MODE 0x0020e002 /* 01b08000 */
@@ -232,7 +232,7 @@ static rtems_event_set unit_signals[NDECDRIVER]= { RTEMS_EVENT_1,
RTEMS_EVENT_8 };
-#if defined(__PPC)
+#if defined(__PPC__)
#define phys_to_bus(address) ((unsigned int)((address)) + PCI_DRAM_OFFSET)
#define bus_to_phys(address) ((unsigned int)((address)) - PCI_DRAM_OFFSET)
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PPC_CACHE_ALIGNMENT
@@ -1015,7 +1015,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
int diag;
unsigned int deviceId;
#endif
-#if defined(__PPC)
+#if defined(__PPC__)
int pbus, pdev, pfun;
int tmp;
unsigned int lvalue;
@@ -1064,7 +1064,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
rtems_panic("DEC PCI network card not found !!\n");
}
#endif
-#if defined(__PPC)
+#if defined(__PPC__)
/*
* Find the board
*/
@@ -1155,7 +1155,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
pcib_conf_read8(signature, 60, &interrupt);
cvalue = interrupt;
#endif
-#if defined(__PPC)
+#if defined(__PPC__)
(void)pci_read_config_dword(pbus,
pdev,
pfun,
@@ -1187,7 +1187,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
** Prep the board
*/
-#if defined(__PPC)
+#if defined(__PPC__)
pci_write_config_word(pbus, pdev, pfun,
PCI_COMMAND,
(unsigned16) ( PCI_COMMAND_MEMORY |
@@ -1232,7 +1232,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
sc->arpcom.ac_enaddr[2*i+1] = rombuf.c[20+2*i];
}
#endif
-#if defined(__PPC)
+#if defined(__PPC__)
memcpy (sc->arpcom.ac_enaddr, rombuf.c+20, ETHER_ADDR_LEN);
#endif
}
@@ -1292,6 +1292,3 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
};
#endif /* DEC21140_SUPPORTED */
-
-
-/* eof */