diff options
author | phk <phk@FreeBSD.org> | 1999-09-25 18:24:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-25 18:24:47 +0000 |
commit | e9e05122106077f828fbbd0964036c22503d1633 (patch) | |
tree | a2c7d461d93e3013c84a30e06340b510ec96aaa9 /sys/isa | |
parent | a0c34c5a2300c81f85c92ac6327b1d2ad3a56a77 (diff) | |
download | FreeBSD-src-e9e05122106077f828fbbd0964036c22503d1633.zip FreeBSD-src-e9e05122106077f828fbbd0964036c22503d1633.tar.gz |
Remove five now unused fields from struct cdevsw. They should never
have been there in the first place. A GENERIC kernel shrinks almost 1k.
Add a slightly different safetybelt under nostop for tty drivers.
Add some missing FreeBSD tags
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/fd.c | 5 | ||||
-rw-r--r-- | sys/isa/joy.c | 7 | ||||
-rw-r--r-- | sys/isa/psm.c | 5 | ||||
-rw-r--r-- | sys/isa/sio.c | 5 | ||||
-rw-r--r-- | sys/isa/vga_isa.c | 5 |
5 files changed, 2 insertions, 25 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c index f51161b..e63a75b 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -370,19 +370,14 @@ static struct cdevsw fd_cdevsw = { /* 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 }; diff --git a/sys/isa/joy.c b/sys/isa/joy.c index 56c90d1..5d23958 100644 --- a/sys/isa/joy.c +++ b/sys/isa/joy.c @@ -25,6 +25,8 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * + * $FreeBSD$ + * */ #include "joy.h" @@ -89,19 +91,14 @@ static struct cdevsw joy_cdevsw = { /* read */ joyread, /* write */ nowrite, /* ioctl */ joyioctl, - /* stop */ nostop, - /* reset */ noreset, - /* devtotty */ nodevtotty, /* poll */ nopoll, /* mmap */ nommap, /* strategy */ nostrategy, /* name */ "joy", - /* parms */ noparms, /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, - /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 6e861cc..747d2df 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -327,19 +327,14 @@ static struct cdevsw psm_cdevsw = { /* read */ psmread, /* write */ nowrite, /* ioctl */ psmioctl, - /* stop */ nostop, - /* reset */ noreset, - /* devtotty */ nodevtotty, /* poll */ psmpoll, /* mmap */ nommap, /* strategy */ nostrategy, /* name */ "psm", - /* parms */ noparms, /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, - /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 28c54db..ace8592 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -347,19 +347,14 @@ static struct cdevsw sio_cdevsw = { /* read */ sioread, /* write */ siowrite, /* ioctl */ sioioctl, - /* stop */ nostop, - /* reset */ noreset, - /* devtotty */ nodevtotty, /* poll */ ttypoll, /* mmap */ nommap, /* strategy */ nostrategy, /* name */ driver_name, - /* parms */ noparms, /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, /* flags */ D_TTY, - /* maxio */ 0, /* bmaj */ -1 }; diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c index 95cc1b1..885ef0d 100644 --- a/sys/isa/vga_isa.c +++ b/sys/isa/vga_isa.c @@ -96,19 +96,14 @@ static struct cdevsw isavga_cdevsw = { /* read */ isavga_read, /* write */ isavga_write, /* ioctl */ isavga_ioctl, - /* stop */ nostop, - /* reset */ noreset, - /* devtotty */ nodevtotty, /* poll */ nopoll, /* mmap */ isavga_mmap, /* strategy */ nostrategy, /* name */ VGA_DRIVER_NAME, - /* parms */ noparms, /* maj */ -1, /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, - /* maxio */ 0, /* bmaj */ -1 }; |