Home | History | Annotate | Download | only in iomd
History log of /src/sys/arch/arm/iomd/vidc20config.c
RevisionDateAuthorComments
 1.37  18-May-2024  andvar s/abou/about/ in comment.
 1.36  24-May-2022  andvar fix various typos in comments, docs and log messages.
 1.35  19-Sep-2021  andvar fix various typos in comments, messages and documentation.
 1.34  25-Oct-2014  skrll Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.33  18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.32  15-Mar-2009  cegger branches: 1.32.22;
ansify function definitions
 1.31  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.30  28-Oct-2006  bjh21 branches: 1.30.58; 1.30.66; 1.30.72;
When setting the FIFO preload, chose an entirely safe value rather than
using a completely bogus heuristic to guess at one. This might cause FIFO
underruns in particularly exciting video modes, but it also makes more
boring ones work correctly.
 1.29  21-Oct-2006  bjh21 Program the IOMD flyback size register correctly, or at least the same way
we did before we started using struct videomode. This seems to unbreak
systems with VRAM at least a little.
 1.28  19-Aug-2006  bjh21 branches: 1.28.2; 1.28.4;
When looking for a screen mode at startup, skip any interlaced and
doublescan modes, since vidcvideo doesn't support them.
 1.27  19-Aug-2006  bjh21 If we can't find a screen mode matching the bootloader's frame rate, choose
the nearest one, rather than the first one with the same resolution. This
is likely to be useful when the bootloader finally passes a valid frame rate.
For now, it just favours flickery over non-functional.
 1.26  19-Aug-2006  bjh21 Arrange things so that if MONITOR isn't defined in the kernel configration,
we use the standard mode list from videomode.c rather than one generated
by makemodes.awk. This is less useful than it might be since without a useful
frame rate from the bootloader we're likely to end up choosing a screen mode
that's either flickery or too fast for the monitor (or DRAM bandwidth).
 1.25  19-Aug-2006  bjh21 The log2_bpp fields of the mode list generated by makemodes.awk weren't
used for anything. Rearrange things so that it doesn't any more, and
just produces an array of struct videomode. modedefs.c is looking
suspiciously much like videomode.c now.
 1.24  18-Aug-2006  bjh21 Move calculation of a screen mode's frame rate out of makemodes.awk into
the kernel, removing an element from struct vidc_mode. The calculation
is a bit pointless at the moment anyway, since both bootloaders pass in
a constant 56, but that might get fixed one day.
 1.23  17-Aug-2006  bjh21 Switch to using the MI struct videomode for storing VIDC video timings.
struct videomode doesn't have a way to record border widths (though I
wonder if VESA's "margins" are the same thing), so we now just treat them
as zero. Tested on my NC, which still seems to be working.
 1.22  15-Aug-2006  bjh21 vidc_initialmode seems to be initialised at startup and never touched again.
Lose it.
 1.21  05-Aug-2006  bjh21 ANSIfy, un-__P, and generally KNF.
 1.20  11-Dec-2005  christos branches: 1.20.4; 1.20.8;
merge ktrace-lwp.
 1.19  01-Apr-2005  yamt branches: 1.19.2;
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
 1.18  11-Feb-2005  simonb White space nit- don't put a space before/after increment/decrement
operators.
 1.17  21-Sep-2003  matt branches: 1.17.8; 1.17.10;
Fix GCC 3.3.1 nits
 1.16  01-Apr-2003  thorpej branches: 1.16.2;
Use PAGE_SIZE rather than NBPG.
 1.15  01-Oct-2002  reinoud Fix some small range checks and why weren't we writing the palette in when
we're asked to set the VIDC in a given state! :-D ahum... these are fixed
now. The top palette entry wasn't set.
 1.14  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.13  19-Jun-2002  bjh21 Move over to using a 6:5:5 R:G:B palette in 16-bit display modes, and abstract
the palette generation to work with arbitrary numbers of bits.
This allows X to work after a fashion, since it tries to put the VIDC into
a 6:5:5 mode itself (which we ignore). Anything that actually tries to take
advantage of the DirectColor visual it offers will still be screwed, but I
hope such applications are rare.
 1.12  17-Jun-2002  bjh21 Kill off vidcvideo_textpalette() again, but better.
This time, vidcvideo_stdpalette() uses vidcvideo_write(), as it should, and
correctly initialises the paletter in 16bpp and (I hope) 32 bpp modes.
This fixes the colours on the text console in 16bpp modes. 32bpp seems to be
generally broken anyway.
 1.11  16-Jun-2002  bjh21 Revert last. vidcvideo_textpalette() and vidcvideo_stdpalette set the palette
by different means.
 1.10  16-Jun-2002  bjh21 vidcvideo_stdpalette() and vidcvideo_textpalette() do precisely the same thing.
G/C the latter and change its only caller to use the former.
 1.9  15-Mar-2002  reinoud branches: 1.9.4; 1.9.6;
Some cosmetic changes....
 1.8  10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.7  18-Feb-2002  bjh21 Comment out vidcvideo_setbase() (it's unused).
Remove vidcvideo_mmap() (it's redundant).
Add in-core RCSID.
 1.6  15-Dec-2001  bjh21 branches: 1.6.2;
mod() was unused. g/c it. New code should use abs() anyway.
 1.5  15-Dec-2001  bjh21 Simplify the pixel-clock-rate-setting code, so it always works out the
parameters from first principles rather than using a static table for some
rates. This makes it work correctly on ARM7500, for which the table was
bogus (ARM7500 has a different refclk from VIDC20).
 1.4  27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.3  22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.2  17-Oct-2001  reinoud branches: 1.2.4;
Sad point .... remove RC7500 support from the iomd directory in the
arch/arm/iomd/* .... the RC7500 isnt really an iomd/vidc machine but has
different video/audio chip and was kind of hardwired/hacked into the other
chip drivers.
 1.1  05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.2.4.7  18-Oct-2002  nathanw Catch up to -current.
 1.2.4.6  01-Aug-2002  nathanw Catch up to -current.
 1.2.4.5  20-Jun-2002  nathanw Catch up to -current.
 1.2.4.4  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.4.3  28-Feb-2002  nathanw Catch up to -current.
 1.2.4.2  08-Jan-2002  nathanw Catch up to -current.
 1.2.4.1  17-Oct-2001  nathanw file vidc20config.c was added on branch nathanw_sa on 2002-01-08 00:23:16 +0000
 1.6.2.6  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.6.2.5  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1  15-Dec-2001  thorpej file vidc20config.c was added on branch kqueue on 2002-01-10 19:38:20 +0000
 1.9.6.2  21-Jun-2002  lukem Pull up revision 1.13 (requested by bjh21 in ticket #328):
Move over to using a 6:5:5 R:G:B palette in 16-bit display modes, and abstract
the palette generation to work with arbitrary numbers of bits.
This allows X to work after a fashion, since it tries to put the VIDC into
a 6:5:5 mode itself (which we ignore). Anything that actually tries to take
advantage of the DirectColor visual it offers will still be screwed, but I
hope such applications are rare.
 1.9.6.1  21-Jun-2002  lukem Pull up revision 1.12 (requested by bjh21 in ticket #328):
Kill off vidcvideo_textpalette() again, but better.
This time, vidcvideo_stdpalette() uses vidcvideo_write(), as it should, and
correctly initialises the paletter in 16bpp and (I hope) 32 bpp modes.
This fixes the colours on the text console in 16bpp modes. 32bpp seems to be
generally broken anyway.
 1.9.4.2  16-Jul-2002  gehenna catch up with -current.
 1.9.4.1  14-Jul-2002  gehenna catch up with -current.
 1.16.2.5  01-Apr-2005  skrll Sync with HEAD.
 1.16.2.4  15-Feb-2005  skrll Sync with HEAD.
 1.16.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.16.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.16.2.1  03-Aug-2004  skrll Sync with HEAD
 1.17.10.2  12-Feb-2005  yamt sync with head.
 1.17.10.1  28-Jan-2005  yamt convert arch/arm to new apis.
 1.17.8.1  29-Apr-2005  kent sync with -current
 1.19.2.1  30-Dec-2006  yamt sync with head.
 1.20.8.2  03-Sep-2006  yamt sync with head.
 1.20.8.1  11-Aug-2006  yamt sync with head
 1.20.4.1  09-Sep-2006  rpaulo sync with head
 1.28.4.2  10-Dec-2006  yamt sync with head.
 1.28.4.1  22-Oct-2006  yamt sync with head
 1.28.2.1  18-Nov-2006  ad Sync with head.
 1.30.72.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.30.66.1  28-Apr-2009  skrll Sync with HEAD.
 1.30.58.1  04-May-2009  yamt sync with head.
 1.32.22.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed