Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 03/26/2001 15:33:27
Module Name: syssrc
Committed By: lukem
Date: Mon Mar 26 12:33:26 UTC 2001
Modified Files:
syssrc/sys/arch/amiga/include: conf.h
syssrc/sys/arch/amigappc/include: conf.h
syssrc/sys/arch/arm32/include: conf.h
syssrc/sys/arch/atari/atari: conf.c
syssrc/sys/arch/dreamcast/include: conf.h
syssrc/sys/arch/evbsh3/include: conf.h
syssrc/sys/arch/hp300/hp300: conf.c
syssrc/sys/arch/hpcarm/include: conf.h
syssrc/sys/arch/hpcsh/include: conf.h
syssrc/sys/arch/i386/i386: conf.c
syssrc/sys/arch/mmeye/include: conf.h
syssrc/sys/arch/ofppc/ofppc: conf.c
syssrc/sys/arch/pmax/pmax: conf.c
syssrc/sys/arch/sparc/include: conf.h
syssrc/sys/arch/sparc/sparc: conf.c
syssrc/sys/arch/sparc64/include: conf.h
syssrc/sys/arch/sparc64/sparc64: conf.c
syssrc/sys/arch/vax/vax: conf.c
syssrc/sys/arch/x68k/x68k: conf.c
syssrc/sys/sys: conf.h
Log Message:
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately
- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well
- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)
- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev
- ensure that the comments are accurate WRT the behaviour of a given entry
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 syssrc/sys/arch/amiga/include/conf.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/amigappc/include/conf.h
cvs rdiff -r1.18 -r1.19 syssrc/sys/arch/arm32/include/conf.h
cvs rdiff -r1.45 -r1.46 syssrc/sys/arch/atari/atari/conf.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/dreamcast/include/conf.h
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/evbsh3/include/conf.h
cvs rdiff -r1.45 -r1.46 syssrc/sys/arch/hp300/hp300/conf.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/arch/hpcarm/include/conf.h
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/hpcsh/include/conf.h
cvs rdiff -r1.139 -r1.140 syssrc/sys/arch/i386/i386/conf.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/mmeye/include/conf.h
cvs rdiff -r1.8 -r1.9 syssrc/sys/arch/ofppc/ofppc/conf.c
cvs rdiff -r1.40 -r1.41 syssrc/sys/arch/pmax/pmax/conf.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/arch/sparc/include/conf.h
cvs rdiff -r1.68 -r1.69 syssrc/sys/arch/sparc/sparc/conf.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/arch/sparc64/include/conf.h
cvs rdiff -r1.16 -r1.17 syssrc/sys/arch/sparc64/sparc64/conf.c
cvs rdiff -r1.52 -r1.53 syssrc/sys/arch/vax/vax/conf.c
cvs rdiff -r1.24 -r1.25 syssrc/sys/arch/x68k/x68k/conf.c
cvs rdiff -r1.85 -r1.86 syssrc/sys/sys/conf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.