Lines Matching refs:adb

59 static volatile struct adb_regs __iomem *adb;  variable
108 adb = ioremap(r.start, sizeof(struct adb_regs)); in macio_init()
110 out_8(&adb->ctrl.r, 0); in macio_init()
111 out_8(&adb->intr.r, 0); in macio_init()
112 out_8(&adb->error.r, 0); in macio_init()
113 out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */ in macio_init()
114 out_8(&adb->active_lo.r, 0xff); in macio_init()
115 out_8(&adb->autopoll.r, APE); in macio_init()
123 out_8(&adb->intr_enb.r, DFB | TAG); in macio_init()
135 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll()
136 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll()
137 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll()
153 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | ADB_RST); in macio_adb_reset_bus()
154 while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) { in macio_adb_reset_bus()
156 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST); in macio_adb_reset_bus()
189 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_send_request()
212 if (in_8(&adb->intr.r) & TAG) { in macio_adb_interrupt()
217 out_8(&adb->data[i].r, req->data[i]); in macio_adb_interrupt()
218 out_8(&adb->dcount.r, req->nbytes & HMB); in macio_adb_interrupt()
221 out_8(&adb->ctrl.r, DTB + CRE); in macio_adb_interrupt()
223 out_8(&adb->ctrl.r, DTB); in macio_adb_interrupt()
227 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_adb_interrupt()
230 out_8(&adb->intr.r, 0); in macio_adb_interrupt()
233 if (in_8(&adb->intr.r) & DFB) { in macio_adb_interrupt()
235 err = in_8(&adb->error.r); in macio_adb_interrupt()
240 req->reply_len = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
242 req->reply[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
247 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_adb_interrupt()
250 n = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
252 ibuf[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
254 autopoll = (in_8(&adb->dcount.r) & APD) != 0; in macio_adb_interrupt()
256 out_8(&adb->error.r, 0); in macio_adb_interrupt()
257 out_8(&adb->intr.r, 0); in macio_adb_interrupt()
281 if (in_8(&adb->intr.r) != 0) in macio_adb_poll()