REG_PORT
reg = e6000sw_readreg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2);
e6000sw_writereg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2, reg);
reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VLAN_MAP);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VLAN_MAP, reg);
reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL1);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL1, reg);
ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL,
ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL, ret);
ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL2);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL2, ret);
ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VID, ret);
ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL,
(addr_reg < (REG_PORT(sc, 0) * 32))) {
(addr_reg < (REG_PORT(sc, 0) * 32))) {
reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VLAN_MAP);
reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL1);
reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID);
e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VID, reg);
*pvid = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID) &
portstatus = e6000sw_readreg(sc, REG_PORT(sc, port),
sc->swid = e6000sw_readreg(sc, REG_PORT(sc, 0), SWITCH_ID) & 0xfff0;
reg = e6000sw_readreg(sc, REG_PORT(sc, port),
e6000sw_writereg(sc, REG_PORT(sc, port), PSC_CONTROL,
e6000sw_writereg(sc, REG_PORT(sc, port), PSC_CONTROL,
reg = e6000sw_readreg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2);