ups_info
if (tp->ups_info.green)
if (tp->ups_info.aldps)
if (tp->ups_info.eee)
if (tp->ups_info.flow_control)
if (tp->ups_info.eee_ckdiv)
if (tp->ups_info.eee_cmod_lv)
if (tp->ups_info.r_tune)
if (tp->ups_info._10m_ckdiv)
if (tp->ups_info.eee_plloff_100)
if (tp->ups_info.eee_plloff_giga)
if (tp->ups_info._250m_ckdiv)
if (tp->ups_info.ctap_short_off)
switch (tp->ups_info.speed_duplex) {
if (tp->ups_info.green)
if (tp->ups_info.aldps)
if (tp->ups_info.eee)
if (tp->ups_info.flow_control)
if (tp->ups_info.eee_ckdiv)
if (tp->ups_info._10m_ckdiv)
if (tp->ups_info.eee_plloff_100)
if (tp->ups_info.eee_plloff_giga)
if (tp->ups_info._250m_ckdiv)
switch (tp->ups_info.speed_duplex) {
switch (tp->ups_info.lite_mode) {
tp->ups_info.green = enable;
tp->ups_info.eee = enable;
tp->ups_info.flow_control = true;
tp->ups_info.aldps = enable;
tp->ups_info.eee_ckdiv = true;
tp->ups_info.eee_cmod_lv = true;
tp->ups_info._10m_ckdiv = true;
tp->ups_info.eee_plloff_giga = true;
tp->ups_info._250m_ckdiv = true;
tp->ups_info.r_tune = true;
tp->ups_info.speed_duplex = FORCE_10M_FULL;
tp->ups_info.speed_duplex = FORCE_10M_HALF;
tp->ups_info.speed_duplex = FORCE_100M_FULL;
tp->ups_info.speed_duplex = FORCE_100M_HALF;
tp->ups_info.speed_duplex = NWAY_1000M_FULL;
tp->ups_info.speed_duplex = NWAY_10M_HALF;
tp->ups_info.speed_duplex = NWAY_10M_FULL;
tp->ups_info.speed_duplex = NWAY_100M_HALF;
tp->ups_info.speed_duplex = NWAY_100M_FULL;
tp->ups_info.speed_duplex = NWAY_1000M_FULL;
tp->ups_info.speed_duplex = NWAY_2500M_FULL;
tp->ups_info.speed_duplex = NWAY_5000M_FULL;
tp->ups_info.speed_duplex = NWAY_10000M_FULL;
tp->ups_info._10m_ckdiv = true;
tp->ups_info.eee_plloff_100 = false;
tp->ups_info.eee_plloff_giga = false;
tp->ups_info.eee_ckdiv = false;
tp->ups_info._250m_ckdiv = false;
tp->ups_info.lite_mode = 0;
tp->ups_info._10m_ckdiv = true;
tp->ups_info.eee_plloff_100 = false;
tp->ups_info.eee_plloff_giga = false;
tp->ups_info.eee_ckdiv = false;
tp->ups_info.lite_mode = 0;
tp->ups_info._10m_ckdiv = true;
tp->ups_info.eee_plloff_100 = false;
tp->ups_info.eee_plloff_giga = false;
tp->ups_info.eee_ckdiv = true;
tp->ups_info.lite_mode = 0;
} ups_info;