summaryrefslogtreecommitdiff
path: root/sys/dev/hpc
AgeCommit message (Collapse)Author
2010-02-24A pointer typedef entails trading too much flexibility to declare constdyoung
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.
2010-01-08Expand PMF_FN_* macros.dyoung
2009-11-23Remove some unecessary includes sys/user.h header.rmind
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-04-05Register with pmf(9), tell it we don't need anything.uwe
2009-04-05Register with pmf(9). Thus we register with both dopowerhooks(9) anduwe
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.
2009-04-05Register with pmf(9), tell it we don't need anything.uwe
2009-04-05Split device_t and softc.uwe
2009-04-05Register with pmf(9), tell it we don't need anything.uwe
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-03Use dev/apm/files.apm for APM options in opt_apm.h.uwe
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-03Config glue for attaching apm at apmdevif.uwe
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-03Attachment glue to attach apm0 at hpcapm0.uwe
Tested on Jornada 690.
2009-04-03Switch apmdev to use apm(4) structures from dev/apm/apmvar.h.uwe
Add batteryid argument to aa_get_powstat method implementations.
2009-04-03Further reduce diffs to dev/apm/apm.c.uwe
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-03-30Split device_t and softc, use aprint_*, rename/reformat stuff touwe
minimize diffs to dev/apm/apm.c (even at the cost of uglification). Tested on Jornada 690 (hpcsh).
2009-03-30Fix battery_state vs. battery_flags confusion.uwe
Fill all fields of struct apm_power_info in hpcapm_get_powstat.
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
2009-03-14ANSIfy another 1261 function definitions.dsl
The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
2008-06-12device_private_lookup()-ification so that hpcarm (at jeast Jornada 72x)rafal
kernels build.
2008-06-10use new "defpseudodev" where appropriate, and remove dummy interfacedrochner
attribute definitions which were only to trick config(8)
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-06use aprint_*_dev and device_xnamecegger
2008-03-01Welcome to 4.99.55:rmind
- 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-02-21Rasops and wsfont are now in MI conf/files so remove them from here.uwe
2008-01-30Has this compiled recently?ad
2008-01-07Catch up with new option to dev/pckbport/wskbdmap_mfii.cuwe
2008-01-04Start detangling lock.h from intr.h. This is likely to cause short termad
breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
2007-12-25Convert many of the uses of __attribute__ to equivalentperry
__packed, __unused and __dead macros from cdefs.h
2007-12-15__FUNCTION__ -> __func__perry
2007-12-14Complete lockmgr->mutex conversion started in 1.12. Mutex needs to beuwe
inited with mutex_init. Since mutex ops return void, drop (void) cast from APM_(UN)LOCK.
2007-12-05Do not "return 1" from kqfilter for errors. That value is passedpooka
directly to the userland caller and results in a mysterious EPERM. Instead, return EINVAL or something else sensible depending on the case.
2007-12-05lockmgr -> mutexad
2007-11-19- Factor out too many copies of the same bit of tty code.ad
- Fix another tty signalling/wakeup problem.
2007-11-10Call ttyflush() with tty_lock held.ad
2007-10-29wsdisplay has been converted to device_t/softc separation so we can't castpeter
the wsdisplay device to the wsdisplay_softc anymore. Use device_private() instead to get the softc.
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-10-18Initialise the callbacks for tty.t_rstrt_ch in ttymallocjoerg
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-09-23We call to config_hook_call() with always 'on'.kiyohara
It doesn't suspend it for NULL.
2007-09-23Fix to persona_hpw{5,20}0pad_special_keymap.[KEY_SPECIAL_OFF] = 5.kiyohara
2007-07-10Fix compile failure occured kthread API changes.nonaka
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-03-09after the recent config_attach_pseudo() changes, unit numbers have the samedrochner
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-01-29Remove more duplicate headers.hubertf
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.
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-27Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers.uwe
2006-10-12-Wextra fixesuwe
2006-10-10The use of a local variable is conditional on FBDEBUG, so make thehe
declaration too. Makes this build without FBDEBUG defined.
2006-10-09Remove (the default) #define XXXDEBUG and add the options to the relevantpeter
files.xxx file.