Commit Graph

81989 Commits

Author SHA1 Message Date
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
drochner
665742bb91 remove the "name" element from the i2cbus attach args, that's what
interface attributes are good for
2006-06-26 18:19:40 +00:00
xtraeme
aa32e3a36b Add support for SIS 660/760 IDE Controllers and SIS 181/182
SATA Controllers (from obsd).
2006-06-26 18:19:08 +00:00
xtraeme
c5161d5850 regen 2006-06-26 18:16:23 +00:00
xtraeme
75619f2ba3 Add SIS 660, 760, 761 IDE Controllers and SIS 181/182 SATA controllers
(from obsd).
2006-06-26 18:15:44 +00:00
xtraeme
36f7e0755d Add missing __KERNEL_RCSID() 2006-06-26 17:54:06 +00:00
xtraeme
920e0164f7 Add support for PDC20775 and PDC40518. 2006-06-26 17:45:39 +00:00
xtraeme
4763d17e4a regen 2006-06-26 17:41:27 +00:00
xtraeme
6e16c09f9d Add PROMISE PDC20775 and PDC40718 SATA controllers (from obsd). 2006-06-26 17:40:50 +00:00
drochner
996322f640 oops, need to commit the register definition for PM mapping too 2006-06-26 17:33:40 +00:00
drochner
cbf845a55e -make sure it is a PIIX4 before accessing counter stuff
(there might be usable registers on 440mx and that ATI thing too,
  but that needs to be checked/tested)
-make sure the I/O access to the power management stuff was enabled
 by the BIOS before trying to map/access stuff
-most PIIX4s have a bug in the timer latch which causes jitter or worse
 if it is read naively - check the revision
-use common code in dev/ic/acpipmtimer.c
2006-06-26 17:17:20 +00:00
kiyohara
409c2af88f Add lmtemp(4). 2006-06-26 16:20:50 +00:00
drochner
eff818776d add some common code to support the ACPI power management timer
independly of ACPI
2006-06-26 16:13:21 +00:00
christos
ff147f9d5b define PC_ADVANCE to avoid a LHS cast which makes gcc4 unhappy.
From Kurt Schreiner
2006-06-26 14:11:29 +00:00
drochner
3ce3b9b485 test the PM timer for glitches (using the algorithm from FreeBSD)
and use a single read if the timer looks good,
patch from Juan RP, with minor simplification by me
2006-06-26 12:29:36 +00:00
kent
14db0438ab * custom mixer table for ALC880
* remove useless mixers of ALC882
2006-06-26 11:06:01 +00:00
yamt
ffa1c23e58 fix VM_BESTFIT. 2006-06-26 10:23:20 +00:00
yamt
9595f19850 wrap long lines. 2006-06-26 10:21:59 +00:00
yamt
a3b2d62857 sa_stackused, sa_setstackfree: share some common code. 2006-06-26 10:21:34 +00:00
manu
0a52064ba3 Do not implement exit_group() the right way on platforms that do not
define LINUX_NPTL yet, that cause firefox-bin to fail.
2006-06-26 07:42:00 +00:00
christos
0279cf0176 add a missing dependency. 2006-06-25 22:39:51 +00:00
christos
29c1a4c22e GCC4 fixes from Mike Pumford 2006-06-25 21:32:39 +00:00
bouyer
9e9d09bf73 Use the right test for ring full condition. Avoid an infinite loop when the
ring is full (because the domU is in ddb for example).
2006-06-25 19:46:52 +00:00
bouyer
58af96f414 Don't loop forever if we receive a packet while the interface is down. 2006-06-25 18:34:09 +00:00
bouyer
65918da968 DTRT when the number of grants to map or unmap is more than one. 2006-06-25 18:03:49 +00:00
tsutsui
1cf7251d79 - use (uint8_t *) for scsi buffers
- u_char -> uint8_t for byte data
- use proper type variable
2006-06-25 17:40:14 +00:00
tsutsui
c06815799e Use (uint8_t *) to specify buffers for hpib xfers. 2006-06-25 17:37:43 +00:00
tsutsui
5845cc2e3c Fix unsigned/signed mismatch. 2006-06-25 17:35:12 +00:00
tsutsui
6d0b292e48 - move declaration for sc_table from samachdep.h to device.h
- include <lib/libsa/stand.h> from samachdep.h for struct fs_ops
- remove unneeded declarations from samachdep.h
2006-06-25 17:34:30 +00:00
tsutsui
eec8d4d1e5 Make some local functions static. 2006-06-25 16:52:01 +00:00
bouyer
2613e19eec Add a 'base' argument to xenbus_read_ul, so that we can read number is base
other than 10.
2006-06-25 16:46:59 +00:00
tsutsui
0aa05e92ff Remove unused struct abus stuff. 2006-06-25 16:46:15 +00:00
tsutsui
d71cfc62f0 Make some local functions static. 2006-06-25 16:44:02 +00:00
tsutsui
6e1a8fe413 - make a local variable static
- remove struct user dumppcb, which is declared in mips_machdep.c
2006-06-25 16:29:14 +00:00
manu
ce7e36a5a9 Regen 2006-06-25 16:16:52 +00:00
manu
b7432513dc - Complete exit_group() implementation. We now maintain a list of Linux
threads in a processes and kill them properly. The code is a bit too
complicated, but I could not find a simplier way of dealing with it

- Change getpid() and getppid() semantics to match what Linux does,
and implement gettid(). In the Linux kernel, threads are implemnted
as plain old processes. A thread group is just a set of processes,
with the parent called leader. Thread ID, which are returned by gettid(),
are just the PID of the plain old processes, and getpid() returns the
PID of the thread group leader.

- Remove struct linux32_emuldata. COMPAT_LINUX32 uses a lot of COMPAT_LINUX
code, where a struct linux_emuldata is assumed. By having distinct emuldata
structure with different sizes and layouts, we caused kernel memory
corruptions.

- Fix setprioriry() and getpriority()

Thanks to Nicolas Joly for tracking down the problem and providing me the
hardware to fix them.
2006-06-25 16:15:39 +00:00
tsutsui
82f68c0092 Rename arc_trap.c to interrupt.c, which derived from ancient pica_trap.c
but currently contains only interrupt stuff. Ok'ed by soda.
2006-06-25 16:11:41 +00:00
bouyer
22247e56e0 Adapt for new xen_shm_* signatures.
While here add more xenbus_dev_fatal() calls for some failure cases.
2006-06-25 15:20:39 +00:00
bouyer
b063155744 Allow xen_shm_map() to map multiple grants in a contigous virtual address
space.
While here garbage-collect unused xen_shm_vaddr2ma()
2006-06-25 15:18:53 +00:00
lukem
6e749ba167 Use ${TOOL_STAT} to get the size, instead of ls | tr | cut. 2006-06-25 15:01:00 +00:00
jmcneill
507a433a4e Make sure that a powerhook was successfully established before trying to
disestablish it on detach.
2006-06-25 14:49:49 +00:00
lukem
186054d0dd Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-25 14:49:32 +00:00
lukem
4c28e73199 Use -Wl,-Ttext,foo instead of -Ttext foo when using $(CC) 2006-06-25 14:35:18 +00:00
lukem
8c4a6c51bf whitespace consistency 2006-06-25 14:24:53 +00:00
tsutsui
45e77c51c9 XXX: Appease gcc4 -Wuninitialized warnings. 2006-06-25 14:19:56 +00:00
tsutsui
da091c39ed Fix "warning: matching constraint does not allow a register" on gcc4.
(I guess constraints "0-9" are valid only for register operands, right?)
2006-06-25 14:17:40 +00:00
tsutsui
0099b09a49 Remove unused extern variable declarations. Noticed by gcc4. 2006-06-25 14:14:18 +00:00
lukem
51c3e093dc Use LDFLAGS (with $(CC) syntax) instead of appending to LD. 2006-06-25 14:12:14 +00:00
kent
b2c67a5653 * disconnect a stream and audio converters on a halt of the stream
* enable S/PDIF for a digital audio converter when connecting
 a stream
* rename "inputs.usingdac" to "playback.mode", and
 "record.usingadc" to "record.mode"
* add S/PDIF output configuration to ALC882
2006-06-25 13:41:58 +00:00
lukem
9073aac5f2 Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-25 13:36:26 +00:00
kiyohara
383a50d6cd Supoort read/write word. 2006-06-25 13:32:16 +00:00
yamt
f374633f81 remove some unnecessary casts. 2006-06-25 08:13:28 +00:00
yamt
0fca5c447b move SA related pools to where they are used. make them static. 2006-06-25 08:12:54 +00:00
yamt
44c017beb2 sa_makeupcalls: don't leak kernel stack garbage to userland. 2006-06-25 08:12:10 +00:00
yamt
bf0859e932 netbsd32_sacopyout: don't leak kernel stack garbage to userland. 2006-06-25 08:11:06 +00:00
yamt
8308eb1f7a implement kmem_zalloc. 2006-06-25 08:10:04 +00:00
yamt
23fcb7c3d3 sa_makeupcalls: cleanup usage of sae_sacopyout. 2006-06-25 08:09:10 +00:00
yamt
d038c11b60 sa_makeupcalls: simplify code and fix an sau leak on error. 2006-06-25 08:08:13 +00:00
yamt
5df39bb5be sa_makeupcalls: don't allocate big structures on stack. 2006-06-25 08:05:36 +00:00
yamt
d447115889 make amap use kmem_alloc, rather than malloc.
(ie. make it use kernel_map, rather than kmem_map.)
kmem_map is more restricted than kernel_map,
and there's no point for amap to use it.
2006-06-25 08:03:46 +00:00
yamt
bc4977819f 1. implement solaris-like vmem. (still primitive, though)
2. implement solaris-like kmem_alloc/free api, using #1.
   (note: this implementation is backed by kernel_map, thus can't be
   used from interrupt context.)
2006-06-25 08:00:01 +00:00
yamt
8dc7b19627 add a comment on if_agrprivate. 2006-06-25 07:50:00 +00:00
yamt
6108244889 remove unused M_SA. 2006-06-25 07:46:39 +00:00
kent
6d02918db1 ALC260 & Fujitsu LOOX:
mute the internal speaker when the headphone is inserted, and
unmute the internal speaker when the headphone is pulled out.
2006-06-25 07:36:33 +00:00
kent
59dc5ba7f0 printf() -> DPRINTF(()) 2006-06-25 06:37:20 +00:00
kent
3bd12046d3 avoid infinite recursive call of azalia_rirb_kick_unsol_events() 2006-06-25 06:34:08 +00:00
mrg
f71386cb37 -fwritable-strings is not valid for GCC4. 2006-06-25 05:12:29 +00:00
mrg
404c14b93f apply -Wno-pointer-sign and -fno-strict-aliasing. 2006-06-25 05:11:42 +00:00
kent
19cf46b4ef handle unsolicited responses.
A codec can receive unsolicited responses by codec_t::unsol_event()
2006-06-25 05:05:51 +00:00
soren
6ced4fcba5 Regen. 2006-06-25 03:47:26 +00:00
soren
07b847aa9a Add quirk for the not quite standard PCI bus in Parallels Desktop for Mac. 2006-06-25 03:46:56 +00:00
perry
9c74364e5b Add a power hook for the com device. 2006-06-25 00:39:21 +00:00
tsarna
d0e9109021 fix typo: idicator -> indicator 2006-06-24 23:40:50 +00:00
christos
f36aa0cd37 PR/33815: Nicolas Joly: /emul/linux/proc/#/stat always report current
process status
2006-06-24 16:34:02 +00:00
perseant
1c57171fe3 Change LFCNWRAP{STOP,GO} to make them more suitable for snapshotting; in
particular, the caller can now choose whether to wait for the condition
to be met, and if the caller of LFCNWRAPSTOP dies or otherwise closes
the descriptor, the filesystem is started again.  Updated the ckckp
regression test to use the new semantics.

dump_lfs(8) now uses the fcntls to implement LFS-style snapshotting through
the -X flag, addressing PR#33457 albeit not using fss(4).  Fixed a couple
other problems with dump_lfs that manifested themselves during testing.
2006-06-24 05:28:54 +00:00
mrg
8075fe8705 don't put the bpendtsleep handy breakpoint in sun2 kernels as the
output asm includes it twice causing multiply-defined symbols.
2006-06-24 05:23:06 +00:00
gendalia
109f1d8570 Add yet another broken 160GB seagate drive. Mine. ST3160021A. 2006-06-24 04:49:40 +00:00
tsutsui
f2e4550a60 Implement separate statclock(9) handler which uses the MIPS3 CPU INT5
internal timer compare register. Based on hp300 and arm implementation.

This is enabled by options ENABLE_INT5_STATCLOCK, but disabled by default.
2006-06-24 04:00:21 +00:00
tsutsui
2a8a21a021 Misc minor cleanup for arc interrupt handlers:
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
  register in cpu_intr() to make CLKF_BASE() works
  properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
  to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
  spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers

okay'ed by soda.

Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
2006-06-24 03:50:38 +00:00
tsutsui
648df6ea96 Pass sed command path to asm2gas via environment
rather than arg. ok'ed by gdamore.
2006-06-24 03:28:42 +00:00
kent
8bbeab641c custom mixer table for CMI9880
PR#33787
2006-06-24 02:20:54 +00:00
kent
f6686d8a2d DAC&ADC group for CMI9880
PR#33787
2006-06-24 00:33:44 +00:00
kent
f7aa5ababf If the encoding of an audio converter is 0, refers
the audio function node.  CMI9880 0.2 has such ADCs.

PR#33787
2006-06-24 00:15:22 +00:00
christos
7173cfeec6 remove useless genop 2006-06-23 20:54:21 +00:00
bouyer
14349e5550 For internal types call kernfs_default_xread() directly, as no entry in
the splay tree has been added for these types. Fix kern/33797 by
Geoff C. Wing.
While here also fix writes the same way (probably broken for 2 years),
and properly implement KERNFS_XREAD.
The IPsec code could probably be moved out now, and use kernfs_alloctype().
2006-06-23 20:30:11 +00:00
drochner
9d26b198b5 remove dependency on "agr" to make "struct ifnet" independant of the
kernel configuration, avoids kernel/userland mismatches, ok by christos
2006-06-23 19:02:51 +00:00
bouyer
82722a8d91 Backout previous: of course the change
"Allow optional /kern regular files to have custom read methods..."
works, it's used by Xen.
2006-06-23 16:26:59 +00:00
drochner
99f30cd9d2 add a comment telling which structure members are zero-initialized,
as requested by YAMAMOTO Takashi
2006-06-23 16:17:23 +00:00
kent
f519fc40b7 add some constant macros for unsolicited response and jack sense 2006-06-23 15:49:28 +00:00
christos
c8ee2595ab PR/33797: Geoff C. Wing: kernfs files are not supplying information
Roll back the change:
    'Allow optional /kern regular files to have custom read methods...'
which does not work.
2006-06-23 14:59:40 +00:00
yamt
e408053d1b fix a simonb-timecounters regression.
the precision of getnanotime() is not suitable for file timestamps.
esp. when it's nfs-exported.

- introduce vfs_timestamp().
  (the name is from freebsd.  currently merely a wrapper of nanotime())
- for ufs-like filesystems, use it rather than getnanotime().

XXX check other filesystems.
2006-06-23 14:13:02 +00:00
garbled
17ca05a76f 1) Modify pnpbus attachment code to properly decode pnp memory range packets.
2) Modify pnpbus attachment code to record the chipid of the device if it
   has one.
3) Change the clock probes to use the chipid, rather than relying on
potentially untrustworthy subtype and interface.
4) Add decoding of memory ranges to the RESIDUAL_DUMP code.
5) Add a we@pnpbus device to allow netbooting and root device detection
from an IBM we ethernet.  (it will only work if your firmware detects it)
6) Because I moved the pnpbus probe to occur prior to pci and isa, it
screwed up the root device detection and firmware path building code.
Completely rewrite the fw-path detection code to deal with this.
2006-06-23 03:08:41 +00:00
christos
e07adf704d PR/33794: Arnaud Degroote: Wiconfig is broken in current. I broke it with
the previous set of stack changes.
2006-06-22 21:53:37 +00:00
jmcneill
242a0791bd Add timecounter support for Intel PIIX Power Management Controllers.
Ok kardel@.
2006-06-22 16:49:01 +00:00
jmcneill
f86d875a7a Add an 'uninit' callback to PCI ICU drivers. This allows (for example) the
PIIX support to release its mapping on the edge/level control registers.

Now that these are guaranteed to be unmapped, capture and restore the
registers in piixpcib(4)'s powerhook. The same will need to be done on a
per-chipset basis.

Concerns were raised about calling pci_intr_fixup on resume WRT hotplug
devices, so this has been removed.

Ok cube@.
2006-06-22 16:24:34 +00:00
jmcneill
58e47b4c68 Only call pci_intr_fixup if both PCI_INTR_FIXUP and PCIBIOS options are
defined.
2006-06-22 13:05:28 +00:00
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
uwe
59d7f20391 Do not instal net/if_pppvar.h, net/if_slvar.h and net/if_stripvar.h.
The former two are no longer necessary as slstats is no more
and pppstats now uses an ioctl instead of rummaging through kmem.
The latter has nothign interesting for the userland, but uses
struct bintime that I'm about to hide under #ifdef _KERNEL.

A bunch of remaining <net/if_*.h> headers is pretty useless to the
userland too, but ... someone else's yag to shave...
2006-06-18 21:02:16 +00:00
christos
097de97608 reset kbc as the comment said. from joerg. 2006-06-18 20:53:10 +00:00
scw
301e60300b Pull in <string.h> if !_KERNEL, otherwise gcc4 complains about no
prototype for memset(3) (in AUDIO_INITINFO()).
2006-06-18 20:45:09 +00:00
nonaka
3b9b5a75bb Added 'Low Voltage Intel Pentium M processor 1.30 GHz' entry. 2006-06-18 16:39:56 +00:00
rpaulo
656f536d09 Use IFQ_IS_EMPTY(). 2006-06-18 16:14:10 +00:00
rpaulo
7a69791e70 Remove IF_PREPEND() to comply with altq. I think the logic is safe to just
remove the macro call.
2006-06-18 15:44:49 +00:00
rpaulo
c545be67e3 When calling IF_DEQUEUE() check if the dequeued mbuf is NULL to comply
with altq.
2006-06-18 15:37:27 +00:00
xtraeme
0b27695a68 Fix AMD 766 PMC entry. 2006-06-18 10:34:34 +00:00
xtraeme
84989a2fad regen 2006-06-18 10:33:42 +00:00
xtraeme
06684d3b32 Add ALI M1533 PCI-ISA Bridge 2006-06-18 10:33:12 +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
1251317743 Jared asked me to commit the powerhooks for this 2006-06-18 02:25:18 +00:00
christos
63bbcb495a re-factor the pci powestate api. reviewed by gimpy 2006-06-17 23:34:26 +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
38d73745c0 Forgot to commit the register definition for PIIX_UDMATIM. 2006-06-17 17:45:52 +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
jmcneill
efd8b75c34 For Ricoh 5c47x class controllers, restore the "misc control" PCI config
register on resume.
2006-06-17 17:06:51 +00:00
jmcneill
5045be0e4d Restore IDE and UDMA timings on resume for the PIIX4. 2006-06-17 17:05:20 +00:00
jmcneill
7efa3ff635 Restore the device activity PCI configuration registers on resume. 2006-06-17 17:04:44 +00:00
xtraeme
be705fc9c7 Support for the 24/32bit timer in the AMD 768 Power Management
Controller, to try it use `sysctl -w kern.timecounter.hardware=amdpm`.

From OpenBSD.
2006-06-17 15:05:15 +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
xtraeme
4adbe74d71 s/SATA/Serial ATA/ 2006-06-17 08:10:17 +00:00
xtraeme
87cdb22404 Enable support for NVIDIA MCP04 and MCP55 IDE/SATA Controllers, tested
by rillig with MCP55.
2006-06-17 08:03:14 +00:00
yamt
7d3142aa6a - introduce vfs_composefh() and use it where appropriate.
- fix lock/unlock mismatch in sys_getfh.
2006-06-17 07:06:50 +00:00
yamt
7b37f4549b sysctl_security_setidcorename: don't allocate MAXPATHLEN bytes on stack. 2006-06-17 06:54:58 +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
msaitoh
134f8ab1f2 fix the MAC address of the second port of the 82571 2006-06-16 15:51:04 +00:00
kent
363d80df38 check return values of azalia_init_corb() and azalia_init_rirb()
a part of PR#33741
2006-06-16 12:16:58 +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
heinz
de1fde5e06 Regen (LSI SAS, parallel SCSI and FC devices). 2006-06-15 21:45:58 +00:00
heinz
df6be90af3 Added information about LSI's SAS, parallel SCSI and FC adapters (from LSI's
Linux driver package and http://pciids.sourceforge.net/).
2006-06-15 21:42:15 +00:00
reinoud
faf56850ba Regen due to addition of MosChip Semiconductors MCS7830 Ethernet adapter 2006-06-15 20:33:33 +00:00
reinoud
b541e8386a Add MosChip Semiconductor MCS 7830 Ethernet adaptor 2006-06-15 20:30:24 +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
jmcneill
66bdce4546 EXPERIMENTAL: Add sysctl for triggering ACPI sleep. This interface is not
stable, so do not depend on it!

    To trigger sleep:
        # sysctl -w machdep.sleep_state=<n>
    Where <n> is typically 1 (standby), 3 (suspend), or 4 (hibernate).
2006-06-15 18:05:08 +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
kent
1d63fe65d9 Fix a bug that AUDIO_MIXER_READ returns an incorrect
mixer_ctrl_t::un.value.num_channels in the case of the
combination of a mono pin and a stereo mixer.
2006-06-15 16:11:15 +00:00
kent
208b312076 support for a converter group of which members have
non-identical bits_rates.
2006-06-15 16:08:13 +00:00
mlelstv
30f5c7acb7 Correct timeout computation. Fixes kern/33740. 2006-06-15 15:42:42 +00:00
uwe
414eb19c42 Nothing in this file needs <sys/time.h> 2006-06-14 19:56:49 +00:00