summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/dec21140.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-23 09:59:52 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-23 09:59:52 +0000
commitee4f57d9a6c032da422c6b9b84761dbb30cc2fd8 (patch)
tree06ca24c6757f6f442b80960ca602da9a9e05304a /c/src/libchip/network/dec21140.c
parent2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-ee4f57d9a6c032da422c6b9b84761dbb30cc2fd8.tar.bz2
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* libchip/ide/ata.c, libchip/ide/ata_internal.h, libchip/ide/ide_controller.c, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/network/cs8900.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/network/open_eth.c, libchip/network/open_eth.h, libchip/network/sonic.c, libchip/network/sonic.h, libchip/rtc/icm7170.c, libchip/rtc/icm7170.h, libchip/rtc/icm7170_reg.c, libchip/rtc/icm7170_reg2.c, libchip/rtc/icm7170_reg4.c, libchip/rtc/icm7170_reg8.c, libchip/rtc/m48t08.c, libchip/rtc/m48t08.h, libchip/rtc/m48t08_reg.c, libchip/rtc/m48t08_reg2.c, libchip/rtc/m48t08_reg4.c, libchip/rtc/m48t08_reg8.c, libchip/rtc/rtc.h, libchip/serial/mc68681.c, libchip/serial/mc68681.h, libchip/serial/mc68681_reg.c, libchip/serial/mc68681_reg2.c, libchip/serial/mc68681_reg4.c, libchip/serial/mc68681_reg8.c, libchip/serial/ns16550.c, libchip/serial/ns16550_p.h, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30.h, libchip/serial/z85c30_p.h, libchip/serial/z85c30_reg.c, libchip/shmdr/addlq.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/dump.c, libchip/shmdr/fatal.c, libchip/shmdr/getlq.c, libchip/shmdr/init.c, libchip/shmdr/initlq.c, libchip/shmdr/intr.c, libchip/shmdr/poll.c, libchip/shmdr/send.c, libchip/shmdr/shm_driver.h: Convert to using c99 fixed-size types.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/network/dec21140.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index 5699753f67..0660e7ad26 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -170,9 +170,9 @@
/* message descriptor entry */
struct MD {
/* used by hardware */
- volatile unsigned32 status;
- volatile unsigned32 counts;
- volatile unsigned32 buf1, buf2;
+ volatile uint32_t status;
+ volatile uint32_t counts;
+ volatile uint32_t buf1, buf2;
/* used by software */
volatile struct mbuf *m;
volatile struct MD *next;
@@ -243,12 +243,12 @@ extern void Wait_X_ms( unsigned int timeToWait );
#define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
-inline void st_le32(volatile unsigned32 *addr, unsigned32 value)
+inline void st_le32(volatile uint32_t *addr, uint32_t value)
{
*(addr)=value ;
}
-inline unsigned32 ld_le32(volatile unsigned32 *addr)
+inline uint32_t ld_le32(volatile uint32_t *addr)
{
return(*addr);
}
@@ -425,10 +425,10 @@ static int dec21140IsOn(const rtems_irq_connect_data* irq)
static rtems_isr
dec21140Enet_interrupt_handler ( struct dec21140_softc *sc )
{
- volatile unsigned32 *tbase;
- unsigned32 status;
+ volatile uint32_t *tbase;
+ uint32_t status;
- tbase = (unsigned32 *)(sc->base);
+ tbase = (uint32_t *)(sc->base);
/*
* Read status
@@ -1190,7 +1190,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
#if defined(__PPC__)
pci_write_config_word(pbus, pdev, pfun,
PCI_COMMAND,
- (unsigned16) ( PCI_COMMAND_MEMORY |
+ (uint16_t ) ( PCI_COMMAND_MEMORY |
PCI_COMMAND_MASTER |
PCI_COMMAND_INVALIDATE |
PCI_COMMAND_WAIT |