Commit Graph

81672 Commits

Author SHA1 Message Date
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
hannken
442bf57d1c softdep_sync_metadata: If vp is a block device it may have new I/O requests
posted for it even if the vnode is locked. This will deadlock with wmesg
"softgetdbuf" if it gets a BMSAFEMAP dependency as here we have "bp == nbp"
and try to get a buffer we already own.

Approved by: Frank van der Linden <fvdl@netbsd.org>
2006-06-12 16:37:00 +00:00
kiyohara
19d35b3135 It necessary to mask to validate bits. 2006-06-12 16:07:33 +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
christos
67894004ec Don't allocate > 2K on the stack. 2006-06-12 01:25:05 +00:00
christos
48432186cb stack police: don't allocate statvfs on the stack. 2006-06-12 00:46:50 +00:00
christos
155721b1be don't allocate a crapload of struct's on the stack. Use a couple of unions
and use malloc for them.
2006-06-12 00:42:18 +00:00
christos
c0160ad4aa don't allocate statvfs on the stack. 2006-06-12 00:22:47 +00:00
christos
0c1391f078 remove ; from }; 2006-06-12 00:20:21 +00:00
christos
06595cb85e stack polics: Don't allocate 4K on the stack.
remove ; from };
2006-06-12 00:18:06 +00:00
christos
3f0deeffa7 stack police: don't allocate PAGE_SIZE bytes on the stack. 2006-06-12 00:07:24 +00:00
christos
1214d130c2 Always make partitions contiguous even if the mbr has gaps. From someone
who wants to remain anonymous.
2006-06-11 23:25:23 +00:00
xtraeme
c731b8e426 * Improve description for all sensors.
* Fix some voltage values.
* Do not print rfact+data values for sensors without any returned data.
2006-06-11 18:15:17 +00:00
christos
1a4c395597 Don't free subdevs on normal completion. The detach code needs it. 2006-06-11 16:00:08 +00:00
kent
a2aa9135f1 codec-specific mixer initialization for Realtek ALC882 2006-06-11 15:16:41 +00:00
kent
ba5e551515 fix audio_format allocation for recording 2006-06-11 12:18:00 +00:00
kent
fa89e6f87e support for multi-channel (>=3) recording with ALC880, ALC882, or STAC9221 2006-06-11 11:48:39 +00:00
bouyer
bdce881f0d Add entry for "Moxa Technologies, SmartIO CP104-V2/PCI". From Gert Doering
in kern/33566.
2006-06-11 11:22:35 +00:00
kardel
1276c3051e PR 33697: complete timecounter conversion 2006-06-11 09:26:04 +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
kent
7d2bcc7299 * azalia_codec_init_vtbl()
recognize the name of AD1983
* generic_codec_find_dac()
  check validity of a node in a connection list
* introduce MIXER_DELTA, and simplify the code with it
* codec-specific mixer initialization for STAC9220
2006-06-11 07:52:00 +00:00
kent
655c2002db If the codec supports for modem, print that we support for no modem
explicitly.
2006-06-11 07:45:18 +00:00
rjs
4ba88d2489 Add includes of opt_multiprocessor.h and opt_lockdebug.h where missing. 2006-06-11 07:32:18 +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
christos
9cfe87267e PR/33671: Nicolas Joly: Add a getpriority syscall to account for the fact
that the linux getpriority is off by 20.
2006-06-10 21:18:11 +00:00
christos
ee08f35b9a regen 2006-06-10 21:16:49 +00:00
christos
c02c268f6b linux getpriority is off-by-20 so use our own function.
From PR/33671: Nicolas Joly
2006-06-10 21:15:33 +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
msaitoh
bc1d1f7877 o i82573 doesn't support jumbo frame
o set PBA for i8257[123]
o set MULA when sc_type == i8257[123]
2006-06-10 14:26:52 +00:00
tsutsui
8ff2abc2ad space nits. 2006-06-10 12:35:01 +00:00
rpaulo
58459b2d06 KNF. 2006-06-10 12:29:39 +00:00
kardel
ced596e186 clarify time scale semantic issue 2006-06-10 11:42:07 +00:00
kardel
4eff7fe074 reference time.tv_sec in non timecounter case
missing conversion spotted by Geoff Wing
XXX This code need to be checked whether UTC time
is really the right abstraction. I suspect uptime
would be the correct time scale for measuring life times.
2006-06-10 11:30:37 +00:00
kardel
6aad29aa7b fix a missing conversion for a mono_time reference.
detected by Geoff Wing.
2006-06-10 11:12:09 +00:00
uebayasi
ee3581b772 KNF. 2006-06-10 08:11:47 +00:00
msaitoh
42a72ed2e5 fix compile error 2006-06-10 08:08:33 +00:00
msaitoh
ca1810089d Enable i82573!!!
TODO:
	add some code for FLASH
	fix phy stuff
2006-06-10 08:04:08 +00:00
msaitoh
ccf7001ac2 fix TX_COLLISION_DISTANCE_FDX and TX_COLLISION_DISTANCE_HDX (swapped).
add some register definitions (EERD, EEWR).
2006-06-10 08:01:31 +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
christos
d5ba7564d8 stack police: don't allocate statvfs on the stack. 2006-06-09 23:24:24 +00:00
kardel
54cd6fafa8 re-order initialization sequence to have real counters available during autoconfig 2006-06-09 22:47:56 +00:00
christos
f6ad6a2699 stack police: Fix the biggest offender with ~4K stack, by allocating the
buffer in the softc.
2006-06-09 21:58:57 +00:00
christos
7b128daa3b stack police: Introduce an opl_match function that uses malloc instead of
allocating ~2K of softc on the stack.
2006-06-09 21:55:33 +00:00
christos
d13a9159e3 stack police: don't allocate statvfs on the stack. 2006-06-09 21:41:14 +00:00
christos
f96931bf10 stack police: Don't allocate large buffers on the stack for I/O. Put the
buffer in the softc instead.
2006-06-09 21:34:19 +00:00
christos
de34bda8ec stack police: don't allocate usb_events on the stack, malloc them directly.
this saves stack and an extra copy.
2006-06-09 21:33:42 +00:00
christos
c10d68c29c stack police: Don't allocate 1k on the stack, only use malloc when we need to. 2006-06-09 21:33:01 +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
drochner
c87a7b61b9 fix obvious botch in radiotap header alignment (untested) 2006-06-09 19:17:46 +00:00
rpaulo
f5a468f537 Revert previous. Wrong way of doing things... 2006-06-09 19:13:17 +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
kent
a70f7f188d - print audio format only when the format is changed
- print the name of STAC9220 codec
2006-06-09 16:56:30 +00:00
kent
71842e07b1 shorten audio format message 2006-06-09 16:26: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
gdamore
ef3b8c3cc3 Print bus_addr_t using PRIx64 (casting to uint64_t), which fixes builds
on 32-bit sparc (which have 64-bit bus_addr_t, but only 32-bit pointers.)
2006-06-08 22:42:24 +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
simonb
dfeb2fa259 Unwrap a not-too-long line. 2006-06-08 21:04:16 +00:00
rpaulo
69ae4b1781 Bring the following change from OpenBSD:
Keep track of the average RSSI using an Exponential Moving Average (EMA).
  Use it to dynamically tune radio receive sensitivity.

  The idea is simple:
  - increase sensitivity when the RSSI is bad to optimize throughput on
    long distance to the AP, and
  - decrease sensitivity when the RSSI is good to reduce noise level and
    optimize throughput on short distance to the AP

  The EMA allows to smooth RSSI variations so we don't end up changing the
  sensitivity too frequently.  We check if it would be worth updating the
  sensitivity every one second.
  RSSI thresholds were taken from the Ralink Tech. Linux driver.
2006-06-08 20:56:41 +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
rjs
f001fdd86f Regen for Nokia CA42. 2006-06-08 17:57:14 +00:00
rjs
9ade422744 Add vendor id for Nokia.
Add product id for CA42 mobile phone cable.
2006-06-08 17:56:20 +00:00
drochner
698fb4fb6c make the public declaration of "hardclock_ticks" signed again; other
code (kernel timeout/callout) does comparisions with it
2006-06-08 17:23:11 +00:00