jmcneill
6d05bd66ec
Add powerhook to restore IRQ routing on resume.
2006-06-16 23:04:25 +00:00
jmcneill
2689ddd4e7
Enable the piixpcib(4) device driver by default. This enabled speedstep as
...
well as sufficient powerhooks to resume from ACPI S3 suspend.
2006-06-16 22:13:35 +00:00
jmcneill
686aef2890
Restore standard PCI configuration registers as well as PIRQX route control
...
registers on the PIIX4. This fixes up interrupt routing, and makes ACPI S3
suspend/resume work on my Sony Vaio.
2006-06-16 22:10:36 +00:00
simonb
8323964d84
Move ksyms to the "miscellaneous pseudo-devices" - it's not a wscons
...
thing.
2006-06-16 06:41:13 +00:00
gdamore
62f92aeef1
Rename local variable "time" to "mytime" to avoid a conflict with a kernel
...
global. Makes it compile again. :-)
2006-06-16 00:08:28 +00:00
gdamore
800f1efe25
Make this cross-compile on Solaris, by wrapping the #include of sys/endian.h
...
with a test for #ifndef HAVE_NBTOOL_CONFIG_H.
2006-06-15 23:06:48 +00:00
garbled
aa0bc147ae
A bit of clock rototill. It's safer to detect things known by the
...
residual with the pnpbus probes, than it is to do it with raw isa probes,
so I've replaced the isa mkclock and mcclock code with a pnpbus attachment.
While writing the mkclock code, I realized that on motorola prep machines
the mkclock uses the same port range as the nvram part. (it's actually
the same chip/part). This was causing the nvram not to work on those
machines. Now the nvram code will recognize this, and wire up the
mkclock as well. The mkclock probe is just a stub probe used to
pre-detect the fact that this is one of those machines.
2006-06-15 18:15:32 +00:00
jmcneill
d651f09fd7
Regen.
2006-06-15 18:09:14 +00:00
jmcneill
fe984d2ec9
Do not restore task registers in wakecode.
2006-06-15 18:07:58 +00:00
tsutsui
ec9a7dcbfd
- don't forget to set _dm_vmspace in BUS_DMA_ALLOCNOW case
...
- also set ARC_DMAMAP_COHERENT hint in the case if buf is in KSEG1
(I'm not sure if ALLOCNOW is worth for linear buffer, i.e. nsegs=1 case)
2006-06-15 17:06:19 +00:00
uwe
414eb19c42
Nothing in this file needs <sys/time.h>
2006-06-14 19:56:49 +00:00
uwe
7132388a3f
Get strcpy prototype from libkern.h, not string.h
2006-06-14 19:46:46 +00:00
freza
dc25af75d0
Merge multiple definitions of cntlzw() ("count leading zeros")
...
instruction-wrapper to <powerpc/cpu.h>.
OK by briggs@
2006-06-13 18:24:37 +00:00
dogcow
ef6f10f99b
...and since amd64 doesn't actually have enhanced speedstep (yet!), only
...
include the opt file on i386.
2006-06-13 17:37:06 +00:00
dogcow
9bdd85d12c
we need opt_enhanced_speedstep.h to get whether ENHANCED_SPEEDSTEP is defined.
2006-06-13 17:30:05 +00:00
perry
6b3d64621c
edit a couple of new items so that they fit on a line and do the tab
...
to space dance so that they can be cleanly commented out.
2006-06-13 17:17:15 +00:00
tsutsui
04595a48c6
Before calling the handler of timer at isa for hardclock(9),
...
clear MIPS_SR_INT_IE in struct clockframe status to prevent
unintentional spllowersoftclock(9) in hardclock(9).
This may be required because current CLKF_BASEPRI() implementation
of NetBSD/arc doesn't check ICU_MASK and all ISA devices share
the same MIPS CPU INT2 interrupt.
BTW, has anyone tried IPL_ICU_MASK on any mips ports?
2006-06-13 13:51:31 +00:00
peter
4c6681fae8
Don't pass the size of struct device to CFATTACH_DECL because it's obviously
...
too small! Use the softc instead. And while here, remove sc_ih from the
softc, it's not used at all.
2006-06-12 19:42:22 +00:00
dogcow
b6d29ce0bd
Add -Wno-attributes for amd64, too.
2006-06-12 19:25:20 +00:00
perry
639e2af40a
aprint_normal's for the "(slowidle)" and bios management messages
2006-06-12 16:42:05 +00:00
perry
42d7bd62c9
Always print out if slowidle, bios mgmt, etc. are on. It is better
...
that users have more information rather than less to tell us when we
are asking them for dmesgs for debugging purposes
2006-06-12 16:39:38 +00:00
perry
34440af2fc
ANSIfy function decls
2006-06-12 15:56:04 +00:00
tsutsui
5c40f381f5
Account ISA interrupts by evcnt(9)
2006-06-12 15:39:01 +00:00
tsutsui
0f6618f084
- rename struct intrhand -> struct isa_intrhand
...
- remove unused ih_what member
2006-06-12 15:24:31 +00:00
tsutsui
ac30b81a3c
Remove a declaration of nonexistent function.
2006-06-12 15:06:32 +00:00
tsutsui
8ce1487a46
Move arcsisabr.c from arc/isa to arc/dti because it's DescStation specific.
2006-06-12 15:04:40 +00:00
he
9c72169b1f
Correct mistakes I made when getting rid of lvalue casts.
2006-06-11 08:35:00 +00:00
he
34155cf541
Correct a mistake I introduced when getting rid of lvalue casts.
2006-06-11 08:29:03 +00:00
tsutsui
114eee6487
Check whether the specified interrupt handler is valid before referring it.
2006-06-11 06:34:52 +00:00
tsutsui
f6e0502337
- use CPUFLAGS rather than CFLAGS/AFLAGS
...
- specify "-march=r4000 -mabi=32" rather than -mips2
2006-06-11 05:03:20 +00:00
kardel
fcd5496328
Don't pick TSC by default on systems the have ENHANCED_SPEEDSTEP
...
compiled in. Many TSC's out there are sensitive to cpu frequency
changes. On these platforms we need to use other fixed frequency
timers (e. g. ACPI_PM_TIMER). Maybe we should add detection code
here whether TSC is sensible to cpu frequency changes.
2006-06-10 20:50:02 +00:00
tsutsui
8ff2abc2ad
space nits.
2006-06-10 12:35:01 +00:00
tsutsui
261274d592
Put newline if there is no input on Boot: prompt.
2006-06-10 07:49:29 +00:00
rjs
920cada8e2
Add opt_multiprocessor.h.
2006-06-10 06:38:07 +00:00
aymeric
11fb090059
in the softintr-with-si_callbacks framework, don't use add_sicallback()
...
everytime softintr_schedule() is called. They don't have the same semantics
when called multiple times before the callback is triggered.
Should avoid huge numbers of si_callbacks being created when a machine is
overloaded.
XXX the fix certainly applies to the atari port, too.
2006-06-09 21:29:39 +00:00
gdamore
a8d4d1e86c
Add AR531X_SYSREG_WDOG_TIMER register. (Forgot to commit this earlier.)
2006-06-09 18:35:42 +00:00
tsutsui
e684286988
Fix a botch on ANSIfy.
2006-06-09 18:11:58 +00:00
garbled
76847dcb92
Completely rework how we look up PCI interrupts on prep:
...
1) Rather than build an array of the pci->intr mappings, build a proplib
tree.
2) add a SIMPLEQ of device properties to the pci_chipset_tag to hold the
proplib trees of each bus.
3) Move the interrupt routing code from pci_conf_interrupt to pci_map_intr()
4) Deal properly with non-native PCI bridge chips that are not recognized
by the prep firmware, and therefore are not noted in the residual data.
The major win of this restructure is #4 . Hopefully I haven't broken
anything. Tested on a 7248-100, 7043-140 and 7024-E20.
2006-06-09 01:19:10 +00:00
nonaka
a1a022c748
Added more register define.
2006-06-08 23:27:47 +00:00
gdamore
c76dd4fa65
KNR->KNF. :-)
2006-06-08 22:47:26 +00:00
hubertf
b6eda27950
Rename XEN kernel config files to be more consistent:
...
INSTALL_XEN3_U -> INSTALL_XEN3_DOMU
INSTALL_XENU -> INSTALL_XEN2_DOMU
XEN0 -> XEN2_DOM0
XEN3_U -> XEN3_DOMU
XENU -> XEN2_DOMU
OK'd by bouyer@
2006-06-08 22:17:07 +00:00
martin
d8c7f94e0e
Implement bus_space_*_stream_* methods for sgimips - so that we can use the
...
atheros wlan driver. Thanks to Izumi Tsutsui for lots of input. All errors,
as usualy, are mine though.
2006-06-08 19:29:16 +00:00
he
bc5f506d49
Get rid of another instance of an lvalue cast.
2006-06-08 08:18:13 +00:00
he
6f8829a0d2
Get rid of lvalue casts by either using an extra temporary variable
...
or by using the appropriate casts in the first place.
2006-06-08 07:03:11 +00:00
gdamore
391d67720b
Add support for AR5312 on-chip watchdog.
...
While we're here, fix mainbus so that mainbus doesn't complain about
unconfigured devices, and use the *atheros* mainbus instead of alchemy (doh!)
2006-06-08 06:15:59 +00:00
kardel
e11bb150ed
avoid shadowing time while it still exists
2006-06-07 23:22:52 +00:00
kardel
d377d3f58a
no timecounters yet - provide a local types.h
2006-06-07 22:45:21 +00:00
kardel
9af3ab6763
add timecounter support (from branch simonb-timecounters)
2006-06-07 22:41:09 +00:00
kardel
09b51ec920
convert to timecounters (from branch simonb-timecounters)
2006-06-07 22:37:14 +00:00
he
d3056ebc9a
Get rid of an instance of lvalue casts by using a pair of helper vars.
2006-06-07 11:29:56 +00:00