Home | History | Annotate | Download | only in boot

Lines Matching defs:drive

101 /* Test to see controller with at last one attached drive is there.
102 * Returns a bit for each possible drive found (0x01 for drive 0,
103 * 0x02 for drive 1).
105 * - If a status register is at 0xff, assume there is no drive here
108 * If no drive at all -> return.
117 uint8_t drive;
159 for (drive = 0; drive < 2; drive++) {
160 if ((ret_value & (0x01 << drive)) == 0)
226 wd_c->drive, wd_c->r_command, wd_c->r_cyl,
237 WDSD_IBM | (wd_c->drive << 4) | wd_c->r_head);
262 wd_c->drive, wd_c->r_command,
266 /* Select drive, head, and addressing mode. */
267 WDC_WRITE_REG(chp, wd_sdh, (wd_c->drive << 4) | WDSD_LBA);
309 wd_c.drive = wd->sc_unit;
337 wd_c.drive = wd->sc_unit;