• Home
  • Raw
  • Download

Lines Matching refs:iop

164 static __inline__ void iop_loadaddr(volatile struct mac_iop *iop, __u16 addr)  in iop_loadaddr()  argument
166 iop->ram_addr_lo = addr; in iop_loadaddr()
167 iop->ram_addr_hi = addr >> 8; in iop_loadaddr()
170 static __inline__ __u8 iop_readb(volatile struct mac_iop *iop, __u16 addr) in iop_readb() argument
172 iop->ram_addr_lo = addr; in iop_readb()
173 iop->ram_addr_hi = addr >> 8; in iop_readb()
174 return iop->ram_data; in iop_readb()
177 static __inline__ void iop_writeb(volatile struct mac_iop *iop, __u16 addr, __u8 data) in iop_writeb() argument
179 iop->ram_addr_lo = addr; in iop_writeb()
180 iop->ram_addr_hi = addr >> 8; in iop_writeb()
181 iop->ram_data = data; in iop_writeb()
184 static __inline__ void iop_stop(volatile struct mac_iop *iop) in iop_stop() argument
186 iop->status_ctrl = IOP_AUTOINC; in iop_stop()
189 static __inline__ void iop_start(volatile struct mac_iop *iop) in iop_start() argument
191 iop->status_ctrl = IOP_RUN | IOP_AUTOINC; in iop_start()
194 static __inline__ void iop_interrupt(volatile struct mac_iop *iop) in iop_interrupt() argument
196 iop->status_ctrl = IOP_IRQ | IOP_RUN | IOP_AUTOINC; in iop_interrupt()
199 static int iop_alive(volatile struct mac_iop *iop) in iop_alive() argument
203 retval = (iop_readb(iop, IOP_ADDR_ALIVE) == 0xFF); in iop_alive()
204 iop_writeb(iop, IOP_ADDR_ALIVE, 0); in iop_alive()
372 volatile struct mac_iop *iop = iop_base[msg->iop_num]; in iop_do_send() local
381 iop_writeb(iop, offset, msg->message[i]); in iop_do_send()
384 iop_writeb(iop, IOP_ADDR_SEND_STATE + msg->channel, IOP_MSG_NEW); in iop_do_send()
386 iop_interrupt(iop); in iop_do_send()
396 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_handle_send() local
400 iop_writeb(iop, IOP_ADDR_SEND_STATE + chan, IOP_MSG_IDLE); in iop_handle_send()
407 msg->reply[i] = iop_readb(iop, offset); in iop_handle_send()
416 if (msg && iop_readb(iop, IOP_ADDR_SEND_STATE + chan) == IOP_MSG_IDLE) in iop_handle_send()
427 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_handle_recv() local
440 msg->message[i] = iop_readb(iop, offset); in iop_handle_recv()
445 iop_writeb(iop, IOP_ADDR_RECV_STATE + chan, IOP_MSG_RCVD); in iop_handle_recv()
559 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_ism_irq() local
561 u8 events = iop->status_ctrl & (IOP_INT0 | IOP_INT1); in iop_ism_irq()
565 iop->status_ctrl); in iop_ism_irq()
569 iop->status_ctrl = IOP_INT0 | IOP_RUN | IOP_AUTOINC; in iop_ism_irq()
571 state = iop_readb(iop, IOP_ADDR_SEND_STATE + i); in iop_ism_irq()
582 iop->status_ctrl = IOP_INT1 | IOP_RUN | IOP_AUTOINC; in iop_ism_irq()
584 state = iop_readb(iop, IOP_ADDR_RECV_STATE + i); in iop_ism_irq()
593 events = iop->status_ctrl & (IOP_INT0 | IOP_INT1); in iop_ism_irq()