CHP_READ_REG
ireason = CHP_READ_REG(chp, wdr_ireason);
ireason = CHP_READ_REG(chp, wdr_ireason);
u_int8_t reg = CHP_READ_REG(chp, wdr_sdh);
chp->ch_status = CHP_READ_REG(chp, wdr_status);
chp->ch_status = CHP_READ_REG(chp, wdr_status);
chp->ch_error = CHP_READ_REG(chp, wdr_error);
len = (CHP_READ_REG(chp, wdr_cyl_hi) << 8) |
CHP_READ_REG(chp, wdr_cyl_lo);
ire = CHP_READ_REG(chp, wdr_ireason);
st0 = CHP_READ_REG(chp, wdr_status);
er0 = CHP_READ_REG(chp, wdr_error);
st1 = CHP_READ_REG(chp, wdr_status);
er1 = CHP_READ_REG(chp, wdr_error);
chp->ch_status = status = CHP_READ_REG(chp, wdr_status);
CHP_READ_REG(chp, wdr_status);
CHP_READ_REG(chp, wdr_error)),
chp->ch_error = CHP_READ_REG(chp, wdr_error);
wdc_c->r_head = CHP_READ_REG(chp, wdr_sdh);
wdc_c->r_cyl = CHP_READ_REG(chp, wdr_cyl_hi) << 8;
wdc_c->r_cyl |= CHP_READ_REG(chp, wdr_cyl_lo);
wdc_c->r_sector = CHP_READ_REG(chp, wdr_sector);
wdc_c->r_count = CHP_READ_REG(chp, wdr_seccnt);
wdc_c->r_error = CHP_READ_REG(chp, wdr_error);
status = CHP_READ_REG(chp, wdr_status);
if (CHP_READ_REG(chp, wdr_cyl_lo) != 0xaa &&
CHP_READ_REG(chp, wdr_cyl_hi) != 0x55) {
st0 = CHP_READ_REG(chp, wdr_status);
st1 = CHP_READ_REG(chp, wdr_status);
st0 = CHP_READ_REG(chp, wdr_status);
sc = CHP_READ_REG(chp, wdr_seccnt);
sn = CHP_READ_REG(chp, wdr_sector);
cl = CHP_READ_REG(chp, wdr_cyl_lo);
ch = CHP_READ_REG(chp, wdr_cyl_hi);
st = CHP_READ_REG(chp, wdr_status);
scnt = CHP_READ_REG(chp, wdr_seccnt);
sn = CHP_READ_REG(chp, wdr_sector);
cl = CHP_READ_REG(chp, wdr_cyl_lo);
ch = CHP_READ_REG(chp, wdr_cyl_hi);
scnt = CHP_READ_REG(chp, wdr_seccnt);
sn = CHP_READ_REG(chp, wdr_sector);
cl = CHP_READ_REG(chp, wdr_cyl_lo);
ch = CHP_READ_REG(chp, wdr_cyl_hi);