Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/cpsw/if_cpsw.c
Show First 20 Lines • Show All 2,297 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
cpsw_ale_write_entry(struct cpsw_softc *sc, uint16_t idx, uint32_t *ale_entry) | cpsw_ale_write_entry(struct cpsw_softc *sc, uint16_t idx, uint32_t *ale_entry) | ||||
{ | { | ||||
cpsw_write_4(sc, CPSW_ALE_TBLW0, ale_entry[0]); | cpsw_write_4(sc, CPSW_ALE_TBLW0, ale_entry[0]); | ||||
cpsw_write_4(sc, CPSW_ALE_TBLW1, ale_entry[1]); | cpsw_write_4(sc, CPSW_ALE_TBLW1, ale_entry[1]); | ||||
cpsw_write_4(sc, CPSW_ALE_TBLW2, ale_entry[2]); | cpsw_write_4(sc, CPSW_ALE_TBLW2, ale_entry[2]); | ||||
cpsw_write_4(sc, CPSW_ALE_TBLCTL, 1 << 31 | (idx & 1023)); | cpsw_write_4(sc, CPSW_ALE_TBLCTL, 1U << 31 | (idx & 1023)); | ||||
} | } | ||||
static void | static void | ||||
cpsw_ale_remove_all_mc_entries(struct cpsw_softc *sc) | cpsw_ale_remove_all_mc_entries(struct cpsw_softc *sc) | ||||
{ | { | ||||
int i; | int i; | ||||
uint32_t ale_entry[3]; | uint32_t ale_entry[3]; | ||||
▲ Show 20 Lines • Show All 675 Lines • Show Last 20 Lines |