Home | History | Annotate | Download | only in s3c2xx0
History log of /src/sys/arch/arm/s3c2xx0/s3c24x0_lcd.c
RevisionDateAuthorComments
 1.16  05-Jul-2024  andvar fix various typos in comments and log messages, mainly s/hight/high/
s/hight/height/ and removing double m in time(ing).
 1.15  20-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.14  10-Nov-2019  chs branches: 1.14.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.13  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.12  21-Aug-2014  maxv branches: 1.12.18; 1.12.20;
Remove dead returns:

return VAR/func(XX);
return VAR;

The latter is never reached. Sent on tech-kern@, no disagreement.
 1.11  10-Mar-2014  htodd Delete unused variables for new gcc.
 1.10  27-Oct-2012  chs branches: 1.10.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9  30-Jan-2012  nisimura branches: 1.9.6;

Add FriendlyARM Mini2440 support.
- new code for Samsung S3C2440 SoC.
- update for other S3C2xx0.
This port was done by Paul Fleischer.
 1.8  11-Jan-2012  macallan adjust wsfont_find()
 1.7  01-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.6  15-Dec-2007  perry __FUNCTION__ -> __func__
 1.5  04-Mar-2007  christos branches: 1.5.16; 1.5.20; 1.5.22; 1.5.30; 1.5.34;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4  15-Apr-2006  jmmv branches: 1.4.14;
Add missing parameter to s3c24x0_lcd_{ioctl,mmap} functions (after the
change in wscons that modified their signature) to let this build again.
Pointed out by he@.
 1.3  11-Dec-2005  christos branches: 1.3.4; 1.3.6; 1.3.8; 1.3.10; 1.3.12;
merge ktrace-lwp.
 1.2  04-Jun-2005  he branches: 1.2.2;
Fix -Wcast-qual by sprinkling some consts, and remove named
parameters from a function prototype to avoid shadowing.
Also fix a couple of other shadowing problems.
 1.1  14-Feb-2004  bsh branches: 1.1.4;
Support S3C24X0's on-chip LCD controller.

lcd driver can be configured with or without wsdisplay.
With wsdisplay, it supports text mode using rasops in 8bpp or 16bpp.
Without it, users only can mmap(2) the framebuffer.

XXX: 1-, 2-, 4-, or 24- bpp mode is not supported yet.
XXX: S3C24x0's LCD controller can have virtual screen which is bigger
than actual LCD panel. Our wsdisplay framework doesn't have
features to utilize it.
 1.1.4.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.5  17-Jan-2005  skrll Adapt to branch.
 1.1.4.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3  18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2  03-Aug-2004  skrll Sync with HEAD
 1.1.4.1  14-Feb-2004  skrll file s3c24x0_lcd.c was added on branch ktrace-lwp on 2004-08-03 10:32:50 +0000
 1.2.2.3  21-Jan-2008  yamt sync with head
 1.2.2.2  03-Sep-2007  yamt sync with head.
 1.2.2.1  21-Jun-2006  yamt sync with head.
 1.3.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.3.8.1  24-May-2006  yamt sync with head.
 1.3.6.1  22-Apr-2006  simonb Sync with head.
 1.3.4.1  09-Sep-2006  rpaulo sync with head
 1.4.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.5.34.1  02-Jan-2008  bouyer Sync with HEAD
 1.5.30.1  26-Dec-2007  ad Sync with head.
 1.5.22.1  09-Jan-2008  matt sync with HEAD
 1.5.20.1  01-Jan-2008  chris Sync with HEAD.
 1.5.16.1  26-Dec-2007  rjs Sync with HEAD.
 1.7.6.1  18-Feb-2012  mrg merge to -current.
 1.7.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.7.2.2  30-Oct-2012  yamt sync with head
 1.7.2.1  17-Apr-2012  yamt sync with head
 1.9.6.3  03-Dec-2017  jdolecek update from HEAD
 1.9.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.10.2.1  18-May-2014  rmind sync with head
 1.12.20.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.12.20.1  10-Jun-2019  christos Sync with HEAD
 1.12.18.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.14.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed