forked from Imagelibrary/rtems
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* network/tsec.c: fixed compiler warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* network/tsec.c: fixed compiler warnings.
|
||||||
|
|
||||||
2009-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Don't add -ansi -fasm to CFLAGS.
|
* configure.ac: Don't add -ansi -fasm to CFLAGS.
|
||||||
|
|||||||
@@ -1065,7 +1065,7 @@ static struct tsec_private *
|
|||||||
tsec_setup_internal(
|
tsec_setup_internal(
|
||||||
int unit,
|
int unit,
|
||||||
rtems_id driver_tid,
|
rtems_id driver_tid,
|
||||||
void (*isr)(void *, uint32_t),
|
void (*isr)(void *),
|
||||||
void * isr_arg,
|
void * isr_arg,
|
||||||
void (*cleanup_txbuf)(void *user_buf, void *cleanup_txbuf_arg, int error_on_tx_occurred),
|
void (*cleanup_txbuf)(void *user_buf, void *cleanup_txbuf_arg, int error_on_tx_occurred),
|
||||||
void * cleanup_txbuf_arg,
|
void * cleanup_txbuf_arg,
|
||||||
@@ -1337,11 +1337,10 @@ int media = IFM_MAKEWORD(0, 0, 0, 0);
|
|||||||
void
|
void
|
||||||
BSP_tsec_init_hw(struct tsec_private *mp, int promisc, unsigned char *enaddr)
|
BSP_tsec_init_hw(struct tsec_private *mp, int promisc, unsigned char *enaddr)
|
||||||
{
|
{
|
||||||
FEC_Enet_Base b = mp->base;
|
FEC_Enet_Base b = mp->base;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
uint32_t v;
|
uint32_t v;
|
||||||
int sz;
|
int sz;
|
||||||
rtems_interrupt_level l;
|
|
||||||
|
|
||||||
BSP_tsec_stop_hw(mp);
|
BSP_tsec_stop_hw(mp);
|
||||||
|
|
||||||
@@ -1489,7 +1488,7 @@ rtems_interrupt_level l;
|
|||||||
BSP_tsec_enable_irq_mask( mp, mp->irq_mask );
|
BSP_tsec_enable_irq_mask( mp, mp->irq_mask );
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t
|
static void
|
||||||
hash_prog(struct tsec_private *mp, uint32_t tble, const uint8_t *enaddr, int accept)
|
hash_prog(struct tsec_private *mp, uint32_t tble, const uint8_t *enaddr, int accept)
|
||||||
{
|
{
|
||||||
uint8_t s;
|
uint8_t s;
|
||||||
@@ -1539,7 +1538,7 @@ int i;
|
|||||||
static void
|
static void
|
||||||
mcast_filter_prog(struct tsec_private *mp, uint8_t *enaddr, int accept)
|
mcast_filter_prog(struct tsec_private *mp, uint8_t *enaddr, int accept)
|
||||||
{
|
{
|
||||||
static const uint8_t bcst={0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
static const uint8_t bcst[6]={0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
if ( ! (enaddr[0] & 0x01) ) {
|
if ( ! (enaddr[0] & 0x01) ) {
|
||||||
/* not a multicast address; ignore */
|
/* not a multicast address; ignore */
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user