aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/device-tree/Bindings/phy/brcm,kona-usb2-phy.yaml
diff options
context:
space:
mode:
authorAbdelkader Boudih <chaos@seuros.com>2026-04-15 04:20:52 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2026-04-15 04:21:46 +0000
commit3e27114a7f961aac49d75a663a55332375d0bef3 (patch)
treed1c8a84228c4522cc72a41d92685e8adbf2a7970 /sys/contrib/device-tree/Bindings/phy/brcm,kona-usb2-phy.yaml
parent6b00c652db7f43c698e8e3a902f266025c3126ac (diff)
asmc: add raw SMC key read/write interfaceHEADmain
This patch adds a debugging interface to read and write arbitrary Apple SMC keys by name through sysctl, enabling hardware exploration and control of undocumented features. The interface provides four sysctls under dev.asmc.0.raw.*: - key - Set the 4-character SMC key name (e.g., "AUPO") - value - Read/write key value as a hex string - len - Auto-detected key value length (can be overridden) - type - Read-only 4-character type string (e.g., "ui8", "flt") Implementation includes a new asmc_key_getinfo() function using SMC command 0x13 to query key metadata. The interface automatically detects key lengths and types, uses hex string encoding for arbitrary binary values, and is safe for concurrent access via CTLFLAG_NEEDGIANT. This interface was essential for discovering that the AUPO key enables Wake-on-LAN from S5 state, and for mapping all 297 SMC keys on Mac Mini 5,1. Reviewed by: ngie, adrian, markj Differential Revision: https://reviews.freebsd.org/D54441
Diffstat (limited to 'sys/contrib/device-tree/Bindings/phy/brcm,kona-usb2-phy.yaml')
0 files changed, 0 insertions, 0 deletions