Lines Matching refs:adb

62 static volatile struct adb_regs __iomem *adb;  variable
110 adb = ioremap(r.start, sizeof(struct adb_regs)); in macio_init()
112 out_8(&adb->ctrl.r, 0); in macio_init()
113 out_8(&adb->intr.r, 0); in macio_init()
114 out_8(&adb->error.r, 0); in macio_init()
115 out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */ in macio_init()
116 out_8(&adb->active_lo.r, 0xff); in macio_init()
117 out_8(&adb->autopoll.r, APE); in macio_init()
125 out_8(&adb->intr_enb.r, DFB | TAG); in macio_init()
137 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll()
138 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll()
139 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll()
155 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | ADB_RST); in macio_adb_reset_bus()
156 while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) { in macio_adb_reset_bus()
158 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST); in macio_adb_reset_bus()
191 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_send_request()
214 if (in_8(&adb->intr.r) & TAG) { in macio_adb_interrupt()
219 out_8(&adb->data[i].r, req->data[i]); in macio_adb_interrupt()
220 out_8(&adb->dcount.r, req->nbytes & HMB); in macio_adb_interrupt()
223 out_8(&adb->ctrl.r, DTB + CRE); in macio_adb_interrupt()
225 out_8(&adb->ctrl.r, DTB); in macio_adb_interrupt()
229 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_adb_interrupt()
232 out_8(&adb->intr.r, 0); in macio_adb_interrupt()
235 if (in_8(&adb->intr.r) & DFB) { in macio_adb_interrupt()
237 err = in_8(&adb->error.r); in macio_adb_interrupt()
242 req->reply_len = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
244 req->reply[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
249 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_adb_interrupt()
252 n = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
254 ibuf[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
256 autopoll = (in_8(&adb->dcount.r) & APD) != 0; in macio_adb_interrupt()
258 out_8(&adb->error.r, 0); in macio_adb_interrupt()
259 out_8(&adb->intr.r, 0); in macio_adb_interrupt()
283 if (in_8(&adb->intr.r) != 0) in macio_adb_poll()