summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/fdcvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/cbus/fdcvar.h')
-rw-r--r--sys/pc98/cbus/fdcvar.h10
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);
OpenPOWER on IntegriCloud