| Age | Commit message (Collapse) | Author |
|
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
|
|
|
|
|
|
|
|
|
|
|
|
pmf(9), but they are mutually exclusive (apm(4) vs apmdev(4)).
Express pmf(9) hooks in terms of dopowerhooks(9) hook - the reverse
would be more natural, but pmf hook signature is hidden behind
PMF_FN_ARGS/PMF_FN_CALL, so just go the least intrusive way for now.
|
|
|
|
|
|
btnmgr(4) is just a hub for other devices to plug into with
config_hook(9), there is no real hardware to manage.
|
|
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.
|
|
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.
|
|
Tested on Jornada 690.
|
|
Add batteryid argument to aa_get_powstat method implementations.
|
|
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.
|
|
minimize diffs to dev/apm/apm.c (even at the cost of uglification).
Tested on Jornada 690 (hpcsh).
|
|
Fill all fields of struct apm_power_info in hpcapm_get_powstat.
|
|
|
|
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
|
|
kernels build.
|
|
attribute definitions which were only to trick config(8)
|
|
|
|
|
|
- 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>
|
|
|
|
|
|
|
|
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
|
|
__packed, __unused and __dead macros from cdefs.h
|
|
|
|
inited with mutex_init. Since mutex ops return void, drop (void) cast
from APM_(UN)LOCK.
|
|
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
|
|
|
|
- Fix another tty signalling/wakeup problem.
|
|
|
|
the wsdisplay device to the wsdisplay_softc anymore. Use device_private()
instead to get the softc.
|
|
|
|
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.
|
|
It doesn't suspend it for NULL.
|
|
|
|
|
|
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
|
|
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
|
|
|
|
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.
|
|
|
|
|
|
|
|
declaration too. Makes this build without FBDEBUG defined.
|
|
files.xxx file.
|