Commit Graph

58 Commits

Author SHA1 Message Date
itojun db9226c772 use bounded string ops 2004-04-23 21:29:16 +00:00
tsutsui b386fab8f8 Use aprint_debug() instead of aprint_normal() for debug info. 2003-12-15 15:13:55 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
uwe fadd31bf33 Add vt220 8x10 koi8-r/koi8-u fonts so that I can read mail using
Jornada 680 console.

XXX: The fonts are marked WSDISPLAY_FONTENC_ISO, which is wrong, but
at least makes the alphabet available.  Line-drawing is all broken.
2003-07-14 18:30:40 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
drochner 7460d83817 need wsfont.c for wsfont pseudodevice 2003-05-14 11:26:52 +00:00
jdolecek cd6f847ec6 undo constification of 'data' for wsdisplay font - unfortunately we need
to be able to adjust the font to display adapter needs very soon (in consinit()),
so it's not possible to do font copy
2003-02-10 14:28:19 +00:00
jdolecek 2147742d01 wsfont_lock(): if bitorder/byteorder doesn't match, copy the font to new font
also if the font is static (and thus it's 'data' point to const/text location) -
later call to wsfont_rev{bit,byte}() needs to change the font data in-place
print info about the font copy when it's made

problem pointed out by Matthias Drochner
2003-02-09 18:40:31 +00:00
jdolecek 998befbc32 make 'name' and 'data' of struct wsdisplay_font const, mark data arrays
in font sources const
2003-02-09 10:29:35 +00:00
tsutsui 6d0bdd7f1b Don't use non-ASCII chars in comments. 2003-01-12 13:38:27 +00:00
tsutsui 76ce5f5560 Add entries for vt220l8x16 and vt220iso8x16. 2003-01-12 13:12:42 +00:00
tsutsui e16295484c Add another 8x16 pixel VT220 font with ISO8859-1 charactors.
Generated from sys/arch/atari/dev/font_8x16.c rev 1.2.
2003-01-12 13:11:28 +00:00
tsutsui 28f92b4adc Add 8x16 pixel VT220L font generated from /usr/share/wscons/fonts/vt220l.816,
which is derived from pcvt.
2003-01-12 13:08:47 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
simonb 4e3613273b Remove breaks after returns, unreachable returns and returns after
returns(!).
2002-09-23 05:51:10 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
enami 4aaba8dea1 - Allocate enough space to hold an object.
- No need to request to zero clear when we overwrite soon.
2002-03-21 03:26:55 +00:00
ad 9c918242a2 Add missing structure member copies in wsfont_add0(). 2002-03-20 12:18:56 +00:00
uch 9b5ad836c6 include sys/queue.h. 2002-03-18 14:35:20 +00:00
ad b89e39b91a Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
ad cf9ef8999f Clean up. 2002-03-13 10:42:56 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem b589588216 add RCSIDs 2001-11-13 06:08:32 +00:00
augustss b079ab789b ANSIfy. 2001-10-13 16:05:42 +00:00
drochner cb896c703c implement a pseudo-device wsfont for access to the wsfont machinery 2001-09-03 17:05:20 +00:00
drochner 056402167e make dynamic font addition usable,
export font matching function for common use
2001-09-03 17:04:11 +00:00
uwe 1f4eee4c21 In wsfont_map_unichar: when checking that 'lo' is within 'map2' range,
compare 'lo', not 'hi' (only partially edited cut-n-paste it seems).
2001-06-12 00:57:10 +00:00
jdolecek 372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
enami d04f4ebff1 WSDISPLAY_FONTENC_SONY is gone. 2001-03-31 00:14:32 +00:00
tsutsui 42e44c1408 Make Sony's fonts ISO8859-1 compliant. 2001-03-30 13:06:45 +00:00
cgd c105346203 Avoid sequence point issues. 2001-02-24 00:03:12 +00:00
ad 3ad7988a6d Fix duplicate cookie. 2001-02-07 13:59:24 +00:00
marcus 005368f745 Added a function to remap Unicode character to font glyph index. 2001-02-02 06:00:38 +00:00
marcus 0fa36be20f Set correct font encoding. 2001-02-02 05:59:53 +00:00
tsutsui 1e1862bc57 Add another font from 4.4BSD-Lite2/luna68k. 2000-11-24 15:47:15 +00:00
tsutsui 690b28f91e Add a couple of fonts used on Sony NEWS.
Generated from (recently removed) sys/arch/newsmips/dev/fnt{,24}.c.
2000-11-21 11:44:45 +00:00
ad 3553879fc2 Use my proper name. 2000-06-13 13:36:42 +00:00
enami 11fe38b6ad Restore the system priority level on error return. 2000-01-07 03:25:46 +00:00
enami cadfd97e07 Replace WSFONT_L2R/R2L with WSDISPLAY_FONTORDER_L2R/R2L. 2000-01-07 02:57:17 +00:00
ad 59a1ab9791 Add two new members to 'struct wsdisplay_font': 'bitorder' and 'byteorder'. 2000-01-05 18:44:21 +00:00
ad 38fdaf4b34 Fix comment. 1999-12-15 15:34:18 +00:00
ad 9bfaff072d Now I remember. Add a new flag, WSFONT_RDONLY that indicates the font
to be added to the table should not be modified; i.e. if modifications
are needed, a copy should be made.
1999-12-15 15:27:57 +00:00
ad a8112faedb - Squash a few stylish nits.
- Move font flags to wsfont.h. There is a point to this. I'll remember soon.
1999-12-14 22:35:17 +00:00
ad 942f120fbf Lay it out like the other fonts. 1999-12-04 13:40:21 +00:00
ad 43e59084c4 - Stylistic cleanup.
- Make ifndef'ed out bits look less like a statement of intent.
1999-12-04 13:35:42 +00:00
takemura 8f94bda30c Add new font sets - VT220 8x8 and 8x10.
I brought them from arch/i386/isa/pcvt/Util/fonts.
You can specify FONT_VT220L8x8 or FONT_VT220L8x10 in a configuration file.
1999-11-02 10:25:22 +00:00
ad bb3a510fa2 Assign ownership & copyright to TNF. There is probably a procedure for this
that I am unaware of. Also some KNF.
1999-05-18 21:51:57 +00:00