Commit Graph

207 Commits

Author SHA1 Message Date
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
pavel
934634a18c Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf
eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
macallan
ba69d539e0 use vcons.
Works fine on sparc64, needs testing on sparc.
2006-10-16 22:27:16 +00:00
martin
7815b7efa3 Missing initializers 2006-10-15 21:01:03 +00:00
martin
9128c4105e Missing initializer 2006-10-15 20:54:49 +00:00
martin
9384ee0db9 Missing initializer 2006-10-15 19:53:27 +00:00
martin
ac4b729ce4 Add some initializers 2006-10-15 19:32:37 +00:00
he
4c2420029f Add duplicate include protection to <dev/sun/kbio.h>.
Make the x68k port use this include file, so that what remains
is only the port-specific additions.
2006-08-28 17:15:24 +00:00
he
4493c76313 Use the common <dev/sun/vuid_event.h> header file instead of maintaining
separate copies in port-specific directories.  Add duplicate include
protection.  Makes the alpha and atari ports build usr.bin/kdump/ again.
2006-08-28 16:41:04 +00:00
kardel
de4337ab21 merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
martin
b59e36a073 Move definition of the 'fb' attribute to global scope and make machfb@pci
require it. On most archs this does not change anything, but on sparc{,64}
it allows linking of kernels that have machfb as the only framebuffer.
Solution suggested by Quentin.
2006-05-28 08:57:53 +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
macallan
313752a79e add a framebuffer type for generic PCI devices 2006-04-13 13:30:25 +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
07c30f824f Use device_private(). 2006-03-30 16:09:28 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
macallan
11d027c528 Make external mice work on Tadpole SPARCbook
The tadpole microcontroller sets an additional bit in frame headers from
an external mouse which caused our driver to discard the frame - now we
just ignore the bit.
2006-03-10 20:25:45 +00:00
christos
d4d0b2f85f whitespace. 2005-12-14 00:41:17 +00:00
christos
5ecdc5e2d0 welcome to the new lwp world. 2005-12-12 02:44:09 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
thorpej
7d00e1aff3 Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().
2005-11-27 05:35:52 +00:00
macallan
4188757b69 Add a multiple include guard. 2005-10-15 15:41:22 +00:00
macallan
33f4e6b2f0 Fixes the following bug:
Framebuffer drivers use their own minor device number to find their device entry
in fbdriver methods ( like cgsix uses cgsix_cd[minor] ) but fb passed the fb
device's unit number which works only as long as all registered fb devices use
the same underlying driver. With different fb drivers, like a cgsix and an ffb, both will be (native) unit number 0 so with the old code /dev/fb1 would be
unusable.
2005-10-08 00:46:44 +00:00
martin
39f4abb7a9 Remove spurious debug output accidently commited in revision 1.44. 2005-09-28 21:36:23 +00:00
martin
3e94fd1a1c Ignore KBD_IDLE one layer earlier - wskbd does not like it [and complains
in DEBUG kernels], and we already ignored it for raw mode.
2005-09-14 07:32:43 +00:00
jdc
f283678f15 Fix cut and paste error in UK keymap. 2005-08-25 06:55:03 +00:00
macallan
c3d39ccf44 deal with more than one cgsix, make sure to get things right even when none
of them is the console.
2005-06-28 20:55:21 +00:00
jdc
42990f95a3 Attach multiple displays as fb0, fb1, ... so that X can use multiple heads
via the /dev/fbn abstraction.  Framebuffers are attached in probe order.
However, the previous semantics are kept, so that the detected or forced
console will always be fb0.
2005-06-24 06:40:05 +00:00
thorpej
26d517435c Fix mis-placed newline. 2005-06-21 01:12:17 +00:00
thorpej
2b9a850fd3 Install eeprom.h and idprom.h 2005-06-20 02:01:30 +00:00
thorpej
7adddd1b69 Move common Sun3/Sun4 EEPROM definitions in to <dev/sun/eeprom.h> 2005-06-19 20:23:48 +00:00
thorpej
15adcb96b8 Move common Sun ID PROM definitions into <dev/sun/idprom.h>. 2005-06-19 20:00:28 +00:00
jdc
e5ec393002 Add UK keyboard map. 2005-06-18 20:35:36 +00:00
martin
f2fa04e658 Use KBD_IDLE instead of magic constants 2005-06-08 10:06:23 +00:00
martin
b8aea19a7a Add a key symbol for the "Power" key. 2005-06-08 09:11:09 +00:00
martin
1ee0840364 Do not bother to post "keyboard idle" events to userland when we are
in wskbd raw input mode.
2005-06-07 10:29:08 +00:00
tsutsui
5304f91e7a Add const. 2005-06-04 04:40:57 +00:00
tsutsui
435d547a7c Add const. 2005-06-04 04:37:21 +00:00
tsutsui
296114a214 Add const. 2005-06-03 22:06:24 +00:00
martin
b19a082161 Add german keymaps 2005-06-01 14:05:25 +00:00
christos
309409f7e4 add a missing const. 2005-05-31 00:47:54 +00:00
christos
f1faf37485 Add const. 2005-05-30 22:17:11 +00:00
christos
b494026ec2 remove unneeded casts. 2005-05-30 22:17:03 +00:00
macallan
49deefc7bf fixed a typo in cg6_ras_do_cursor and made using the blitter to draw the
cursor optional when using RASTERCONSOLE
2005-05-22 03:45:08 +00:00
martin
711712f3f3 Fix indentation. 2005-05-17 06:18:31 +00:00