summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-01-05Remove dead code from #if 0: we do not have an ipsrcchk_rt anywhere else.Alexander Bluhm
from FreeBSD; ok henning@
2012-01-05Replace the hand-crafted queue for fragmented IPv6 packets with TAILQ.Alexander Bluhm
I forgot the header file containing struct ip6q in the last commit.
2012-01-05Replace the hand-crafted queue for fragmented IPv6 packets with TAILQ.Alexander Bluhm
ok henning@
2012-01-05C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.Mark Kettenis
ok beck@, guenther@, millert@, miod@
2012-01-05syncTheo de Raadt
2012-01-05new vertex device; Jakub TuD^MekTheo de Raadt
2012-01-05suspend/resume support for vr(4); from brynet@gmail.comTheo de Raadt
2012-01-05Prevent integer wrap-around in pmemrange.Ariane van der Steldt
Found by and original fix from Geoff Steckel. While here, switch the assert that prevents this from happening from DEBUG to DIAGNOSTIC. ok thib@, miod@
2012-01-04Make sure the types of INTPTR_MIN/MAX and UINTPTR_MIN/MAX match the type weMark Kettenis
use for intptr_t and uintptr_t. ok millert@, deraadt@
2012-01-04Fix use after free in cache_lookup() - found by PedroBob Beck
fix is to manipulate the name cache structures before potentially sleeping on a vn_lock(). This avoids the race of the ncp entry being recycled while we are asleep. run in snaps and on ftp.openbsd.org for months ok thib@
2012-01-04Add support for SiS 1183 SATA. From/tested by Loganaden Velvindron.Jonathan Gray
2012-01-04regenJonathan Gray
2012-01-04SiS 1183 SATA from Loganaden Velvindron, and add 1182 SATA while here.Jonathan Gray
2012-01-03To access the ifaddr of an in_ifaddr or in6_ifaddr struct, it isAlexander Bluhm
cleaner to access the first member via ia_ifa instead of casting. No binary change. ok henning@ krw@
2012-01-03When used with socket splicing, tcp_usrreq() might get called withAlexander Bluhm
a socket that has an inp but tp is NULL. The call stack for that is tcp_input() tcp_close() soisdisconnected() sorwakeup() somove() tcp_usrreq(PRU_RCVD). To avoid a NULL dereference, just return in that case. ok henning@
2012-01-03Instead of having two functions pf_free_fragment() and pf_remove_fragment()Alexander Bluhm
doing more or less the same, merge them into one. Just remove fragment entries from the queue in pf_join_fragment() before they are freed. Then pf_remove_fragment() is not needed anymore. ok henning@
2012-01-03C++11 is based on C99, so make sure __ISO_C_VISIBLE gets set to 1999 if theMark Kettenis
value of __cplusplus indicates C++11 support is turned on by the compiler. ok guenther@, millert@
2012-01-02Enable arcofi(4), tested on 705 by Tobias Ulmer.Miod Vallat
2012-01-02Do not advertize this device as full-duplex. While I believe the Siemens chipMiod Vallat
itself is, the FIFO engine around doesn't seem to be.
2012-01-02Use the correct multiplier for older SUNIX 406x 8-serial cards. ProblemStuart Henderson
reported and fix tested by sebastia@. naddy@ helped get the ordering right.
2012-01-02regenMark Kettenis
2012-01-02Add SiS 1184 RAID and 1185 AHCI, as found on the SiS 966 chipset.Mark Kettenis
From Loganaden Velvindron.
2012-01-01Improve/clean up sparc64 installboot:Joel Sing
- Use opendev() like we do for installboot on many other archs. - Use the term bootblock rather than prototype for the first-stage, since we install it verbatim. - Read the bootblock into a zeroed buffer rather than messing around with mmap() and zeroing the end of the space. - Make man page consistent with respect to the first-stage bootblock and second-stage boot program. ok kettenis@ jmc@ (for the man part)
2012-01-01copyright++Federico G. Schwindt
2011-12-31Implement a concatenating discipline for softraid.Joel Sing
Many thanks to Marco Peereboom for his assistance with testing and debugging. Thanks also to Josh Grosse and Chris Jackman for testing.
2011-12-31Add rsu(4) to the sgi GENERICs (but not the RAMDISKs as it requires firmwareMiod Vallat
files to operate); reported to work by Graeme Neilson (firstname, lolux dot net) on sgi@
2011-12-30I had the opportunity to glance at HP-UX's /etc/conf/graf/gr_98705.h, soMiod Vallat
after hours of tinkering with my frame buffer debugger, here comes color support for tvrx(4) - by making use of all overlay planes. Access to the regular planes remains a mystery, and seems to require a download of microcode into the board first. Still slightly better...
2011-12-30Fix encoding of DIAG instructions in the MFCPU_T and MTCPU_T macros. MTCPU_TMiod Vallat
was encoded as a read instruction, while MFCPU_T was encoded as a read-through-TH instruction, although the only uses of it concern registers read through CH. (You are not supposed to understand this, this is a dark corner of undocumented rotten PA-RISC bowels). Cache SID hashing will now correctly be disabled on PCXS, PCXT and PCXT' processors. Proper encoding from the old PA-RISC mklinux sources; tested on 720 (PCXS) and 715/75 (PCXT); ok kettenis@
2011-12-29Escape hardware-checksumming if interface is in a bridge, this isChristiano F. Haesbaert
already done for UDP/TCP/ICMP. This fixes a problem where checksumming would not be computed if you have a bridge with at least one interface with hardware checksumming and another without. Discussed with sthen@ and henning@, this is somewhat a temporary fix, we should not have these special bridge cases in ip_output, as Henning said, the bridge must behave. But for that to work we need to poke the bridge harder, this problem has been seen by at least two users at: http://marc.info/?l=openbsd-misc&m=132391433319512&w=2 http://marc.info/?l=openbsd-misc&m=132234363030132&w=2 I promised to work on a better diff :-). ok henning@ sthen@ mikeb@
2011-12-28Cleanup the metadata initialisation process - have sr_meta_init()Joel Sing
initialise both the volume and chunk metadata before the discipline specific sd_create() function is called. The sr_meta_init_complete() function is then called to complete the initialisation based on values provided by sd_create().
2011-12-28Avoid the use of an invalid disklabel by setting a DK_LABELVALID flagJoel Sing
if we correctly read and validated the disklabel. Always check that this flag is set before using the DUID from the disklabel. Discussed with deraadt@ ok krw@
2011-12-28An all-zero DUID is considered to be a blank DUID - ensure that we do notJoel Sing
generate one. ok krw@
2011-12-28The sparc64 installboot is for sparc64 only - remove all of the non-sparc64Joel Sing
related code. ok kettenis@
2011-12-27Instead of hand crafted code, use the macros TAILQ_FOREACH(_SAFE)Alexander Bluhm
and TAILQ_EMPTY for accessing the nd_defrouter list. No funtional change. ok stsp@
2011-12-26Add the missing ECX cpu flags from CPUID at 0x80000001.Christiano F. Haesbaert
This is all documented at: http://support.amd.com/us/Embedded_TechDocs/25481.pdf (page 20) http://www.intel.com/assets/pdf/appnote/241618.pdf (page 41) ok jsg@
2011-12-26Provide default set chunk state and set volume state functions whichJoel Sing
cover the no redundancy/no rebuild case. Use these for the AOE, crypto and RAID 0 disciplines.
2011-12-25Initialise discipline function pointers with defaults and only overrideJoel Sing
those that are needed by a specific discipline.
2011-12-25Move chunk state debugging code to a more useful location.Joel Sing
2011-12-25Fix the documented CAVEAT by forcing the TX gain to minus infinity whenMiod Vallat
the user asks to only keep the input source enabled, and remember this to keep reporting the previously configured volume values in mixerctl. While there, document the supported encodings and the supported mixer items in the manual page, and the fact that all output sources share the same volume (GX gain) setting.
2011-12-24Default to a much smaller input gain on the MIC line, to improve recordingMiod Vallat
quality. While there, use a better gain table.
2011-12-24Remove the ability to ptrace via procfs, as no one is using it, so fixingPhilip Guenthe
and extending it to support rthreads would be a waste of time. Also, don't show rthreads in the process listing in procfs. Reassurances that compat_linux doesn't need this from ajacoutot@ ok kettenis@
2011-12-24i386 has MD TCB, so add the #define. Not sure how I overlookedPhilip Guenthe
this for so long, but fixes SEGV on errno access with librthread. Apologies to jeremy@, todd@, robert@ and others for taking so long to track this down
2011-12-24Need <machine/pcb.h> for TSEG_GSPhilip Guenthe
2011-12-23Switch the Ricoh RU823 SD/MMC in SD2.0 mode (upon which it changes itselfMark Kettenis
into a Ricoh RU822 controller). Also switch the base clock to 50MHz as some SD/MMC cards don't work with the default 200MHz clock.
2011-12-23Use the generic PCI power management code instead of rolling our own.Mark Kettenis
2011-12-23Fix arcofi interrupt number by counting bits from the right side; still untestedMiod Vallat
2011-12-22Add 16-bit modes to arcofi(4). Big-endian signed is native, others require someMiod Vallat
bit or byte flipping. Trivial, and would have been part of the initial commit, had I not made the mistake of testing a big-endian chip with 16-bit audio data in little-endian format (``oops'').
2011-12-22Fix RFC reference sectionsperreault
spotted by bluhm@, ok yasuoka@
2011-12-21Work-in-progress driver for the HP ``Audio1'' device found on the HP 9000/425eMiod Vallat
(hp300) and the HP9000/705 and 9000/710 (hppa). 8-bit mono, 8KHz, no surprise since it is based upon a digital phone chip. Tested on 425e only so far, and playback only; configured in, but disabled, on hppa kernels until there are positive test reports (I am not sure the interrupt assignment on hppa is correct). And now people no longer can joke about audio on hp300.
2011-12-21Just use pd->sidx and pd->didx to reverse the state key argumentsMarco Pfatschbacher
in pf_test_state_*(). This needs less code and is more consistent. OK mikeb, markus, henning.