Push BIO_FORMAT into a local hack inside the floppy drivers where

it belongs.
This commit is contained in:
phk 2002-03-26 19:16:37 +00:00
parent 6de60b2636
commit 3d1eaf5230
6 changed files with 8 additions and 4 deletions

View File

@ -165,6 +165,8 @@ struct fdc_data
void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v);
};
#define BIO_FORMAT BIO_CMD2
typedef int fdu_t;
typedef int fdcu_t;
typedef int fdsu_t;

View File

@ -249,7 +249,6 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
break;
case BIO_SETATTR:
case BIO_DELETE:
case BIO_FORMAT:
if ((cp->acw == 0) || (cp->ace == 0))
error = EPERM;
break;

View File

@ -165,6 +165,8 @@ struct fdc_data
void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v);
};
#define BIO_FORMAT BIO_CMD2
typedef int fdu_t;
typedef int fdcu_t;
typedef int fdsu_t;

View File

@ -251,6 +251,7 @@ FDC_ACCESSOR(fdunit, FDUNIT, int)
#endif
#define BIO_RDSECTID BIO_CMD1
#define BIO_FORMAT BIO_CMD2
/*
* List of native drive densities. Order must match enum fd_drivetype

View File

@ -251,6 +251,7 @@ FDC_ACCESSOR(fdunit, FDUNIT, int)
#endif
#define BIO_RDSECTID BIO_CMD1
#define BIO_FORMAT BIO_CMD2
/*
* List of native drive densities. Order must match enum fd_drivetype

View File

@ -95,9 +95,8 @@ struct bio {
#define BIO_READ 0x00000001
#define BIO_WRITE 0x00000002
#define BIO_DELETE 0x00000004
#define BIO_FORMAT 0x00000008
#define BIO_GETATTR 0x00000010
#define BIO_SETATTR 0x00000020
#define BIO_GETATTR 0x00000008
#define BIO_SETATTR 0x00000010
#define BIO_CMD1 0x40000000 /* Available for local hacks */
#define BIO_CMD2 0x80000000 /* Available for local hacks */