Lines Matching defs:scode
13 * unsigned long dio_scodetophysaddr(int scode)
15 * int dio_scodetoipl(int scode)
18 * const char *dio_scodetoname(int scode)
21 * void dio_config_board(int scode) mark board as configured in the list
22 * void dio_unconfig_board(int scode) mark board as no longer configured
109 int scode, id;
113 for (scode = 0; scode < DIO_SCMAX; scode++) {
117 if (DIO_SCINHOLE(scode))
120 pa = dio_scodetophysaddr(scode);
125 if (scode < DIOII_SCBASE)
135 if (scode >= DIOII_SCBASE)
150 if (scode >= DIOII_SCBASE)
152 return scode;
164 int scode;
190 for (scode = 0; scode < DIO_SCMAX; ++scode)
196 if (DIO_SCINHOLE(scode))
199 pa = dio_scodetophysaddr(scode);
204 if (scode < DIOII_SCBASE)
214 if (scode >= DIOII_SCBASE)
229 dev->scode = scode;
231 dev->resource.end = pa + DIO_SIZE(scode, va);
232 dev_set_name(&dev->dev, "%02x", scode);
245 printk(KERN_INFO "select code %3d: ipl %d: ID %02X", dev->scode, dev->ipl, prid);
250 if (scode >= DIOII_SCBASE)
270 unsigned long dio_scodetophysaddr(int scode)
272 if (scode >= DIOII_SCBASE) {
273 return (DIOII_BASE + (scode - 132) * DIOII_DEVSIZE);
274 } else if (scode > DIO_SCMAX || scode < 0)
276 else if (DIO_SCINHOLE(scode))
279 return (DIO_BASE + scode * DIO_DEVSIZE);