summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)Author
2022-12-28one more skiplist entry...macallan
2022-12-28don't complain about mpic and dart not being configuredmacallan
mpic is handled elsewhere, dart is an iommu we don't use yet
2022-12-28suppress 'not configured' message for mpic on G5smacallan
2022-10-31s/interrut/interrupt/ and s/accelelerator/accelerator/ in comments.andvar
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-06-29Use old limit of 32 + 32 bytes to keep combining buffer on stack.mlelstv
There are no devices on this platform that need more and for larger values, the driver should be better rewritten.
2022-06-02check platform-do-*-mute properties to find out the resp. GPIO's polaritymacallan
now this works properly on pmac7,3
2022-06-01Revert previous, the mask is intented to be like sc_output_mask, a bitmaskmartin
of active ports.
2022-06-01In SNAPPER_OUTPUT_SELECT the "mask" is a bitmap of muted outputs, notmartin
active outputs.
2022-06-01Recognize the OF labels used for line output and headphone output on amartin
G5 powermac 7,3.
2022-04-08fix various typos, mainly in comments, but also log messages, docs, game text.andvar
2022-03-28uhidev(9): Get the device and interface through attach args.riastradh
This way uhidev drivers don't need access to uhidev_softc itself for it.
2022-02-16powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.riastradh
Otherwise the compiler may reorder these around loads and stores, which mostly defeats the purpose. `asm volatile' just ensures the instruction isn't _deleted_; it may still move around.
2022-02-13PR port-macppc/56091: on G5 macs we currently can not easily makemartin
early serial console work, so keep the OF based "failsafe" console but note that we would like to switch over. Once zs attaches, use the new device mapping and do a belated init of the zs console globals, and then switch over to real zs based serial console.
2022-02-11Remove some #ifdef __OpenBSD__ code that's not complete and thus doesn'tthorpej
serve much point in existing here.
2022-02-09fix various typos in comments.andvar
2022-01-22Change the devhandle_from_*() functions to also take a "super handle",thorpej
from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if an invalid "super handle" is passed.
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[].