diff options
author | nyan <nyan@FreeBSD.org> | 2001-07-14 04:19:09 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2001-07-14 04:19:09 +0000 |
commit | 9881dba153210f3102e4ac09de1deb6100e2ed96 (patch) | |
tree | 3eed5aa58e79339a41568aebe380e7070dd53360 /sys/isa | |
parent | f1fc85923f0b4dd1d520dc0bf138decbd9a16dc6 (diff) | |
download | FreeBSD-src-9881dba153210f3102e4ac09de1deb6100e2ed96.zip FreeBSD-src-9881dba153210f3102e4ac09de1deb6100e2ed96.tar.gz |
- Refine pc98 supports.
- Use bus_space stuff.
- Rename FDO_* -> FDC_* (obtained from NetBSD/pc98)
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/fdc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/isa/fdc.h b/sys/isa/fdc.h index fabf3cf..8bdce4b 100644 --- a/sys/isa/fdc.h +++ b/sys/isa/fdc.h @@ -76,23 +76,40 @@ struct fdc_data int fdu; /* the active drive */ enum fdc_states state; int retry; +#ifndef PC98 int fdout; /* mirror of the w/o digital output reg */ +#endif u_int status[7]; /* copy of the registers */ enum fdc_type fdct; /* chip version of FDC */ int fdc_errs; /* number of logged errors */ int dma_overruns; /* number of DMA overruns */ struct bio_queue_head head; struct bio *bp; /* active buffer */ +#ifdef PC98 + struct resource *res_ioport, *res_fdsio, *res_fdemsio; + struct resource *res_irq, *res_drq; + int rid_ioport, rid_irq, rid_drq; +#else struct resource *res_ioport, *res_ctl, *res_irq, *res_drq; int rid_ioport, rid_ctl, rid_irq, rid_drq; +#endif int port_off; bus_space_tag_t portt; bus_space_handle_t porth; +#ifdef PC98 + bus_space_tag_t sc_fdsiot; + bus_space_handle_t sc_fdsioh; + bus_space_tag_t sc_fdemsiot; + bus_space_handle_t sc_fdemsioh; +#else bus_space_tag_t ctlt; bus_space_handle_t ctlh; +#endif void *fdc_intr; struct device *fdc_dev; +#ifndef PC98 void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v); +#endif }; /***********************************************************************\ |