History log of /src/sys/arch/sparc64/dev/ffb.c |
Revision | | Date | Author | Comments |
1.68 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h>.
|
1.67 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.66 |
| 24-Apr-2021 |
thorpej | branches: 1.66.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.65 |
| 05-Jul-2020 |
martin | branches: 1.65.4; Adapt to proplib api changes
|
1.64 |
| 22-Dec-2019 |
thorpej | Cleanup i2c bus acquire / release, centralizing all of the logic into iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller drivers (only if they need special handling, e.g. powering on the i2c controller). This results in the removal of a bunch of rendundant code from each back-end controller driver.
Assert that we are not in hard interrupt context in iic_acquire_bus(), iic_exec(), and iic_release_bus().
|
1.63 |
| 03-Sep-2018 |
riastradh | 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.62 |
| 26-Mar-2018 |
jdc | branches: 1.62.2; Correct a typo in the openprom variable name.
|
1.61 |
| 19-May-2017 |
macallan | branches: 1.61.8; enable font loading / screen resizing
|
1.60 |
| 27-Apr-2017 |
macallan | - don't blindly copy attribute bits which we don't support or which make no sense in the attribute buffer - support WSATTR_UNDERLINE - remove unused function
|
1.59 |
| 22-Apr-2017 |
macallan | branches: 1.59.2; - set RI_FULLCLEAR - clear RI_CURSOR when we clear the screen no more garbage when switching screens while there set RI_PREFER_ALPHA
|
1.58 |
| 04-Nov-2016 |
macallan | mmap() memory-ish regions with BUS_SPACE_MAP_PREFETCHABLE
|
1.57 |
| 07-Jul-2016 |
msaitoh | branches: 1.57.2; KNF. Remove extra spaces. No functional change.
|
1.56 |
| 11-Sep-2015 |
macallan | - initialize sc_bg_cache and FFB_FBC_BG along with everything else so things get redrawn properly when exiting X - fix off by one in ffb_ras_erasecols(), no more artifacts when the screen is redrawn
|
1.55 |
| 09-Oct-2013 |
macallan | branches: 1.55.6; support WSDISPLAYIO_GET_FBINFO
|
1.54 |
| 12-Sep-2013 |
martin | Remove unused variable
|
1.53 |
| 30-Jul-2013 |
macallan | avoid uninitialized use of defattr
|
1.52 |
| 09-Aug-2012 |
macallan | branches: 1.52.2; 1.52.4; split ffb_putchar() into a version for mono fonts and one for anti-aliased ones. While there use the blitter to draw the cursor and remove some waits that are unnecessary now that characters are drawn by hardware.
|
1.51 |
| 12-Apr-2012 |
macallan | don't assume that wscons assumes BGR ordering and request it explicitly
|
1.50 |
| 11-Jan-2012 |
macallan | use rasops_init(0, 0)
|
1.49 |
| 22-Dec-2011 |
macallan | support anti-aliased fonts and let the hardware do the alpha blending
|
1.48 |
| 31-Oct-2011 |
jdc | branches: 1.48.2; 1.48.6; Add support for the WSDISPLAYIO_GET_EDID ioctl (requires passing a device_t to ffb_attach).
|
1.47 |
| 23-Oct-2011 |
jdc | Correct the VSYNC-related register definitions and rework how they are used (only when the monitor supports composite sync). OK macallan@.
|
1.46 |
| 18-Aug-2011 |
macallan | shut up some debug output accidentially left in
|
1.45 |
| 16-Aug-2011 |
macallan | use appropriate WID and FBC for high resolution mode Tested with a 1680x1050 TFT on an ffb2+
|
1.44 |
| 01-Jul-2011 |
dyoung | #include <sys/bus.h> instead of <machine/bus.h>.
|
1.43 |
| 03-Jun-2011 |
christos | CFATTACH_DECL_NEW
|
1.42 |
| 19-May-2011 |
macallan | branches: 1.42.2; remove obsolete comment - putchar() does in fact use the blitter now
|
1.41 |
| 09-May-2011 |
jdc | Alter the sync-on-green and composite-sync settings:
if the monitor doesn't support composite sync, enable sync-on-green
then, if the monitor supports separate sync, disable composite vsync
(Prompted by macallan@.)
|
1.40 |
| 20-Apr-2011 |
martin | Remove some leftovers
|
1.39 |
| 09-Apr-2011 |
jdc | Add EDID and video mode setting support to FFB.
Add definitions for registers related to video modes, and to DDC. Rename other registers to be more descriptive. Add i2c bus routines to read the EDID data via DDC. Add routines to calculate, and to set, the video mode.
Note, that interlaced and stereo video modes are not supported.
Thanks to Michael Lorenz and Jared McNeill for advice and encouragement, and to Martin Husemann for testing.
|
1.38 |
| 21-Sep-2010 |
macallan | branches: 1.38.2; * implement hw acceleration for putchar() * use VCONS for copycols() * don't map the framebuffer now that we don't access it anymore * make a bunch of drawing engine syncs optional
|
1.37 |
| 20-Aug-2009 |
macallan | branches: 1.37.2; 1.37.4; call vcons_replay_msgbuf() when appropriate
|
1.36 |
| 16-Nov-2008 |
macallan | make this work right with WSDISPLAY_SCROLLSUPPORT
|
1.35 |
| 28-Aug-2008 |
martin | branches: 1.35.2; 1.35.4; use device_private() to get the softc
|
1.34 |
| 13-Jun-2008 |
cegger | branches: 1.34.2; use device_lookup_private to get softc
|
1.33 |
| 05-Apr-2008 |
cegger | branches: 1.33.2; 1.33.4; 1.33.6; 1.33.8; use aprint_*_dev and device_xname OK martin
|
1.32 |
| 04-Mar-2007 |
christos | branches: 1.32.40; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.31 |
| 15-Oct-2006 |
martin | branches: 1.31.4; Missing initializer
|
1.30 |
| 14-Sep-2006 |
martin | branches: 1.30.2; Vcons-ify the ffb driver, from macallan. Also adds some redrawing when entering DDB.
|
1.29 |
| 07-Sep-2006 |
martin | branches: 1.29.2; Remove accidently commited debug printf when unblanking, and actually do the unblank instead.
|
1.28 |
| 18-Aug-2006 |
martin | Fix wrong prom_getoption() return value checks
|
1.27 |
| 04-Jul-2006 |
martin | branches: 1.27.2; Initialize the "console screen" once - no matter if we are console or not.
|
1.26 |
| 15-Apr-2006 |
jmmv | branches: 1.26.4; Remove the getwschar and putwschar accessops from wsdisplay drivers as requested by uwe@. These were wrong because they were receiving an emulcookie yet they were accessops (thus having to receive an accesscookie). Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the driver's ioctl accessop.
As this reduces the amount of code needed to handle these operations to two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel option.
Reviewed by, at least, uwe@ and macallan@. No objections in tech-kern@.
|
1.25 |
| 12-Apr-2006 |
macallan | make this compile again
|
1.24 |
| 12-Apr-2006 |
jmmv | 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.23 |
| 29-Mar-2006 |
thorpej | Use device_cfdata().
|
1.22 |
| 13-Feb-2006 |
cdi | branches: 1.22.2; 1.22.4; 1.22.6; ANSIfy: u_intN_t -> uintN_t, remove __P(), fix function definitions.
|
1.21 |
| 12-Dec-2005 |
christos | branches: 1.21.2; 1.21.4; 1.21.6; more proc -> lwp conversions.
|
1.20 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.19 |
| 04-Jul-2005 |
jdc | branches: 1.19.2; Only set up the console screen on the console ffb. Fixes bug where ttyE0 ends up on the 2nd ffb. Based on dev/sun/cgsix.c:r1.27 (from macallan@).
|
1.18 |
| 31-May-2005 |
macallan | fixed a stupid typo that chained copycols to itself
|
1.17 |
| 31-May-2005 |
macallan | added missing ffb_ras_wait()
|
1.16 |
| 31-May-2005 |
macallan | added support for virtual consoles
|
1.15 |
| 31-May-2005 |
christos | - sprinkle const - avoid variable shadow
|
1.14 |
| 27-May-2005 |
macallan | fixed a bug in ffbfb_mmap to make XFree's sunffb driver work, added another special case region for afbinit
|
1.13 |
| 15-May-2005 |
martin | Just ignore (and don't fail) FBIO{S,G}CURSOR.
|
1.12 |
| 13-May-2005 |
mhitch | Fill in fb_depth, fb_width, and fb_height in the fb_type info. XFree86 works better now.
|
1.11 |
| 04-May-2005 |
martin | Make ffb take part in the /dev/fbN circus.
|
1.10 |
| 04-May-2005 |
martin | Use ansi function header style consistently.
|
1.9 |
| 29-Apr-2005 |
martin | Avoid returning -1 from ffb_ioctl() - we want EPASSTHROUGH or EIO.
|
1.8 |
| 19-Jul-2004 |
heas | branches: 1.8.4; 1.8.10; Collect and save the FFB DAC version, which will be needed for the h/w cursor since the Elite3d's logic is reversed. From FreeBSD. Fix comments in wsdisplay_accessops initialisation.
|
1.7 |
| 21-May-2004 |
heas | Map the ffb's DAC register space and add support for video "blanking" (aka WSDISPLAYIO_{S,G}VIDEO).
|
1.6 |
| 21-May-2004 |
heas | ffb wsdisplay type should be sunffb/SUNFFB
|
1.5 |
| 17-Mar-2004 |
pk | Rename PROM_getprop*() => prom_getprop*().
|
1.4 |
| 17-Mar-2004 |
pk | ffb_attach: Use prom_getoption() and drop home-grown string-to-integer conversion code.
|
1.3 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.2 |
| 11-Jun-2003 |
petrov | branches: 1.2.2; Comment out debug output.
|
1.1 |
| 23-May-2003 |
petrov | Port of OpenBSD ffb driver written by Jason L. Wright.
|
1.2.2.2 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.2.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.8.10.11 |
| 12-Sep-2006 |
ghen | Pull up following revision(s) (requested by martin in ticket #1507): sys/arch/sparc64/dev/zs.c: revision 1.61 sys/arch/sparc64/dev/ffb.c: revision 1.28 Fix wrong prom_getoption() return value checks
|
1.8.10.10 |
| 07-Jun-2005 |
tron | Pull up revision 1.18 (requested by martin in ticket #376): fixed a stupid typo that chained copycols to itself
|
1.8.10.9 |
| 07-Jun-2005 |
tron | Pull up revision 1.17 (requested by martin in ticket #376): added missing ffb_ras_wait()
|
1.8.10.8 |
| 07-Jun-2005 |
tron | Pull up revision 1.16 (requested by martin in ticket #376): added support for virtual consoles
|
1.8.10.7 |
| 07-Jun-2005 |
tron | Pull up revision 1.15 (requested by martin in ticket #376): - sprinkle const - avoid variable shadow
|
1.8.10.6 |
| 07-Jun-2005 |
tron | Pull up revision 1.14 (requested by martin in ticket #376): fixed a bug in ffbfb_mmap to make XFree's sunffb driver work, added another special case region for afbinit
|
1.8.10.5 |
| 07-Jun-2005 |
tron | Pull up revision 1.13 (requested by martin in ticket #376): Just ignore (and don't fail) FBIO{S,G}CURSOR.
|
1.8.10.4 |
| 07-Jun-2005 |
tron | Pull up revision 1.12 (requested by martin in ticket #376): Fill in fb_depth, fb_width, and fb_height in the fb_type info. XFree86 works better now.
|
1.8.10.3 |
| 07-Jun-2005 |
tron | Pull up revision 1.11 (requested by martin in ticket #376): Make ffb take part in the /dev/fbN circus.
|
1.8.10.2 |
| 07-Jun-2005 |
tron | Pull up revision 1.10 (requested by martin in ticket #376): Use ansi function header style consistently.
|
1.8.10.1 |
| 07-Jun-2005 |
tron | Pull up revision 1.9 (requested by martin in ticket #376): Avoid returning -1 from ffb_ioctl() - we want EPASSTHROUGH or EIO.
|
1.8.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.19.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.19.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.19.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.21.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.21.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.21.2.1 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.22.6.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.22.6.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.22.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.22.2.5 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.22.2.4 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.22.2.3 |
| 11-Aug-2006 |
yamt | sync with head
|
1.22.2.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.22.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.26.4.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.27.2.1 |
| 21-Aug-2006 |
tron | Pull up following revision(s) (requested by martin in ticket #34): sys/arch/sparc64/dev/zs.c: revision 1.61 sys/arch/sparc64/dev/ffb.c: revision 1.28 Fix wrong prom_getoption() return value checks
|
1.29.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.30.2.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.31.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.32.40.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.32.40.3 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.32.40.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.32.40.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.33.8.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.33.6.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.33.6.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.33.4.3 |
| 09-Oct-2010 |
yamt | sync with head
|
1.33.4.2 |
| 16-Sep-2009 |
yamt | sync with head
|
1.33.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.33.2.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.34.2.2 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.34.2.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.35.4.3 |
| 18-Oct-2009 |
bouyer | back out ticket 972
|
1.35.4.2 |
| 18-Oct-2009 |
bouyer | Pull up following revision(s) (requested by macallan in ticket #972): sys/arch/sparc64/dev/ffb.c: revision 1.37 call vcons_replay_msgbuf() when appropriate
|
1.35.4.1 |
| 25-Feb-2009 |
snj | branches: 1.35.4.1.4; Pull up following revision(s) (requested by macallan in ticket #515): sys/arch/sparc64/dev/ffb.c: revision 1.36 make this work right with WSDISPLAY_SCROLLSUPPORT
|
1.35.4.1.4.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.35.2.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.37.4.4 |
| 12-Jun-2011 |
rmind | sync with head
|
1.37.4.3 |
| 31-May-2011 |
rmind | sync with head
|
1.37.4.2 |
| 21-Apr-2011 |
rmind | sync with head
|
1.37.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.37.2.1 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.38.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.42.2.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.48.6.2 |
| 29-Apr-2012 |
mrg | sync to latest -current.
|
1.48.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.48.2.3 |
| 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.48.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.48.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.52.4.2 |
| 18-May-2014 |
rmind | sync with head
|
1.52.4.1 |
| 28-Aug-2013 |
rmind | sync with head
|
1.52.2.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.52.2.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.55.6.4 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.55.6.3 |
| 05-Dec-2016 |
skrll | Sync with HEAD
|
1.55.6.2 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.55.6.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.57.2.2 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.57.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.59.2.1 |
| 02-May-2017 |
pgoyette | Sync with HEAD - tag prg-localcount2-base1
|
1.61.8.2 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.61.8.1 |
| 30-Mar-2018 |
pgoyette | Resolve conflicts between branch and HEAD
|
1.62.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.62.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.65.4.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.66.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|