forked from Imagelibrary/rtems
2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/greth.c, libchip/network/open_eth.c libchip/network/sonic.c: Eliminate evil typecasts. * libchip/network/greth.h, libchip/network/open_eth.h, libchip/network/sonic.h: Use void* for addresses.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libchip/network/greth.c, libchip/network/open_eth.c
|
||||
libchip/network/sonic.c: Eliminate evil typecasts.
|
||||
* libchip/network/greth.h, libchip/network/open_eth.h,
|
||||
libchip/network/sonic.h: Use void* for addresses.
|
||||
|
||||
2011-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libchip/network/smc91111exp.h, libchip/network/smc91111.c: Use
|
||||
|
||||
@@ -968,7 +968,7 @@ rtems_greth_driver_attach (struct rtems_bsdnet_ifconfig *config,
|
||||
mtu = ETHERMTU;
|
||||
|
||||
sc->acceptBroadcast = !config->ignore_broadcast;
|
||||
sc->regs = (void *) chip->base_address;
|
||||
sc->regs = chip->base_address;
|
||||
sc->vector = chip->vector;
|
||||
sc->txbufs = chip->txd_count;
|
||||
sc->rxbufs = chip->rxd_count;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
/* Configuration Information */
|
||||
|
||||
typedef struct {
|
||||
uint32_t base_address;
|
||||
void *base_address;
|
||||
uint32_t vector;
|
||||
uint32_t txd_count;
|
||||
uint32_t rxd_count;
|
||||
|
||||
@@ -734,7 +734,7 @@ rtems_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config,
|
||||
mtu = ETHERMTU;
|
||||
|
||||
sc->acceptBroadcast = !config->ignore_broadcast;
|
||||
sc->regs = (void *) chip->base_address;
|
||||
sc->regs = chip->base_address;
|
||||
sc->vector = chip->vector;
|
||||
sc->txbufs = chip->txd_count;
|
||||
sc->rxbufs = chip->rxd_count;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
/* Configuration Information */
|
||||
|
||||
typedef struct {
|
||||
uint32_t base_address;
|
||||
void *base_address;
|
||||
uint32_t vector;
|
||||
uint32_t txd_count;
|
||||
uint32_t rxd_count;
|
||||
|
||||
@@ -1590,7 +1590,7 @@ rtems_sonic_driver_attach (
|
||||
sc->tdaCount = chip->tda_count;
|
||||
sc->acceptBroadcast = !config->ignore_broadcast;
|
||||
|
||||
sc->sonic = (void *) chip->base_address;
|
||||
sc->sonic = chip->base_address;
|
||||
sc->vector = chip->vector;
|
||||
sc->dcr_value = chip->dcr_value;
|
||||
sc->dc2_value = chip->dc2_value;
|
||||
|
||||
@@ -81,7 +81,7 @@ typedef uint32_t (*sonic_read_register_t)(
|
||||
);
|
||||
|
||||
typedef struct {
|
||||
uint32_t base_address;
|
||||
void *base_address;
|
||||
uint32_t vector;
|
||||
uint32_t dcr_value;
|
||||
uint32_t dc2_value;
|
||||
|
||||
Reference in New Issue
Block a user