History log of /src/sys/arch/vax/uba/qv.c |
Revision | | Date | Author | Comments |
1.38 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.37 |
| 24-Apr-2021 |
thorpej | branches: 1.37.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.36 |
| 21-Nov-2020 |
thorpej | branches: 1.36.2; malloc(9) -> kmem(9)
|
1.35 |
| 14-Jun-2020 |
chs | branches: 1.35.2; replace EX_NOWAIT with EX_WAITOK in device attach methods. remove checks for failures that can no longer occur.
|
1.34 |
| 14-Mar-2019 |
thorpej | Use copyin(), not fusword().
|
1.33 |
| 22-May-2017 |
ragge | branches: 1.33.10; Update copyright notice for Ludd (remove clause 3 & 4).
|
1.32 |
| 07-Jul-2016 |
msaitoh | KNF. Remove extra spaces. No functional change.
|
1.31 |
| 05-Jul-2015 |
matt | Revamped QVSS (VCB01) support. (from Charles Dickman)
|
1.30 |
| 25-Jul-2014 |
dholland | branches: 1.30.4; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.29 |
| 16-Mar-2014 |
dholland | branches: 1.29.2; Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
|
1.28 |
| 30-Jun-2011 |
wiz | branches: 1.28.2; 1.28.12; 1.28.16; dependant -> dependent
|
1.27 |
| 21-Nov-2009 |
rmind | - Use lwp_getpcb() on VAX, clean from struct user usage. - Include sys/user.h in MD proc.h .
|
1.26 |
| 26-Oct-2009 |
cegger | kill extra whitespaces reviewed by tsutsui@
|
1.25 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.24 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.23 |
| 18-Mar-2009 |
cegger | Ansify function definitions w/o arguments. Generated with sed.
|
1.22 |
| 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.21 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.20 |
| 11-Mar-2008 |
matt | branches: 1.20.4; 1.20.12; 1.20.18; Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf code. Move to prototype definitions. staticfy, constify, avoid casting. Use device_* accessors.
|
1.19 |
| 01-Mar-2008 |
rmind | Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.
- Merge selwakeup() and selnotify() calls into a single selnotify().
- Add an additional 'events' argument to selnotify() call. It will indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown, zero may be used.
Note: please pass appropriate value of 'events' where possible. Proposed on: <tech-kern>
|
1.18 |
| 19-Nov-2007 |
ad | branches: 1.18.10; 1.18.14; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
|
1.17 |
| 04-Mar-2007 |
christos | branches: 1.17.2; 1.17.18; 1.17.20; 1.17.24; 1.17.26; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.16 |
| 26-Nov-2005 |
thorpej | branches: 1.16.26; Use t_linesw instead of (the non-existent) t_line.
|
1.15 |
| 13-Feb-2004 |
wiz | branches: 1.15.16; 1.15.24; Uppercase CPU, plural is CPUs.
|
1.14 |
| 04-Jan-2004 |
wiz | Spell controller with two ls. Inspired by miod@openbsd.
|
1.13 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.12 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.11 |
| 23-Oct-2002 |
jdolecek | branches: 1.11.6; merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.10 |
| 25-Sep-2002 |
thorpej | Don't include <sys/map.h>.
|
1.9 |
| 19-Sep-2002 |
ragge | Do not include <sys/clist.h>, it's not used in NetBSD at all.
|
1.8 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.7 |
| 17-Mar-2002 |
atatat | branches: 1.7.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.6 |
| 22-Jul-2001 |
wiz | branches: 1.6.2; 1.6.6; seperate -> separate
|
1.5 |
| 02-May-2001 |
scw | branches: 1.5.2; Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
|
1.4 |
| 02-Nov-2000 |
eeh | branches: 1.4.2; Adapt to new line discipline scheme.
|
1.3 |
| 01-Jan-1999 |
ragge | branches: 1.3.8; Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change made a whole bunch of annoying bugs disappear; mostly depending on bad use of NBPG in non-MD code. The VAX port was the only port that used this historical "feature".
The CL* macros should probably go away totally, there is no reason at all to keep them.
|
1.2 |
| 02-Sep-1996 |
mycroft | tty stop functions really should return void, not int, and certainly not both.
|
1.1 |
| 18-Aug-1996 |
jonathan | Import framebuffer drivers from 4.4-Lite2 as the root for NetBSD drivers. Only change from Lite (or lite2, qv.c and qd.c do not change) is adding NetBSD RCS ids.
|
1.3.8.1 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.4.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.5.2.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.5.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.5.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.6.6.5 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.6.6.4 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.6.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.6.6.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.6.6.1 |
| 22-Jul-2001 |
nathanw | file qv.c was added on branch nathanw_sa on 2002-04-01 07:43:30 +0000
|
1.6.2.1 |
| 13-Oct-2001 |
fvdl | Revert the t_dev -> t_devvp change in struct tty. The way that tty structs are currently used (especially by console ttys) aren't ready for it, and this will require quite a few changes.
|
1.7.4.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.11.6.4 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.11.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.11.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.11.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.15.24.1 |
| 29-Nov-2005 |
yamt | sync with head.
|
1.15.16.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.15.16.3 |
| 07-Dec-2007 |
yamt | sync with head
|
1.15.16.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.15.16.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.16.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.17.26.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.17.24.1 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.17.20.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.17.20.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.17.18.1 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.17.2.1 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.18.14.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.18.10.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.20.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.20.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.20.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.20.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.28.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.28.12.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.28.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.28.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.29.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.30.4.3 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.30.4.2 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.30.4.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.33.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.35.2.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.36.2.2 |
| 02-Apr-2021 |
thorpej | config_found_ia() -> config_found() w/ CFARG_IATTR.
|
1.36.2.1 |
| 20-Mar-2021 |
thorpej | The proliferation if config_search_*() and config_found_*() combinations is a little absurd, so begin to tidy this up:
- Introduce a new cfarg_t enumerated type, that defines the types of tag-value variadic arguments that can be passed to the various config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS, for now, plus a CFARG_EOL sentinel). - Collapse config_search_*() into config_search() that takes these variadic arguments. - Convert all call sites of config_search_*() to the new signature. Noticed several incorrect usages along the way, which will be audited in a future commit.
|
1.37.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|