• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m68k/mac/

Lines Matching refs:iop

158 static __inline__ void iop_loadaddr(volatile struct mac_iop *iop, __u16 addr)
160 iop->ram_addr_lo = addr;
161 iop->ram_addr_hi = addr >> 8;
164 static __inline__ __u8 iop_readb(volatile struct mac_iop *iop, __u16 addr)
166 iop->ram_addr_lo = addr;
167 iop->ram_addr_hi = addr >> 8;
168 return iop->ram_data;
171 static __inline__ void iop_writeb(volatile struct mac_iop *iop, __u16 addr, __u8 data)
173 iop->ram_addr_lo = addr;
174 iop->ram_addr_hi = addr >> 8;
175 iop->ram_data = data;
178 static __inline__ void iop_stop(volatile struct mac_iop *iop)
180 iop->status_ctrl &= ~IOP_RUN;
183 static __inline__ void iop_start(volatile struct mac_iop *iop)
185 iop->status_ctrl = IOP_RUN | IOP_AUTOINC;
188 static __inline__ void iop_bypass(volatile struct mac_iop *iop)
190 iop->status_ctrl |= IOP_BYPASS;
193 static __inline__ void iop_interrupt(volatile struct mac_iop *iop)
195 iop->status_ctrl |= IOP_IRQ;
198 static int iop_alive(volatile struct mac_iop *iop)
202 retval = (iop_readb(iop, IOP_ADDR_ALIVE) == 0xFF);
203 iop_writeb(iop, IOP_ADDR_ALIVE, 0);
360 printk("iop_complete(%p): iop %d chan %d\n", msg, msg->iop_num, msg->channel);
382 volatile struct mac_iop *iop = iop_base[msg->iop_num];
388 iop_writeb(iop, offset, msg->message[i]);
391 iop_writeb(iop, IOP_ADDR_SEND_STATE + msg->channel, IOP_MSG_NEW);
393 iop_interrupt(iop);
403 volatile struct mac_iop *iop = iop_base[iop_num];
408 printk("iop_handle_send: iop %d channel %d\n", iop_num, chan);
411 iop_writeb(iop, IOP_ADDR_SEND_STATE + chan, IOP_MSG_IDLE);
418 msg->reply[i] = iop_readb(iop, offset);
436 volatile struct mac_iop *iop = iop_base[iop_num];
441 printk("iop_handle_recv: iop %d channel %d\n", iop_num, chan);
453 msg->message[i] = iop_readb(iop, offset);
456 iop_writeb(iop, IOP_ADDR_RECV_STATE + chan, IOP_MSG_RCVD);
465 printk("iop_handle_recv: unclaimed message on iop %d channel %d\n", iop_num, chan);
581 volatile struct mac_iop *iop = iop_base[iop_num];
585 printk("iop_ism_irq: status = %02X\n", (uint) iop->status_ctrl);
590 if (iop->status_ctrl & IOP_INT0) {
591 iop->status_ctrl = IOP_INT0 | IOP_RUN | IOP_AUTOINC;
594 (uint) iop->status_ctrl);
597 state = iop_readb(iop, IOP_ADDR_SEND_STATE + i);
610 if (iop->status_ctrl & IOP_INT1) { /* INT1 for incoming msgs */
611 iop->status_ctrl = IOP_INT1 | IOP_RUN | IOP_AUTOINC;
614 (uint) iop->status_ctrl);
617 state = iop_readb(iop, IOP_ADDR_RECV_STATE + i);