Commit Graph

181876 Commits

Author SHA1 Message Date
cegger
77578bbc3a make this build w/o SIISATA_DEBUG 2009-06-17 19:12:48 +00:00
tsutsui
a36955c23e Unwrap not so long lines. 2009-06-17 15:43:16 +00:00
tsutsui
a86f73dc93 - no need to use device_parent() because device_t parent is passed
via config_attach(9)
- use device_is_a() rather than strcmp() for readability
2009-06-17 15:42:00 +00:00
njoly
3152f584bd Regen for sendmsg/recvmsg definitions update. 2009-06-17 14:20:08 +00:00
njoly
f50c7f6eb2 Add a new linux_msghdr structure, as its size differs on 64bit archs.
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
2009-06-17 14:18:51 +00:00
skrll
9820325bb1 Remove incorrect KASSERT.
footbridge_intr_calculate_masks is called multiple times and the KASSERT
isn't valid in (at least) the first call.
2009-06-17 06:27:05 +00:00
jakllsch
f38e8286ac A few changes for siisata(4):
- Support detachment.  From KIYOHARA Takashi.
 - Add PCI detachment functionality (albeit not very interesting when
   the bus can not yet be rescanned).
 - Rework interrupt handlers to reduce near-duplicate code.
   Borrowed from ahcisata(4).
 - Attempt to make polled I/O work. Untested.
 - Fix formatting of some messages.
 - For always-polled commands, disable interrupt
   at slot level rather than port level.
 - Instead of busy-waiting indefinitely for completion of some commands
   move on after 31 seconds. Use cv_timedwait(9) instead of DELAY(9).
 - Use abstracted SATA FIS code.
 - Enable use of disks that don't respond with the standard signature.
2009-06-17 04:37:57 +00:00
jakllsch
da65bf0f42 ahcisata now uses the common FIS code, register this dependency. 2009-06-17 04:02:59 +00:00
jakllsch
5ea7c61bc2 Use abstracted FIS code for ahcisata(4). Have the FIS code pre-zero the FIS. 2009-06-17 03:55:04 +00:00
jakllsch
e5e3060059 ahcisata(4) and siisata(4) use similar SATA FIS functions, share them. 2009-06-17 03:07:51 +00:00
njoly
cb90fdddc4 Add LINUX_CMSG_{SPACE,LEN} macros. Use then when calculating the
msg_controllen size, when converting the control message buffer from
native (previous version was missing the linux_cmsghdr size).
2009-06-16 23:17:02 +00:00
njoly
83618982c2 For linux cmsg header copyout, use the linux structure size, not the
native one.
2009-06-16 22:56:49 +00:00
christos
fb04944064 add fpurge; needed by awk. 2009-06-16 22:35:34 +00:00
bouyer
3ac2dfe9bf Split mc146818-related functions from clock.c into rtc.c.
Call rtc_set_ymdhms() from xen/xen/clock.c:xen_rtc_set() for xen3 dom0
kernels as the Xen3 hypervisor doesn't write the new date/time to the CMOS
by itself.
Now a XEN3_DOM0 kernel properly updates the CMOS time.
2009-06-16 21:05:33 +00:00
dyoung
7fdb86195d Use device_t instead of device_ptr_t. Stop using USB_MATCH() and
USB_ATTACH().
2009-06-16 19:42:44 +00:00
njoly
405a83b592 Make compat linux sendmsg/recvmsg output msghdr and control messages
buffers with ktrace(1), just like the native functions.
2009-06-16 15:56:10 +00:00
christos
94e9d9b7f6 fix EOF/-1 portability. 2009-06-16 13:56:09 +00:00
martin
14c9b3749d Actually use the new (non-shortcut) functions for SHA224 2009-06-16 11:15:29 +00:00
cegger
18130206e3 - use <sys/bus.h> and <sys/cpu.h>
- add reference to family11h documentation
- add reference to AMD K8 Errata #141
2009-06-16 07:34:40 +00:00
sjg
39bb2e98a1 Child of vfork() must not alter the state of parent.
There is no need to touch the state of vars in child anyway.
Change 2nd arg to Var_Export1() to indicate if we are the parent or child,
and only set flags in the parent.
2009-06-16 05:44:06 +00:00
mrg
2fd2ea3eb2 build the swrast_setup code, too. 2009-06-16 05:21:58 +00:00
minskim
bea661fe98 Reduce diff with OpenBSD. No functional change. 2009-06-16 05:16:52 +00:00
mrg
3aabb85acc be sure to link in the swrast_setup code, too 2009-06-16 05:16:12 +00:00
minskim
8221d4ac16 Reduce diff with OpenBSD. No functional change. 2009-06-16 05:15:41 +00:00
minskim
da9817918e Reduce diff with OpenBSD by deleting whitespace. 2009-06-16 02:18:07 +00:00
mrg
66feaa8daf - build and install swrast_dri.so
- don't force linking dri_util.c into swrast_dri.so
- fix the source lists in libGL/OSmesa makefiles
- unobsolete the symbols/pc keymap and 7x14-KOI8-R.pcf.gz font

XXX the libGL/OSmesa makefiles could use some reorg.  there
XXX are a bunch of duplicated items.
2009-06-16 00:26:10 +00:00
njoly
21489570f0 Make netbsd32 sendmsg(2), do not use an uninitialised value for
fetching iovec structures.
While here, sync recvmsg(2) to avoid some unneeded casts.
2009-06-15 22:59:53 +00:00
bouyer
dbd6b2dcbf Implement DIOCGDISKINFO for xbd disk driver. 2009-06-15 21:11:24 +00:00
christos
efdd16fa99 <= 2, from jukka salmi 2009-06-15 20:09:36 +00:00
cegger
1fd72d6afc Add quirk for SB600/SB700 chipsets to workaround freeze in USB subsystem. 2009-06-15 12:58:24 +00:00
wiz
f362df9bd8 Use Dv for ENVSYS_*. 2009-06-15 12:21:33 +00:00
cegger
7ed6826c06 Apply hw workaround required for all SB600 revisions and SB700 revisions
A12 and A13 to avoid USB subsystem hang symptom. The USB subsystem hang
symptom is observed when the system has multiple USB devices connected to it
or one USB device is often re-connected. In some cases a USB hub may be
required to observe this symptom.

This patch works around the problem by correcting the internal register setting
that will help by changing the behavior of the internal logic to avoid the
USB subsystem hang issue. The change in the behavior of the logic does not
impact the normal operation of the USB subsystem.

This fix has been discussed, developped, reviewed, polished up
and tested on current-users by several people. Thread starts at:
http://mail-index.netbsd.org/current-users/2009/05/17/msg009460.html
2009-06-15 09:18:45 +00:00
joerg
e4b9854077 Update to pkg_install-20090610:
Improve diagnostic of the license code.
2009-06-14 23:30:57 +00:00
tonnerre
c08078c2c3 Restore the good old UNIX behavior of root password changing: only root
may change the root password.

(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)
2009-06-14 23:23:54 +00:00
rjs
35a0849703 Fix CVS header. 2009-06-14 23:20:35 +00:00
pgoyette
9310b4d9c9 Clarify usage of the function members in struct sysmon_envsys and note
that they're optional.
2009-06-14 23:09:55 +00:00
wiz
2eb8ed9d33 Drop trailing whitespace. 2009-06-14 22:37:43 +00:00
yamt
b45868677f bump the kernel version to 5.99.14 for the vm_anon change. 2009-06-14 21:37:06 +00:00
yamt
3685fcc8e8 change the order of members of vm_anon for better packing. 2009-06-14 21:36:03 +00:00
christos
7d8bcc8fa4 makedir for real this time. 2009-06-14 21:34:15 +00:00
haad
44141aa6ee Remove bogus warn, which was printed when DIOCGDISKINFO failed. 2009-06-14 21:06:18 +00:00
christos
ba7ea1e3fb purge/flush 0,1,2 since we did not open them, we should not be closing them.
s/EOF/-1/ as the documentation for fclose/pclose states.
2009-06-14 21:05:40 +00:00
christos
cf38d7e34a Use makedir, from M. Levinson. 2009-06-14 20:01:04 +00:00
pgoyette
c1af07659e Update {get,set}_limits() routines. 2009-06-14 19:44:46 +00:00
pgoyette
45f4717820 Ooops - {get,set}_limits() need to be sensor-specific. Pass an extra
argument to them to identify the individual sensor being processed.
2009-06-14 19:43:12 +00:00
joerg
a44a031cb3 Don't take short cuts and use the SHA224 functions to compute SHA224.
At least for Final it makes a difference in some situation.
2009-06-14 14:18:35 +00:00
martin
cd4c43c910 Fix copy&paste errors 2009-06-14 14:04:07 +00:00
christos
3b863a2f5d absolute paths are not allowed here. from Anon Ymous 2009-06-14 13:18:02 +00:00
kardel
a888100516 Make PPS work with fast time counters (> 2GHz)
by making the pps count time stamp and the update
time stamp u_int64.
The time delta between two PPS events can now
be correctly calculated avoiding any unaccounted
for wraps with 32-bit counters.
2009-06-14 13:16:32 +00:00
cegger
051c4248a9 use __arraycount 2009-06-14 06:24:14 +00:00