• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m68k/mac/

Lines Matching refs:iop

163 static __inline__ void iop_loadaddr(volatile struct mac_iop *iop, __u16 addr)
165 iop->ram_addr_lo = addr;
166 iop->ram_addr_hi = addr >> 8;
169 static __inline__ __u8 iop_readb(volatile struct mac_iop *iop, __u16 addr)
171 iop->ram_addr_lo = addr;
172 iop->ram_addr_hi = addr >> 8;
173 return iop->ram_data;
176 static __inline__ void iop_writeb(volatile struct mac_iop *iop, __u16 addr, __u8 data)
178 iop->ram_addr_lo = addr;
179 iop->ram_addr_hi = addr >> 8;
180 iop->ram_data = data;
183 static __inline__ void iop_stop(volatile struct mac_iop *iop)
185 iop->status_ctrl &= ~IOP_RUN;
188 static __inline__ void iop_start(volatile struct mac_iop *iop)
190 iop->status_ctrl = IOP_RUN | IOP_AUTOINC;
193 static __inline__ void iop_bypass(volatile struct mac_iop *iop)
195 iop->status_ctrl |= IOP_BYPASS;
198 static __inline__ void iop_interrupt(volatile struct mac_iop *iop)
200 iop->status_ctrl |= IOP_IRQ;
203 static int iop_alive(volatile struct mac_iop *iop)
207 retval = (iop_readb(iop, IOP_ADDR_ALIVE) == 0xFF);
208 iop_writeb(iop, IOP_ADDR_ALIVE, 0);
364 printk("iop_complete(%p): iop %d chan %d\n", msg, msg->iop_num, msg->channel);
386 volatile struct mac_iop *iop = iop_base[msg->iop_num];
392 iop_writeb(iop, offset, msg->message[i]);
395 iop_writeb(iop, IOP_ADDR_SEND_STATE + msg->channel, IOP_MSG_NEW);
397 iop_interrupt(iop);
407 volatile struct mac_iop *iop = iop_base[iop_num];
412 printk("iop_handle_send: iop %d channel %d\n", iop_num, chan);
415 iop_writeb(iop, IOP_ADDR_SEND_STATE + chan, IOP_MSG_IDLE);
422 msg->reply[i] = iop_readb(iop, offset);
440 volatile struct mac_iop *iop = iop_base[iop_num];
445 printk("iop_handle_recv: iop %d channel %d\n", iop_num, chan);
457 msg->message[i] = iop_readb(iop, offset);
460 iop_writeb(iop, IOP_ADDR_RECV_STATE + chan, IOP_MSG_RCVD);
469 printk("iop_handle_recv: unclaimed message on iop %d channel %d\n", iop_num, chan);
585 volatile struct mac_iop *iop = iop_base[iop_num];
589 printk("iop_ism_irq: status = %02X\n", (uint) iop->status_ctrl);
594 if (iop->status_ctrl & IOP_INT0) {
595 iop->status_ctrl = IOP_INT0 | IOP_RUN | IOP_AUTOINC;
598 (uint) iop->status_ctrl);
601 state = iop_readb(iop, IOP_ADDR_SEND_STATE + i);
614 if (iop->status_ctrl & IOP_INT1) { /* INT1 for incoming msgs */
615 iop->status_ctrl = IOP_INT1 | IOP_RUN | IOP_AUTOINC;
618 (uint) iop->status_ctrl);
621 state = iop_readb(iop, IOP_ADDR_RECV_STATE + i);
652 volatile struct mac_iop *iop = iop_base[iop_num];
659 iop_chan_state(iop_readb(iop, IOP_ADDR_SEND_STATE+i)),
660 iop_chan_state(iop_readb(iop, IOP_ADDR_RECV_STATE+i)),