Commit Graph

42672 Commits

Author SHA1 Message Date
xtraeme
0b27695a68 Fix AMD 766 PMC entry. 2006-06-18 10:34:34 +00:00
xtraeme
9552b18ed1 Match the following products:
* SIS 962 and SIS 963
* AMD 766 and AMD 768
* ALI M1533

... syncing the code with openbsd.
2006-06-18 09:57:37 +00:00
xtraeme
c8a267e9c8 Sync with openbsd and apply fix from mickey@openbsd rev 1.5:
"It seems that via has 7, not 4 pci interrupt lines.
this fixes unmapped interrupts on some via-based boards."
2006-06-18 09:55:11 +00:00
gdamore
ef3a65883d Fix to make this cross compile on Solaris. (Don't include sys/endian.h
if HAVE_NBTOOL_CONFIG_H is defined.)
2006-06-18 05:53:51 +00:00
gdamore
5b4951cdf4 Use TOOL_SED for asm2gas, which makes it possible to cross-compile this
on Solaris 10.  (Solaris 10's sed doesn't like the comment lines, and
also complains about too many commands in the input.)
2006-06-18 05:21:21 +00:00
christos
99d15da99a Don't dick with cr3. It pisses pmap.c off. 2006-06-17 20:14:26 +00:00
mrg
911a6956b3 add another GCC4 uninitialised variable warning. it only shows with -O3. 2006-06-17 19:00:03 +00:00
jmcneill
e1b3711024 More ACPI wakecode changes:
* Enable VBIOS hack by default
	* Beep while calling VBIOS, for debugging.
	* Fix a DIAGNOSTIC error in the sleep path.
	* Remove the erroneous mutex not locked error message.
2006-06-17 17:11:53 +00:00
simonb
62496a150d LCD and PCMCIA address info is chip-specific and not board-specific.
Remove them from here.
2006-06-17 14:42:54 +00:00
tsutsui
0d19f25f87 Fix typo and a function name in panic message. 2006-06-17 14:11:16 +00:00
tsutsui
0b8cd19c9e Remove extern from function declarations. 2006-06-17 14:10:28 +00:00
rjs
58b3f82903 Rename IPL_IMP to IPL_VM, needed for CardBus support. 2006-06-17 12:44:52 +00:00
tsutsui
e595d713a2 - strncpy -> strlcpy
- 16 -> sizeof(foo)
2006-06-16 23:56:58 +00:00
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