Home
last modified time | relevance | path

Searched refs:channel_softc (Results 1 – 18 of 18) sorted by relevance

/openbsd/src/sys/dev/ic/
Dwdcvar.h47 struct channel_softc { /* Per channel data */ struct
118 u_int8_t (*read_reg)(struct channel_softc *, enum wdc_regs reg);
119 void (*write_reg)(struct channel_softc *, enum wdc_regs reg,
121 void (*lba48_write_reg)(struct channel_softc *, enum wdc_regs reg,
124 void (*read_raw_multi_2)(struct channel_softc *,
126 void (*write_raw_multi_2)(struct channel_softc *,
129 void (*read_raw_multi_4)(struct channel_softc *,
131 void (*write_raw_multi_4)(struct channel_softc *,
170 struct channel_softc **channels; /* channel-specific data (array) */
199 void (*set_modes)(struct channel_softc *);
[all …]
Dwdcevent.h47 void wdc_log(struct channel_softc *chp, enum wdcevent_type type,
50 static __inline void WDC_LOG_STATUS(struct channel_softc *chp, in WDC_LOG_STATUS()
59 static __inline void WDC_LOG_ERROR(struct channel_softc *chp, in WDC_LOG_ERROR()
64 static __inline void WDC_LOG_ATAPI_CMD(struct channel_softc *chp, int drive, in WDC_LOG_ATAPI_CMD()
75 static __inline void WDC_LOG_ATAPI_DONE(struct channel_softc *chp, int drive, in WDC_LOG_ATAPI_DONE()
81 static __inline void WDC_LOG_ATA_CMDSHORT(struct channel_softc *chp, u_int8_t cmd) { in WDC_LOG_ATA_CMDSHORT()
85 static __inline void WDC_LOG_ATA_CMDLONG(struct channel_softc *chp, in WDC_LOG_ATA_CMDLONG()
94 static __inline void WDC_LOG_SET_DRIVE(struct channel_softc *chp, in WDC_LOG_SET_DRIVE()
100 static __inline void WDC_LOG_REG(struct channel_softc *chp, in WDC_LOG_REG()
111 static __inline void WDC_LOG_ATA_CMDEXT(struct channel_softc *chp, in WDC_LOG_ATA_CMDEXT()
Dwdc.c92 void __wdcerror(struct channel_softc *, char *);
93 int __wdcwait_reset(struct channel_softc *, int);
94 void __wdccommand_done(struct channel_softc *, struct wdc_xfer *);
95 void __wdccommand_start(struct channel_softc *, struct wdc_xfer *);
96 int __wdccommand_intr(struct channel_softc *, struct wdc_xfer *, int);
98 void wdc_kill_pending(struct channel_softc *);
125 int wdc_floating_bus(struct channel_softc *, int);
126 int wdc_preata_drive(struct channel_softc *, int);
127 int wdc_ata_present(struct channel_softc *, int);
151 wdc_log(struct channel_softc *chp, enum wdcevent_type type, in wdc_log()
[all …]
/openbsd/src/sys/dev/atapiscsi/
Datapiscsi.c96 void wdc_atapi_start(struct channel_softc *,struct wdc_xfer *);
100 void wdc_atapi_real_start(struct channel_softc *, struct wdc_xfer *,
102 void wdc_atapi_real_start_2(struct channel_softc *, struct wdc_xfer *,
104 void wdc_atapi_intr_command(struct channel_softc *, struct wdc_xfer *,
106 void wdc_atapi_intr_data(struct channel_softc *, struct wdc_xfer *,
108 void wdc_atapi_intr_complete(struct channel_softc *, struct wdc_xfer *,
110 void wdc_atapi_pio_intr(struct channel_softc *, struct wdc_xfer *,
112 void wdc_atapi_send_packet(struct channel_softc *, struct wdc_xfer *,
114 void wdc_atapi_ctrl(struct channel_softc *, struct wdc_xfer *,
119 int wdc_atapi_intr(struct channel_softc *, struct wdc_xfer *, int);
[all …]
/openbsd/src/sys/arch/landisk/dev/
Dwdc_obio.c48 struct channel_softc *sc_chanptr;
49 struct channel_softc sc_channel;
67 u_int8_t wdc_obio_read_reg(struct channel_softc *chp, enum wdc_regs reg);
68 void wdc_obio_write_reg(struct channel_softc *chp, enum wdc_regs reg,
110 struct channel_softc *chp = &sc->sc_channel; in wdc_obio_attach()
150 wdc_obio_read_reg(struct channel_softc *chp, enum wdc_regs reg) in wdc_obio_read_reg()
161 wdc_obio_write_reg(struct channel_softc *chp, enum wdc_regs reg, u_int8_t val) in wdc_obio_write_reg()
/openbsd/src/sys/arch/macppc/dev/
Dwdc_obio.c61 struct channel_softc *wdc_chanptr;
62 struct channel_softc wdc_channel;
76 u_int8_t wdc_obio_read_reg(struct channel_softc *, enum wdc_regs);
77 void wdc_obio_write_reg(struct channel_softc *, enum wdc_regs, u_int8_t);
101 void wdc_obio_adjust_timing(struct channel_softc *);
102 void wdc_obio_ata4_adjust_timing(struct channel_softc *);
103 void wdc_obio_ata6_adjust_timing(struct channel_softc *);
134 struct channel_softc *chp = &sc->wdc_channel; in wdc_obio_attach()
236 struct channel_softc *chp = &sc->wdc_channel; in wdc_obio_detach()
326 wdc_obio_adjust_timing(struct channel_softc *chp) in wdc_obio_adjust_timing()
[all …]
/openbsd/src/sys/dev/pci/
Dpciide_svwsata_reg.h40 u_int8_t svwsata_read_reg(struct channel_softc *, enum wdc_regs);
41 void svwsata_write_reg(struct channel_softc *, enum wdc_regs, u_int8_t);
42 void svwsata_lba48_write_reg(struct channel_softc *, enum wdc_regs, u_int16_t);
Dpciidevar.h90 struct channel_softc *wdc_chanarray[PCIIDE_MAX_CHANNELS];
93 struct channel_softc wdc_channel; /* generic part */
170 void pciide_irqack(struct channel_softc *);
Dpciide.c158 void sata_setup_channel(struct channel_softc *);
162 void piix_setup_channel(struct channel_softc *);
163 void piix3_4_setup_channel(struct channel_softc *);
171 void amd756_setup_channel(struct channel_softc *);
174 void apollo_setup_channel(struct channel_softc *);
178 void cmd0643_9_setup_channel(struct channel_softc *);
180 void cmd680_setup_channel(struct channel_softc *);
185 void cmd646_9_irqack(struct channel_softc *);
189 void sii3112_setup_channel(struct channel_softc *);
190 void sii3112_drv_probe(struct channel_softc *);
[all …]
Dpciide_pdc202xx_reg.h166 u_int8_t pdc203xx_read_reg(struct channel_softc *, enum wdc_regs);
167 void pdc203xx_write_reg(struct channel_softc *, enum wdc_regs, u_int8_t);
Dpciide_sii3112_reg.h393 u_int8_t sii3114_read_reg(struct channel_softc *, enum wdc_regs);
394 void sii3114_write_reg(struct channel_softc *, enum wdc_regs, u_int8_t);
/openbsd/src/sys/dev/ata/
Data_wdc.c98 void wdc_ata_bio_start(struct channel_softc *, struct wdc_xfer *);
99 void _wdc_ata_bio_start(struct channel_softc *, struct wdc_xfer *);
100 int wdc_ata_bio_intr(struct channel_softc *, struct wdc_xfer *, int);
101 void wdc_ata_bio_kill_xfer(struct channel_softc *, struct wdc_xfer *);
102 void wdc_ata_bio_done(struct channel_softc *, struct wdc_xfer *);
103 int wdc_ata_ctrl_intr(struct channel_softc *, struct wdc_xfer *, int);
116 struct channel_softc chp; in wd_hibernate_io()
122 struct channel_softc *chp = &my->chp; in wd_hibernate_io()
193 struct channel_softc *chp = drvp->chnl_softc; in wdc_ata_bio()
218 wdc_ata_bio_start(struct channel_softc *chp, struct wdc_xfer *xfer) in wdc_ata_bio_start()
[all …]
Dwd.c577 struct channel_softc *chnl; in wdrestart()
582 chnl = (struct channel_softc *)(wd->drvp->chnl_softc); in wdrestart()
612 struct channel_softc *chnl; in wdopen()
622 chnl = (struct channel_softc *)(wd->drvp->chnl_softc); in wdopen()
/openbsd/src/sys/dev/isa/
Dwdc_isa.c58 struct channel_softc *wdc_chanptr;
59 struct channel_softc wdc_channel;
83 struct channel_softc ch; in wdc_isa_probe()
Dwdc_isapnp.c50 struct channel_softc *wdc_chanptr;
51 struct channel_softc wdc_channel;
/openbsd/src/sys/arch/i386/pci/
Dpciide_machdep.c83 void gcsc_setup_channel(struct channel_softc *);
154 gcsc_setup_channel(struct channel_softc *chp) in gcsc_setup_channel()
/openbsd/src/sys/dev/pcmcia/
Dwdc_pcmcia.c53 struct channel_softc *wdc_chanptr;
54 struct channel_softc wdc_channel;
/openbsd/src/sys/dev/acpi/
Dacpi.c120 void wdcattach(struct channel_softc *);
121 int wdcdetach(struct channel_softc *, int);