mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Push BIO_FORMAT into a local hack inside the floppy drivers where
it belongs.
This commit is contained in:
parent
ab0235da5d
commit
d306122d60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93238
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user