Commit Graph

81743 Commits

Author SHA1 Message Date
explorer
02018a0856 formatting nit, newline, print device name 2006-06-21 21:09:36 +00:00
explorer
b76f23191b Actually set amdpm_timecounter.tc_priv before using it later. 2006-06-21 20:16:35 +00:00
garbled
4c0cfa49ad Attach the pnpbus prior to attaching the pci bus on the prep. This
should allow us to probe for both pnp-attached devices and isa-attached
devices while preferring the pnpbus attachment point.
2006-06-21 20:08:11 +00:00
jmcneill
c6b709de73 Call pci_intr_fixup on resume if options PCI_INTR_FIXUP is enabled. Solves
interrupt sharing issues on my Vaio PCG-Z505LEK after a suspend/resume
cycle.
2006-06-21 18:12:47 +00:00
jmcneill
287d6c5cf2 Allow pci_intr_fixup() to be called more than once. 2006-06-21 18:10:51 +00:00
drochner
c14d23ac86 First cut on an implementation of an ACPI power management counter
backend for timecounters.
Due to known bugs in some chipsets, always read until we get 3 successive
samples which are monotonic, as FreeBSD does in its "safe" variant.
This can be refined later, either by chipset quirks or by a test (as
FreeBSD does).
2006-06-21 17:47:23 +00:00
drochner
9b00231778 zero-init callback_head by memset(). code is 12 bytes shorter 2006-06-21 17:16:00 +00:00
drochner
f7c7c95eb6 make some bluetooth devices just devices, not interface attributes 2006-06-21 17:14:13 +00:00
christos
ece76dd170 Don't leak memory on success. Allocate only the type of struct that we'll
need for efficiency.
2006-06-21 13:46:17 +00:00
yamt
300d4b1ed6 bump default so_snd.sb_lowat to increase chance to use loaning.
the idea to tweak the watermark from Jonathan Stone.
reviewed by Bill Studenmund.
2006-06-21 12:55:12 +00:00
rjs
74327480d3 Rename shadowing time variable. 2006-06-21 00:02:26 +00:00
jmcneill
92a6d96206 Regen. 2006-06-20 22:37:14 +00:00
jmcneill
93305d7b62 Make resetting the video BIOS in the ACPI wakecode optional. It can be
configured via sysctl machdep.acpi_vbios_reset. Defaults to 1 -- reset vbios
on resume.
2006-06-20 22:36:58 +00:00
drochner
5fea743b13 add license texts (public domain for hw header, minimal BSD for sw)
so that this stuff can be used by others
2006-06-20 20:30:22 +00:00
is
d6a3b8fecd Fix typo in comment 2006-06-20 19:57:32 +00:00
garbled
cb76e8b6d7 Update install WRT recent clock changes, and break INSTALL into INSTALL
and INSTALL_SMALL.  Since floppy images have to fit on one floppy, we
have to really cut down on the drivers on that image, but people
netbooting don't have that problem, so they deserve a more featured
kernel to install with. (namely one with raid support and more ethernet
drivers)
2006-06-20 17:29:07 +00:00
jmcneill
52f7cdcc1f Hook the lid switch, sleep button, and hibernate button into sysmon. This
enables special Fn keys on Sony Vaio laptops.
2006-06-20 15:35:11 +00:00
gdamore
1c8dd20510 Use portable | cat 1>&2 instead of > /dev/stderr. This allows this script
to work, and supports building on Solaris 10.

Reviewed/approved by jlam@.
2006-06-20 15:35:03 +00:00
skrll
86bff00eef Enable installation of ia64 includes - mostly from cherry. 2006-06-20 15:26:19 +00:00
perry
97da3b129c Power hook for ath pci front end.
Written and tested by George Michaelson [ggm at apnic.net]
2006-06-20 14:38:34 +00:00
oki
aab3cbfbad Added saemul_pecoff structure, and (hope) work again w/ pthread. 2006-06-20 14:11:56 +00:00
cube
8b8d583b02 When we consume a resource definition from _PRS, advance to the next one.
Otherwise, if there are two resources definitions of the same type in _CRS,
the same one from _PRS will be used twice, which of course leads to errors.

Note:  _PRS is Possible Resources Set
       _CRS is Current Resources Set

XXX acpi_allocate_resources is still very weak, e.g. it completely ignores
    StartDependentFn entries which are kind of a switch.  But at least it's
    slightly better that way.

Tested by jmcneill@.
2006-06-20 12:31:19 +00:00
tron
a0d2802c69 Make this compile again. 2006-06-20 09:17:14 +00:00
garbled
1efe96e909 Basic prep timecounter support. This greatly increases the stability of
ntp on my 7248, however, my 7043-140 is still a bit flaky.  I suspect the
only way to fix the 7043 is going to be writing a timecounter driver for
the 8254 present on these machines.  Either way, this makes some of the
machines better, and the other machines are still about the same as they
were before, so it's a net gain for the port.
2006-06-20 05:49:09 +00:00
jdc
4e27372d03 Add support to the 2nd stage boot loader for booting from RAID
partitions.  We do this by checking the NetBSD label to see if the
boot partition is of type RAID.  If so, we offset reads from the
disk so that the kernel image can be read.

Note that with this code, sun4 machines (with PROM monitor) will only
boot from RAID if the RAID partition is the first one on the disk.

Tested on a SPARCstation 20, a SPARCstation 2 and a 4/330.
2006-06-20 05:41:59 +00:00
christos
18b73e414c Don't allocate too much stuff on the stack. 2006-06-20 03:22:12 +00:00
christos
e6ea8fe642 Don't allocate too much stuff on the stack 2006-06-20 03:21:30 +00:00
christos
709b2e6f55 don't allocate too much stuff on the stack. 2006-06-20 03:20:44 +00:00
christos
8dc1cf5155 PR/33445: Brian Buhrow: Fix a number of problems with the pdcsata driver:
> The driver for the family of Promise SATA controllers,
> /usr/src/sys/dev/pci/pdcsata.c is not very robust when it comes to handling
> transient drive errors, or interrupt hickups when the card is under load.
> Worse, my experience seems to indicate, and the Linux driver confirms,
> that these cards tend to fall over rather frequently during high load
> operations or if drives unexpectedly reset or go to sleep.  Symptoms
> include interupt timeouts during heavy load, the inability to reset drives
> if they go to sleep, and a failure of the card to generate interrupts at
> all if the interrupt load gets too high.
2006-06-20 02:39:58 +00:00
jmcneill
1404a243f2 Add powerhook for wm(4), from George Michaelson <ggm AT apnic DOT net> 2006-06-20 01:16:23 +00:00
gdamore
d106438030 Make include of opt_bluetooth.h unconditional. 2006-06-19 22:38:55 +00:00
christos
89826912b8 Add another rogue card. 2006-06-19 21:53:57 +00:00
rpaulo
6c7e5e5535 Enable altq for macppc. 2006-06-19 21:36:56 +00:00
rpaulo
700760bd47 Add ALTQ_PRIQ. 2006-06-19 20:40:48 +00:00
gdamore
abf73663d1 Regen pcmciadevs. Sorry. 2006-06-19 16:44:24 +00:00
gdamore
a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
jmcneill
052a8ad2ad Restore PCI configuration space on resume. 2006-06-19 13:56:29 +00:00
jmcneill
3e47be4df9 Restore yds(4) state on resume. 2006-06-19 13:55:40 +00:00
jmcneill
bd22603476 Halt input/output on soft suspend if currently running, and restore them
on soft resume.
2006-06-19 10:19:08 +00:00
jmcneill
a3f69214b6 acpi_pci_fixup didn't work as well as I had hoped; don't bother for now. 2006-06-19 10:18:08 +00:00
jmcneill
3c27eb63b5 cube@ says that acpi_pci_fixup() only writes in devices interrupt line
registers, so restore the PCI-ISA bridge IRQ routing here again.
2006-06-19 10:08:16 +00:00
hannken
835f09ae96 db_stack_trace_print(): Enable backtrace with pid argument.
Approved by: Martin Husemann <martin@netbsd.org>
2006-06-19 08:44:45 +00:00
jmcneill
6df1267b6f Enable interrupts in the error path also. 2006-06-19 02:33:19 +00:00
jmcneill
3aa64055a0 Fixup PCI interrupt routing using ACPI tables on return from S3 sleep.
Requires options PCI_INTR_FIXUP in your kernel.
2006-06-19 02:32:12 +00:00
jmcneill
dda9d480db Don't try to fixup PCI interrupt routing here; we're going to use ACPI to
do this for us instead. This prevents us from having to write chipset
specific support -- yay!
2006-06-19 02:30:35 +00:00
chap
2c3d85cc29 Not related to chap-midi branch; corrects two compilation errors induced
by a stack-police commit to the HEAD.  (Is this why so many comments about
catching up with -current say "here we go again"?)
2006-06-18 23:15:33 +00:00
christos
1c541a0edd Regen 2006-06-18 21:32:50 +00:00
christos
8b28dc1494 PR/33761: dieter roelants: NetBSD doesn't recognize a RealTek 8168B nic 2006-06-18 21:32:24 +00:00
christos
fcad4273ae PR/33763: dieter roelants: Realtek 8168B doesn't function. Don't align
for i386/x86_64. From FreeBSD.
2006-06-18 21:29:48 +00:00
uwe
bf745482a4 Hide struct bintime and pertinent inline functions under #ifdenf _KERNEL.
This code is not intended to be visible by the userland anyway, and it
also triggers a bug in SPARC's gcc 3.3.* that causes bootxx to explode
beyond its size limit (gcc emits unused reference to __muldi3).
2006-06-18 21:09:24 +00:00