uwe
12a9718711
Split device_t and softc.
2009-04-05 01:48:47 +00:00
uwe
fe0f5148ae
Register with pmf(9), tell it we don't need anything.
...
btnmgr(4) is just a hub for other devices to plug into with
config_hook(9), there is no real hardware to manage.
2009-04-05 00:34:42 +00:00
uwe
30f9f983a3
Use dev/apm/files.apm for APM options in opt_apm.h.
...
Now both apm and apmdev files.apm can be included so you can switch
from apmdev0 to apm0 at hpcapm0 in your kernel config easily.
2009-04-03 05:01:09 +00:00
uwe
c03d662b39
Config glue for attaching apm at apmdevif.
...
Unfortunately dev/apm/files.apm and dev/hpc/apm/files.apm cannot be
included both at the same time (they define same options and config(1)
complains), so you need to comment out old code and uncomment new code
to be able to replace "apmdev0 at hpcapm0" with "apm0 at hpcapm0" in
your kernel config.
2009-04-03 04:21:51 +00:00
uwe
ea06597b80
Attachment glue to attach apm0 at hpcapm0.
...
Tested on Jornada 690.
2009-04-03 04:17:03 +00:00
uwe
9a25b0cb7f
Switch apmdev to use apm(4) structures from dev/apm/apmvar.h.
...
Add batteryid argument to aa_get_powstat method implementations.
2009-04-03 04:13:17 +00:00
uwe
7cbde2c0d5
Further reduce diffs to dev/apm/apm.c.
...
Bring over remaining bits of logic not picked up in the first round.
Main semantic difference between the two that ramins is now basically
powerhooks vs. pmf.
Cosmetics to reduce diff noise: split apmattach into apmdevattach and
apm_attach, where the latter matches its counterpart in the real
apm.c. Change local macros names from APMDEV* to APM*
Now that apmdev.c is demonstrably congruent to apm.c it should be
easier to switch hpc* and zaurus ports to apm.c from apmdev.c.
apmdev.c is one of the only two remaining drivers that call
dopowerhooks(9), the other one being arch/arm/xscale/pxa2x0_apm.c.
Ideally I would prefer for them to be interchangeable to smooth the
transition (in pmf world order *all* devices must have pmf hooks
registered), but they are attached differently - apmdev is separate
from its backend device (like hpcapm), while apm.c backends are
attachment glue, not separate devices.
2009-04-03 02:08:38 +00:00
uwe
1cfa6cdc4e
Split device_t and softc, use aprint_*, rename/reformat stuff to
...
minimize diffs to dev/apm/apm.c (even at the cost of uglification).
Tested on Jornada 690 (hpcsh).
2009-03-30 06:22:25 +00:00
uwe
e4d63225a1
Fix battery_state vs. battery_flags confusion.
...
Fill all fields of struct apm_power_info in hpcapm_get_powstat.
2009-03-30 06:17:39 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
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