1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Push BIO_FORMAT into a local hack inside the floppy drivers where

it belongs.
This commit is contained in:
Poul-Henning Kamp 2002-03-26 19:16:37 +00:00
parent ab0235da5d
commit d306122d60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93238
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); void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v);
}; };
#define BIO_FORMAT BIO_CMD2
typedef int fdu_t; typedef int fdu_t;
typedef int fdcu_t; typedef int fdcu_t;
typedef int fdsu_t; typedef int fdsu_t;

View File

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

View File

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

View File

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

View File

@ -251,6 +251,7 @@ FDC_ACCESSOR(fdunit, FDUNIT, int)
#endif #endif
#define BIO_RDSECTID BIO_CMD1 #define BIO_RDSECTID BIO_CMD1
#define BIO_FORMAT BIO_CMD2
/* /*
* List of native drive densities. Order must match enum fd_drivetype * 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_READ 0x00000001
#define BIO_WRITE 0x00000002 #define BIO_WRITE 0x00000002
#define BIO_DELETE 0x00000004 #define BIO_DELETE 0x00000004
#define BIO_FORMAT 0x00000008 #define BIO_GETATTR 0x00000008
#define BIO_GETATTR 0x00000010 #define BIO_SETATTR 0x00000010
#define BIO_SETATTR 0x00000020
#define BIO_CMD1 0x40000000 /* Available for local hacks */ #define BIO_CMD1 0x40000000 /* Available for local hacks */
#define BIO_CMD2 0x80000000 /* Available for local hacks */ #define BIO_CMD2 0x80000000 /* Available for local hacks */