History log of /src/sys/dev/sun/cgthree.c |
Revision | | Date | Author | Comments |
1.36 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.35 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.34 |
| 24-Apr-2021 |
thorpej | branches: 1.34.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.33 |
| 09-Nov-2016 |
macallan | branches: 1.33.32; - use bus_space_mmap() - pass the right colour depth in ioctl() should fix PR49639
|
1.32 |
| 21-Apr-2016 |
macallan | branches: 1.32.2; RASTERCONSOLE is gone, wsdisplay no longer optional
|
1.31 |
| 25-Jul-2014 |
dholland | branches: 1.31.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.30 |
| 16-Mar-2014 |
dholland | branches: 1.30.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.29 |
| 11-Jan-2012 |
macallan | branches: 1.29.6; 1.29.10; use rasops_init(0,0)
|
1.28 |
| 14-Sep-2010 |
macallan | branches: 1.28.8; 1.28.12; clear the screen when attaching, not when adding screens since that may happen much later while there, call vcons_replay_msgbuf()
|
1.27 |
| 14-Sep-2010 |
macallan | leave the screen description alone when we're not the console in order to avoid a NULL deref later on ( which only happens on sparc64 for some reason ) While there, use VCONS_DONT_READ
|
1.26 |
| 25-Nov-2009 |
macallan | branches: 1.26.2; 1.26.4; make this compile on sparc64
|
1.25 |
| 19-Sep-2009 |
tsutsui | Include "ioconf.h" instead of extern struct cfdriver foo_cd decls.
|
1.24 |
| 18-Sep-2009 |
tsutsui | Split device_t/softc. Tested on SS1+.
XXX: sparc/dev/cgthree.c in Attic had an attachment for cgthree* at obio? XXX: and sparc/conf/files.sparc still has an entry of nonexistent (or not yet) XXX: sparc/dev/cgthree_obio.c. Is there any sun4m machine which requires it?
|
1.23 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
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 |
| 23-Feb-2009 |
jdc | Mimic cgsix memory corruption fix (bwtwo and cgthree wscons code is based on cgsix). Original commit message:
Include wsdisplay.h directly in the header to avoid different sizes of cgsix_softc depending on proper previous includes by the includer due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
|
1.19 |
| 01-Jan-2009 |
jdc | branches: 1.19.2; Back out previous and clear the screen directly. Pointed out by macallan@.
|
1.18 |
| 29-Dec-2008 |
jdc | Clear the screen (via rasops) when attaching. Pointed out by Bill Green on port-sparc.
|
1.17 |
| 28-Nov-2008 |
jdc | Add wscons/vcons support for cg3.
|
1.16 |
| 11-Jun-2008 |
drochner | branches: 1.16.2; 1.16.4; 1.16.6; mechanical changes to use device_private() or device_lookup_private() to get softcs, makes the code compile under the stricter type checking introduced earlier today
|
1.15 |
| 28-Apr-2008 |
martin | branches: 1.15.2; 1.15.4; Remove clause 3 and 4 from TNF licenses
|
1.14 |
| 19-Oct-2007 |
ad | branches: 1.14.16; 1.14.18; 1.14.20; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.13 |
| 04-Mar-2007 |
christos | branches: 1.13.2; 1.13.14; 1.13.16; 1.13.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.12 |
| 11-Dec-2005 |
christos | branches: 1.12.26; merge ktrace-lwp.
|
1.11 |
| 04-Jun-2005 |
tsutsui | branches: 1.11.2; Add const.
|
1.10 |
| 25-Aug-2003 |
uwe | Undo previous as it broke things.
There are some scattered implicit RASTERCONSOLE dependencies, so there should be a better way.
|
1.9 |
| 24-Aug-2003 |
uwe | #include "opt_rcons.h"
|
1.8 |
| 29-Jun-2003 |
fvdl | branches: 1.8.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.7 |
| 29-Jun-2003 |
darrenr | More changes for providing lwpid for ktrace (sparc GENERIC built)
|
1.6 |
| 23-Oct-2002 |
jdolecek | 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.5 |
| 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.4 |
| 13-Nov-2001 |
lukem | branches: 1.4.8; add RCSIDs
|
1.3 |
| 24-Sep-2001 |
eeh | Change bus_space_mmap() signature to the official one.
|
1.2 |
| 20-Aug-2000 |
pk | branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; Move declaration up, before it is used.
|
1.1 |
| 20-Aug-2000 |
pk | Split & move cgthree from arch/sparc.
|
1.2.8.2 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.2.8.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.2.6.4 |
| 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.2.6.3 |
| 28-Jun-2002 |
jdolecek | hook fbkqfilter to leaf drivers' kqfilter
|
1.2.6.2 |
| 28-Jun-2002 |
jdolecek | prove kqfilter hook; it's very simple equivalent of seltrue()
|
1.2.6.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.2.4.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.2.4.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.2.4.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.2.4.1 |
| 26-Sep-2001 |
nathanw | Catch up to -current. Again.
|
1.2.2.2 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.2.2.1 |
| 20-Aug-2000 |
bouyer | file cgthree.c was added on branch thorpej_scsipi on 2000-11-20 11:43:09 +0000
|
1.4.8.1 |
| 16-May-2002 |
gehenna | Add the character device switch.
|
1.8.2.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.8.2.4 |
| 04-Feb-2005 |
skrll | Adapt to branch.
|
1.8.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.8.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.8.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.11.2.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.11.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.11.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.12.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.13.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.13.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.13.14.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.13.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.14.20.5 |
| 09-Oct-2010 |
yamt | sync with head
|
1.14.20.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.14.20.3 |
| 16-May-2009 |
yamt | sync with head
|
1.14.20.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.14.20.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.14.18.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.14.18.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.14.16.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.14.16.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.14.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.15.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.15.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.16.6.4 |
| 26-Feb-2009 |
snj | Pull up following revision(s) (requested by jdc in ticket #494): sys/dev/sun/bwtwo.c: revision 1.22 sys/dev/sun/bwtwovar.h: revision 1.8 sys/dev/sun/cgthree.c: revision 1.20 sys/dev/sun/cgthreevar.h: revision 1.7 Mimic cgsix memory corruption fix (bwtwo and cgthree wscons code is based on cgsix). Original commit message: Include wsdisplay.h directly in the header to avoid different sizes of cgsix_softc depending on proper previous includes by the includer due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
|
1.16.6.3 |
| 08-Jan-2009 |
snj | Pull up following revision(s) (requested by jdc in ticket #221): sys/dev/sun/bwtwo.c: revision 1.21 sys/dev/sun/cgthree.c: revision 1.19 Back out previous and clear the screen directly. Pointed out by macallan@.
|
1.16.6.2 |
| 08-Jan-2009 |
snj | Pull up following revision(s) (requested by jdc in ticket #221): sys/dev/sun/bwtwo.c: revision 1.20 sys/dev/sun/cgthree.c: revision 1.18 Clear the screen (via rasops) when attaching. Pointed out by Bill Green on port-sparc.
|
1.16.6.1 |
| 08-Jan-2009 |
snj | Pull up following revision(s) (requested by jdc in ticket #221): sys/dev/sun/cgthree.c: revision 1.17 sys/dev/sun/cgthreevar.h: revision 1.6 sys/dev/sun/files.sun: revision 1.15 Add wscons/vcons support for cg3.
|
1.16.4.3 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.16.4.2 |
| 03-Mar-2009 |
skrll | Sync with HEAD.
|
1.16.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.16.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.19.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.26.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.26.2.1 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.28.12.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.28.8.2 |
| 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.28.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.29.10.1 |
| 18-May-2014 |
rmind | sync with head
|
1.29.6.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.29.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.30.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.31.4.2 |
| 05-Dec-2016 |
skrll | Sync with HEAD
|
1.31.4.1 |
| 22-Apr-2016 |
skrll | Sync with HEAD
|
1.32.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.33.32.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.34.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|