forked from Imagelibrary/rtems
2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/if_dc.c: Fixed warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* libchip/network/if_dc.c: Fixed warnings.
|
||||||
|
|
||||||
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* libchip/rtc/ds1375.c, libchip/rtc/mc146818a.c: Fix warnings. Reformat
|
* libchip/rtc/ds1375.c, libchip/rtc/mc146818a.c: Fix warnings. Reformat
|
||||||
|
|||||||
@@ -1190,6 +1190,7 @@ void dc_setfilt_21143(sc)
|
|||||||
/*struct ifmultiaddr *ifma;*/
|
/*struct ifmultiaddr *ifma;*/
|
||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
int i;
|
int i;
|
||||||
|
u_int16_t *ac_enaddr;
|
||||||
|
|
||||||
ifp = &sc->arpcom.ac_if;
|
ifp = &sc->arpcom.ac_if;
|
||||||
|
|
||||||
@@ -1233,9 +1234,10 @@ void dc_setfilt_21143(sc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set our MAC address */
|
/* Set our MAC address */
|
||||||
sp[39] = ((u_int16_t *)sc->arpcom.ac_enaddr)[0];
|
ac_enaddr = (u_int16_t *)sc->arpcom.ac_enaddr;
|
||||||
sp[40] = ((u_int16_t *)sc->arpcom.ac_enaddr)[1];
|
sp[39] = ac_enaddr[0];
|
||||||
sp[41] = ((u_int16_t *)sc->arpcom.ac_enaddr)[2];
|
sp[40] = ac_enaddr[1];
|
||||||
|
sp[41] = ac_enaddr[2];
|
||||||
|
|
||||||
sframe->dc_status = DC_TXSTAT_OWN;
|
sframe->dc_status = DC_TXSTAT_OWN;
|
||||||
CSR_WRITE_4(sc, DC_TXSTART, 0xFFFFFFFF);
|
CSR_WRITE_4(sc, DC_TXSTART, 0xFFFFFFFF);
|
||||||
@@ -1262,12 +1264,15 @@ void dc_setfilt_admtek(sc)
|
|||||||
u_int32_t hashes[2] = { 0, 0 };
|
u_int32_t hashes[2] = { 0, 0 };
|
||||||
struct ifmultiaddr *ifma;
|
struct ifmultiaddr *ifma;
|
||||||
#endif
|
#endif
|
||||||
|
u_int32_t *ac_enaddr;
|
||||||
|
|
||||||
ifp = &sc->arpcom.ac_if;
|
ifp = &sc->arpcom.ac_if;
|
||||||
|
|
||||||
/* Init our MAC address */
|
/* Init our MAC address */
|
||||||
CSR_WRITE_4(sc, DC_AL_PAR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0]));
|
ac_enaddr = (u_int32_t *)&sc->arpcom.ac_enaddr[0];
|
||||||
CSR_WRITE_4(sc, DC_AL_PAR1, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4]));
|
CSR_WRITE_4(sc, DC_AL_PAR0, *ac_enaddr);
|
||||||
|
ac_enaddr = (u_int32_t *)&sc->arpcom.ac_enaddr[4];
|
||||||
|
CSR_WRITE_4(sc, DC_AL_PAR1, *ac_enaddr);
|
||||||
|
|
||||||
/* If we want promiscuous mode, set the allframes bit. */
|
/* If we want promiscuous mode, set the allframes bit. */
|
||||||
if (ifp->if_flags & IFF_PROMISC)
|
if (ifp->if_flags & IFF_PROMISC)
|
||||||
@@ -1319,16 +1324,19 @@ void dc_setfilt_asix(sc)
|
|||||||
u_int32_t hashes[2] = { 0, 0 };
|
u_int32_t hashes[2] = { 0, 0 };
|
||||||
struct ifmultiaddr *ifma;
|
struct ifmultiaddr *ifma;
|
||||||
#endif
|
#endif
|
||||||
|
u_int32_t *ac_enaddr;
|
||||||
|
|
||||||
ifp = &sc->arpcom.ac_if;
|
ifp = &sc->arpcom.ac_if;
|
||||||
|
|
||||||
/* Init our MAC address */
|
/* Init our MAC address */
|
||||||
CSR_WRITE_4(sc, DC_AX_FILTIDX, DC_AX_FILTIDX_PAR0);
|
CSR_WRITE_4(sc, DC_AX_FILTIDX, DC_AX_FILTIDX_PAR0);
|
||||||
CSR_WRITE_4(sc, DC_AX_FILTDATA,
|
ac_enaddr = (u_int32_t *)&sc->arpcom.ac_enaddr[0];
|
||||||
*(u_int32_t *)(&sc->arpcom.ac_enaddr[0]));
|
CSR_WRITE_4(sc, DC_AX_FILTDATA, *ac_enaddr);
|
||||||
|
|
||||||
CSR_WRITE_4(sc, DC_AX_FILTIDX, DC_AX_FILTIDX_PAR1);
|
CSR_WRITE_4(sc, DC_AX_FILTIDX, DC_AX_FILTIDX_PAR1);
|
||||||
CSR_WRITE_4(sc, DC_AX_FILTDATA,
|
|
||||||
*(u_int32_t *)(&sc->arpcom.ac_enaddr[4]));
|
ac_enaddr = (u_int32_t *)&sc->arpcom.ac_enaddr[4];
|
||||||
|
CSR_WRITE_4(sc, DC_AX_FILTDATA, *ac_enaddr);
|
||||||
|
|
||||||
/* If we want promiscuous mode, set the allframes bit. */
|
/* If we want promiscuous mode, set the allframes bit. */
|
||||||
if (ifp->if_flags & IFF_PROMISC)
|
if (ifp->if_flags & IFF_PROMISC)
|
||||||
|
|||||||
Reference in New Issue
Block a user