Commit Graph

197 Commits

Author SHA1 Message Date
kiyohara
3fff8166d1 Register with pmf(9), tell it we don't need anything.
Based on rev 1.15 of src/sys/arch/hpcsh/dev/j6x0pwr.c
2009-12-19 07:09:28 +00:00
kiyohara
7b37c23343 Register null hooks with pmf(9) for now, which is no worse than befor
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
Based on rev 1.14 of src/sys/arch/hpcsh/dev/j6x0lcd.c
2009-12-19 07:08:55 +00:00
kiyohara
1edc55859d Register with pmf(9), tell it we don't need anything.
Based on rev 1.23 of src/sys/arch/hpcsh/dev/j6x0tp.c
2009-12-19 07:08:23 +00:00
cegger
9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
uwe
4e37bb5a9c Register with pmf(9), tell it we don't need anything. 2009-04-05 02:29:40 +00:00
uwe
c7b2923b5e Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
2009-04-05 02:23:00 +00:00
uwe
620a6f25ea Register with pmf(9), tell it we don't need anything. 2009-04-05 02:18:59 +00:00
uwe
28794590b6 Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
2009-04-05 00:56:20 +00:00
uwe
1ebb57a8c6 Don't bother trying to attach GPIO, AFE and FIR modules for which we
have no drivers.

Standby TIMER that we don't use.  One of the timers is always out of
standby on my Jornada on boot (WinCE uses it), so save some power.

Standby AFE and FIR for which we have no drivers (I don't know if any
hpcsh hardware actually uses them, so they are likely to be in standby
already anyway).
2009-03-22 02:25:11 +00:00
uwe
ba51317c25 Minor cosmetic. 2009-03-21 03:13:30 +00:00
uwe
76c0e81d47 In the current code the even loop is never exited, but it's cleaner to
have explicit kthread_exit at the end of the event thread routine.
2009-03-21 02:23:03 +00:00
uwe
df7998fac1 Move channel attachment to event thread (we already have one, so it's
easier to do it there rather than mess with config_interrupts()).

From kiyohara@.  Discussed with drochner@, who pointed out that pcmcia
drivers are expected to attach with interrupts enabled.
2009-03-21 02:02:39 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
uwe
7ae7c6b0f8 Turn on display on attachment. Fixes the scenario when serial console
is used and you reboot (using kloader) with screen turned off.
2009-03-18 02:49:34 +00:00
uwe
32d2d9a6bb Defining another variable after multiline initializer for a previous
one in the same definition is very confusing visually.  Change order.
2008-12-02 20:48:24 +00:00
uwe
f79bc3126f Spell "gray scale" and "mono chrome" without the space. 2008-12-02 20:44:43 +00:00
uwe
3fb438b2cf hd64461video_set_display_mode_lcdc - expressing screen widths in hex
hardly helps readbility.  Express them in terms on 640*x or 640/x.
2008-12-02 20:39:36 +00:00
uwe
b523b8ffed hd64461video_info: fix pasto, correctly report 4-bit grayscale in LDR2. 2008-12-02 16:39:47 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
kiyohara
aaf18737ff Split device_t/softc.
Use aprint.
2008-03-31 15:49:29 +00:00
uwe
fd8017cbe4 Use aprint_*. 2008-03-28 01:19:12 +00:00
uwe
43e743115c Split device_t and softc. 2008-03-28 00:13:15 +00:00
uwe
9694bbc3bd Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:57:58 +00:00
uwe
e6030fb8a9 Split device_t and softc. 2008-03-27 23:57:21 +00:00
uwe
99111ebac3 Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:42:34 +00:00
uwe
b5ba6eeb69 Split device_t and softc. 2008-03-27 03:58:47 +00:00
uwe
a0caab7521 Split device_t and softc. 2008-03-27 03:34:14 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
uwe
67b202aca8 Use aprint_*, device_xname. 2008-02-17 06:03:13 +00:00
uwe
cf7d73cb17 hd64461_set_bus_width - use named constants instead of bit shift magic. 2008-02-17 05:38:30 +00:00
uwe
45b20506a7 hd64461_info: Print correct full name for STBCR (s/system/standby/). 2008-02-17 04:10:45 +00:00
perry
9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
kiyohara
e78479483b Support apm(8). 2007-09-24 18:08:53 +00:00
kiyohara
685380a8a8 Add psh3pwr. 2007-09-24 16:16:42 +00:00
he
dc396e3ae7 Adapt to the new signature of kthread_create(), and the removal
of kthread_create1().
2007-07-17 11:16:14 +00:00
uwe
1158881562 Grr, revert unrelated changes that are traces of an unfinished experiment. 2007-07-11 22:17:55 +00:00
uwe
2af9604e01 Catch up with callout_init signature change. 2007-07-11 22:15:41 +00:00
uwe
aa22c77a5b Fix previous: sc_event_thread should be a pointer to lwp_t. 2007-07-11 22:13:30 +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
uwe
4a747421e0 Rename j6x0tp_set_enable to j6x0tp_enable_child which better reflects
what this function does and is way less confusing too.
2007-06-01 18:23:46 +00:00
uwe
aa1315c604 Cosmetic. Use device_xname. Don't compile debugging support. Drop
out-of-date comment for j6x0tp_attach (we haven't been using submatch
for quite a while).
2007-06-01 17:44:46 +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
thorpej
16ed6645b5 TRUE -> true, FALSE -> false 2007-02-22 05:31:52 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
kiyohara
e3e6e213ed follows to style guide and C99.
Add ARGSUSED and __unused.
  Remove braces at return.
Use device_private() and aprint_*().
2007-01-21 11:01:09 +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
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
6ac2d0e699 Revert previous that apparently has been committed by mistake.
It actually contained just some debugging printfs, and *wrong*
debugging printfs at that (hi, jared :)
2006-10-22 00:33:14 +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