summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return EOPNOTSUPP for unsupported ioctlskn2021-03-261-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.
* spellingjsg2021-03-115-10/+10
|
* Refactor klist insertion and removalvisa2020-12-251-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>.visa2020-08-262-6/+2
| | | | OK deraadt@, mpi@
* Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thepatrick2020-07-102-4/+4
| | | | | | "new" API. ok dlg@ tobhe@
* Move PowerBook5,4 audio from aoa(4) to snapper(4).gkoehler2020-06-062-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,visa2020-04-071-3/+3
| | | | | | for example, with locking assertions. OK mpi@, anton@
* Replace field f_isfd with field f_flags in struct filterops to allowvisa2020-02-201-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.krw2020-01-241-1200/+0
| | | | ok tedu@ jsg@
* Use a consistant idiom/format when declaring scsi_adapter structureskrw2020-01-231-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.tedu2020-01-211-463/+0
| | | | ok deraadt krw
* xlights(4): timeout_add(9) -> timeout_add_msec(9)cheloha2020-01-101-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,visa2019-12-311-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)cheloha2019-10-084-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 ansificationderaadt2019-09-035-24/+23
|
* delete incorrect casts, and a bit if ansi functions; ok jcsderaadt2019-09-031-6/+5
|
* Replace empty body of while loop with continue statement.kettenis2019-09-031-2/+2
| | | | ok deraadt@
* ansify functionsderaadt2019-09-031-54/+22
| | | | ok jsg
* correct indent that triggered clang to freak out; with jsg.deraadt2019-09-031-3/+4
|
* Get rid of `ddb_is_active' instead use `db_active'.mpi2019-07-201-7/+3
| | | | | | From Christian Ludwig <christian_ludwig at genua dot de> ok visa@
* Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers.mpi2018-01-221-6/+5
| | | | Suggested by kettenis@, ok visa@
* Delete unnecessary <sys/file.h> includesguenther2017-12-301-2/+1
| | | | ok millert@ krw@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-085-10/+5
|
* Fix the remaining ';;'s in sys/tom2017-06-221-2/+2
|
* Rename Debugger() into db_enter().mpi2017-04-305-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_RUNNINGmpi2017-03-081-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.dlg2017-01-222-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 -> happenedjca2016-12-261-2/+2
|
* Harmonize battery state thresholds accross platforms.fcambus2016-12-051-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 TIDguenther2016-10-081-3/+4
| | | | Build testing assistance from deraadt@
* Remove unused getdev() audio driver functions.ratchov2016-09-196-96/+6
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-148-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.ratchov2016-08-301-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.jsg2016-07-291-5/+7
| | | | Tested by and ok mglocker@
* Get 'AOAShasta' soundchip working found on PowerMac9,1.mglocker2016-07-021-1/+13
| | | | ok deraadt
* Oups, remove '#define I2S_DEBUG' again.mglocker2016-06-261-2/+1
|
* Make i2s compile with I2S_DEBUG; %x -> %p.mglocker2016-06-261-3/+4
|
* Add support for new smu-firmware fan commands. This fixes wrong sysctlmglocker2016-05-291-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.mglocker2016-05-231-1/+2
| | | | ok deraadt kettenis
* Fix shutdown sequence.mglocker2016-05-231-2/+2
|
* Some of our fan scaling calculations with the muK temperature unit abovemglocker2016-05-232-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.mglocker2016-05-201-1/+1
|
* Hook up smu(4) to the thermal management framework.mglocker2016-05-201-7/+92
| | | | ok kettenis
* Add a thermal management framework for macppc which controls the fan speedmglocker2016-05-202-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.mglocker2016-05-141-14/+27
| | | | ok kettenis
* Add support for pwm fans.mglocker2016-05-141-3/+111
| | | | ok kettenis
* Return correct rpm values for all fans.mglocker2016-05-141-4/+4
| | | | ok kettenis
* Fall back to "safe-value" when "unmanage-value" is not evailable tompi2016-05-041-4/+7
| | | | | | configure fan speeds. from mglocker@, ok kettenis@
* G/C IFQ_SET_READY().mpi2016-04-132-4/+2
|
* not compiled before commitderaadt2016-03-151-2/+2
|