Commit Graph

215 Commits

Author SHA1 Message Date
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
bjh21
1aeaeb0efa 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.
2006-10-28 17:39:59 +00:00
bjh21
f62548abf5 Interpret the argument to iomdkbc_set_poll() correctly. Quite how we
got this far with it the wrong way around is beyond me.
2006-10-21 22:45:03 +00:00
bjh21
983692f3d5 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.
2006-10-21 17:08:22 +00:00
bjh21
d726ea385c Remove cruft left over from when this code was copied from some TURBOchannel
framebuffer or other.
2006-10-21 14:24:46 +00:00
bjh21
09bd451486 Switch acorn32 to MI inittodr() etc. 2006-09-03 12:46:57 +00:00
bjh21
a296cdc11f When looking for a screen mode at startup, skip any interlaced and
doublescan modes, since vidcvideo doesn't support them.
2006-08-19 22:38:42 +00:00
bjh21
63030cca90 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.
2006-08-19 16:57:06 +00:00
bjh21
9dc302fec2 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).
2006-08-19 13:34:15 +00:00
bjh21
72cec93787 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.
2006-08-19 11:01:56 +00:00
bjh21
1e6fe5d059 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.
2006-08-18 23:25:10 +00:00
bjh21
4513244661 This is kernel-only now, so no need to check _KERNEL. 2006-08-17 22:47:33 +00:00
bjh21
15f26966cb There's no need to expose arm/iomd/vidc.h to userland any more, since
<machine/vconsole.h> has gone now.
2006-08-17 22:38:14 +00:00
bjh21
28d9a9e366 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.
2006-08-17 22:33:59 +00:00
bjh21
64e85b48bf Fix an obvious typo. 2006-08-16 22:09:12 +00:00
he
4c04c967da Remove an unneeded include of the now-deleted <arm/iomd/rpckbdvar.h>. 2006-08-16 07:59:44 +00:00
bjh21
949d521d89 Un-__P 2006-08-15 23:32:09 +00:00
bjh21
cd88b446c2 vidc_initialmode seems to be initialised at startup and never touched again.
Lose it.
2006-08-15 23:02:47 +00:00
bjh21
48ddf9f65e Un-__P 2006-08-15 22:58:47 +00:00
bjh21
2de7d16656 Remove some prototypes and macros that aren't used any more. 2006-08-15 22:44:19 +00:00
bjh21
90bd2ce02c Nothing in the tree uses NVIDCAUDIO or NVIDC, so stop generating them. 2006-08-14 22:33:37 +00:00
bjh21
2c38f19586 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long.  It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
2006-08-14 22:04:30 +00:00
bjh21
69c3a7ed34 bcopy -> memcpy
bzero -> memset
2006-08-05 21:25:39 +00:00
bjh21
758ec34161 ANSIfy, un-__P, and generally KNF. 2006-08-05 18:22:57 +00:00
bjh21
21a0df473c This file seems to be unused, left behind by the last I^2C overhaul.
Remove it.
2006-08-05 16:44:43 +00:00
bjh21
1426eb6e49 ANSIfy, un-__P, light KNF. 2006-08-05 16:38:57 +00:00
bjh21
62d6ab40d3 Support for timecounters on acorn32, supplied by Mike Pumford. Only
compile-tested by me, but he promises it works.
2006-08-03 23:19:06 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
christos
29c1a4c22e GCC4 fixes from Mike Pumford 2006-06-25 21:32:39 +00:00
gdamore
1c8dd20510 Use portable | cat 1>&2 instead of > /dev/stderr. This allows this script
to work, and supports building on Solaris 10.

Reviewed/approved by jlam@.
2006-06-20 15:35:03 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
yamt
ccc0bd2ab6 remove irqblock[] as no one uses it. reviewed by Ben Harris. 2006-05-11 12:05:37 +00:00
snj
d97db3840b s/allready/already/ 2006-04-25 02:19:31 +00:00
jmmv
aec18036fd 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@.
2006-04-15 17:48:23 +00:00
matt
d4449c8a4e switch from MALLOC to malloc 2006-04-15 17:47:31 +00:00
jmmv
7a51d4dddc 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@.
2006-04-12 19:38:22 +00:00
thorpej
bf53a8ce6f Use device_unit(). 2006-03-26 04:39:40 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
skrll
ddf730e9d9 Fix RCSID. 2005-08-19 19:45:43 +00:00
he
e831e8461d Make the vidcsearch() prototype match the function declaration. 2005-07-03 23:09:03 +00:00
drochner
996c273eda adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes 2005-06-30 17:03:51 +00:00
he
cc17b14ba8 Adapt to compiling with -Wcast-qual and -Wshadow. 2005-06-09 09:24:45 +00:00
he
bdc36c4d9b Adapt to compiling with -Wcast-qual by constifying vt220_putstring()'s
first argument.  Also gets rid of unneccessary casts to (u_char*).
2005-06-09 09:23:39 +00:00
he
aafdb08c5a Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*".  Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>.  This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.
2005-06-04 20:14:24 +00:00
chris
5b9528a66b Fixes for -Wshadow and -Wcast-qual 2005-06-04 00:47:18 +00:00