return BP_NOT_CAP;
}
-int tpl2_flag_status(bpctl_dev_t * pbpctl_dev)
+int tpl2_flag_status(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps_ex & TPL2_CAP_EX) {
return BP_NOT_CAP;
}
-int tpl_hw_status(bpctl_dev_t * pbpctl_dev)
+int tpl_hw_status(bpctl_dev_t *pbpctl_dev)
{
bpctl_dev_t *pbpctl_dev_b = NULL;
//#ifdef PMC_FIX_FLAG
-int bp_wait_at_pwup_status(bpctl_dev_t * pbpctl_dev)
+int bp_wait_at_pwup_status(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
if (pbpctl_dev->bp_ext_ver >= 0x8)
return BP_NOT_CAP;
}
-int bp_hw_reset_status(bpctl_dev_t * pbpctl_dev)
+int bp_hw_reset_status(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
//#endif /*PMC_FIX_FLAG*/
-int std_nic_status(bpctl_dev_t * pbpctl_dev)
+int std_nic_status(bpctl_dev_t *pbpctl_dev)
{
int status_val = 0;
/******************************************************/
/**************SW_INIT*********************************/
/******************************************************/
-void bypass_caps_init(bpctl_dev_t * pbpctl_dev)
+void bypass_caps_init(bpctl_dev_t *pbpctl_dev)
{
u_int32_t ctrl_ext = 0;
bpctl_dev_t *pbpctl_dev_m = NULL;
}
}
-int bypass_off_init(bpctl_dev_t * pbpctl_dev)
+int bypass_off_init(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
return 0;
}
-void remove_bypass_wd_auto(bpctl_dev_t * pbpctl_dev)
+void remove_bypass_wd_auto(bpctl_dev_t *pbpctl_dev)
{
#ifdef BP_SELF_TEST
bpctl_dev_t *pbpctl_dev_sl = NULL;
}
-int init_bypass_wd_auto(bpctl_dev_t * pbpctl_dev)
+int init_bypass_wd_auto(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & WD_CTL_CAP) {
init_timer(&pbpctl_dev->bp_timer);
}
#endif
-int set_bypass_wd_auto(bpctl_dev_t * pbpctl_dev, unsigned int param)
+int set_bypass_wd_auto(bpctl_dev_t *pbpctl_dev, unsigned int param)
{
if (pbpctl_dev->bp_caps & WD_CTL_CAP) {
if (pbpctl_dev->reset_time != param) {
return BP_NOT_CAP;
}
-int get_bypass_wd_auto(bpctl_dev_t * pbpctl_dev)
+int get_bypass_wd_auto(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & WD_CTL_CAP) {
#ifdef BP_SELF_TEST
-int set_bp_self_test(bpctl_dev_t * pbpctl_dev, unsigned int param)
+int set_bp_self_test(bpctl_dev_t *pbpctl_dev, unsigned int param)
{
bpctl_dev_t *pbpctl_dev_sl = NULL;
return BP_NOT_CAP;
}
-int get_bp_self_test(bpctl_dev_t * pbpctl_dev)
+int get_bp_self_test(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & WD_CTL_CAP) {
/************************* API ********************************/
/**************************************************************/
-int is_bypass_fn(bpctl_dev_t * pbpctl_dev)
+int is_bypass_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (((pbpctl_dev->func == 0) || (pbpctl_dev->func == 2)) ? 1 : 0);
}
-int set_bypass_fn(bpctl_dev_t * pbpctl_dev, int bypass_mode)
+int set_bypass_fn(bpctl_dev_t *pbpctl_dev, int bypass_mode)
{
int ret = 0;
return ret;
}
-int get_bypass_fn(bpctl_dev_t * pbpctl_dev)
+int get_bypass_fn(bpctl_dev_t *pbpctl_dev)
{
return (bypass_status(pbpctl_dev));
}
-int get_bypass_change_fn(bpctl_dev_t * pbpctl_dev)
+int get_bypass_change_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (bypass_change_status(pbpctl_dev));
}
-int set_dis_bypass_fn(bpctl_dev_t * pbpctl_dev, int dis_param)
+int set_dis_bypass_fn(bpctl_dev_t *pbpctl_dev, int dis_param)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_dis_bypass_fn(bpctl_dev_t * pbpctl_dev)
+int get_dis_bypass_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (dis_bypass_cap_status(pbpctl_dev));
}
-int set_bypass_pwoff_fn(bpctl_dev_t * pbpctl_dev, int bypass_mode)
+int set_bypass_pwoff_fn(bpctl_dev_t *pbpctl_dev, int bypass_mode)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_bypass_pwoff_fn(bpctl_dev_t * pbpctl_dev)
+int get_bypass_pwoff_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (default_pwroff_status(pbpctl_dev));
}
-int set_bypass_pwup_fn(bpctl_dev_t * pbpctl_dev, int bypass_mode)
+int set_bypass_pwup_fn(bpctl_dev_t *pbpctl_dev, int bypass_mode)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_bypass_pwup_fn(bpctl_dev_t * pbpctl_dev)
+int get_bypass_pwup_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (default_pwron_status(pbpctl_dev));
}
-int set_bypass_wd_fn(bpctl_dev_t * pbpctl_dev, int timeout)
+int set_bypass_wd_fn(bpctl_dev_t *pbpctl_dev, int timeout)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_bypass_wd_fn(bpctl_dev_t * pbpctl_dev, int *timeout)
+int get_bypass_wd_fn(bpctl_dev_t *pbpctl_dev, int *timeout)
{
if (!pbpctl_dev)
return -1;
return wdt_programmed(pbpctl_dev, timeout);
}
-int get_wd_expire_time_fn(bpctl_dev_t * pbpctl_dev, int *time_left)
+int get_wd_expire_time_fn(bpctl_dev_t *pbpctl_dev, int *time_left)
{
if (!pbpctl_dev)
return -1;
return (wdt_timer(pbpctl_dev, time_left));
}
-int reset_bypass_wd_timer_fn(bpctl_dev_t * pbpctl_dev)
+int reset_bypass_wd_timer_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (wdt_timer_reload(pbpctl_dev));
}
-int get_wd_set_caps_fn(bpctl_dev_t * pbpctl_dev)
+int get_wd_set_caps_fn(bpctl_dev_t *pbpctl_dev)
{
int bp_status = 0;
return bp_status;
}
-int set_std_nic_fn(bpctl_dev_t * pbpctl_dev, int nic_mode)
+int set_std_nic_fn(bpctl_dev_t *pbpctl_dev, int nic_mode)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_std_nic_fn(bpctl_dev_t * pbpctl_dev)
+int get_std_nic_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (std_nic_status(pbpctl_dev));
}
-int set_tap_fn(bpctl_dev_t * pbpctl_dev, int tap_mode)
+int set_tap_fn(bpctl_dev_t *pbpctl_dev, int tap_mode)
{
if (!pbpctl_dev)
return -1;
return BP_NOT_CAP;
}
-int get_tap_fn(bpctl_dev_t * pbpctl_dev)
+int get_tap_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (tap_status(pbpctl_dev));
}
-int set_tap_pwup_fn(bpctl_dev_t * pbpctl_dev, int tap_mode)
+int set_tap_pwup_fn(bpctl_dev_t *pbpctl_dev, int tap_mode)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_tap_pwup_fn(bpctl_dev_t * pbpctl_dev)
+int get_tap_pwup_fn(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
if (!pbpctl_dev)
return ((ret == 0) ? 1 : 0);
}
-int get_tap_change_fn(bpctl_dev_t * pbpctl_dev)
+int get_tap_change_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (tap_change_status(pbpctl_dev));
}
-int set_dis_tap_fn(bpctl_dev_t * pbpctl_dev, int dis_param)
+int set_dis_tap_fn(bpctl_dev_t *pbpctl_dev, int dis_param)
{
int ret = 0;
if (!pbpctl_dev)
return BP_NOT_CAP;
}
-int get_dis_tap_fn(bpctl_dev_t * pbpctl_dev)
+int get_dis_tap_fn(bpctl_dev_t *pbpctl_dev)
{
if (!pbpctl_dev)
return -1;
return (dis_tap_cap_status(pbpctl_dev));
}
-int set_disc_fn(bpctl_dev_t * pbpctl_dev, int disc_mode)
+int set_disc_fn(bpctl_dev_t *pbpctl_dev, int disc_mode)
{
if (!pbpctl_dev)
return -1;
return BP_NOT_CAP;
}
-int get_disc_fn(bpctl_dev_t * pbpctl_dev)
+int get_disc_fn(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int set_disc_pwup_fn(bpctl_dev_t * pbpctl_dev, int disc_mode)
+int set_disc_pwup_fn(bpctl_dev_t *pbpctl_dev, int disc_mode)
{
int ret = 0;
if (!pbpctl_dev)
return ret;
}
-int get_disc_pwup_fn(bpctl_dev_t * pbpctl_dev)
+int get_disc_pwup_fn(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
if (!pbpctl_dev)