Commit Graph

203 Commits

Author SHA1 Message Date
rafal cf990769f1 device_private_lookup()-ification so that hpcarm (at jeast Jornada 72x)
kernels build.
2008-06-12 01:46:32 +00:00
drochner 1f0a423884 use new "defpseudodev" where appropriate, and remove dummy interface
attribute definitions which were only to trick config(8)
2008-06-10 12:49:16 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger 0e50a9464d use aprint_*_dev and device_xname 2008-04-06 20:25:59 +00:00
rmind c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
uwe 8022c855dd Rasops and wsfont are now in MI conf/files so remove them from here. 2008-02-21 19:52:00 +00:00
ad 549e8ec8b9 Has this compiled recently? 2008-01-30 14:12:20 +00:00
uwe d8f0d4be74 Catch up with new option to dev/pckbport/wskbdmap_mfii.c 2008-01-07 00:19:08 +00:00
ad 0664a0459b Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
perry b6a2ef7569 Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
perry 9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
uwe 0790e7df9b Complete lockmgr->mutex conversion started in 1.12. Mutex needs to be
inited with mutex_init.  Since mutex ops return void, drop (void) cast
from APM_(UN)LOCK.
2007-12-14 00:51:44 +00:00
pooka 4e38160d4d Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
ad 6874e511b7 lockmgr -> mutex 2007-12-05 07:58:29 +00:00
ad dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad 0f8b0df960 Call ttyflush() with tty_lock held. 2007-11-10 18:29:36 +00:00
peter 9bc22ed904 wsdisplay has been converted to device_t/softc separation so we can't cast
the wsdisplay device to the wsdisplay_softc anymore.  Use device_private()
instead to get the softc.
2007-10-29 20:45:57 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
joerg d238692c3e Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
2007-10-18 18:54:56 +00:00
kiyohara 57062aa01b We call to config_hook_call() with always 'on'.
It doesn't suspend it for NULL.
2007-09-23 12:21:47 +00:00
kiyohara b7e745a1d8 Fix to persona_hpw{5,20}0pad_special_keymap.[KEY_SPECIAL_OFF] = 5. 2007-09-23 11:56:27 +00:00
nonaka faf0f43647 Fix compile failure occured kthread API changes. 2007-07-10 13:55:20 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
drochner f6c8681509 after the recent config_attach_pseudo() changes, unit numbers have the same
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
2007-03-09 15:41:02 +00:00
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
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
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
uwe 523122cd3e Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers. 2006-10-27 00:08:32 +00:00
uwe 44b3507820 -Wextra fixes 2006-10-12 21:19:13 +00:00
he 4072b525cc The use of a local variable is conditional on FBDEBUG, so make the
declaration too.  Makes this build without FBDEBUG defined.
2006-10-10 23:09:21 +00:00
peter 9eddf38521 Remove (the default) #define XXXDEBUG and add the options to the relevant
files.xxx file.
2006-10-09 10:33:42 +00:00
peter d0109f306b Jornada 720: change key 127 to KEY_SPECIAL_OFF. 2006-10-07 14:03:12 +00:00
elad 65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
peter 223213b93f Improve some debug texts. 2006-09-24 19:07:26 +00:00
peter d04123ca73 Run the "power button event" hooks when the special button OFF is pressed.
Change the keycodes in the keymaps that are currently using the OFF button
to -1 so that they will still operate the same way (i.e. do nothing).

No objection on port-hpcsh & port-hpcmips.
2006-09-24 18:34:41 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
gdamore 50d22dfb8e Convert time.tv_sec to time_second. 2006-09-05 21:59:51 +00:00
matt 3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
uwe b320dcd170 Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable.
From Adam Wysocki on port-hpcsh@.
2006-08-22 01:55:00 +00:00
ad 3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
peter f4aa0d8f5a Fix typo in a comment. 2006-06-27 10:56:16 +00:00
peter 94ebfefbcd Set the jornada 720 volume up/down and play buttons to ignore
instead of unknown.
2006-06-27 10:42:41 +00:00
uwe bcd4abc305 If tty that we open already has hpf1275a line discipline set, don't
spawn new pseudo-device and wskbd instances.

XXX: The logic for exclusive use needs to be thought out better, but
for now this should at least prevent scores of new hpf1275a/wskbd
being attached if you accidentally set this line discipline on your
serial console.
2006-05-30 01:14:38 +00:00
uwe f7d6597db0 Miscellaneous cosmetics. 2006-05-29 23:01:08 +00:00
uwe 5807cbeb31 Propagate "static" to linesw method defintions. 2006-05-29 22:17:26 +00:00
uwe b2d14e97a2 Constify hpf1275a_wskbd_keymapdata. 2006-05-29 21:27:16 +00:00
uwe 24172f6f4d #include <dev/wscons/wsksymvar.h> as gcc4 doesn't like arrays,
pckbd_keydesctab[] in this case, with incomplete element types (older
versions of gcc allow them as long as you don't try to access them).
2006-05-22 20:40:07 +00:00
yamt 52da04717a - include kauth.h for kauth_authorize_generic.
- whitespace.
2006-05-15 12:39:05 +00:00
elad 2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00