summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-09-12anonymous unions aren't standard C and don't work with gcc2. name theJacob Meuser
anonymous unions "un". delete some obsolete mpeg/jpeg compression methods that have never been supported, and will not need to be supported.
2010-09-12Stricter types in MipsEmulateBranch(), and related cleanups.Miod Vallat
No functional change.
2010-09-12Use __dead instead of volatile to mark functions that don't return. MakesMark Kettenis
it possible to compile sgi kernels with gcc4. ok miod@ (who pointed out what volatile was used for in this case)
2010-09-12Avoid machine-check exception on OCTEON. ok miod@Takuya ASADA
2010-09-12Add some missing bus_dmamap_sync(). Fix a small whitespace problem whileMark Kettenis
I'm there.
2010-09-12silly me. use the switch() variable, not the case value.Jacob Meuser
2010-09-12use audio(4) DVACT_{QUIESCE,RESUME}Jacob Meuser
2010-09-12autoconf activate suspend/resume for emu(4). uses audio(4)Jacob Meuser
DVACT_{QUIESCE,RESUME}. not 100% right yet. after resume, interrupts, DMA, and the mixer appear to be working, but no sound is produced. cookie for whoever finds the problem.
2010-09-12autoconf activate suspend/resume for cmpci(4). uses audio(4)Jacob Meuser
DVACT_{QUIESCE,RESUME}.
2010-09-12Garbage collect rot_rate from disk_parms. No longer in disk label so noKenneth R Westerback
need to calculate and save. Not used anywhere in tree.
2010-09-12use audio(4) DVACT_{QUIESCE,RESUME}Jacob Meuser
2010-09-12use audio(4) DVACT_{QUIESCE,RESUME}Jacob Meuser
2010-09-12autoconf activate suspend/resume for auvia(4). uses new audio(4)Jacob Meuser
DVACT_{QUIESCE,RESUME].
2010-09-12DVACT_{QUIESCE,RESUME} for audio(4)Jacob Meuser
DVACT_QUIESCE: 1) waits until ringbuffer current position wraps back to the start of the buffer 2) stops playback and/or recording by way of the hardware drivers' "halt" audio_hw_if method 3) blocks userland access to audio device 4) saves the current state of the master mute, then mutes it DVACT_RESUME: 1) reprogram hardware stream parameters for playback or recording if they were active at DVACT_QUIESCE by way of hardware drivers' "set_params" audio_hw_if method 2) start playback or recording if they were active at DVACT_QUIESCE by way of hardware drivers' "trigger" or "start" audio_hw_if method 3) restores master mute state as it was at DVACT_QUIESCE 4) wakes up blocked userland processes accessing the hardware
2010-09-12Make cd the same as sd by calling the cd_parms member of the softc 'params'Kenneth R Westerback
rather than 'sc_params'. No change to .o file.
2010-09-11Be more ruthlessly consistent in variable names for blk/block ==Kenneth R Westerback
512 == DEV_BSIZE units and variable-sized physical device 'sectors'. I hope this reduces confusion a bit more. No change to .o files. ok for intent miod@, with tweak.
2010-09-11move machine dependent GET_CPU_INFO(), getcurcpu(), setcurcpu() to arch/sgi. ↵Takuya ASADA
ok miod@
2010-09-10Provide a bus_dmamap_sync() implementation for the IOMMU. Fixes bigmem.Mark Kettenis
tested by naddy@, ok dlg@
2010-09-10Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)Thordur I. Bjornsson
have been resolved.
2010-09-10if the speaker is muted because headphones are plugged in, don'tJacob Meuser
unmute the speaker when the master volume control is unmuted
2010-09-10implement handling of rescan events on fc controllers. allows "hotplug" ofDavid Gwynne
fc devices.
2010-09-10the open() functions give us flags like FREAD and FWRITE from sys/fcntl.h.Jacob Meuser
the AUOPEN_ macros from sys/dev/audiovar.h are for something else.
2010-09-10scsi_xsh_del the io handler in deactivate to prevent it from being run onDavid Gwynne
a device thats now gone, or from being on the list of pending io when the device is actually detached. found and fix tested by jakemsr@ "go for it" jakemsr@
2010-09-10#defines for the bits inside the flags field in mpi_cfg_fc_port_pg1David Gwynne
2010-09-09Sync suspend logic with current practice, and try to handle failureMiod Vallat
consistently; discussed with pirofti and deraadt.
2010-09-09nessesary -> necessary.Miod Vallat
2010-09-09Move cache settings into hw_cpu_init_secondary() ok miod@Takuya ASADA
2010-09-09Fix compile error on option DEBUG ok miod@Takuya ASADA
2010-09-09Rename lookup/relookup to vfs_lookup/vfs_relookup.Thordur I. Bjornsson
OK oga@, beck@, matthew@
2010-09-09Why ip6_input.c includes netinet/ip_icmp.h is beyond my imagination.Claudio Jeker
Compiles fine without it so remove it.
2010-09-09The resume powerhooks were always in the wrong place. Then when replacedTheo de Raadt
by the device-tree activate walk it even worse since we were doing so much more work. apm_suspend() could return into the event handler and thus tsleep() -- all this while we are supposedly trying to maintain splhigh because our DVACT_SUSPEND mechanism has temporarily totally wrecked the machine. Move the hardware restoration code (DVACT_RESUME + other goo) to the same function, and recognize that apm_resume() is just a boring event handler which punts the event to userland. ok oga
2010-09-08merge apm_standby() into apm_suspend()Theo de Raadt
vague ok from kettenis, but it is just mechanical
2010-09-08No need for vfs_syncwait() in a bufq_quiesce() worldTheo de Raadt
ok thib kettenis
2010-09-08Add support for Terratec EWX 24/96 based on initial diff from ratchov@.Stefan Sperling
ok ratchov@
2010-09-08Document that the resume case is waking children which may have beenTheo de Raadt
ejected, and that this needs to be solved.
2010-09-08Split out the guts of pccbbintr() so that we can call it carefully atTheo de Raadt
resume time. ok kettenis
2010-09-08During suspend, do not call children's interrupt handlers after we haveTheo de Raadt
told them to suspend. In some drivers, this "wakes" them up. ok kettenis
2010-09-08better to break out of the casesTheo de Raadt
2010-09-08activate NTFS, let's hope it gets less experimental soon (as beck@ said)Marc Espie
okay'd by thib@, who now owns a spanking new ntfs image... deraadt@ 'okay if thib@ lets you'
2010-09-08remove a useless commentTheo de Raadt
2010-09-08Crank ofwboot version after recent changes.Joel Sing
2010-09-08Use the offset value passed into search_label() and call it withJoel Sing
LABELSECTOR instead of a hardcoded 0. No functional change.
2010-09-08Introduce a disk_lookup() function which calls device_lookup(), beforeJoel Sing
verifying that the resulting device is present on the disklist. This avoids a race whereby the disk driver can be accessed as soon as the softc has been allocated, but before the disk has completed initialisation and has called disk_attach() (up until this point dk_label is still a null pointer). Cut cd(4), sd(4) and wd(4) across to disk_lookup(). All callers of disk_attach() need to be tested and cut over in due course. ok deraadt@ krw@
2010-09-08Sync disklabel_sun_to_bsd() with sparc64/disksubr.c. This gives us accessJoel Sing
to the extended partition information and allows for correct identification of parition types.
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
2010-09-08Nuke bogus comment.Joel Sing
2010-09-08Reintroduce most crypto/crypto.c r1.55:Joel Sing
Move pool initialization to init_crypto and zap the crypto_pool_initialized variable. This way we don't have to check if the pool are initialized every time we do a crypto_getreq(). However, also perform the crypto initialisation earlier in init_main so that the crypto pools are initialised before they are used. ok mikeb@ thib@ deraadt@
2010-09-08let things request the detach of everything on the whole bus, rather thanDavid Gwynne
just a target/lun.
2010-09-08Add $OpenBSD$ prompted by mikeb@Thordur I. Bjornsson
2010-09-08creating a pfsync interface is always done from process context, soBret Lambert
we can pass M_WAITOK to malloc(9) (which was already done a few lines down, which set off my aesthetic alarm). While here, include malloc.h, since we're calling malloc. ok dlg@