return ret_val;
}
-static s32 bp75_write_phy_reg(bpctl_dev_t * pbpctl_dev, u32 offset, u16 data)
+static s32 bp75_write_phy_reg(bpctl_dev_t *pbpctl_dev, u32 offset, u16 data)
{
s32 ret_val = 0;
}
/* SET_TX (non-Bypass command :)) */
-static int set_tx(bpctl_dev_t * pbpctl_dev, int tx_state)
+static int set_tx(bpctl_dev_t *pbpctl_dev, int tx_state)
{
int ret = 0, ctrl = 0;
bpctl_dev_t *pbpctl_dev_m;
}
/* SET_FORCE_LINK (non-Bypass command :)) */
-static int set_bp_force_link(bpctl_dev_t * pbpctl_dev, int tx_state)
+static int set_bp_force_link(bpctl_dev_t *pbpctl_dev, int tx_state)
{
int ret = 0, ctrl = 0;
}
/*RESET_CONT 0x20 */
-int reset_cont(bpctl_dev_t * pbpctl_dev)
+int reset_cont(bpctl_dev_t *pbpctl_dev)
{
int ret = BP_NOT_CAP;
}
/*DIS_BYPASS_CAP 0x22 */
-int dis_bypass_cap(bpctl_dev_t * pbpctl_dev)
+int dis_bypass_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & BP_DIS_CAP) {
}
/*EN_BYPASS_CAP 0x24 */
-int en_bypass_cap(bpctl_dev_t * pbpctl_dev)
+int en_bypass_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & BP_DIS_CAP) {
if (INTEL_IF_SERIES(pbpctl_dev->subdevice)) {
}
/* BYPASS_STATE_PWRON 0x26*/
-int bypass_state_pwron(bpctl_dev_t * pbpctl_dev)
+int bypass_state_pwron(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & BP_PWUP_CTL_CAP) {
write_data(pbpctl_dev, BYPASS_STATE_PWRON);
}
/* NORMAL_STATE_PWRON 0x28*/
-int normal_state_pwron(bpctl_dev_t * pbpctl_dev)
+int normal_state_pwron(bpctl_dev_t *pbpctl_dev)
{
if ((pbpctl_dev->bp_caps & BP_PWUP_CTL_CAP)
|| (pbpctl_dev->bp_caps & TAP_PWUP_CTL_CAP)) {
}
/* BYPASS_STATE_PWROFF 0x27*/
-int bypass_state_pwroff(bpctl_dev_t * pbpctl_dev)
+int bypass_state_pwroff(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & BP_PWOFF_CTL_CAP) {
write_data(pbpctl_dev, BYPASS_STATE_PWROFF);
}
/* NORMAL_STATE_PWROFF 0x29*/
-int normal_state_pwroff(bpctl_dev_t * pbpctl_dev)
+int normal_state_pwroff(bpctl_dev_t *pbpctl_dev)
{
if ((pbpctl_dev->bp_caps & BP_PWOFF_CTL_CAP)) {
write_data(pbpctl_dev, NORMAL_STATE_PWROFF);
}
/*TAP_STATE_PWRON 0x2a*/
-int tap_state_pwron(bpctl_dev_t * pbpctl_dev)
+int tap_state_pwron(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & TAP_PWUP_CTL_CAP) {
write_data(pbpctl_dev, TAP_STATE_PWRON);
}
/*DIS_TAP_CAP 0x2c*/
-int dis_tap_cap(bpctl_dev_t * pbpctl_dev)
+int dis_tap_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & TAP_DIS_CAP) {
write_data(pbpctl_dev, DIS_TAP_CAP);
}
/*EN_TAP_CAP 0x2e*/
-int en_tap_cap(bpctl_dev_t * pbpctl_dev)
+int en_tap_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & TAP_DIS_CAP) {
write_data(pbpctl_dev, EN_TAP_CAP);
}
/*DISC_STATE_PWRON 0x2a*/
-int disc_state_pwron(bpctl_dev_t * pbpctl_dev)
+int disc_state_pwron(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & DISC_PWUP_CTL_CAP) {
if (pbpctl_dev->bp_ext_ver >= 0x8) {
}
/*DIS_DISC_CAP 0x2c*/
-int dis_disc_cap(bpctl_dev_t * pbpctl_dev)
+int dis_disc_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & DISC_DIS_CAP) {
if (pbpctl_dev->bp_ext_ver >= 0x8) {
}
/*DISC_STATE_PWRON 0x2a*/
-int disc_port_state_pwron(bpctl_dev_t * pbpctl_dev)
+int disc_port_state_pwron(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
bpctl_dev_t *pbpctl_dev_m;
return ret;
}
-int normal_port_state_pwron(bpctl_dev_t * pbpctl_dev)
+int normal_port_state_pwron(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
bpctl_dev_t *pbpctl_dev_m;
}
/*EN_TAP_CAP 0x2e*/
-int en_disc_cap(bpctl_dev_t * pbpctl_dev)
+int en_disc_cap(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & DISC_DIS_CAP) {
if (pbpctl_dev->bp_ext_ver >= 0x8) {
return BP_NOT_CAP;
}
-int std_nic_on(bpctl_dev_t * pbpctl_dev)
+int std_nic_on(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & STD_NIC_CAP) {
return BP_NOT_CAP;
}
-int std_nic_off(bpctl_dev_t * pbpctl_dev)
+int std_nic_off(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & STD_NIC_CAP) {
return BP_NOT_CAP;
}
-int wdt_time_left(bpctl_dev_t * pbpctl_dev)
+int wdt_time_left(bpctl_dev_t *pbpctl_dev)
{
//unsigned long curr_time=((long long)(jiffies*1000))/HZ, delta_time=0,wdt_on_time=((long long)(pbpctl_dev->bypass_wdt_on_time*1000))/HZ;
return time_left;
}
-static int wdt_timer(bpctl_dev_t * pbpctl_dev, int *time_left)
+static int wdt_timer(bpctl_dev_t *pbpctl_dev, int *time_left)
{
int ret = 0;
if (pbpctl_dev->bp_caps & WD_CTL_CAP) {
return ret;
}
-static int wdt_timer_reload(bpctl_dev_t * pbpctl_dev)
+static int wdt_timer_reload(bpctl_dev_t *pbpctl_dev)
{
int ret = 0;
//#ifdef PMC_FIX_FLAG
/*WAIT_AT_PWRUP 0x80 */
-int bp_wait_at_pwup_en(bpctl_dev_t * pbpctl_dev)
+int bp_wait_at_pwup_en(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
}
/*DIS_WAIT_AT_PWRUP 0x81 */
-int bp_wait_at_pwup_dis(bpctl_dev_t * pbpctl_dev)
+int bp_wait_at_pwup_dis(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
/*EN_HW_RESET 0x82 */
-int bp_hw_reset_en(bpctl_dev_t * pbpctl_dev)
+int bp_hw_reset_en(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
/*DIS_HW_RESET 0x83 */
-int bp_hw_reset_dis(bpctl_dev_t * pbpctl_dev)
+int bp_hw_reset_dis(bpctl_dev_t *pbpctl_dev)
{
if (pbpctl_dev->bp_caps & SW_CTL_CAP) {
//#endif /*PMC_FIX_FLAG*/
-int wdt_exp_mode(bpctl_dev_t * pbpctl_dev, int mode)
+int wdt_exp_mode(bpctl_dev_t *pbpctl_dev, int mode)
{
uint32_t status_reg = 0, status_reg1 = 0;
return BP_NOT_CAP;
}
-int bypass_fw_ver(bpctl_dev_t * pbpctl_dev)
+int bypass_fw_ver(bpctl_dev_t *pbpctl_dev)
{
if (is_bypass_fn(pbpctl_dev))
return ((read_reg(pbpctl_dev, VER_REG_ADDR)));
return BP_NOT_CAP;
}
-int bypass_sign_check(bpctl_dev_t * pbpctl_dev)
+int bypass_sign_check(bpctl_dev_t *pbpctl_dev)
{
if (is_bypass_fn(pbpctl_dev))
return BP_NOT_CAP;
}
-static int tx_status(bpctl_dev_t * pbpctl_dev)
+static int tx_status(bpctl_dev_t *pbpctl_dev)
{
uint32_t ctrl = 0;
bpctl_dev_t *pbpctl_dev_m;
return BP_NOT_CAP;
}
-static int bp_force_link_status(bpctl_dev_t * pbpctl_dev)
+static int bp_force_link_status(bpctl_dev_t *pbpctl_dev)
{
if (DBI_IF_SERIES(pbpctl_dev->subdevice)) {
return BP_NOT_CAP;
}
-int bypass_from_last_read(bpctl_dev_t * pbpctl_dev)
+int bypass_from_last_read(bpctl_dev_t *pbpctl_dev)
{
uint32_t ctrl_ext = 0;
bpctl_dev_t *pbpctl_dev_b = NULL;