Lines Matching refs:FM_A
52 while ((inpw(FM_A(FM_STMCHN)) & FM_SNPPND) && k) k--;\
59 while (!(inpw(FM_A(FM_AFSTAT)) & FM_DONE) && k) k--;\
107 tneg = (u_long)((long)inpw(FM_A(FM_TNEG))<<5) ; in mac_get_tneg()
108 return (u_long)((tneg + ((inpw(FM_A(FM_TMRS))>>10)&0x1f)) | in mac_get_tneg()
116 + (u_short) inpw(FM_A(FM_FCNTR)) ; in mac_update_counter()
119 + (u_short) inpw(FM_A(FM_LCNTR)) ; in mac_update_counter()
122 + (u_short) inpw(FM_A(FM_ECNTR)) ; in mac_update_counter()
152 outpw(FM_A(FM_CMDREG1),FM_IRMEMWO) ;
157 p = (u_long)inpw(FM_A(FM_MDRU))<<16 ;
158 p += (u_long)inpw(FM_A(FM_MDRL)) ;
190 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr()
191 outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ in set_recvptr()
192 outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ in set_recvptr()
193 outpw(FM_A(FM_EARV1),smc->hw.fp.fifo.tx_s_start-1) ; /* EARV1 */ in set_recvptr()
199 outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
200 outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
201 outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
202 outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
205 outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
206 outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
207 outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
208 outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
217 outpw(FM_A(FM_CMDREG2),FM_IRSTQ) ; /* reset transmit queues */ in set_txptr()
222 outpw(FM_A(FM_RPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* RPXA0 */ in set_txptr()
223 outpw(FM_A(FM_SWPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* SWPXA0 */ in set_txptr()
224 outpw(FM_A(FM_WPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* WPXA0 */ in set_txptr()
225 outpw(FM_A(FM_EAA0),smc->hw.fp.fifo.rx2_fifo_start-1) ; /* EAA0 */ in set_txptr()
231 outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
232 outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
233 outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
234 outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
237 outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
238 outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
239 outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
240 outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
256 outpw(FM_A(FM_RPXA1),rbc_ram_addr) ; /* a1-send pointer */ in init_rbc()
257 outpw(FM_A(FM_WPXA1),rbc_ram_addr) ; in init_rbc()
258 outpw(FM_A(FM_SWPXA1),rbc_ram_addr) ; in init_rbc()
259 outpw(FM_A(FM_EAA1),rbc_ram_addr) ; in init_rbc()
292 outpw(FM_A(FM_TSYNC),(unsigned int) (((-sync_bw) >> 5) & 0xffff) ) ; in set_formac_tsync()
332 outpw(FM_A(FM_FCNTR),0) ; in mac_counter_init()
333 outpw(FM_A(FM_LCNTR),0) ; in mac_counter_init()
334 outpw(FM_A(FM_ECNTR),0) ; in mac_counter_init()
351 outpw(FM_A(FM_SAID),my_said) ; /* set short address */ in set_formac_addr()
352 outpw(FM_A(FM_LAIL),(unsigned short)((smc->hw.fddi_home_addr.a[4]<<8) + in set_formac_addr()
354 outpw(FM_A(FM_LAIC),(unsigned short)((smc->hw.fddi_home_addr.a[2]<<8) + in set_formac_addr()
356 outpw(FM_A(FM_LAIM),(unsigned short)((smc->hw.fddi_home_addr.a[0]<<8) + in set_formac_addr()
359 outpw(FM_A(FM_SAGP),my_sagp) ; /* set short group address */ in set_formac_addr()
361 outpw(FM_A(FM_LAGL),(unsigned short)((smc->hw.fp.group_addr.a[4]<<8) + in set_formac_addr()
363 outpw(FM_A(FM_LAGC),(unsigned short)((smc->hw.fp.group_addr.a[2]<<8) + in set_formac_addr()
365 outpw(FM_A(FM_LAGM),(unsigned short)((smc->hw.fp.group_addr.a[0]<<8) + in set_formac_addr()
369 outpw(FM_A(FM_TREQ1),(unsigned short)(t_requ>>16)) ; in set_formac_addr()
370 outpw(FM_A(FM_TREQ0),(unsigned short)t_requ) ; in set_formac_addr()
406 outpw(FM_A(FM_CMDREG2),FM_ISTTB) ; in copy_tx_mac()
412 outpw(FM_A(FM_CMDREG2),FM_ISTTB) ; /* set the tag bit */ in copy_tx_mac()
455 outpw(FM_A(FM_CMDREG2),FM_ISTTB) ; /* set the tag bit */ in directed_beacon()
458 outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + DBEACON_FRAME_OFF) ; in directed_beacon()
488 outpw(FM_A(FM_SACL),smc->hw.fp.fifo.rbc_ram_start + CLAIM_FRAME_OFF) ; in build_claim_beacon()
503 outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + BEACON_FRAME_OFF) ; in build_claim_beacon()
522 outpw(FM_A(FM_EACB),smc->hw.fp.fifo.rx1_fifo_start-1) ; in build_claim_beacon()
524 outpw(FM_A(FM_WPXSF),0) ; in build_claim_beacon()
525 outpw(FM_A(FM_RPXSF),0) ; in build_claim_beacon()
531 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in formac_rcv_restart()
533 outpw(FM_A(FM_CMDREG1),FM_ICLLR) ; /* clear receive lock */ in formac_rcv_restart()
538 outpw(FM_A(FM_CMDREG1),FM_ICLLS) ; /* clear s-frame lock */ in formac_tx_restart()
539 outpw(FM_A(FM_CMDREG1),FM_ICLLA0) ; /* clear a-frame lock */ in formac_tx_restart()
545 outpw(FM_A(FM_IMSK1U),(unsigned short)~mac_imsk1u); in enable_formac()
546 outpw(FM_A(FM_IMSK1L),(unsigned short)~mac_imsk1l); in enable_formac()
547 outpw(FM_A(FM_IMSK2U),(unsigned short)~mac_imsk2u); in enable_formac()
548 outpw(FM_A(FM_IMSK2L),(unsigned short)~mac_imsk2l); in enable_formac()
549 outpw(FM_A(FM_IMSK3U),(unsigned short)~mac_imsk3u); in enable_formac()
550 outpw(FM_A(FM_IMSK3L),(unsigned short)~mac_imsk3l); in enable_formac()
587 imask = ~(inpw(FM_A(FM_IMSK1U))) ;
590 outpw(FM_A(FM_IMSK1U),~(imask|FM_STEFRMS)) ;
593 outpw(FM_A(FM_IMSK1U),~(imask|FM_STEFRMA0)) ;
622 imask = ~(inpw(FM_A(FM_IMSK1U))) ;
625 outpw(FM_A(FM_IMSK1U),~(imask&~FM_STEFRMS)) ;
628 outpw(FM_A(FM_IMSK1U),~(imask&~FM_STEFRMA0)) ;
636 outpw(FM_A(FM_IMSK1U),MW) ; in disable_formac()
637 outpw(FM_A(FM_IMSK1L),MW) ; in disable_formac()
638 outpw(FM_A(FM_IMSK2U),MW) ; in disable_formac()
639 outpw(FM_A(FM_IMSK2L),MW) ; in disable_formac()
640 outpw(FM_A(FM_IMSK3U),MW) ; in disable_formac()
641 outpw(FM_A(FM_IMSK3L),MW) ; in disable_formac()
654 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in mac_ring_up()
657 outpw(FM_A(FM_CMDREG2),FM_IACTR) ; in mac_ring_up()
792 outpw(FM_A(FM_IMSK2U),~mac_imsk2u) ; in mac2_irq()
823 outpw(FM_A(FM_CMDREG2),FM_IACTR) ;/* abort current transmit activity */ in formac_offline()
826 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in formac_offline()
829 SETMASK(FM_A(FM_MDREG1),FM_MINIT,FM_MMODE) ; in formac_offline()
842 SETMASK(FM_A(FM_MDREG1),FM_MONLINE | FM_SELRA | MDR1INIT | in formac_online()
895 outpw(FM_A(FM_MDREG1),FM_MINIT) ; /* FORMAC+ init mode */ in init_mac()
897 outpw(FM_A(FM_MDREG1),FM_MMEMACT) ; /* FORMAC+ memory activ mode */ in init_mac()
899 outpw(FM_A(FM_MDREG2),smc->hw.fp.mdr2init) ; in init_mac()
925 outpw(FM_A(FM_FRMTHR),14<<12) ; /* switch on */ in init_mac()
928 outpw(FM_A(FM_MDREG1),MDR1INIT | FM_SELRA | smc->hw.fp.rx_mode) ; in init_mac()
929 outpw(FM_A(FM_MDREG2),smc->hw.fp.mdr2init) ; in init_mac()
930 outpw(FM_A(FM_MDREG3),smc->hw.fp.mdr3init) ; in init_mac()
931 outpw(FM_A(FM_FRSELREG),smc->hw.fp.frselreg_init) ; in init_mac()
944 outpw(FM_A(FM_TMAX),(u_short)t_max) ; in init_mac()
948 outpw(FM_A(FM_TVX), (u_short) (- US2BCLK(52))/255 & MB) ; in init_mac()
950 outpw(FM_A(FM_TVX), in init_mac()
954 outpw(FM_A(FM_CMDREG1),FM_ICLLS) ; /* clear s-frame lock */ in init_mac()
955 outpw(FM_A(FM_CMDREG1),FM_ICLLA0) ; /* clear a-frame lock */ in init_mac()
956 outpw(FM_A(FM_CMDREG1),FM_ICLLR); /* clear receive lock */ in init_mac()
959 outpw(FM_A(FM_UNLCKDLY),(0xff|(0xff<<8))) ; in init_mac()
996 SETMASK(FM_A(FM_MDREG1),FM_SELRA,FM_SELRA) ; in config_mux()
1009 outpw(FM_A(FM_IMSK2U),~(mac_imsk2u | mac_beacon_imsk2u)) ; in sm_mac_check_beacon_claim()
1045 return (inpw(FM_A(FM_STMCHN))>>4) & 7; in sm_mac_get_tx_state()
1201 outpw(FM_A(FM_AFCMD),FM_IINV_CAM) ; in mac_update_multicast()
1208 outpw(FM_A(FM_AFMASK2),0xffff) ; in mac_update_multicast()
1209 outpw(FM_A(FM_AFMASK1),(u_short) ~((fu[0] << 8) + fu[1])) ; in mac_update_multicast()
1210 outpw(FM_A(FM_AFMASK0),(u_short) ~((fu[2] << 8) + fu[3])) ; in mac_update_multicast()
1211 outpw(FM_A(FM_AFPERS),FM_VALID|FM_DA) ; in mac_update_multicast()
1212 outpw(FM_A(FM_AFCOMP2), 0xc000) ; in mac_update_multicast()
1213 outpw(FM_A(FM_AFCOMP1), 0x0000) ; in mac_update_multicast()
1214 outpw(FM_A(FM_AFCOMP0), 0x0000) ; in mac_update_multicast()
1215 outpw(FM_A(FM_AFCMD),FM_IWRITE_CAM) ; in mac_update_multicast()
1221 outpw(FM_A(FM_AFMASK0),0xffff) ; in mac_update_multicast()
1222 outpw(FM_A(FM_AFMASK1),0xffff) ; in mac_update_multicast()
1223 outpw(FM_A(FM_AFMASK2),0xffff) ; in mac_update_multicast()
1224 outpw(FM_A(FM_AFPERS),FM_VALID|FM_DA) ; in mac_update_multicast()
1233 outpw(FM_A(FM_AFCOMP2), in mac_update_multicast()
1235 outpw(FM_A(FM_AFCOMP1), in mac_update_multicast()
1237 outpw(FM_A(FM_AFCOMP0), in mac_update_multicast()
1239 outpw(FM_A(FM_AFCMD),FM_IWRITE_CAM) ; in mac_update_multicast()
1302 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in mac_set_rx_mode()
1328 outpw(FM_A(FM_CMDREG1),FM_ICL) ; /* force claim */ in rtm_irq()