version 1.32, 2012/07/31 15:50:31 |
version 1.33, 2017/10/07 16:05:31 |
Line 86 struct icside_softc { |
|
Line 86 struct icside_softc { |
|
struct ata_channel *sc_chp[ICSIDE_MAX_CHANNELS]; |
struct ata_channel *sc_chp[ICSIDE_MAX_CHANNELS]; |
struct icside_channel { |
struct icside_channel { |
struct ata_channel ic_channel; /* generic part */ |
struct ata_channel ic_channel; /* generic part */ |
struct ata_queue ic_chqueue; /* channel queue */ |
|
void *ic_ih; /* interrupt handler */ |
void *ic_ih; /* interrupt handler */ |
struct evcnt ic_intrcnt; /* interrupt count */ |
struct evcnt ic_intrcnt; /* interrupt count */ |
u_int ic_irqaddr; /* interrupt flag */ |
u_int ic_irqaddr; /* interrupt flag */ |
Line 270 icside_attach(device_t parent, device_t |
|
Line 269 icside_attach(device_t parent, device_t |
|
|
|
cp->ch_channel = channel; |
cp->ch_channel = channel; |
cp->ch_atac = &sc->sc_wdcdev.sc_atac; |
cp->ch_atac = &sc->sc_wdcdev.sc_atac; |
cp->ch_queue = &icp->ic_chqueue; |
cp->ch_queue = ata_queue_alloc(1); |
wdr->cmd_iot = &sc->sc_tag; |
wdr->cmd_iot = &sc->sc_tag; |
wdr->ctl_iot = &sc->sc_tag; |
wdr->ctl_iot = &sc->sc_tag; |
if (ide->modspace) |
if (ide->modspace) |
Line 286 icside_attach(device_t parent, device_t |
|
Line 285 icside_attach(device_t parent, device_t |
|
i, i == 0 ? 4 : 1, &wdr->cmd_iohs[i]) != 0) |
i, i == 0 ? 4 : 1, &wdr->cmd_iohs[i]) != 0) |
return; |
return; |
} |
} |
wdc_init_shadow_regs(cp); |
wdc_init_shadow_regs(wdr); |
if (bus_space_map(iot, iobase + ide->auxregs[channel], |
if (bus_space_map(iot, iobase + ide->auxregs[channel], |
AUX_REGISTER_SPACE, 0, &wdr->ctl_ioh)) |
AUX_REGISTER_SPACE, 0, &wdr->ctl_ioh)) |
return; |
return; |