diff options
author | nyan <nyan@FreeBSD.org> | 2004-07-13 13:14:37 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2004-07-13 13:14:37 +0000 |
commit | 2c6fa2f70b5ff8428723747a5327b2ba2d4dabd7 (patch) | |
tree | 21d59bcb35426803bab85848b59f7f31781bd58c /sys/pc98/cbus/fdcvar.h | |
parent | 6bbfebb2615bbd5e1e50cb13dc3d2dad83d6e799 (diff) | |
download | FreeBSD-src-2c6fa2f70b5ff8428723747a5327b2ba2d4dabd7.zip FreeBSD-src-2c6fa2f70b5ff8428723747a5327b2ba2d4dabd7.tar.gz |
Merged from recent fdc driver changes.
Make a separate function to check FDD type.
Diffstat (limited to 'sys/pc98/cbus/fdcvar.h')
-rw-r--r-- | sys/pc98/cbus/fdcvar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/pc98/cbus/fdcvar.h b/sys/pc98/cbus/fdcvar.h index ae37ffa..77cff79 100644 --- a/sys/pc98/cbus/fdcvar.h +++ b/sys/pc98/cbus/fdcvar.h @@ -141,6 +141,14 @@ typedef enum fdc_type fdc_t; extern devclass_t fdc_devclass; +enum fdc_device_ivars { + FDC_IVAR_FDUNIT, + FDC_IVAR_FDTYPE, +}; + +__BUS_ACCESSOR(fdc, fdunit, FDC, FDUNIT, int); +__BUS_ACCESSOR(fdc, fdtype, FDC, FDTYPE, int); + int fdc_alloc_resources(struct fdc_data *); #ifndef PC98 void fdout_wr(fdc_p, u_int8_t); @@ -149,5 +157,7 @@ int fd_cmd(struct fdc_data *, int, ...); void fdc_release_resources(struct fdc_data *); int fdc_attach(device_t); int fdc_detach(device_t dev); +int fdc_initial_reset(struct fdc_data *); int fdc_print_child(device_t, device_t); int fdc_read_ivar(device_t, device_t, int, uintptr_t *); +int fdc_write_ivar(device_t, device_t, int, uintptr_t); |