summaryrefslogtreecommitdiffstats
path: root/sys/isa/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isa/fd.c')
-rw-r--r--sys/isa/fd.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index cc51f93..cd7001b 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.143 1999/05/11 04:58:30 bde Exp $
+ * $Id: fd.c,v 1.144 1999/05/30 11:10:54 dfr Exp $
*
*/
@@ -370,16 +370,31 @@ static d_close_t fdclose;
static d_ioctl_t fdioctl;
static d_strategy_t fdstrategy;
-static struct cdevsw fd_cdevsw = {
- Fdopen, fdclose, physread, physwrite,
- fdioctl, nostop, nullreset, nodevtotty,
- seltrue, nommap, fdstrategy, "fd",
- NULL, -1, nodump, nopsize,
- D_DISK, 0, -1
-};
#define CDEV_MAJOR 9
#define BDEV_MAJOR 2
+static struct cdevsw fd_cdevsw = {
+ /* open */ Fdopen,
+ /* close */ fdclose,
+ /* read */ physread,
+ /* write */ physwrite,
+ /* ioctl */ fdioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ nopoll,
+ /* mmap */ nommap,
+ /* strategy */ fdstrategy,
+ /* name */ "fd",
+ /* parms */ noparms,
+ /* maj */ CDEV_MAJOR,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ D_DISK,
+ /* maxio */ 0,
+ /* bmaj */ BDEV_MAJOR
+};
+
static int
fdc_err(struct fdc_data *fdc, const char *s)
{
OpenPOWER on IntegriCloud