Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/grf_cl.c
RevisionDateAuthorComments
 1.58  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h> include.
 1.57  27-Aug-2023  andvar amiga/grfcl(4): return prx, pry definition/assigment lost with rev 1.49,
however under CL_SHIFTSPRITE code block only, where it is used.

Fixes build with the CL_SHIFTSPRITE enabled option.
 1.56  14-Feb-2023  andvar s/programm/program/ and s/suuport/support/ in comments and message.
 1.55  28-Mar-2022  riastradh sys: Split struct device into a private device_impl.h.

Include this only inside autoconf itself, and a few files that abuse
autoconf in ways I can't confidently make easy fixes for.

XXX kernel ABI change requires bump -- no more use of struct device
internals allowed, previously done by some drivers
 1.54  26-Dec-2021  andvar fix various typos, mainly in comments.
 1.53  04-Oct-2021  andvar follow fcambus steps by fixing typos for "unknown" in few more error messages.
 1.52  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.51  27-Apr-2021  thorpej branches: 1.51.6;
The Amiga and Atari ports abuse some autoconfiguration internals as part
of their early console bring-up, so we need to expose some of the new
internals to them and adapt the call sites.
 1.50  16-Nov-2015  phx branches: 1.50.34;
wscons and Xorg support for CirrusLogic GD542x based boards (grf3).
 1.49  22-Jan-2014  christos branches: 1.49.6;
gcc-4.8.x unused variable fixes
 1.48  08-Nov-2012  rkujawa branches: 1.48.2;
Make Amiga video drivers work again after device/softc changes.
Patch from chs@.
 1.47  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.46  15-Dec-2011  phx branches: 1.46.6;
Amiga wscons/Xorg support, first phase.
Implemented wscons for CV64 and CV64/3D. Other graphics cards drivers are
prepared for it, but will not be attempted before Xorg is not running.
The wscons support is disabled by default. A GENERIC kernel should behave
like always. Use WSCONS to try out a kernel with wscons support.
Done by rkujawa@ and phx@.
 1.45  26-Oct-2009  cegger branches: 1.45.12; 1.45.16;
kill extra whitespaces
reviewed by tsutsui@
 1.44  18-Mar-2009  cegger bcopy -> memcpy
 1.43  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.42  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.41  17-Oct-2007  garbled branches: 1.41.20; 1.41.28; 1.41.34;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.40  20-Aug-2007  is branches: 1.40.2;
First part of amigappc support patches by Frank Wille.
 1.39  06-Mar-2007  he branches: 1.39.2; 1.39.10; 1.39.14; 1.39.18;
Make the various graphics card drivers compile again.
Try to preserve `volatile' qualification where possible, though
uses of kvtop() gain an unfortunate but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
 1.38  04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.37  24-Nov-2006  wiz branches: 1.37.4;
s/independant/independent/, from Zafer.
 1.36  11-Dec-2005  christos branches: 1.36.20; 1.36.22;
merge ktrace-lwp.
 1.35  13-Jun-2005  jmc branches: 1.35.2;
Fix a ton of const/volatile issues shown with new warning flags
 1.34  01-Jan-2003  thorpej branches: 1.34.2;
Use aprint_normal() for cfprint routines.
 1.33  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.32  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.31  03-Aug-2002  itojun correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls. from openbsd
 1.30  14-May-2002  matt branches: 1.30.2; 1.30.4;
Eliminate commons. (including a few unused or mismatched ones).
 1.29  17-Mar-2002  atatat 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.28  28-Jan-2002  aymeric add __KERNEL_RCSID as suggested by Luke Mewburn
 1.27  26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.26  05-Aug-2001  jdolecek branches: 1.26.6;
use unsigned variable types as appropriate
 1.25  29-Jun-1999  is branches: 1.25.12; 1.25.16;
Fix horizontal timings for console mode (this helps, at least,
Lars Hecking).
 1.24  25-Mar-1999  is branches: 1.24.2; 1.24.4; 1.24.6;
defopt Amiga graphics console options
 1.23  14-Mar-1999  veego Add support for future PicassoIV's which use an autoconfig space of 64MB.
The framebuffer base address is then at a different offset.
The patch is from Klaus Burkert.
 1.22  17-Apr-1998  veego Don't use an 'register char' as an array index, change it to an int.
 1.21  12-Jan-1998  thorpej Adjust for changes to config.
 1.20  29-Jul-1997  veego - increase the number of possible grfmodes from 8 to 24
- changes for the grfconfig interface:
- Remove gv->{hblank_stop,vblank_stop} and calculate HBE and VBE from
gv->{htotal,vtotal}.
- Add support for gv->disp_flags to select interlace, doublescan and
horizontal/vertical sync polarity.
- Return EINVAL for gv->disp_flags and sync-on-green.
This makes it possible to use xfree values for grfconfig.
 1.19  05-Mar-1997  veego branches: 1.19.2;
- PicassoIV support
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- Clockdoubling for PicassoIV and PiccoloSD64
NOTE: Don't use the X11R6.1 Xserver with -useHWC on the SD64
with a gfxmode >80Mhz or you get a broken mousepointer.
- HiColor and TrueColor Support
(doesn't work yet, since it needs some fixes for the XServer)
 1.18  23-Dec-1996  veego Get rid of __BROKEN_INDIRECT_CONFIG.
 1.17  21-Oct-1996  veego Fix console problem on fast machines. pr#2777
 1.16  13-Oct-1996  christos backout previous kprintf change
 1.15  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.14  08-Oct-1996  thorpej Merge netbsd-1-2 branch back into mainline.
 1.13  27-Aug-1996  cgd change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
 1.12  03-Jun-1996  is #define GRFIOCBLANK_LIVE and GRFIOCBLANK_DARK in grfioctl.h to make absolutely
clear which switches the video signal on and which off.
Make all grf_??.c (which supported it) use the same polarity of the test.
While being here, use a > test instead of implicit != to make it extensible
to darker than dark values for power managment systems.
 1.11  19-May-1996  veego branches: 1.11.4;
- grf_cl.c, grf_clreg.h: added support for Piccolo SD64
- grf_cv.c, grf_cvreg.h, ite_cv.c: some cleanups
- grf_rh.c, grf_rhreg.h, grf_rt.c: new blank ioctl and some KNF
- grf_et.c, grf_etreg.h, ite_et.c: new graphics driver for et4000 based board
(oMniBus, Domino and Merlin)
- grfabs_cc: fix PR#2034
- grfvar.h: new grfunit for GRF_ET4000_UNIT
- scsidefs.h: no longer useful
- zbus.c: new entries for: Piccolo SD64, oMniBus, Domino and Merlin
 1.10  28-Apr-1996  mhitch Cleanup for -Wall if CL5426CONSOLE is not defined.
 1.9  21-Apr-1996  veego - Cleanup for -Wall and -Wstrict-prototypes
- Added support for multiple floppy drives
- CyberVision64:
- has now a real console mode
- another bugfix for boards with the new S3 chip
- Ariadne:
- fixed crashes with aeput (mbuf failure)
 1.8  17-Mar-1996  mhitch Clean up typos and other errors from new device attachment changes.
 1.7  17-Mar-1996  thorpej New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.6  05-Mar-1996  is Fix problems with fast CPUs and Picasso boards. Patches originally by,
Klaus Burkert <crest@arkon.dontpanic.sub.org>, sent in by Ezra Story.
Closes port-amiga/2135.
k
 1.5  09-Oct-1995  chopps update from Ezra Story <ezy@panix.com>
 1.4  29-Sep-1995  chopps move 040 to hp300 style, use new MI lance ethernet driver
a few minor fixes WRT prototypes.
if_le from Charles rest from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.3  26-Jun-1995  chopps be sure of product from Ezra Story <ezy@panix.com>
 1.2  07-May-1995  chopps enable pseudo-dma on ivsc, allow no ite/grfcc.
 1.1  23-Apr-1995  chopps new grfcl driver submitted by Ezra Story <ezy@panix.com>
 1.11.4.2  11-Jun-1996  is from trunk: leave room for darkerthan dark, which is now possible to add in the future in a compatible way; with jtc's permission
 1.11.4.1  27-May-1996  is Bug fixes for Piccolo SD64 by Bernd Ernesti, Michael Teske and Klaus Burkert.
 1.19.2.2  05-Mar-1997  veego - PicassoIV support
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- Clockdoubling for PicassoIV and PiccoloSD64
NOTE: Don't use the X11R6.1 Xserver with -useHWC on the SD64
with a gfxmode >80Mhz or you get a broken mousepointer.
- HiColor and TrueColor Support
(doesn't work yet, since it needs some fixes for the XServer)
 1.19.2.1  05-Mar-1997  veego file grf_cl.c was added on branch is-newarp on 1997-03-05 22:46:33 +0000
 1.24.6.1  30-Nov-1999  itojun bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.
 1.24.4.1  01-Jul-1999  thorpej Sync w/ -current.
 1.24.2.1  02-Jul-1999  perry pullup 1.24->1.25 (is): Fix grf_cl console mode timing
 1.25.16.5  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.25.16.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.25.16.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.25.16.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.25.16.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.25.12.1  16-Aug-2001  tv Pullup [jdolecek]:

sys/arch/amiga/dev/grf_cl.c 1.26
sys/arch/amiga/dev/grfioctl.h 1.14
sys/arch/hpcmips/dev/plumvideo.c 1.20
sys/arch/macppc/dev/ofb.c 1.25
sys/arch/sparc/dev/cgtwo.c 1.35
sys/arch/sparc/include/fbio.h patch
sys/arch/sparc64/include/fbio.h patch
sys/arch/sun3/dev/cg2.c 1.14
sys/arch/sun3/include/fbio.h patch
sys/dev/pci/tga.c 1.35
sys/dev/tc/cfb.c 1.28
sys/dev/tc/mfb.c 1.27
sys/dev/tc/sfb.c 1.46
sys/dev/tc/sfbplus.c 1.10 via patch
sys/dev/tc/tfb.c 1.30
sys/dev/tc/xcfb.c 1.23
sys/net/if_ppp.c 1.71

Use unsigned variable types to make bounds checking more correct.
 1.26.6.7  03-Jan-2003  thorpej Sync with HEAD.
 1.26.6.6  18-Oct-2002  nathanw Catch up to -current.
 1.26.6.5  13-Aug-2002  nathanw Catch up to -current.
 1.26.6.4  20-Jun-2002  nathanw Catch up to -current.
 1.26.6.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.26.6.2  28-Feb-2002  nathanw Catch up to -current.
 1.26.6.1  05-Aug-2001  nathanw file grf_cl.c was added on branch nathanw_sa on 2002-02-28 04:06:38 +0000
 1.30.4.1  07-Aug-2002  lukem Pull up revision 1.31 (requested by itojun in ticket #616):
correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls. from openbsd
 1.30.2.1  30-Aug-2002  gehenna catch up with -current.
 1.34.2.1  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.35.2.2  03-Sep-2007  yamt sync with head.
 1.35.2.1  30-Dec-2006  yamt sync with head.
 1.36.22.1  10-Dec-2006  yamt sync with head.
 1.36.20.1  12-Jan-2007  ad Sync with head.
 1.37.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.39.18.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.39.14.1  03-Sep-2007  skrll Sync with HEAD.
 1.39.10.1  03-Oct-2007  garbled Sync with HEAD
 1.39.2.1  09-Oct-2007  ad Sync with head.
 1.40.2.1  06-Nov-2007  matt sync with HEAD
 1.41.34.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.41.28.1  28-Apr-2009  skrll Sync with HEAD.
 1.41.20.2  11-Mar-2010  yamt sync with head
 1.41.20.1  04-May-2009  yamt sync with head.
 1.45.16.1  18-Feb-2012  mrg merge to -current.
 1.45.12.4  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.45.12.3  16-Jan-2013  yamt sync with (a bit old) head
 1.45.12.2  30-Oct-2012  yamt sync with head
 1.45.12.1  17-Apr-2012  yamt sync with head
 1.46.6.3  03-Dec-2017  jdolecek update from HEAD
 1.46.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.46.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.48.2.1  18-May-2014  rmind sync with head
 1.49.6.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.50.34.1  13-May-2021  thorpej Sync with HEAD.
 1.51.6.1  03-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed