summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)Author
2021-09-26Driver "kqfilter" entry points return an error code, so if an invalidthorpej
filter is requested, return EINVAL rather than 1.
2021-09-26Use seltrue_filtops rather than rolling our own with filt_seltrue.thorpej
2021-09-26Change the kqueue filterops::f_isfd field to filterops::f_flags, andthorpej
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd. Field and flag name aligned with OpenBSD. This does not constitute a functional or ABI change, as the field location and size, and the value placed in that field, are the same as the previous code, but we're bumping __NetBSD_Version__ so 3rd-party module source code can adapt, as needed. NetBSD 9.99.89
2021-09-11Add missing double p and d for stopped and overriden accordingly.andvar
Fix few more typos along the way, mainly in copy-pasted comments.
2021-09-11fix license copypastamacallan
NFC
2021-09-10this driver allows to read the speeds of fans controlled via mac-io/fans/*macallan
found in some G5, for example my 7,3 based on guesswork and observation
2021-09-03switch smu to common fan control codemacallan
2021-08-09Fix CVS eff-up.thorpej
2021-08-09Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,thorpej
which is based on a newer HEAD revision.
2021-08-07Merge thorpej-cfargs2.thorpej
2021-08-07pass sensor locations to i2c devices if we can find themmacallan
tested on 2nd gen Mini
2021-07-30make thermal zone parameters configurable by sysctlmacallan
2021-07-28check temperatures a bit more oftenmacallan
while there, explain why the delay is variable
2021-07-28adjust comments, break a long linemacallan
NFC
2021-07-27first step towards abstracting thermal zone management out of the fcu drivermacallan
( and eventually, the smu driver ) todo: - add sysctl()s to set zone parameters - handle envsys - adapt smu
2021-07-27move the fcu driver into arch/macppc where it belongsmacallan
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2021-07-02port-macppc/56289: kernel spinout on macppc when runing ATF tests with LOCKDEBUGjmcneill
Move call to snapper_set_rate from trigger_output to commit_settings, since the intr lock is not held when calling the latter.
2021-06-18do ii2 locking dance in psoc_dump()macallan
2021-06-18use opt_psoc.h, suppress some debug output in !PSOC_DEBUGmacallan
2021-06-18use opt_lmu.hmacallan
while there, remove an obsolete comment
2021-04-26snapper carries multiple interface attributes, so be explicit aboutthorpej
"onewirebus" when attaching to it.
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2021-03-11add basic support for iMac G5 audio:macallan
- match AOAShasta - deal with headphone gpios labeled as lineout in OF - set sc_mode to SNAPPER_IS_PCM3052 - OF makes it look like an unlabeled TAS3004 TODO: - actually support pcm3052 instead of treating it like a sw codec
2021-03-09add support for the CPU temperature sensor found in iMac G5smacallan
2021-03-05Convert to intr_establish_xname().rin
2021-02-25more node name adjustmentsmacallan
also, pass sensor names if we can find them now we find and currectly use the hard drive temperature sensor on my iMac G5
2021-02-25deal with node name inconsistencies between PowerMac10,x and 8,xmacallan
Now we find fans and iic devices on iMac G5
2021-02-06Calling halt_{input,output} is done by the MI audio layer if necessary.isaki
2021-01-27Use DEVICE_COMPAT_EOL.thorpej
2021-01-26There is not much point in of_compatible() returning -1 for "no match"thorpej
and >= 0 for "match". Just make it return 0 for "no match" and >0 for "match" so it can be treated like a boolean expression. As such of_match_compatible() (a wrapper around of_compatible()) is now obsolete, and will be removed once all call sites are converted to an appropriate replacement.
2021-01-25Since we're using designated initialisers for compat data, we shouldthorpej
use a completely empty initializer for the sentinel.
2021-01-17Use designated initializers and a consistent termination style inthorpej
compat_data[].
2020-12-19Use sel{record,remove}_knote().thorpej
2020-10-30c99 struct initializerschristos
2020-10-25Normalize some machine dependent CPU frequenct sysctl variables.nia
This moves machdep.*.frequency.* to machdep.cpu.frequency.*. This was proposed on tech-kern some time ago. The intention is to allow third-party tools such as estd and conky to more easily and reliably fetch or modify the current CPU frequency without iterating through various machine-dependent variables to check their presence.
2020-10-20le(4): add link status change reporting to drivers which support itroy
Reviewed by thorpej@ Tested by martin@
2020-09-12respond to keyboard brightness control PMF eventsmacallan
2020-08-08add support for the onewire bus found in some macs, namely Quicksilver.macallan
This can be used to read the EEPROM content from Apple Pro speakers, or to hook up other onewire devices.
2020-07-14Adapt to new proplib APImartin
2020-07-14Adapt to new proplib APImartin
2020-07-04- Adjust location of \n in attach message.rin
- Convert to aprint_*(9).
2020-07-02add $NetBSD:macallan
2020-07-02proplib API catchupmacallan
2020-06-12more proplib API catchupmacallan
2020-04-23make this work properly:macallan
- get rid of cargo-culted register assignments, I found the right ones by experiment, now both light sensors report sane values - keyboard brightness seems to max out at 16, act like it - do what MacOS does and fade keyboard brightness instead of just switching - add sysctls to configure keyboard brightness and environmental light thresholds - don't poll the chip more often than once a second
2020-04-23drop openfirm.h includemacallan
2020-04-16Revert previous for now:rin
http://mail-index.netbsd.org/source-changes/2020/04/16/msg116278.html The reasoning turned out to be wrong; __KERNEL_RCSID() in header files does *not* overwrite RCSID in main source files. The real problem is that it inserts its RCSID into *every* object files. However, it can be still useful even if heavily duplicated.
2020-04-16Stop using __KERNEL_RCSID() in header files; it confuses ident(1) byrin
overwriting RCSID in main source files. XXX The first argument of __KERNEL_RCSID() is neglected for ELF. If we wish to have RCSID of header files in kernel binary, we need something like __FBSDID() macro in FreeBSD.
2020-04-11don't try to read a 32bit property into a uint8_t.macallan
Now headphone detection works properly on machines which have the gpio's polarity reversed, like Quicksilver and TiBook.