Lines Matching refs:smc

60 #define	OEMID(smc,i)	oem_id[ID_BYTE0 + i]  argument
66 #define OEMID(smc,i) smc->hw.oem_id->oi_id[i] argument
76 static void smt_stop_watchdog(struct s_smc *smc);
81 static void card_start(struct s_smc *smc) in card_start() argument
89 smt_stop_watchdog(smc) ; in card_start()
97 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_start()
129 smc->hw.hw_is_64bit = TRUE ; in card_start()
131 smc->hw.hw_is_64bit = FALSE ; in card_start()
137 if (!smc->hw.hw_is_64bit) { in card_start()
150 smc->hw.is_imask = ISR_MASK ; in card_start()
151 smc->hw.hw_state = STOPPED ; in card_start()
156 void card_stop(struct s_smc *smc) in card_stop() argument
158 smt_stop_watchdog(smc) ; in card_stop()
159 smc->hw.mac_ring_is_up = 0 ; /* ring down */ in card_stop()
167 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_stop()
174 smc->hw.hw_state = STOPPED ; in card_stop()
179 void mac1_irq(struct s_smc *smc, u_short stu, u_short stl) in mac1_irq() argument
190 SMT_PANIC(smc,SMT_E0134, SMT_E0134_MSG) ; in mac1_irq()
198 SMT_PANIC(smc,SMT_E0133, SMT_E0133_MSG) ; in mac1_irq()
206 formac_tx_restart(smc) ; /* init tx */ in mac1_irq()
221 llc_restart_tx(smc) ; in mac1_irq()
228 void plc1_irq(struct s_smc *smc) in plc1_irq() argument
232 plc_irq(smc,PB,st) ; in plc1_irq()
239 void plc2_irq(struct s_smc *smc) in plc2_irq() argument
243 plc_irq(smc,PA,st) ; in plc2_irq()
250 void timer_irq(struct s_smc *smc) in timer_irq() argument
252 hwt_restart(smc); in timer_irq()
253 smc->hw.t_stop = smc->hw.t_start; in timer_irq()
254 smt_timer_done(smc) ; in timer_irq()
260 int pcm_get_s_port(struct s_smc *smc) in pcm_get_s_port() argument
262 SK_UNUSED(smc) ; in pcm_get_s_port()
277 void read_address(struct s_smc *smc, u_char *mac_addr) in read_address() argument
285 smc->hw.fddi_phys_addr.a[i] = in read_address()
293 smc->y[PA].pmd_type[PMD_SK_CONN] = in read_address()
294 smc->y[PB].pmd_type[PMD_SK_CONN] = ConnectorType ; in read_address()
295 smc->y[PA].pmd_type[PMD_SK_PMD ] = in read_address()
296 smc->y[PB].pmd_type[PMD_SK_PMD ] = PmdType ; in read_address()
300 smc->hw.fddi_canon_addr.a[i] = mac_addr[i] ; in read_address()
301 smc->hw.fddi_home_addr.a[i] = bitrev8(mac_addr[i]); in read_address()
305 smc->hw.fddi_home_addr = smc->hw.fddi_phys_addr ; in read_address()
308 smc->hw.fddi_canon_addr.a[i] = in read_address()
309 bitrev8(smc->hw.fddi_phys_addr.a[i]); in read_address()
316 void init_board(struct s_smc *smc, u_char *mac_addr) in init_board() argument
318 card_start(smc) ; in init_board()
319 read_address(smc,mac_addr) ; in init_board()
322 smc->s.sas = SMT_SAS ; /* Single att. station */ in init_board()
324 smc->s.sas = SMT_DAS ; /* Dual att. station */ in init_board()
327 smc->mib.fddiSMTBypassPresent = 0 ; in init_board()
330 smc->mib.fddiSMTBypassPresent = 1 ; in init_board()
337 void sm_pm_bypass_req(struct s_smc *smc, int mode) in sm_pm_bypass_req() argument
342 if (smc->s.sas != SMT_DAS) in sm_pm_bypass_req()
360 int sm_pm_bypass_present(struct s_smc *smc) in sm_pm_bypass_present() argument
365 void plc_clear_irq(struct s_smc *smc, int p) in plc_clear_irq() argument
369 SK_UNUSED(smc) ; in plc_clear_irq()
384 static void led_indication(struct s_smc *smc, int led_event) in led_indication() argument
394 phy = &smc->y[PA] ; in led_indication()
396 phy = &smc->y[PB] ; in led_indication()
433 void pcm_state_change(struct s_smc *smc, int plc, int p_state) in pcm_state_change() argument
440 DRV_PCM_STATE_CHANGE(smc,plc,p_state) ; in pcm_state_change()
442 led_indication(smc,0) ; in pcm_state_change()
446 void rmt_indication(struct s_smc *smc, int i) in rmt_indication() argument
449 DRV_RMT_INDICATION(smc,i) ; in rmt_indication()
451 led_indication(smc, i ? LED_Y_OFF : LED_Y_ON) ; in rmt_indication()
458 void llc_recover_tx(struct s_smc *smc) in llc_recover_tx() argument
466 smc->hw.n_a_send= 0 ; in llc_recover_tx()
468 SK_UNUSED(smc) ; in llc_recover_tx()
494 int set_oi_id_def(struct s_smc *smc) in set_oi_id_def() argument
503 smc->hw.oem_id = 0 ; in set_oi_id_def()
504 smc->hw.oem_min_status = OI_STAT_ACTIVE ; in set_oi_id_def()
528 smc->hw.oem_id = (struct s_oem_ids *) &oem_ids[sel_id] ; in set_oi_id_def()
533 void driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr) in driver_get_bia() argument
538 bia_addr->a[i] = bitrev8(smc->hw.fddi_phys_addr.a[i]); in driver_get_bia()
541 void smt_start_watchdog(struct s_smc *smc) in smt_start_watchdog() argument
543 SK_UNUSED(smc) ; /* Make LINT happy. */ in smt_start_watchdog()
548 if (smc->hw.wdog_used) { in smt_start_watchdog()
556 static void smt_stop_watchdog(struct s_smc *smc) in smt_stop_watchdog() argument
558 SK_UNUSED(smc) ; /* Make LINT happy. */ in smt_stop_watchdog()
562 if (smc->hw.wdog_used) { in smt_stop_watchdog()
572 void mac_do_pci_fix(struct s_smc *smc) in mac_do_pci_fix() argument
574 SK_UNUSED(smc) ; in mac_do_pci_fix()