Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Return EOPNOTSUPP for unsupported ioctls | 2021-03-26 | 1 | -16/+6 | |
| | | | | | | | | | Match what apm(4/macppc) says and make apmd(8) log an approiate warning when unsupported power actions are requested. Merge identical cases while here. This syncs with the apm ioctl handlers on loongson and arm64. | ||||
* | spelling | 2021-03-11 | 5 | -10/+10 | |
| | |||||
* | Refactor klist insertion and removal | 2020-12-25 | 1 | -3/+3 | |
| | | | | | | | | | | | | Rename klist_{insert,remove}() to klist_{insert,remove}_locked(). These functions assume that the caller has locked the klist. The current state of locking remains intact because the kernel lock is still used with all klists. Add new functions klist_insert() and klist_remove() that lock the klist internally. This allows some code simplification. OK mpi@ | ||||
* | Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>. | 2020-08-26 | 2 | -6/+2 | |
| | | | | OK deraadt@, mpi@ | ||||
* | Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the | 2020-07-10 | 2 | -4/+4 | |
| | | | | | | "new" API. ok dlg@ tobhe@ | ||||
* | Move PowerBook5,4 audio from aoa(4) to snapper(4). | 2020-06-06 | 2 | -3/+11 | |
| | | | | | | | | | | | This adds the missing TAS3004 volume control. Before, I put my ear near the speaker (to hear audio), because I had no way to turn up the volume. Now, the default volume is much louder, so I use sndioctl(1) to turn it down. Check for the model string "PowerBook5,4". This model's device tree has compatible = "AOAKeylargo" for the audio, doesn't show the TAS3004 in the same way as other models. | ||||
* | Abstract the head of knote lists. This allows extending the lists, | 2020-04-07 | 1 | -3/+3 | |
| | | | | | | for example, with locking assertions. OK mpi@, anton@ | ||||
* | Replace field f_isfd with field f_flags in struct filterops to allow | 2020-02-20 | 1 | -2/+2 | |
| | | | | | | adding more filter properties without cluttering the struct. OK mpi@, anton@ | ||||
* | mesh(4) is old world and only new world macppc hardware is supported. | 2020-01-24 | 1 | -1200/+0 | |
| | | | | ok tedu@ jsg@ | ||||
* | Use a consistant idiom/format when declaring scsi_adapter structures | 2020-01-23 | 1 | -2/+2 | |
| | | | | | | | | | | | in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc. Nuke #ifdef notyet blocks related to the scsi_adapter in aic. No intentional functional change. ok tedu@ | ||||
* | remove unfinished macppc esp driver. | 2020-01-21 | 1 | -463/+0 | |
| | | | | ok deraadt krw | ||||
* | xlights(4): timeout_add(9) -> timeout_add_msec(9) | 2020-01-10 | 1 | -2/+2 | |
| | | | | | | | There are no units noted here, but macppc is a 100hz platform so it's safe to just assume 2500 milliseconds here. ok jsg@ | ||||
* | Use C99 designated initializers with struct filterops. In addition, | 2019-12-31 | 1 | -3/+7 | |
| | | | | | | make the structs const so that the data are put in .rodata. OK mpi@, deraadt@, anton@, bluhm@ | ||||
* | macppc: mediabay(4), smu(4), xlights(4): tsleep(9) -> tsleep_nsec(9) | 2019-10-08 | 4 | -11/+11 | |
| | | | | | | | | | This diff completely converts sys/arch/macppc to *sleep_nsec(9). Also convert dev/thermal.c while we're down here. Unsure what that file's driver's name is, if any. ok kn@ visa@ | ||||
* | a sprinkling of function ansification | 2019-09-03 | 5 | -24/+23 | |
| | |||||
* | delete incorrect casts, and a bit if ansi functions; ok jcs | 2019-09-03 | 1 | -6/+5 | |
| | |||||
* | Replace empty body of while loop with continue statement. | 2019-09-03 | 1 | -2/+2 | |
| | | | | ok deraadt@ | ||||
* | ansify functions | 2019-09-03 | 1 | -54/+22 | |
| | | | | ok jsg | ||||
* | correct indent that triggered clang to freak out; with jsg. | 2019-09-03 | 1 | -3/+4 | |
| | |||||
* | Get rid of `ddb_is_active' instead use `db_active'. | 2019-07-20 | 1 | -7/+3 | |
| | | | | | | From Christian Ludwig <christian_ludwig at genua dot de> ok visa@ | ||||
* | Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers. | 2018-01-22 | 1 | -6/+5 | |
| | | | | Suggested by kettenis@, ok visa@ | ||||
* | Delete unnecessary <sys/file.h> includes | 2017-12-30 | 1 | -2/+1 | |
| | | | | ok millert@ krw@ | ||||
* | If you use sys/param.h, you don't need sys/types.h | 2017-09-08 | 5 | -10/+5 | |
| | |||||
* | Fix the remaining ';;'s in sys/ | 2017-06-22 | 1 | -2/+2 | |
| | |||||
* | Rename Debugger() into db_enter(). | 2017-04-30 | 5 | -10/+10 | |
| | | | | | | | Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@ | ||||
* | Do not clear IFF_UP, even in the error path, clearing IFF_RUNNING | 2017-03-08 | 1 | -2/+2 | |
| | | | | | | | | | is enough. This flag should only be set by the stack, drivers shouldn't mess with it. Discussed with dlg@ and mikeb@, ok mikeb@, stsp@ | ||||
* | move counting if_opackets next to counting if_obytes in if_enqueue. | 2017-01-22 | 2 | -6/+2 | |
| | | | | | | | this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@ | ||||
* | Fix typo, happend -> happened | 2016-12-26 | 1 | -2/+2 | |
| | |||||
* | Harmonize battery state thresholds accross platforms. | 2016-12-05 | 1 | -6/+5 | |
| | | | | | | Use the same values hardcoded in sys/dev/acpi/acpi.c where possible. OK visa@ | ||||
* | Various printf claim to report the PID, so actually report that and not the TID | 2016-10-08 | 1 | -3/+4 | |
| | | | | Build testing assistance from deraadt@ | ||||
* | Remove unused getdev() audio driver functions. | 2016-09-19 | 6 | -96/+6 | |
| | |||||
* | Remove drain(), query_encoding(), mappage() and get_default_params() | 2016-09-14 | 8 | -156/+14 | |
| | | | | | methods from all audio drivers and from the audio_if structure as they are never called. | ||||
* | Properly set "msb" and "bps" fields for both play and rec directions. | 2016-08-30 | 1 | -12/+4 | |
| | | | | | | | Fixes "audio0: different play and record parameters ... " errors, and probably other unreported errors. help and ok landry@ | ||||
* | Reorder code to avoid a divide by zero when there are no sensors. | 2016-07-29 | 1 | -5/+7 | |
| | | | | Tested by and ok mglocker@ | ||||
* | Get 'AOAShasta' soundchip working found on PowerMac9,1. | 2016-07-02 | 1 | -1/+13 | |
| | | | | ok deraadt | ||||
* | Oups, remove '#define I2S_DEBUG' again. | 2016-06-26 | 1 | -2/+1 | |
| | |||||
* | Make i2s compile with I2S_DEBUG; %x -> %p. | 2016-06-26 | 1 | -3/+4 | |
| | |||||
* | Add support for new smu-firmware fan commands. This fixes wrong sysctl | 2016-05-29 | 1 | -37/+112 | |
| | | | | | | hw.sensors fan values seen on macppc models with a new smu-firmware. Help and ok kettenis | ||||
* | Pass the device node to ia_cookie so we can pick it up in the i2c driver. | 2016-05-23 | 1 | -1/+2 | |
| | | | | ok deraadt kettenis | ||||
* | Fix shutdown sequence. | 2016-05-23 | 1 | -2/+2 | |
| | |||||
* | Some of our fan scaling calculations with the muK temperature unit above | 2016-05-23 | 2 | -8/+8 | |
| | | | | | | 59 degC require temporary values larger than 32bit signed. Therefore bump those involved variables to int64_t and replace imin/imax with ulmin/ulmax to get proper results. | ||||
* | Ooops, fix the OpenBSD tag. | 2016-05-20 | 1 | -1/+1 | |
| | |||||
* | Hook up smu(4) to the thermal management framework. | 2016-05-20 | 1 | -7/+92 | |
| | | | | ok kettenis | ||||
* | Add a thermal management framework for macppc which controls the fan speed | 2016-05-20 | 2 | -0/+272 | |
| | | | | | | | based on the temperature sensor values. A driver can register it fans or temperature sensors there. Ported from FreeBSD. ok deraadt kettenis | ||||
* | Move rpm read to a own function analog pwm read. No functional change. | 2016-05-14 | 1 | -14/+27 | |
| | | | | ok kettenis | ||||
* | Add support for pwm fans. | 2016-05-14 | 1 | -3/+111 | |
| | | | | ok kettenis | ||||
* | Return correct rpm values for all fans. | 2016-05-14 | 1 | -4/+4 | |
| | | | | ok kettenis | ||||
* | Fall back to "safe-value" when "unmanage-value" is not evailable to | 2016-05-04 | 1 | -4/+7 | |
| | | | | | | configure fan speeds. from mglocker@, ok kettenis@ | ||||
* | G/C IFQ_SET_READY(). | 2016-04-13 | 2 | -4/+2 | |
| | |||||
* | not compiled before commit | 2016-03-15 | 1 | -2/+2 | |
| |