summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-07-20Make lcd(4) "blink" when machdep.led_blink is set.Mark Kettenis
2007-07-20Give hppa the blink_led API from sparc64, and the associated machdep.led_blinkMark Kettenis
sysctl.
2007-07-20Enable lcd(4).Mark Kettenis
2007-07-20PDC I/O space lives at 0xf0f0000000, not 0xf000000000, at least on astr(4)Mark Kettenis
based systems.
2007-07-20Use HPPA_PC_PRIV_USER instead of hardcoded 3.Mark Kettenis
requested by miod@
2007-07-20unbreak landisk kernel sha1 by working around a compiler bug;Otto Moerbeek
also brings kernel sha1 more in line with userland; discussed with miod@ and millert@;
2007-07-20More code that tests for CPUCLASS_386 that can go away. Pointed out byMichael Knudsen
Charles Longeau, thanks. Fix an indentation nit while there. ok toby
2007-07-20Remove inm_ifp from struct in_multi -- caching struct ifnet is dangerousClaudio Jeker
because interfaces may disappear without notice causing use after free bugs. Instead use the inm_ia->ia_ifp as a hint, struct in_ifaddr correctly tracks removals of interfaces and invalidates ia_ifp in such cases. looks good henning@ markus@
2007-07-20Oh, look, code that begins like this:Michael Knudsen
if (cpu_class != CPUCLASS_386) { Since we don't support 386 now, unconditionally execute the block. ok tom toby
2007-07-20Don't show debug output when an interrupt is not for us.Marc Balmer
From Marc Winiger <mw@msys.ch> ok dlg, claudio.
2007-07-20Remove the MFREE() macro and replace it with a call to m_free().Claudio Jeker
Also remove the _MEXTREMOVE macro which was only used by MFREE. This time with the uipc_mbuf.c change that I missed last time.
2007-07-18Prefer ``hit'' cache operations when flushing kernel memory.Miod Vallat
2007-07-18Do not bother trying to make the tlb handler fit - they are too largeMiod Vallat
and the r5000 errata workaround made them non-relocatable, so always copy trampolines. This will be revisited when the tlb refill code will be selected at runtime (soon).
2007-07-18bus_dmamem_map() maps with a single segment in directly-translated XKPHYSMiod Vallat
space, either cache coherent for regular mappings and uncached for BUS_DMA_COHERENT mappings, as done on all other platforms with direct mappings.
2007-07-18modify ieee80211_aes_key_wrap() to support in-place encryption.Damien Bergamini
explicitly use ovbcopy() even if our kernel memcpy() supports overlapping buffers.
2007-07-18- when traversing mixer fields in the attach routine and connectingJacob Meuser
the mixer layer to the audio layer, differentiate between the 'monitor' class and the 'outputs' class instead of lumping them together. not all mixers have a monitor class entry which was causing the outputs class to be ignored. - look for monitor port in the monitor class, but if the monitor port is not found in the monitor class look in the outputs class as well. the code was effectively looking in both the monitor and outputs classes before, so this is no real change. sets up audio_info.play.[gain|balance] correctly on at least emu(4), auich(4), auvia(4) and snapper(4) ... probably most other AC'97 devices as well. as a result, audioctl(1) works much better and the overall volume can be set with /dev/audio instead of needing to go through /dev/mixer. from deanna@ thanks again to those who tested this change
2007-07-18unbreak build.Damien Bergamini
pointed out by mglocker@
2007-07-18move the processing of the pause attribute to the end of audiosetinfo(),Jacob Meuser
to allow buffer sizes and pointer to the buffer to be set to reasonable values for the sample size of the data to be read/written. fixes kernel corruption seen with azalia and probably other drivers that are using something other than 8kHz monaural mulaw as the default encoding when doing 'dd if=/dev/audio of=foo' as the first audio operation after boot. problem reported by deanna@
2007-07-18convert code under #if 0 to the new ieee80211_key structure.Damien Bergamini
2007-07-18net80211 requires AES too.Damien Bergamini
2007-07-18add AES Key Wrap algorithm (see RFC 3394).Damien Bergamini
this will be used to encrypt/decrypt EAPOL-Key frames payload.
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-07-18Indentation nit.Artur Grabowski
2007-07-18Don't drop outgoing packets in case of a congested input queue.Marco Pfatschbacher
OK markus@, mcbride@, "sounds reasonable" henning@
2007-07-17Add missing '};' to end struct declaration. Compiles again.Kenneth R Westerback
2007-07-17more places where the difference between the hardware sample sizeJacob Meuser
and the userland sample size matters. there may be different sample size factors for play and record, so use the appropriate factor when userland sets the blocksize. the reported blocksize, hiwat and lowat are only for the play buffer. IMO, it would be good to report the record blocksize, hiwat and lowat as well, but that is another issue. tested with emu(4) and an auvia(4) modified to only do stereo in hardware.
2007-07-17emu(4) works on sgi.Jacob Meuser
requested by jsg@ the digital out port is obscured by the small PCI card access slot on the moosehead case, but we don't support the digital ports anyway
2007-07-17rewrite isset() and friends to use shifts and masks instead of divideOtto Moerbeek
and modulo. generates smaller code and circumvents bugs seen on macppc and mac68k. ok deraadt@ art@ miod@
2007-07-17ident/ansify/de-registerJasper Lievisse Adriaanse
2007-07-17- the data in the read buffer, that was put there by the hardware,Jacob Meuser
may not be the same sample size as what userland is to receive. account for the discrepency between the sample sizes when comparing how much to copy out with what userland expects. - only copy out the part of the buffer that is in the format userland expects. emu(4) can now record with all encodings it claims to be able to. that is, dd if=/dev/audio of=foo does as audio(4) says (monaural mu-law) and does it correctly. AFAIKS, the only other driver that sets a read factor is uaudio(4), and that depends on what the hardware supports. tested on i386, amd64 and sgi with 3 different emu(4) cards
2007-07-17when looping through an array and advancing your pointer to the arrayJacob Meuser
2x on each loop, only loop .5x times fixes hard hangs on i386 and "hiccups" on sgi when these functions are used through e.g. dd if=/dev/audio of=foo, since mulaw is the default encoding. the commit history wrt this code is interesting. I am responsible for introducing this braindamage to OpenBSD ... and note that linear16_to_linear8_[lb]e had it right ...
2007-07-16sizeof long double == sizeof double, deal with it; ok kettenisJason Wright
2007-07-16Replace bunches of nops with the ITLBNOPFIX macro, which generates fewerMiod Vallat
nops unless we compile for early RM7000 flavours, which we usually don't do.
2007-07-16On exit from switch_exit(), do not bother saving context and immediatelyMiod Vallat
jump into the scheduler loop.
2007-07-16Do not reenabled interrupts when processing a ddb trap, for bad things mayMiod Vallat
happen; from NetBSD
2007-07-16Change idle_mask to be made of the cop0 SR bits unshifted and the cop0 IC bitsMiod Vallat
shifted, instead of the other way around; this shaves a few instructions.
2007-07-16The logic determining the value of rl_eewidth for the 9346 and 9356Todd C. Miller
eeproms was backwards. This resulted in a bogus MAC address being read from the eeprom on certain cards. From FreeBSD. OK pvalchev@
2007-07-15lcd(4); a driver for the front panel LCD display found on the four-digitMark Kettenis
B/C/J-class workstations, and many server systems. This is still work in progress; for now it only displays that the machine is running OpenBSD. Not enabled yet.
2007-07-15Add PDC_CHASSIS_INFO and associated structures.Mark Kettenis
2007-07-15Delay switching to the real serial console until we attach the serial device.Mark Kettenis
The variety of different serial devices is just too big to make a decision up front. This should make the second serial port on four-digit B/C/J-class workstation work as a serial console too. ok miod@
2007-07-14Make sigreturn(2) set the proper space ID for the instruction queue. FixesMark Kettenis
a few more pthreads regression tests. ok miod@
2007-07-14s/uint8_t/u_int8_t/ for consistency.Damien Bergamini
2007-07-14update QoS Tx/Rx sequence numbers for each TID.Damien Bergamini
add a parameter to ieee80211_decap() to handle different 802.11 header sizes. cleanup and clarify ieee80211_classify().
2007-07-14When calibrating the delay const, only allow clock and above interrupts.Miod Vallat
This fixes infrequent hangs on reboot due to the ethernet interface interrupting on machines configured to use A/UX style interrupts.
2007-07-14Add bge(4). Tested by Maurice Janssen.Mark Kettenis
2007-07-14- ANSI function declarationsJacob Meuser
- remove argument names from function prototypes OK jasper@, ray@, "Didn't notice any errors" marc@
2007-07-13Do not compile disk_reallymapin() unless it is really needed.Miod Vallat
2007-07-13do not increment ic_stats.is_tx_nombuf in ieee80211_get_rts() andDamien Bergamini
ieee80211_get_cts_to_self() if mbuf allocation fails.
2007-07-13cleanup parsing of beacon and probe response mgmt frames.Damien Bergamini
2007-07-13in ieee80211_recv_assoc_resp(), do not start updating the nodeDamien Bergamini
structure until the frame has been fully validated.