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
uwe
7132388a3f
Get strcpy prototype from libkern.h, not string.h
2006-06-14 19:46:46 +00:00
uwe
2931d193fd
G/c struct ofbus_softc. Last use (in sys/arch/powerpc/powerpc/ofw_machdep.c)
...
has perished long ago along with vestiges of dk_establish.
2006-06-14 19:42:34 +00:00
he
ab1ad64ac0
Make this file compile again by using the appropriate types, casts
...
and functions.
2006-06-14 14:18:44 +00:00
tsutsui
c41536fb3f
Call pcn_reset() in pcn_shutdown() so that my 7248 (prep) firmware
...
can netboot even after reboot without powercycle.
2006-06-14 13:30:35 +00:00
grant
b1dcde428f
regen.
2006-06-14 02:33:28 +00:00
grant
a2c28a5a0a
QLogic is the correct writing, not "Q Logic".
2006-06-14 02:33:01 +00:00
grant
ae05dda255
add QLogic QLA200 fibre channel card.
2006-06-14 02:32:38 +00:00
dyoung
5174aa84b6
The UID_MAX limit is not enforced by syscalls such as setreuid(2),
...
so I remove the assertion uid >= 0 && uid <= UID_MAX. This squashes
a bug where Quagga would panic my machine by passing a UID outside
the range [0, UID_MAX].
AFAICT, this restores the historical (pre-kauth) behavior.
It is likely that GIDs do not satisfy the assertion gid >= 0 &&
gid <= GID_MAX, so remove that, too.
Patch from elad.
2006-06-13 22:56:46 +00:00
he
fe98fdf977
Regenerate after fixing the getpriority syscall definition.
2006-06-13 22:24:34 +00:00
he
e100449f69
We need the argument structure for the getpriority syscall defined, so
...
change NOARGS to STD.
2006-06-13 22:23:03 +00:00
ginsbach
d05e0bc3e8
Add EAFNOSUPPORT as a possible error if the address family is not
...
supported. This adds further differentiation between which argument to
socket(2) caused the error. No longer are invalid domain (address family)
errors classified as ENOPROTOSUPPORT errors. This should make socket(2)
conform to current POSIX and X/Open standards. Fixes PR/33676.
2006-06-13 21:19:56 +00:00
rpaulo
f07f5178b6
Initialize the mixer delta value to 8 for the 1370 version. No
...
objections in tech-kern.
2006-06-13 21:03:04 +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
christos
9d7289ea69
change 20 to NZERO; pointed out by mrg.
2006-06-13 16:54:56 +00:00
skd
99e52fdeb8
include kauth.h
...
workaround a gcc4 warning.
2006-06-13 16:23:57 +00:00
riz
a06a21e5d3
Prototype for tvtohz() is no longer needed here.
2006-06-13 15:57:15 +00:00
riz
58d052216c
Remove implementation of tvtohz() - since the timecounters branch
...
was merged, this is now in sys/kern/kern_clock.c .
2006-06-13 15:43:04 +00:00
kent
39140597bf
* generic_mixer_default()
...
set the default pin direction depending on the pin's device, not color
2006-06-13 14:38:01 +00:00
kent
32d7370ad8
ALC882:
...
- add usingdac and usingadc
- remove alc882_init_widget() because it has no effect any more
2006-06-13 14:29:21 +00:00
kent
8b818d700b
- always prints the codec index in dmesg
...
- add missing \n
2006-06-13 14:20:09 +00:00
yamt
f7c7538921
use KAUTH_PROCESS_CANSEE rather than CURTAIN where appropriate.
2006-06-13 13:57:33 +00:00
yamt
f755e9e9b8
remove unnecessary arguments from kauth_authorize_process.
...
ie. make it similar to the one found in apple TN.
2006-06-13 13:56:50 +00:00
yamt
4602c1be73
sysctl_unpcblist: don't abuse kauth_authorize_process for non-process object.
2006-06-13 13:52:39 +00:00
yamt
c1e6396657
sysctl_kern_file, sysctl_kern_file2: don't abuse kauth_authorize_process
...
for non-process objects.
2006-06-13 13:52:06 +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
yamt
52e88e8188
sysctl_kern_file2: fix an indent.
2006-06-13 13:23:03 +00:00
yamt
9606b0accf
uvm_swapin: process -> lwp in a comment.
2006-06-13 13:22:06 +00:00
simonb
5e13eca2c0
tvtohz() compat function isn't needed now we have timecounters.
2006-06-13 03:58:12 +00:00
christos
c037525f2c
Don't allocate > 1K on the stack
2006-06-13 02:39:11 +00:00
christos
430ad9c2a9
don't allocate > 1K on the stack.
2006-06-13 02:31:28 +00:00
christos
5ed3dd2fe3
don't allocate > 1K on the stack.
2006-06-13 02:08:20 +00:00
christos
199372b21f
prevent uninitialized variable.
2006-06-13 01:59:59 +00:00
oster
8c090abdfc
Do the "don't allocate > 1K on the stack" thing for raidioctl().
2006-06-12 22:49:35 +00:00
christos
92d441e0ee
don't allocate > 1K on the stack.
2006-06-12 22:02:45 +00:00
christos
1ae0349e57
don't allocate chans on the stack.
2006-06-12 21:55:03 +00:00
christos
3291899659
Don't allocate wi_req on the stack.
2006-06-12 21:51:48 +00:00
christos
a3ce58a6e6
Don't use roundup(IEEE80211_CHAN_MAX, NBBY) which is wrong anyway
...
[correct would have been howmany(...), use IEEE80211_CHAN_BYTES,
which is used in the other ioctl method. While here s/u_char/u_int8_t/
for chanlist to match the rest of the uses.
2006-06-12 21:17:59 +00:00
christos
28bd7a84c0
Don't allocate > 1K on the stack.
2006-06-12 21:05:47 +00:00
christos
86c0f863d1
Don't allocate >1K on the stack.
2006-06-12 21:01:58 +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