History log of /src/sys/arch/sgimips/gio/grtwo.c |
Revision | | Date | Author | Comments |
1.19 |
| 13-Dec-2023 |
andvar | Add (intptr_t) casts to fix "cast to pointer from integer of different size", mainly for GENERIC64_32_* configs. Also change segp->ds_len format specifier to %lld, which fixes DMA_DEBUG build.
|
1.18 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.17 |
| 24-Apr-2021 |
thorpej | branches: 1.17.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.16 |
| 21-Nov-2020 |
thorpej | branches: 1.16.2; malloc(9) -> kmem(9)
|
1.15 |
| 03-Sep-2018 |
riastradh | branches: 1.15.12; Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.14 |
| 04-Mar-2018 |
mrg | branches: 1.14.2; 1.14.4; #if 0 grtwo_cursor_data[] to match the #if 0'd code that uses it.
|
1.13 |
| 27-Oct-2012 |
chs | split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.12 |
| 11-Jan-2012 |
macallan | branches: 1.12.6; adjust for wsfont_find() change
|
1.11 |
| 22-Nov-2009 |
mbalmer | branches: 1.11.12; 1.11.16; more s/the the/the/
|
1.10 |
| 04-Mar-2007 |
christos | branches: 1.10.44; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.9 |
| 29-Dec-2006 |
rumble | branches: 1.9.2; IP12 (and perhaps other systems) appear to be buggy and incapable of reliably supporting badaddr(). False negatives appear to occur approximately 1.8 percent of the time, although neither false positives nor consecutive false negatives occur. We take advantage of the latter property and always use a wrapper that makes multiple checks.
My IP12 no longer sees occasional ghost devices and related panics during boot.
|
1.8 |
| 28-Dec-2006 |
rumble | Only probe on known supported base addresses.
|
1.7 |
| 12-Apr-2006 |
jmmv | branches: 1.7.8; Add an extra cookie to the ioctl and mmap wsdisplay accessops that points to the screen on which they are being called. The driver cannot guess this by itself but it is needed to implement, at least, the getwschar and putwschar functions in the correct place. There are no functional changes yet.
Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64. Suggested and reviewed by macallan@.
|
1.6 |
| 11-Dec-2005 |
christos | branches: 1.6.4; 1.6.6; 1.6.8; 1.6.10; 1.6.12; merge ktrace-lwp.
|
1.5 |
| 29-Sep-2004 |
sekiya | branches: 1.5.12; Abbreviate identification message to fit in 80 columns.
|
1.4 |
| 08-Jul-2004 |
sekiya | branches: 1.4.2; Remove unnecessary variables from grtwo_cnattach().
|
1.3 |
| 07-Jul-2004 |
sekiya | Oops. Remove reference to phantom variable.
|
1.2 |
| 06-Jul-2004 |
sekiya | Many fixes to the grtwo wscons driver:
* fills seem to be broken. Avoid filling large vertical regions; instead, attempt to break it up into managable chunks. This doesn't work perfectly either, so clear the screen row-by-row (which does work). * Characters are now right-side-up * the driver now uses screen coordinates properly.
With the exception of column erases (which fall prey to the fill issue), the driver is now usable.
|
1.1 |
| 18-Mar-2004 |
sekiya | Checkpoint the GR2 wscons driver. Heavily derived from lonewolf@'s newport driver. Still some issues:
* framebuffer setup seems incomplete. Some drawing primitives work 100% of the time, while others fail one in ten tries. Perhaps my board is slightly broken, as the exact model as probed by ARCS seems to shift between Elan and XS24 from time to time. * characters are drawn bottom-up rather than top-down (as the wsfont definitions expect).
|
1.4.2.6 |
| 13-Jan-2005 |
skrll | Adapt to branch
|
1.4.2.5 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.4.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.4.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.4.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.4.2.1 |
| 08-Jul-2004 |
skrll | file grtwo.c was added on branch ktrace-lwp on 2004-08-03 10:40:06 +0000
|
1.5.12.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.5.12.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.5.12.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.6.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.6.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.6.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.6.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.6.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.7.8.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.9.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.10.44.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.11.16.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.11.12.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.11.12.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.12.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.14.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.14.2.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.15.12.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.16.2.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.17.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|