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
This commit is contained in:
Poul-Henning Kamp 1999-09-25 18:24:47 +00:00
parent 784733e9ec
commit d6a0e38a1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51658
147 changed files with 40 additions and 752 deletions

View File

@ -84,19 +84,14 @@ static struct cdevsw mem_cdevsw = {
/* read */ mmrw,
/* write */ mmrw,
/* ioctl */ mmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ mmpoll,
/* mmap */ memmmap,
/* strategy */ nostrategy,
/* name */ "mem",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -72,19 +72,14 @@ static struct cdevsw prom_cdevsw = {
/* read */ promread,
/* write */ promwrite,
/* ioctl */ promioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "prom",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -75,19 +75,14 @@ static struct cdevsw zs_cdevsw = {
/* read */ zsread,
/* write */ zswrite,
/* ioctl */ zsioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "zs",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -84,19 +84,14 @@ static struct cdevsw mem_cdevsw = {
/* read */ mmrw,
/* write */ mmrw,
/* ioctl */ mmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ mmpoll,
/* mmap */ memmmap,
/* strategy */ nostrategy,
/* name */ "mem",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -562,19 +562,14 @@ static struct cdevsw xpt_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ xptioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "xpt",
/* parms */ noparms,
/* maj */ XPT_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -248,19 +248,14 @@ static struct cdevsw cd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ cdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ cdstrategy,
/* name */ "cd",
/* parms */ noparms,
/* maj */ CD_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ CD_BDEV_MAJOR
};

View File

@ -219,19 +219,14 @@ static struct cdevsw ch_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ chioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ch",
/* parms */ noparms,
/* maj */ CH_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -243,19 +243,14 @@ static struct cdevsw da_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ daioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ dastrategy,
/* name */ "da",
/* parms */ noparms,
/* maj */ DA_CDEV_MAJOR,
/* dump */ dadump,
/* psize */ dasize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ DA_BDEV_MAJOR
};

View File

@ -119,19 +119,14 @@ static struct cdevsw pass_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ passioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ passstrategy,
/* name */ "pass",
/* parms */ noparms,
/* maj */ PASS_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -123,19 +123,14 @@ static struct cdevsw pt_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ ptioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ ptstrategy,
/* name */ "pt",
/* parms */ noparms,
/* maj */ PT_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -349,19 +349,14 @@ static struct cdevsw sa_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ saioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ sastrategy,
/* name */ "sa",
/* parms */ noparms,
/* maj */ SA_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TAPE,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -172,19 +172,14 @@ static struct cdevsw targ_cdevsw = {
/* read */ targread,
/* write */ targwrite,
/* ioctl */ targioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ targpoll,
/* mmap */ nommap,
/* strategy */ targstrategy,
/* name */ "targ",
/* parms */ noparms,
/* maj */ TARG_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -71,19 +71,14 @@ static struct cdevsw codadevsw = {
/* read */ vc_nb_read,
/* write */ vc_nb_write,
/* ioctl */ vc_nb_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ vc_nb_poll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "Coda",
/* parms */ noparms,
/* maj */ VC_DEV_NO,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -63,19 +63,14 @@ static struct cdevsw fla_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ flaioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ flastrategy,
/* name */ "fla",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK | D_CANFREE,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};
static struct cdevsw fladisk_cdevsw;

View File

@ -64,19 +64,14 @@ static struct cdevsw ad_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ noioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ adstrategy,
/* name */ "ad",
/* parms */ noparms,
/* maj */ 116,
/* dump */ addump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ 30,
};
static struct cdevsw addisk_cdevsw;

View File

@ -61,19 +61,14 @@ static struct cdevsw acd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ acdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ acdstrategy,
/* name */ "acd",
/* parms */ noparms,
/* maj */ 117,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ 31
};

View File

@ -61,19 +61,14 @@ static struct cdevsw afd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ afdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ afdstrategy,
/* name */ "afd",
/* parms */ noparms,
/* maj */ 118,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ 32,
};
static struct cdevsw afddisk_cdevsw;

View File

@ -58,19 +58,14 @@ static struct cdevsw ast_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ astioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ aststrategy,
/* name */ "ast",
/* parms */ noparms,
/* maj */ 119,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TAPE,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -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
};

View File

@ -6951,19 +6951,14 @@ static struct cdevsw bktr_cdevsw = {
/* read */ bktr_read,
/* write */ bktr_write,
/* ioctl */ bktr_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ bktr_poll,
/* mmap */ bktr_mmap,
/* strategy */ nostrategy,
/* name */ "bktr",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -177,19 +177,14 @@ static struct cdevsw ccd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ ccdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ ccdstrategy,
/* name */ "ccd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ ccddump,
/* psize */ ccdsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -378,19 +378,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
};

View File

@ -378,19 +378,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
};

View File

@ -215,19 +215,14 @@ static struct cdevsw dgb_cdevsw = {
/* read */ dgbread,
/* write */ dgbwrite,
/* ioctl */ dgbioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "dgb",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -219,19 +219,14 @@ static struct cdevsw dgm_cdevsw = {
/* read */ dgmread,
/* write */ dgmwrite,
/* ioctl */ dgmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "dgm",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -97,19 +97,14 @@ static struct cdevsw dpt_cdevsw = {
/* read */ dpt_read,
/* write */ dpt_write,
/* ioctl */ dpt_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "dpt",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -365,19 +365,14 @@ static struct cdevsw fb_cdevsw = {
/* read */ fbread,
/* write */ fbwrite,
/* ioctl */ fbioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ fbmmap,
/* strategy */ nostrategy,
/* name */ FB_DRIVER_NAME,
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -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
};

View File

@ -1529,19 +1529,14 @@ static struct cdevsw fore_cdev = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ noioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ noname,
/* parms */ noparms,
/* maj */ -1,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -77,19 +77,14 @@ static struct cdevsw id_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ idioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ idstrategy,
/* name */ "id",
/* parms */ noparms,
/* maj */ ID_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ idsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ ID_BDEV_MAJOR
};
static struct cdevsw stolen_cdevsw;

View File

@ -98,19 +98,14 @@ static struct cdevsw iic_cdevsw = {
/* read */ iicread,
/* write */ iicwrite,
/* ioctl */ iicioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "iic",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -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
};

View File

@ -393,19 +393,14 @@ static struct cdevsw kbd_cdevsw = {
/* read */ genkbdread,
/* write */ genkbdwrite,
/* ioctl */ genkbdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ genkbdpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "kbd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -214,19 +214,14 @@ static struct cdevsw mcd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ mcdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ mcdstrategy,
/* name */ "mcd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -44,19 +44,14 @@ static struct cdevsw md_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ mdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ mdstrategy,
/* name */ "md",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK | D_CANFREE,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};
static struct cdevsw mddisk_cdevsw;

View File

@ -83,19 +83,14 @@ static struct cdevsw mse_cdevsw = {
/* read */ mseread,
/* write */ nowrite,
/* ioctl */ mseioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ msepoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "mse",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -896,19 +896,14 @@ static struct cdevsw pcicdev = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ pci_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "pci",
/* parms */ noparms,
/* maj */ PCI_CDEV,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -57,19 +57,14 @@ static struct cdevsw snd_cdevsw = {
/* read */ sndread,
/* write */ sndwrite,
/* ioctl */ sndioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ sndpoll,
/* mmap */ sndmmap,
/* strategy */ nostrategy,
/* name */ "snd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -203,19 +203,14 @@ static struct cdevsw lpt_cdevsw = {
/* read */ lptread,
/* write */ lptwrite,
/* ioctl */ lptioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ LPT_NAME,
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -97,19 +97,14 @@ static struct cdevsw ppi_cdevsw = {
/* read */ ppiread,
/* write */ ppiwrite,
/* ioctl */ ppiioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ppi",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -60,19 +60,14 @@ static struct cdevsw pps_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ ppsioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ PPS_NAME,
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -98,19 +98,14 @@ static struct cdevsw rc_cdevsw = {
/* read */ rcread,
/* write */ rcwrite,
/* ioctl */ rcioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "rc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -805,19 +805,14 @@ static struct cdevsw rp_cdevsw = {
/* read */ rpread,
/* write */ rpwrite,
/* ioctl */ rpioctl,
/* 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
};

View File

@ -187,19 +187,14 @@ static struct cdevsw scd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ scdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ scdstrategy,
/* name */ "scd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -180,19 +180,14 @@ static struct cdevsw si_cdevsw = {
/* read */ siread,
/* write */ siwrite,
/* ioctl */ siioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "si",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -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
};

View File

@ -99,19 +99,14 @@ static struct cdevsw smb_cdevsw = {
/* read */ smbread,
/* write */ smbwrite,
/* ioctl */ smbioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "smb",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -49,19 +49,14 @@ static struct cdevsw snp_cdevsw = {
/* read */ snpread,
/* write */ snpwrite,
/* ioctl */ snpioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ snppoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "snp",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -57,19 +57,14 @@ static struct cdevsw snd_cdevsw = {
/* read */ sndread,
/* write */ sndwrite,
/* ioctl */ sndioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ sndpoll,
/* mmap */ sndmmap,
/* strategy */ nostrategy,
/* name */ "snd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -34,19 +34,14 @@ static struct cdevsw spkr_cdevsw = {
/* read */ noread,
/* write */ spkrwrite,
/* ioctl */ spkrioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "spkr",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -107,19 +107,14 @@ static struct cdevsw streams_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ noioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "streams",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -215,19 +215,14 @@ static struct cdevsw sc_cdevsw = {
/* read */ scread,
/* write */ scwrite,
/* ioctl */ scioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ scmmap,
/* strategy */ nostrategy,
/* name */ "sc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};
@ -481,7 +476,7 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
tp = dev->si_tty = ttymalloc(dev->si_tty);
tp->t_oproc = (SC_VTY(dev) == SC_MOUSE) ? scmousestart : scstart;
tp->t_param = scparam;
tp->t_stop = nostop;
tp->t_stop = nottystop;
tp->t_dev = dev;
if (!(tp->t_state & TS_ISOPEN)) {
ttychars(tp);

View File

@ -126,19 +126,14 @@ static struct cdevsw ugen_cdevsw = {
/* read */ ugenread,
/* write */ ugenwrite,
/* ioctl */ ugenioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ugenpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ugen",
/* parms */ noparms,
/* maj */ UGEN_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};
#endif

View File

@ -138,19 +138,14 @@ static struct cdevsw uhid_cdevsw = {
/* read */ uhidread,
/* write */ uhidwrite,
/* ioctl */ uhidioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ uhidpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "uhid",
/* parms */ noparms,
/* maj */ UHID_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};
#endif

View File

@ -136,19 +136,14 @@ static struct cdevsw ulpt_cdevsw = {
/* read */ noread,
/* write */ ulptwrite,
/* ioctl */ ulptioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ulpt",
/* parms */ noparms,
/* maj */ ULPT_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};
#endif

View File

@ -136,19 +136,14 @@ static struct cdevsw ums_cdevsw = {
/* read */ ums_read,
/* write */ nowrite,
/* ioctl */ ums_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ums_poll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ums",
/* parms */ noparms,
/* maj */ UMS_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -121,19 +121,14 @@ struct cdevsw usb_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ usbioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ usbpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "usb",
/* parms */ noparms,
/* maj */ USB_CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};
#endif

View File

@ -54,10 +54,10 @@ extern struct mc malloced[];
STATIC struct cdevsw vinum_cdevsw =
{
vinumopen, vinumclose, physread, physwrite,
vinumioctl, nostop, noreset, nodevtotty,
vinumioctl,
seltrue, nommap, vinumstrategy, "vinum",
noparms, CDEV_MAJOR, vinumdump, vinumsize,
D_DISK, 0, BDEV_MAJOR
CDEV_MAJOR, vinumdump, vinumsize,
D_DISK, BDEV_MAJOR
};
/* Called by main() during pseudo-device attachment. */

View File

@ -113,19 +113,14 @@ static struct cdevsw vn_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ vnioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ vnstrategy,
/* name */ "vn",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ vnsize,
/* flags */ D_DISK|D_CANFREE,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -71,19 +71,14 @@ static struct cdevsw codadevsw = {
/* read */ vc_nb_read,
/* write */ vc_nb_write,
/* ioctl */ vc_nb_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ vc_nb_poll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "Coda",
/* parms */ noparms,
/* maj */ VC_DEV_NO,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -243,8 +243,8 @@ spec_open(ap)
struct tty *tp;
tp = dev->si_tty;
if (!tp->t_stop) {
printf("Warning:%s: no t_stop, using nostop\n", devtoname(dev));
tp->t_stop = nostop;
printf("Warning:%s: no t_stop, using nottystop\n", devtoname(dev));
tp->t_stop = nottystop;
}
}
}

View File

@ -177,19 +177,14 @@ static struct cdevsw ccd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ ccdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ ccdstrategy,
/* name */ "ccd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ ccddump,
/* psize */ ccdsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -215,19 +215,14 @@ static struct cdevsw dgb_cdevsw = {
/* read */ dgbread,
/* write */ dgbwrite,
/* ioctl */ dgbioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "dgb",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -219,19 +219,14 @@ static struct cdevsw dgm_cdevsw = {
/* read */ dgmread,
/* write */ dgmwrite,
/* ioctl */ dgmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "dgm",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -108,19 +108,14 @@ static struct cdevsw apm_cdevsw = {
/* read */ noread,
/* write */ apmwrite,
/* ioctl */ apmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ apmpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "apm",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -108,19 +108,14 @@ static struct cdevsw apm_cdevsw = {
/* read */ noread,
/* write */ apmwrite,
/* ioctl */ apmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ apmpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "apm",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -84,19 +84,14 @@ static struct cdevsw mem_cdevsw = {
/* read */ mmrw,
/* write */ mmrw,
/* ioctl */ mmioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ mmpoll,
/* mmap */ memmmap,
/* strategy */ nostrategy,
/* name */ "mem",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -65,19 +65,14 @@ static struct cdevsw perfmon_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ perfmon_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "perfmon",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -193,19 +193,14 @@ static struct cdevsw asc_cdevsw = {
/* read */ ascread,
/* write */ nowrite,
/* ioctl */ ascioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ascpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "asc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -62,19 +62,14 @@ static struct cdevsw acd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ acdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ acdstrategy,
/* name */ "wcd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -146,19 +146,14 @@ static struct cdevsw ctx_cdevsw = {
/* read */ ctxread,
/* write */ ctxwrite,
/* ioctl */ ctxioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "ctx",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -97,19 +97,14 @@ struct cdevsw cx_cdevsw = {
/* read */ cxread,
/* write */ cxwrite,
/* ioctl */ cxioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "cx",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};
#else

View File

@ -378,19 +378,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
};

View File

@ -16,6 +16,7 @@
* or modify this software as long as this message is kept with the software,
* all derivative works or modified versions.
*
* $FreeBSD$
*
*/
/*Please read the README file for usage information*/
@ -75,19 +76,14 @@ static struct cdevsw gp_cdevsw = {
/* read */ noread,
/* write */ gpwrite,
/* ioctl */ gpioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "gp",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -30,6 +30,9 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (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 "gsc.h"
@ -188,19 +191,14 @@ static struct cdevsw gsc_cdevsw = {
/* read */ gscread,
/* write */ nowrite,
/* ioctl */ gscioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "gsc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -640,19 +640,14 @@ static struct cdevsw stli_cdevsw = {
/* read */ stliread,
/* write */ stliwrite,
/* ioctl */ stliioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ stli_drvname,
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -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
};

View File

@ -37,6 +37,9 @@
* Written by:
* Peter Dufault
* dufault@hda.com
*
* $FreeBSD$
*
*/
#include "labpc.h"
@ -289,19 +292,14 @@ static struct cdevsw labpc_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ labpcioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ labpcstrategy,
/* name */ "labpc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -628,19 +628,14 @@ static struct cdevsw loran_cdevsw = {
/* read */ loranread,
/* write */ loranwrite,
/* ioctl */ noioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "loran",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -514,19 +514,14 @@ static struct cdevsw matcd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ matcdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ matcdstrategy,
/* name */ "matcd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -214,19 +214,14 @@ static struct cdevsw mcd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ mcdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ mcdstrategy,
/* name */ "mcd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -83,19 +83,14 @@ static struct cdevsw mse_cdevsw = {
/* read */ mseread,
/* write */ nowrite,
/* ioctl */ mseioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ msepoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "mse",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -136,19 +136,14 @@ static struct cdevsw pca_cdevsw = {
/* read */ noread,
/* write */ pcawrite,
/* ioctl */ pcaioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ pcapoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "pca",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -132,19 +132,14 @@ static struct cdevsw pc_cdevsw = {
/* read */ pcread,
/* write */ pcwrite,
/* ioctl */ pcioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ pcmmap,
/* strategy */ nostrategy,
/* name */ "vt",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -98,19 +98,14 @@ static struct cdevsw rc_cdevsw = {
/* read */ rcread,
/* write */ rcwrite,
/* ioctl */ rcioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "rc",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -805,19 +805,14 @@ static struct cdevsw rp_cdevsw = {
/* read */ rpread,
/* write */ rpwrite,
/* ioctl */ rpioctl,
/* 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
};

View File

@ -187,19 +187,14 @@ static struct cdevsw scd_cdevsw = {
/* read */ physread,
/* write */ nowrite,
/* ioctl */ scdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ scdstrategy,
/* name */ "scd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -180,19 +180,14 @@ static struct cdevsw si_cdevsw = {
/* read */ siread,
/* write */ siwrite,
/* ioctl */ siioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "si",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -48,6 +48,8 @@
* device parameters, then call the board-specific routines if
* available, or try to perform the task using the default code.
*
* $FreeBSD$
*
*/
#include <i386/isa/snd/sound.h>
@ -75,19 +77,14 @@ static struct cdevsw snd_cdevsw = {
/* read */ sndread,
/* write */ sndwrite,
/* ioctl */ sndioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ sndselect,
/* mmap */ sndmmap,
/* strategy */ nostrategy,
/* name */ "snd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -24,7 +24,9 @@
* LIABILITY, OR TORT (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 <i386/isa/sound/sound_config.h>
#if NSND > 0 /* from "snd.h" */
@ -92,19 +94,14 @@ static struct cdevsw snd_cdevsw = {
/* read */ sndread,
/* write */ sndwrite,
/* ioctl */ sndioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ sndpoll,
/* mmap */ sndmmap,
/* strategy */ nostrategy,
/* name */ driver_name,
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -42,6 +42,8 @@
*
* Version 1.7, December 1995.
*
* $FreeBSD$
*
*/
#include "spigot.h"
@ -101,19 +103,14 @@ static struct cdevsw spigot_cdevsw = {
/* read */ spigot_read,
/* write */ spigot_write,
/* ioctl */ spigot_ioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ spigot_mmap,
/* strategy */ nostrategy,
/* name */ "spigot",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -34,19 +34,14 @@ static struct cdevsw spkr_cdevsw = {
/* read */ noread,
/* write */ spkrwrite,
/* ioctl */ spkrioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "spkr",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -535,19 +535,14 @@ static struct cdevsw stl_cdevsw = {
/* read */ stlread,
/* write */ stlwrite,
/* ioctl */ stlioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ ttypoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "stl",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -27,6 +27,9 @@
* LIABILITY, OR TORT (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 "tw.h"
@ -221,19 +224,14 @@ static struct cdevsw tw_cdevsw = {
/* read */ twread,
/* write */ twwrite,
/* ioctl */ noioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ twpoll,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "tw",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -242,19 +242,14 @@ static struct cdevsw wd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ wdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ wdstrategy,
/* name */ "wd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ wddump,
/* psize */ wdsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -62,19 +62,14 @@ static struct cdevsw acd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ acdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ acdstrategy,
/* name */ "wcd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -63,19 +63,14 @@ static struct cdevsw wfd_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ wfdioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ wfdstrategy,
/* name */ "wfd",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ BDEV_MAJOR
};

View File

@ -57,19 +57,14 @@ static struct cdevsw wst_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ wstioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ wststrategy,
/* name */ "wst",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -190,19 +190,14 @@ static struct cdevsw wt_cdevsw = {
/* read */ physread,
/* write */ physwrite,
/* ioctl */ wtioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ nopoll,
/* mmap */ nommap,
/* strategy */ wtstrategy,
/* name */ "wt",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -100,19 +100,14 @@ static struct cdevsw i4bctl_cdevsw = {
/* read */ noread,
/* write */ nowrite,
/* ioctl */ i4bctlioctl,
/* stop */ nostop,
/* reset */ noreset,
/* devtotty */ nodevtotty,
/* poll */ POLLFIELD,
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "i4bctl",
/* parms */ noparms,
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
/* maxio */ 0,
/* bmaj */ -1
};
#else

Some files were not shown because too many files have changed in this diff Show More