Commit Graph

51221 Commits

Author SHA1 Message Date
tsutsui
9233a7ff42 Replace old MD sicallback functions with MI softint(9). 2010-04-12 13:05:25 +00:00
tsutsui
078ba9f9eb - more cosmetics
- use queue(3) macro properly
2010-04-12 12:43:39 +00:00
tsutsui
09adc53649 KNF and cosmetics. 2010-04-12 12:28:59 +00:00
jakllsch
e1ec199332 Add valz(4), a simple driver to handle the backlight keys on some
Toshiba laptops.  As of yet only tested on a Satellite A135-S4527.
2010-04-11 22:42:30 +00:00
jruoho
56bdff1846 Use CTLTYPE_BOOL. 2010-04-11 09:52:09 +00:00
jun
0870d1051c workaround for port-hpcmips/42934
"NetBSD/hpcmips can't boot after 5.99.23"
  adviced by Naoki Fukaumi on twitter.
2010-04-10 22:53:59 +00:00
pgoyette
0321f1cd9a Save initial, boot-time limit values, and restore them upon request
from sysmon_envsys(9).
2010-04-10 19:02:39 +00:00
tsutsui
7288813c34 Always schedule callback functions via add_sicallback(),
which calls softint_schedule(9).

We cannot use BASEPRI() to check recursive calls any longer
since softint(9) has been reorganized to use kernel thread.
2010-04-10 18:02:05 +00:00
jruoho
039f34b662 Move vald(4) to sys/dev/acpi. This is MI and should work also on amd64.
ok jmcneill@

XXX:    This is broken: it calls methods with absolute pathnames (almost
        guaranteed not to be portable across models), it accesses methods
        that are in the domain of other drivers, it walks the namespace on
        its own, it contains plenty of magic constants, it does not
        integrate with existing KPIs, etc. Summa summarum: this should be
        rewritten as a more generic toshiba_acpi(4).
2010-04-10 17:55:24 +00:00
tsutsui
1ecf20919a Comment out currently unused mbprint(). 2010-04-10 17:40:36 +00:00
tsutsui
8b508b5672 Remove extern int atari_realconfig decls. It's in <atari/atari/device.h>. 2010-04-10 16:14:07 +00:00
tsutsui
7220c81d93 Remove now unused getsoftc() macro. 2010-04-10 16:12:34 +00:00
tsutsui
c018c74bc9 Make local functions static. 2010-04-10 16:07:04 +00:00
tsutsui
44a4256e29 Regen from GENERIC.in rev 1.86:
> Disable options SERCONSOLE (force serial console if DCD is detected)
> because now it's patchable by binpatch(8).
2010-04-10 02:29:25 +00:00
tsutsui
958ecc45de Disable options SERCONSOLE (force serial console if DCD is detected)
because now it's patchable by binpatch(8).

Enabling serial console by DCD signal could be problematic
on some earlier TT030 (with revision A board), and it's also
annoying for users who connect an active device on the serial port
as mentioned in PR port-atari/39849.

XXX: Eventually serial console should be enabled by MD bootloader flags,
XXX: but I have no idea how to build bootloader binaries for TOS.
2010-04-10 02:27:52 +00:00
tsutsui
eb340f649b Regen from HADES.in rev 1.11 and MILAN.in rev 1.25:
> Remove EtherNEC from HADES and MILAN.
> They have ISA so no one will bother to connect ISA NE2000 via EtherNEC.
2010-04-10 02:01:30 +00:00
tsutsui
3ac2ae2366 Remove EtherNEC from HADES and MILAN.
They have ISA so no one will bother to connect ISA NE2000 via EtherNEC.
2010-04-10 01:59:40 +00:00
tsutsui
b8cca62afb - establish zs interrupts via common intr_establish() function rather than
hardcording them in locore.s and vector.s
- also make interrupt handlers take per unit softc and put a softint cookie
  into softc (though atari machines have only one zs)
- tweak some structures as per MI z8530sc driver

Tested on TT030 using sl(4) on zs.
2010-04-09 17:38:43 +00:00
tsutsui
3104521fc6 minor constify 2010-04-09 17:06:31 +00:00
tsutsui
c72cdbc3b4 More KNF. 2010-04-09 16:30:15 +00:00
ahoka
5b74e5d788 revert last change, amd64 doesnt have monolith so dont remove pad. 2010-04-09 14:37:57 +00:00
ahoka
42b95af124 Remove pad from GENERIC, add to MONOLITH, we have it as a module now. 2010-04-09 14:02:05 +00:00
tsutsui
45c5a41969 Split device_t/softc. 2010-04-09 12:50:34 +00:00
tsutsui
3ae52b0ad3 Rename variables and members of softc for readability. 2010-04-09 12:38:48 +00:00
tsutsui
af7ec4ee38 Remove unnecessary volatile keyword against struct zschan.
(volatile against structure member is enough)
2010-04-09 12:34:25 +00:00
tsutsui
6cace5bc53 - misc KNF
- remove `register' keyword from variable declarations
2010-04-09 12:09:29 +00:00
tsutsui
c28b217b41 Include ioconf.h for struct cfdriver. 2010-04-09 11:30:19 +00:00
tsutsui
649a24ad45 minor constify 2010-04-09 11:27:21 +00:00
tsutsui
ed0d3417a9 Make options SERCONSOLE (force serial console if DCD is detected)
patchable by binpatch(8) like:
---
# binpatch -s serconsole -r 0 /netbsd
serconsole(0x23bac4): 0x00000001 (1), at offset 0x23bb44 in /netbsd
new value: 0x00000000 (0)
#
---

May work around PR port-atari/39849
(netbsd-ATARITT kernel fails with serial port connected)
and some old TT030 with early revision boards.
2010-04-09 11:09:03 +00:00
tsutsui
f48349093a - split device_t/softc
- verbose output on attach as well as zs serial ports
2010-04-09 10:49:37 +00:00
tsutsui
83f406edd9 Include ioconf.h for struct cfdriver. 2010-04-09 10:07:14 +00:00
tsutsui
e33bfc17ee Misc KNF. 2010-04-09 10:04:35 +00:00
jruoho
9264326878 Add wmidell(4) and wmihp(4). 2010-04-08 17:50:34 +00:00
jruoho
5a858cc492 Add WMI mappings for HP laptops. Requested by cegger@.
Thanks to apb@ and cegger@ for initial testing.

XXX: This conflicts with hpqlb(4). Someone with the suitable hardware needs
     to complete the list of hotkeys before -- and if -- this can replace
     hpqlb(4). For now, the driver was left uncommented in the GENERICs.
2010-04-08 17:32:30 +00:00
jruoho
496980a056 Add wmidell(4). 2010-04-08 09:45:17 +00:00
jruoho
230c5ee4c7 ACPICA 20091112:
Implemented a post-order callback to AcpiWalkNamespace. The existing
        interface only has a pre-order callback. This change adds an
        additional parameter for a post-order callback which will be more
        useful for bus scans.  ACPICA BZ 779. Lin Ming. Updated the ACPICA
        Programmer Reference.

We will use the old "pre-order callback" for the time being.
2010-04-08 04:40:51 +00:00
jakllsch
64fcf7099a Clean up accidential commit. 2010-04-07 18:51:34 +00:00
jakllsch
9d6bdcd981 let ath(4) build on alpha 2010-04-07 17:51:15 +00:00
jakllsch
e43bf0587d satafis:
- Add function to parse RDH FIS for use in implementing AT_READREG.
- Correct and clean up some structure definitions.
- Sprinkle a bit of const.
- Remove dependency on <dev/ic/wdcreg.h>, WDCTL_4BIT doesn't seem
  to be specified by any recent ATA standard, and it seems to make
  no difference in practice.
- Stop using WDSD_IBM, these bits have been obsolete since before SATA.

siisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
- Whitespace and slight debug code cleanup.
- Some possibly-uncessary code reordering.

ahcisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
2010-04-07 17:51:15 +00:00
tsutsui
8f12100ec0 Misc KNF. 2010-04-07 13:53:05 +00:00
tsutsui
863ed02e2e - split device_t/softc
- use device_lookup_private() directly rather than via local macro
2010-04-07 13:14:23 +00:00
tsutsui
883db6bc19 extern inline -> static inline 2010-04-07 12:39:59 +00:00
nonaka
1f03951426 fix comment. 2010-04-07 11:54:46 +00:00
nonaka
4f76fb5f14 delete unused file. 2010-04-07 11:48:15 +00:00
pooka
ebd06ba809 Fix fmt'ing error in comment from rev 1.22. 2010-04-07 11:16:30 +00:00
tnn
0bc96981a6 Add multiboot command. This lets us netboot the xen+dom0 kernel combo. 2010-04-06 21:18:59 +00:00
jld
d5723e6f06 Fix typos in PAE comment. 2010-04-06 20:43:57 +00:00
nonaka
7395c26621 regen. 2010-04-06 16:23:17 +00:00
nonaka
569b7f924f Added support PXA270. 2010-04-06 16:20:27 +00:00
nonaka
8b211288fd regen. 2010-04-06 16:18:24 +00:00