summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-22 19:56:14 +0000
committerphk <phk@FreeBSD.org>1999-09-22 19:56:14 +0000
commit56948f82f5dc2d74432bc167dc307d2efa804e97 (patch)
treeaa1cec6687b5942804ab9aee76ca908bc41463a7 /sys/sys/conf.h
parent9e9ee6a9d861a3edf3d0726e5344af5760250c3b (diff)
downloadFreeBSD-src-56948f82f5dc2d74432bc167dc307d2efa804e97.zip
FreeBSD-src-56948f82f5dc2d74432bc167dc307d2efa804e97.tar.gz
Kill the cdevsw->d_maxio field.
d_maxio is replaced by the dev->si_iosize_max field which the driver should be set in all calls to cdevsw->d_open if it has a better idea than the system wide default. The field is a generic dev_t field (ie: not disk specific) so that tapes and other devices can use physio as well.
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 1f44b6b..16bdb49 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -61,6 +61,7 @@ struct specinfo {
struct cdevsw *si_devsw;
void *si_devfs; /* save cookie for devfs operations */
void *si_bdevfs; /* XXX block device (should go away) */
+ int si_iosize_max; /* maximum I/O size (for physio &al) */
union {
struct {
struct tty *__sit_tty;
@@ -70,7 +71,6 @@ struct specinfo {
struct mount *__sid_mountpoint;
int __sid_bsize_phys; /* min physical block size */
int __sid_bsize_best; /* optimal block size */
- int __sid_iosize_max; /* maximum I/O size */
} __si_disk;
} __si_u;
};
@@ -80,7 +80,6 @@ struct specinfo {
#define si_mountpoint __si_u.__si_disk.__sid_mountpoint
#define si_bsize_phys __si_u.__si_disk.__sid_bsize_phys
#define si_bsize_best __si_u.__si_disk.__sid_bsize_best
-#define si_iosize_max __si_u.__si_disk.__sid_iosize_max
/*
* Exported shorthand
@@ -182,7 +181,7 @@ struct cdevsw {
d_dump_t *d_dump;
d_psize_t *d_psize;
u_int d_flags;
- int d_maxio;
+ int d_bogomaxio; /* XXX not used */
int d_bmaj;
};
OpenPOWER on IntegriCloud