Repository: daliansky/Dell-Inspiron-7560-Hackintosh Branch: master Commit: 205fd6f14492 Files: 380 Total size: 1.5 MB Directory structure: gitextract_068ylq11/ ├── .gitignore ├── ALCPlugFix/ │ ├── ALCPlugFix │ ├── good.win.ALCPlugFix.plist │ ├── hda-verb │ ├── install.command │ ├── install双击自动卸载ALCPlugFix.command │ ├── install双击自动安装.command │ └── uninstall.command ├── DisplayVendorID-dae/ │ ├── DisplayProductID-15e0 │ ├── DisplayProductID-15e0-9d9da0.tiff │ ├── DisplayProductID-15e0_hidpi │ └── Icons.plist ├── EFI/ │ ├── BOOT/ │ │ └── BOOTX64.efi │ ├── CLOVER/ │ │ ├── ACPI/ │ │ │ ├── origin/ │ │ │ │ ├── APIC.aml │ │ │ │ ├── BGRT.aml │ │ │ │ ├── BOOT.aml │ │ │ │ ├── DBG2.aml │ │ │ │ ├── DBGP.aml │ │ │ │ ├── DMAR.aml │ │ │ │ ├── DSDT-0.aml │ │ │ │ ├── DSDT-or.aml │ │ │ │ ├── DSDT-pa0.aml │ │ │ │ ├── DSDT-pa1.aml │ │ │ │ ├── DSDT-pa2.aml │ │ │ │ ├── DSDT-pa3.aml │ │ │ │ ├── DSDT-pa4.aml │ │ │ │ ├── DSDT.aml │ │ │ │ ├── DumpLog.txt │ │ │ │ ├── FACP.aml │ │ │ │ ├── FACS.aml │ │ │ │ ├── FIDT.aml │ │ │ │ ├── FPDT.aml │ │ │ │ ├── HPET.aml │ │ │ │ ├── LPIT.aml │ │ │ │ ├── MCFG.aml │ │ │ │ ├── MSDM.aml │ │ │ │ ├── RSDP.aml │ │ │ │ ├── RSDT-FACP.aml │ │ │ │ ├── RSDT-FACS.aml │ │ │ │ ├── RSDT.aml │ │ │ │ ├── SLIC.aml │ │ │ │ ├── SSDT-0-SataTabl.aml │ │ │ │ ├── SSDT-1-SaSsdt.aml │ │ │ │ ├── SSDT-10-SgPch.aml │ │ │ │ ├── SSDT-11-OptTabl.aml │ │ │ │ ├── SSDT-2-xh_OEMBD.aml │ │ │ │ ├── SSDT-3-CpuSsdt.aml │ │ │ │ ├── SSDT-4-HdaDsp.aml │ │ │ │ ├── SSDT-5-sensrhub.aml │ │ │ │ ├── SSDT-6-PtidDevc.aml │ │ │ │ ├── SSDT-7-TbtTypeC.aml │ │ │ │ ├── SSDT-8-DptfTabl.aml │ │ │ │ ├── SSDT-9-SgUlt.aml │ │ │ │ ├── SSDT-x3_0-Cpu0Ist.aml │ │ │ │ ├── SSDT-x3_1-ApIst.aml │ │ │ │ ├── SSDT-x3_2-Cpu0Cst.aml │ │ │ │ ├── SSDT-x3_3-ApCst.aml │ │ │ │ ├── SSDT-x3_4-Cpu0Hwp.aml │ │ │ │ ├── SSDT-x3_5-ApHwp.aml │ │ │ │ ├── SSDT-x3_6-HwpLvt.aml │ │ │ │ ├── TPM2.aml │ │ │ │ ├── UEFI.aml │ │ │ │ ├── WSMT.aml │ │ │ │ └── XSDT.aml │ │ │ └── patched/ │ │ │ ├── SSDT-%PTSWAK-merge.aml │ │ │ ├── SSDT-@NDGP#spoof.aml │ │ │ ├── SSDT-Config.aml │ │ │ ├── SSDT-Dell_FN.aml │ │ │ ├── SSDT-GPRW.aml │ │ │ ├── SSDT-LIDpatch-general.aml │ │ │ ├── SSDT-PNLF.aml │ │ │ ├── SSDT-PluginType1.aml │ │ │ ├── SSDT-SATA.aml │ │ │ ├── SSDT-SleepKeyAndLid-NEVT_dell7000.aml │ │ │ └── SSDT-XOSI.aml │ │ ├── CLOVERX64.efi │ │ ├── config.plist │ │ ├── config_bak.plist │ │ ├── drivers64UEFI/ │ │ │ ├── ApfsDriverLoader-64.efi │ │ │ ├── AppleImageCodec-64.efi │ │ │ ├── AppleUITheme-64.efi │ │ │ ├── AptioMemoryFix-64.efi │ │ │ ├── AudioDxe-64.efi │ │ │ ├── DataHubDxe-64.efi │ │ │ ├── FSInject-64.efi │ │ │ ├── HFSPlus.efi │ │ │ ├── NvmExpressDxe-64.efi │ │ │ ├── VirtualSmc.efi │ │ │ └── apfs.efi │ │ ├── kexts/ │ │ │ └── Other/ │ │ │ ├── AirportBrcmFixup.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── AirportBrcmFixup │ │ │ ├── AppleALC_v1.3.9.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── AppleALC │ │ │ ├── AppleBacklightInjector.kext/ │ │ │ │ └── Contents/ │ │ │ │ └── Info.plist │ │ │ ├── BrcmBluetoothInjector.kext/ │ │ │ │ └── Contents/ │ │ │ │ └── Info.plist │ │ │ ├── BrcmFirmwareData.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── BrcmFirmwareData │ │ │ ├── BrcmPatchRAM2.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── BrcmPatchRAM2 │ │ │ ├── CPUFriend.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── CPUFriend │ │ │ ├── CPUFriendDataProvider.kext/ │ │ │ │ └── Contents/ │ │ │ │ └── Info.plist │ │ │ ├── CodecCommander.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── CodecCommander │ │ │ ├── HWPEnabler.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS/ │ │ │ │ │ └── HWPEnabler │ │ │ │ └── Resources/ │ │ │ │ └── en.lproj/ │ │ │ │ └── InfoPlist.strings │ │ │ ├── HoRNDIS.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS/ │ │ │ │ │ └── HoRNDIS │ │ │ │ ├── Resources/ │ │ │ │ │ └── en.lproj/ │ │ │ │ │ └── InfoPlist.strings │ │ │ │ └── _CodeSignature/ │ │ │ │ └── CodeResources │ │ │ ├── Lilu_v1.3.7.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS/ │ │ │ │ │ └── Lilu │ │ │ │ └── Resources/ │ │ │ │ ├── Headers/ │ │ │ │ │ ├── capstone/ │ │ │ │ │ │ ├── arm.h │ │ │ │ │ │ ├── arm64.h │ │ │ │ │ │ ├── capstone.h │ │ │ │ │ │ ├── mips.h │ │ │ │ │ │ ├── platform.h │ │ │ │ │ │ ├── ppc.h │ │ │ │ │ │ ├── sparc.h │ │ │ │ │ │ ├── systemz.h │ │ │ │ │ │ ├── x86.h │ │ │ │ │ │ └── xcore.h │ │ │ │ │ ├── kern_api.hpp │ │ │ │ │ ├── kern_atomic.hpp │ │ │ │ │ ├── kern_compat.hpp │ │ │ │ │ ├── kern_compression.hpp │ │ │ │ │ ├── kern_config.hpp │ │ │ │ │ ├── kern_cpu.hpp │ │ │ │ │ ├── kern_crypto.hpp │ │ │ │ │ ├── kern_devinfo.hpp │ │ │ │ │ ├── kern_disasm.hpp │ │ │ │ │ ├── kern_efi.hpp │ │ │ │ │ ├── kern_file.hpp │ │ │ │ │ ├── kern_iokit.hpp │ │ │ │ │ ├── kern_mach.hpp │ │ │ │ │ ├── kern_nvram.hpp │ │ │ │ │ ├── kern_patcher.hpp │ │ │ │ │ ├── kern_policy.hpp │ │ │ │ │ ├── kern_rtc.hpp │ │ │ │ │ ├── kern_time.hpp │ │ │ │ │ ├── kern_user.hpp │ │ │ │ │ ├── kern_util.hpp │ │ │ │ │ └── plugin_start.hpp │ │ │ │ └── Library/ │ │ │ │ ├── LegacyIOService.h │ │ │ │ ├── libkmod.a │ │ │ │ ├── plugin_start.cpp │ │ │ │ ├── security/ │ │ │ │ │ ├── _label.h │ │ │ │ │ ├── mac_framework.h │ │ │ │ │ └── mac_policy.h │ │ │ │ └── wrappers/ │ │ │ │ ├── build.tool │ │ │ │ ├── entry32.S │ │ │ │ ├── entry64.S │ │ │ │ └── wrappers.inc │ │ │ ├── RealtekRTL8111.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── RealtekRTL8111 │ │ │ ├── SMCBatteryManager.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── SMCBatteryManager │ │ │ ├── SMCProcessor.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── SMCProcessor │ │ │ ├── USBPorts_7560.kext/ │ │ │ │ └── Contents/ │ │ │ │ └── Info.plist │ │ │ ├── VerbStub.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── VerbStub │ │ │ ├── VirtualSMC.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── VirtualSMC │ │ │ ├── VoodooI2CHID.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── VoodooI2CHID │ │ │ ├── VoodooI2C_v2.1.4.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS/ │ │ │ │ │ └── VoodooI2C │ │ │ │ └── PlugIns/ │ │ │ │ ├── VoodooGPIO.kext/ │ │ │ │ │ └── Contents/ │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── MacOS/ │ │ │ │ │ └── VoodooGPIO │ │ │ │ └── VoodooI2CServices.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── VoodooI2CServices │ │ │ ├── VoodooPS2Controller_v1.8.25.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS/ │ │ │ │ │ └── VoodooPS2Controller │ │ │ │ └── PlugIns/ │ │ │ │ ├── VoodooPS2Keyboard.kext/ │ │ │ │ │ └── Contents/ │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── MacOS/ │ │ │ │ │ └── VoodooPS2Keyboard │ │ │ │ ├── VoodooPS2Mouse.kext/ │ │ │ │ │ └── Contents/ │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── MacOS/ │ │ │ │ │ └── VoodooPS2Mouse │ │ │ │ └── VoodooPS2Trackpad.kext/ │ │ │ │ └── Contents/ │ │ │ │ ├── Info.plist │ │ │ │ └── MacOS/ │ │ │ │ └── VoodooPS2Trackpad │ │ │ └── WhateverGreen_v1.3.0.kext/ │ │ │ └── Contents/ │ │ │ ├── Info.plist │ │ │ └── MacOS/ │ │ │ └── WhateverGreen │ │ ├── misc/ │ │ │ ├── HdaCodec#0 (Realtek ALC256).txt │ │ │ ├── HdaCodec#1 (Realtek ALC256).txt │ │ │ └── HdaCodec#2 (Intel Kaby Lake HDMI).txt │ │ ├── themes/ │ │ │ ├── Hackintosh_ID/ │ │ │ │ ├── force.txt │ │ │ │ ├── icons/ │ │ │ │ │ ├── Alternate/ │ │ │ │ │ │ ├── os_mac.icns │ │ │ │ │ │ └── os_mac_rec_hd.icns │ │ │ │ │ ├── boot_linux.icns │ │ │ │ │ ├── boot_win.icns │ │ │ │ │ ├── boot_win8.icns │ │ │ │ │ ├── cd.icns │ │ │ │ │ ├── cd_lin.icns │ │ │ │ │ ├── cd_mac.icns │ │ │ │ │ ├── cd_win.icns │ │ │ │ │ ├── os_arch.icns │ │ │ │ │ ├── os_cap.icns │ │ │ │ │ ├── os_centos.icns │ │ │ │ │ ├── os_chrome.icns │ │ │ │ │ ├── os_clover.icns │ │ │ │ │ ├── os_cougar.icns │ │ │ │ │ ├── os_debian.icns │ │ │ │ │ ├── os_deepin.icns │ │ │ │ │ ├── os_ecomstation.icns │ │ │ │ │ ├── os_endless.icns │ │ │ │ │ ├── os_eos.icns │ │ │ │ │ ├── os_fedora.icns │ │ │ │ │ ├── os_freebsd.icns │ │ │ │ │ ├── os_freedos.icns │ │ │ │ │ ├── os_gentoo.icns │ │ │ │ │ ├── os_grub.icns │ │ │ │ │ ├── os_hsierra.icns │ │ │ │ │ ├── os_kali.icns │ │ │ │ │ ├── os_knoppix.icns │ │ │ │ │ ├── os_kubuntu.icns │ │ │ │ │ ├── os_legacy.icns │ │ │ │ │ ├── os_leo.icns │ │ │ │ │ ├── os_linux.icns │ │ │ │ │ ├── os_lion.icns │ │ │ │ │ ├── os_mac.icns │ │ │ │ │ ├── os_mac.orig.icns │ │ │ │ │ ├── os_manjaro.icns │ │ │ │ │ ├── os_mav.icns │ │ │ │ │ ├── os_mint.icns │ │ │ │ │ ├── os_moja.icns │ │ │ │ │ ├── os_mojave.icns │ │ │ │ │ ├── os_netbsd.icns │ │ │ │ │ ├── os_openbsd.icns │ │ │ │ │ ├── os_pclinux.icns │ │ │ │ │ ├── os_phoenix.icns │ │ │ │ │ ├── os_puppy.icns │ │ │ │ │ ├── os_react.icns │ │ │ │ │ ├── os_recovery.icns │ │ │ │ │ ├── os_redhat.icns │ │ │ │ │ ├── os_remix.icns │ │ │ │ │ ├── os_sierra.icns │ │ │ │ │ ├── os_slackware.icns │ │ │ │ │ ├── os_snow.icns │ │ │ │ │ ├── os_solaris.icns │ │ │ │ │ ├── os_suse.icns │ │ │ │ │ ├── os_tiger.icns │ │ │ │ │ ├── os_ubuntu.icns │ │ │ │ │ ├── os_unknown.icns │ │ │ │ │ ├── os_vista.icns │ │ │ │ │ ├── os_win.icns │ │ │ │ │ ├── os_xubuntu.icns │ │ │ │ │ ├── os_yos.icns │ │ │ │ │ ├── os_zorin.icns │ │ │ │ │ ├── pointer.icns │ │ │ │ │ ├── vol_clover.icns │ │ │ │ │ ├── vol_external.icns │ │ │ │ │ ├── vol_firewire.icns │ │ │ │ │ ├── vol_internal.icns │ │ │ │ │ ├── vol_internal_apfs.icns │ │ │ │ │ ├── vol_internal_ext3.icns │ │ │ │ │ ├── vol_internal_hfs.icns │ │ │ │ │ ├── vol_internal_ntfs.icns │ │ │ │ │ ├── vol_optical.icns │ │ │ │ │ └── vol_recovery.icns │ │ │ │ └── theme.plist │ │ │ └── SimpleThemeDark/ │ │ │ ├── .hash │ │ │ ├── icons/ │ │ │ │ ├── cd_lin.icns │ │ │ │ ├── cd_mac.icns │ │ │ │ ├── cd_win.icns │ │ │ │ ├── os_arch.icns │ │ │ │ ├── os_clover.icns │ │ │ │ ├── os_freebsd.icns │ │ │ │ ├── os_legacy.icns │ │ │ │ ├── os_linux.icns │ │ │ │ ├── os_mac.icns │ │ │ │ ├── os_recovery.icns │ │ │ │ ├── os_sierra.icns │ │ │ │ ├── os_ubuntu.icns │ │ │ │ ├── os_unknown.icns │ │ │ │ ├── os_win.icns │ │ │ │ ├── os_win7.icns │ │ │ │ ├── pointer.icns │ │ │ │ ├── tool_shell.icns │ │ │ │ ├── vol_clover.icns │ │ │ │ ├── vol_external.icns │ │ │ │ ├── vol_firewire.icns │ │ │ │ ├── vol_internal.icns │ │ │ │ ├── vol_internal_ext3.icns │ │ │ │ ├── vol_internal_hfs.icns │ │ │ │ ├── vol_internal_ntfs.icns │ │ │ │ ├── vol_optical.icns │ │ │ │ └── vol_recovery.icns │ │ │ └── theme.plist │ │ └── tools/ │ │ ├── Shell32.efi │ │ ├── Shell64.efi │ │ ├── Shell64U.efi │ │ └── bdmesg.efi │ └── Clover_Install_Log.txt ├── HIDPI/ │ └── DisplayVendorID-dae/ │ ├── DisplayProductID-15e0 │ ├── DisplayProductID-15e0-9d9da0.tiff │ ├── DisplayProductID-15e0_hidpi │ └── Icons.plist ├── README.md ├── README的副本.md ├── Tools/ │ ├── archey │ ├── bdmesg │ └── usb_Ports ├── hda-tools/ │ ├── Extract_ALC256/ │ │ ├── Platforms.plist │ │ └── ahhcd.plist │ ├── ccc │ ├── codecgraph │ ├── codecgraph.1 │ ├── codecgraph.py │ ├── config_dump.sh │ ├── convert.sh │ ├── eapd_dump.sh │ ├── extract_hda.sh │ ├── gen_ahhcd.sh │ ├── getdump │ ├── hda-verb │ ├── node_dump.sh │ ├── print_version.sh │ ├── verbit.sh │ └── widget_dump.sh ├── refind/ │ ├── drivers_aa64/ │ │ ├── LICENSE.txt │ │ ├── LICENSE_GPL.txt │ │ ├── btrfs_aa64.efi │ │ ├── ext2_aa64.efi │ │ ├── ext4_aa64.efi │ │ ├── hfs_aa64.efi │ │ ├── iso9660_aa64.efi │ │ ├── ntfs_aa64.efi │ │ └── reiserfs_aa64.efi │ ├── drivers_ia32/ │ │ ├── LICENSE.txt │ │ ├── LICENSE_GPL.txt │ │ ├── btrfs_ia32.efi │ │ ├── ext2_ia32.efi │ │ ├── ext4_ia32.efi │ │ ├── hfs_ia32.efi │ │ ├── iso9660_ia32.efi │ │ ├── ntfs_ia32.efi │ │ └── reiserfs_ia32.efi │ ├── drivers_x64/ │ │ ├── LICENSE.txt │ │ ├── LICENSE_GPL.txt │ │ ├── btrfs_x64.efi │ │ ├── ext2_x64.efi │ │ ├── ext4_x64.efi │ │ ├── hfs_x64.efi │ │ ├── iso9660_x64.efi │ │ ├── ntfs_x64.efi │ │ └── reiserfs_x64.efi │ ├── icons/ │ │ ├── README │ │ └── licenses/ │ │ ├── cc-3.0.txt │ │ ├── gpl-2.0.txt │ │ └── lgpl-3.0.txt │ ├── icons-backup/ │ │ ├── README │ │ └── licenses/ │ │ ├── cc-3.0.txt │ │ ├── gpl-2.0.txt │ │ └── lgpl-3.0.txt │ ├── keys/ │ │ ├── SLES-UEFI-CA-Certificate.cer │ │ ├── altlinux.cer │ │ ├── canonical-uefi-ca.der │ │ ├── centos.cer │ │ ├── fedora-ca.cer │ │ ├── microsoft-kekca-public.der │ │ ├── microsoft-pca-public.der │ │ ├── microsoft-uefica-public.der │ │ ├── openSUSE-UEFI-CA-Certificate-4096.cer │ │ ├── openSUSE-UEFI-CA-Certificate.cer │ │ └── refind.cer │ ├── refind.conf │ ├── refind.conf-sample │ ├── refind_aa64.efi │ ├── refind_ia32.efi │ ├── refind_x64.efi │ ├── shellx64.efi │ ├── tools_ia32/ │ │ └── gptsync_ia32.efi │ └── tools_x64/ │ └── gptsync_x64.efi └── ubuntu/ ├── fbx64.efi ├── fwupx64.efi ├── grub.cfg ├── grubx64.efi ├── mmx64.efi └── shimx64.efi ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ .DS_Store *.zip backup/ ================================================ FILE: ALCPlugFix/good.win.ALCPlugFix.plist ================================================ KeepAlive Label good.win.ALCPlugFix ProgramArguments /usr/bin/ALCPlugFix RunAtLoad ServiceIPC ================================================ FILE: ALCPlugFix/install.command ================================================ #!/bin/bash path=${0%/*} sudo cp -a "$path/ALCPlugFix" /usr/bin sudo chmod 755 /usr/bin/ALCPlugFix sudo chown root:wheel /usr/bin/ALCPlugFix sudo cp -a "$path/hda-verb" /usr/bin sudo chmod 755 /usr/bin/hda-verb sudo chown root:wheel /usr/bin/hda-verb sudo cp -a "$path/good.win.ALCPlugFix.plist" /Library/LaunchAgents/ sudo chmod 644 /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo chown root:wheel /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo launchctl load /Library/LaunchAgents/good.win.ALCPlugFix.plist echo 'The installation of the ALCPlugFix daemon is complete' echo 'Rebuild kextcache, please wait...' sudo chmod -Rf 755 /S*/L*/E* sudo chown -Rf 0:0 /S*/L*/E* sudo chmod -Rf 755 /L*/E* sudo chown -Rf 0:0 /L*/E* sudo rm -Rf /S*/L*/PrelinkedKernels/* sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/* sudo touch -f /S*/L*/E* sudo touch -f /L*/E* sudo kextcache -Boot -U / echo 'Rebuild kextcache is complete' bash read -p 'Press any key to Exit' ================================================ FILE: ALCPlugFix/install双击自动卸载ALCPlugFix.command ================================================ #!/bin/bash path=${0%/*} sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo rm -rf /usr/bin/ALCPlugFix echo '重建缓存中,请稍候……' sudo chmod -Rf 755 /S*/L*/E* sudo chown -Rf 0:0 /S*/L*/E* sudo chmod -Rf 755 /L*/E* sudo chown -Rf 0:0 /L*/E* sudo rm -Rf /S*/L*/PrelinkedKernels/* sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/* sudo touch -f /S*/L*/E* sudo touch -f /L*/E* sudo kextcache -Boot -U / echo '卸载ALCPlugFix守护进程完成!' bash read -p '按任何键退出' ================================================ FILE: ALCPlugFix/install双击自动安装.command ================================================ #!/bin/bash path=${0%/*} sudo cp -a "$path/ALCPlugFix" /usr/bin sudo chmod 755 /usr/bin/ALCPlugFix sudo chown root:wheel /usr/bin/ALCPlugFix sudo cp -a "$path/hda-verb" /usr/bin sudo chmod 755 /usr/bin/hda-verb sudo chown root:wheel /usr/bin/hda-verb sudo cp -a "$path/good.win.ALCPlugFix.plist" /Library/LaunchAgents/ sudo chmod 644 /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo chown root:wheel /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo launchctl load /Library/LaunchAgents/good.win.ALCPlugFix.plist echo '正在重建缓存中,请稍候......' sudo chmod -Rf 755 /S*/L*/E* sudo chown -Rf 0:0 /S*/L*/E* sudo chmod -Rf 755 /L*/E* sudo chown -Rf 0:0 /L*/E* sudo rm -Rf /S*/L*/PrelinkedKernels/* sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/* sudo touch -f /S*/L*/E* sudo touch -f /L*/E* sudo kextcache -Boot -U / echo '重建缓存完毕!' echo '安装ALCPlugFix守护进程完成!' bash read -p '按任何键退出' ================================================ FILE: ALCPlugFix/uninstall.command ================================================ #!/bin/bash path=${0%/*} sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist sudo rm -rf /usr/bin/ALCPlugFix echo 'Rebuilding Kext Cache,please wait……' sudo chmod -Rf 755 /S*/L*/E* sudo chown -Rf 0:0 /S*/L*/E* sudo chmod -Rf 755 /L*/E* sudo chown -Rf 0:0 /L*/E* sudo rm -Rf /S*/L*/PrelinkedKernels/* sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/* sudo touch -f /S*/L*/E* sudo touch -f /L*/E* sudo kextcache -Boot -U / echo 'Uninstall the ALCPlugFix daemon complete!' bash read -p 'Press any key to exit' ================================================ FILE: DisplayVendorID-dae/DisplayProductID-15e0 ================================================ DisplayBacklight 575.5 DisplayBrightReflection 573.10000000000002 DisplayDarkReflection 1.1000000000000001 DisplayLeakage 0.41899999999999998 DisplayLowestLevel 2 DisplayLowestMeasured 0.43230000000000002 DisplayProductID 45061 DisplayProductName Color LCD DisplayVendorID 1552 IODisplayEDID AP///////wAGEBKgAAAAABwWAQS1MBt4Im+xp1VMniUMUFQAAAABAQEBAQEBAQEBAQEB AQEBtDuASnE4NEBQNmgAWMEQAAAawy+ASnE4NEBQNmgAWMEQAAAaAAAA/ABpTWFjCiAg ICAgICAgAAAAAAAAQTGWARAAAAoBCiAgAIM= IOGFlags 4 scale-resolutions AAAGQAAAA4QA AAALQAAABlQA AAAKAAAABaAA target-default-ppmm 10.069930100000001 ================================================ FILE: DisplayVendorID-dae/DisplayProductID-15e0_hidpi ================================================ DisplayProductID 45061 DisplayVendorID 1552 IODisplayEDID AP///////wAGEBKgAAAAABwWAQS1MBt4Im+xp1VMniUMUFQAAAABAQEBAQEBAQEBAQEB AQEBtDuASnE4NEBQNmgAWMEQAAAawy+ASnE4NEBQNmgAWMEQAAAaAAAA/ABpTWFjCiAg ICAgICAgAAAAAAAAQTGWARAAAAoBCiAgAIM= scale-resolutions AAAPAAAACHAAAAABACAAAA== AAAMgAAABwgAAAABACAAAA== AAALQAAABlQAAAABACAAAA== AAAHgAAABDgAAAABACAAAA== AAAGQAAAA4QAAAABACAAAA== AAAFoAAAAyoAAAABACAAAA== ================================================ FILE: DisplayVendorID-dae/Icons.plist ================================================ board-ids Mac-189A3D4F975D5FFC display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-189A3D4F975D5FFC.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-2BD1B31983FE1663 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-2BD1B31983FE1663.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-3CBD00234E554E41 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-3CBD00234E554E41.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-42FD25EABCABB274 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-42FD25EABCABB274.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-4B682C642B45593E display-icon com.apple.imac-unibody-21 Mac-65CE76090165799A display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-AFD8A9D944EA4843 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-AFD8A9D944EA4843.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-B809C3757DA9BB8D display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-B809C3757DA9BB8D.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-C3EC7CD22292981F display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-C3EC7CD22292981F.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-DB15BD556843C820 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-DB15BD556843C820.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-E43C1C25D4880AD6 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-E43C1C25D4880AD6.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-FA842E06C61E91C5 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-FA842E06C61E91C5.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 vendors 1e6d products 5b10 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b10.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b10.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 47 5b11 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 11 resolution-preview-y 47 610 display-icon com.apple.cinema-display products 9226 display-icon com.apple.led-cinema-display-27 9227 display-icon com.apple.led-cinema-display-27 9236 display-icon com.apple.led-cinema-display-24 a027-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-9d9da0.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-e1e1df.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-e8c9c3 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-e8c9c3.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-ebd7bf display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-ebd7bf.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-9d9da0.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-e1e1df.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-e8c9c3 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-e8c9c3.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-ebd7bf display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-ebd7bf.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a029 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a029.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 a02a display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02a.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 a02e display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02e.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 a02f display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02f.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 a030-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a030-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a031-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a031-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a032 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 a033-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a033-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a034-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a034-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a037-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a037-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a038-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a038-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 ae11 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae12 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae13 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae15 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae16 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae17 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae19 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 ae1a display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 ae1b display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 9e6d products 5b11 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 11 resolution-preview-y 47 dae display-icon com.apple.cinema-display products 15e0-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-dae/DisplayProductID-15e0-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 display-icon public.display ================================================ FILE: EFI/CLOVER/ACPI/origin/DumpLog.txt ================================================ 40:353 38:194 Found BIOS RSDP at EB510 40:353 0:000 Printing ACPI tables from RSDP EB510 ... 40:353 0:000 EB510: 'RSD PTR ', Rev: 2 (Acpi 2.0 or newer), Len: 36 40:353 0:000 (Xsdt: 6F0620C8, Rsdt: 6F062028) 40:353 0:000 6F0620C8: 'XSDT', 'CBX3', Rev: 1, Len: 276 40:353 0:000 6F062028: 'RSDT', 'CBX3', Rev: 1, Len: 156 40:353 0:000 Tables in Xsdt: 30 40:353 0:000 0. 6F0846F8: 'FACP', 'CBX3', Rev: 5, Len: 268 40:353 0:000 (Dsdt: 6F062270, Facs: 6F9F2F80, XDsdt: 6F062270, XFacs: 0) 40:353 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 40:355 0:001 6F9F2F80: 'FACS', Ver: 2, Len: 64 40:355 0:000 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 40:355 0:000 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 40:355 0:000 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 40:355 0:000 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 40:355 0:000 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 40:355 0:000 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 40:355 0:000 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 40:355 0:000 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 40:355 0:000 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 40:355 0:000 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 40:355 0:000 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 40:355 0:000 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 40:355 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 40:355 0:000 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 40:355 0:000 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 40:355 0:000 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 40:355 0:000 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 40:355 0:000 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 40:355 0:000 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 40:355 0:000 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 40:355 0:000 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 40:355 0:000 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 40:355 0:000 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 40:355 0:000 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 40:355 0:000 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 40:355 0:000 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 40:355 0:000 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 40:355 0:000 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 40:355 0:000 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 40:355 0:000 Tables in Rsdt: 30 40:355 0:000 0. 6F0621E8: 'FACP', 'CBX3', Rev: 2, Len: 132 40:355 0:000 (Dsdt: 6F062270, Facs: 6F9F2F40) 40:355 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 40:356 0:001 6F9F2F40: 'FACS', Ver: 0, Len: 64 40:356 0:000 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 40:356 0:000 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 40:356 0:000 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 40:356 0:000 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 40:356 0:000 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 40:356 0:000 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 40:356 0:000 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 40:356 0:000 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 40:356 0:000 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 40:356 0:000 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 40:356 0:000 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 40:356 0:000 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 40:356 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 40:356 0:000 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 40:356 0:000 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 40:356 0:000 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 40:356 0:000 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 40:356 0:000 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 40:356 0:000 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 40:356 0:000 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 40:356 0:000 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 40:356 0:000 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 40:356 0:000 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 40:356 0:000 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 40:356 0:000 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 40:356 0:000 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 40:356 0:000 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 40:356 0:000 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 40:356 0:000 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 40:356 0:000 Found UEFI Acpi 2.0 RSDP at 6F062000 40:356 0:000 Saving ACPI tables from RSDP 6F062000 to EFI\CLOVER\ACPI\origin ... 40:356 0:000 6F062000: 'RSD PTR ', Rev: 2 (Acpi 2.0 or newer), Len: 36 -> RSDP.aml 40:380 0:023 (Xsdt: 6F0620C8, Rsdt: 6F062028) 40:380 0:000 6F0620C8: 'XSDT', 'CBX3', Rev: 1, Len: 276 -> XSDT.aml 40:400 0:019 6F062028: 'RSDT', 'CBX3', Rev: 1, Len: 156 -> RSDT.aml 40:419 0:019 Tables in Xsdt: 30 40:419 0:000 0. 6F0846F8: 'FACP', 'CBX3', Rev: 5, Len: 268 -> FACP.aml 40:437 0:018 (Dsdt: 6F062270, Facs: 6F9F2F80, XDsdt: 6F062270, XFacs: 0) 40:437 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 -> DSDT.aml 40:475 0:038 6F9F2F80: 'FACS', Ver: 2, Len: 64 -> FACS.aml 40:494 0:018 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 -> APIC.aml 40:511 0:017 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 -> FPDT.aml 40:540 0:029 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 -> FIDT.aml 40:558 0:017 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 -> MCFG.aml 40:577 0:018 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 -> HPET.aml 40:595 0:018 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 -> SSDT-0-SataTabl.aml 40:613 0:018 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 -> BOOT.aml 40:632 0:018 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 -> SSDT-1-SaSsdt.aml 40:650 0:018 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 -> HPET.aml 40:667 0:017 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 -> SSDT-2-xh_OEMBD.aml 40:685 0:017 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 -> UEFI.aml 40:703 0:018 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 -> SSDT-3-CpuSsdt.aml (Found hidden SSDT 7 pcs) 40:721 0:018 * 6EDA6798: 'SSDT', 'Cpu0Ist', Rev: 2, Len: 1782 53 53 44 54 F6 06 00 00 02 AC 50 6D 52 65 66 00 Internal length = 1782 -> SSDT-x3_0-Cpu0Ist.aml 40:738 0:016 * 6EDA5718: 'SSDT', 'ApIst', Rev: 2, Len: 1628 53 53 44 54 5C 06 00 00 02 AF 50 6D 52 65 66 00 Internal length = 1628 -> SSDT-x3_1-ApIst.aml 40:756 0:018 * 6EDA4918: 'SSDT', 'Cpu0Cst', Rev: 2, Len: 1023 53 53 44 54 FF 03 00 00 02 AF 50 6D 52 65 66 00 Internal length = 1023 -> SSDT-x3_2-Cpu0Cst.aml 40:776 0:019 * 6EDA5E18: 'SSDT', 'ApCst', Rev: 2, Len: 394 53 53 44 54 8A 01 00 00 02 39 50 6D 52 65 66 00 Internal length = 394 -> SSDT-x3_3-ApCst.aml 40:795 0:018 * 6D7E2018: 'SSDT', 'Cpu0Hwp', Rev: 2, Len: 277 53 53 44 54 15 01 00 00 02 AE 50 6D 52 65 66 00 Internal length = 277 -> SSDT-x3_4-Cpu0Hwp.aml 40:814 0:019 * 6CD44C18: 'SSDT', 'ApHwp', Rev: 2, Len: 407 53 53 44 54 97 01 00 00 02 F1 50 6D 52 65 66 00 Internal length = 407 -> SSDT-x3_5-ApHwp.aml 40:832 0:018 * 6CD44A18: 'SSDT', 'HwpLvt', Rev: 2, Len: 420 53 53 44 54 A4 01 00 00 02 3C 50 6D 52 65 66 00 Internal length = 420 -> SSDT-x3_6-HwpLvt.aml 40:850 0:018 40:850 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 -> LPIT.aml 40:869 0:018 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 -> WSMT.aml 40:886 0:017 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 -> SSDT-4-HdaDsp.aml 40:904 0:017 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 -> SSDT-5-sensrhub.aml 40:922 0:018 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 -> SSDT-6-PtidDevc.aml 40:940 0:018 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 -> SSDT-7-TbtTypeC.aml 40:957 0:017 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 -> DBGP.aml 40:976 0:018 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 -> DBG2.aml 40:994 0:017 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 -> SSDT-8-DptfTabl.aml 41:013 0:019 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 -> MSDM.aml 41:030 0:017 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 -> SLIC.aml 41:048 0:018 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 -> SSDT-9-SgUlt.aml 41:066 0:017 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 -> SSDT-10-SgPch.aml 41:083 0:017 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 -> DMAR.aml 41:102 0:018 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 -> TPM2.aml 41:120 0:018 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 -> SSDT-11-OptTabl.aml 41:138 0:018 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 -> BGRT.aml 41:157 0:018 Tables in Rsdt: 30 41:157 0:000 0. 6F0621E8: 'FACP', 'CBX3', Rev: 2, Len: 132 -> RSDT-FACP.aml 41:175 0:018 (Dsdt: 6F062270, Facs: 6F9F2F40) 41:175 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 41:177 0:001 6F9F2F40: 'FACS', Ver: 0, Len: 64 -> RSDT-FACS.aml 41:195 0:017 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 41:195 0:000 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 41:195 0:000 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 41:195 0:000 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 41:195 0:000 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 41:195 0:000 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 41:195 0:000 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 41:195 0:000 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 41:195 0:000 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 41:195 0:000 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 41:195 0:000 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 41:195 0:000 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 41:195 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 41:195 0:000 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 41:195 0:000 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 41:195 0:000 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 41:195 0:000 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 41:195 0:000 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 41:195 0:000 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 41:195 0:000 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 41:195 0:000 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 41:195 0:000 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 41:195 0:000 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 41:195 0:000 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 41:195 0:000 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 41:195 0:000 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 41:195 0:000 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 41:195 0:000 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 41:195 0:000 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 41:195 0:000 Found UEFI Acpi 1.0 RSDP at 6F062000 41:195 0:000 Printing ACPI tables from RSDP 6F062000 ... 41:195 0:000 6F062000: 'RSD PTR ', Rev: 2 (Acpi 2.0 or newer), Len: 36 41:195 0:000 (Xsdt: 6F0620C8, Rsdt: 6F062028) 41:195 0:000 6F0620C8: 'XSDT', 'CBX3', Rev: 1, Len: 276 41:195 0:000 6F062028: 'RSDT', 'CBX3', Rev: 1, Len: 156 41:195 0:000 Tables in Xsdt: 30 41:195 0:000 0. 6F0846F8: 'FACP', 'CBX3', Rev: 5, Len: 268 41:195 0:000 (Dsdt: 6F062270, Facs: 6F9F2F80, XDsdt: 6F062270, XFacs: 0) 41:195 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 41:196 0:001 6F9F2F80: 'FACS', Ver: 2, Len: 64 41:196 0:000 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 41:196 0:000 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 41:196 0:000 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 41:196 0:000 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 41:196 0:000 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 41:196 0:000 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 41:196 0:000 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 41:196 0:000 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 41:196 0:000 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 41:196 0:000 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 41:196 0:000 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 41:196 0:000 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 41:196 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 41:196 0:000 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 41:196 0:000 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 41:196 0:000 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 41:196 0:000 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 41:196 0:000 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 41:196 0:000 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 41:196 0:000 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 41:196 0:000 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 41:196 0:000 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 41:196 0:000 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 41:196 0:000 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 41:196 0:000 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 41:196 0:000 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 41:196 0:000 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 41:196 0:000 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 41:196 0:000 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 41:196 0:000 Tables in Rsdt: 30 41:196 0:000 0. 6F0621E8: 'FACP', 'CBX3', Rev: 2, Len: 132 41:196 0:000 (Dsdt: 6F062270, Facs: 6F9F2F40) 41:196 0:000 6F062270: 'DSDT', 'CBX3', Rev: 2, Len: 140418 41:198 0:001 6F9F2F40: 'FACS', Ver: 0, Len: 64 41:198 0:000 1. 6F084808: 'APIC', 'CBX3', Rev: 3, Len: 132 41:198 0:000 2. 6F084890: 'FPDT', 'CBX3', Rev: 1, Len: 68 41:198 0:000 3. 6F0848D8: 'FIDT', 'CBX3', Rev: 1, Len: 156 41:198 0:000 4. 6F084978: 'MCFG', 'CBX3', Rev: 1, Len: 60 41:198 0:000 5. 6F0849B8: 'HPET', 'CBX3', Rev: 1, Len: 56 41:198 0:000 6. 6F0849F0: 'SSDT', 'SataTabl', Rev: 1, Len: 882 41:198 0:000 7. 6F084D68: 'BOOT', 'CBX3', Rev: 1, Len: 40 41:198 0:000 8. 6F084D90: 'SSDT', 'SaSsdt', Rev: 2, Len: 4833 41:198 0:000 9. 6F086078: 'HPET', 'KBL-ULT', Rev: 1, Len: 56 41:198 0:000 10. 6F0860B0: 'SSDT', 'xh_OEMBD', Rev: 2, Len: 1716 41:198 0:000 11. 6F086768: 'UEFI', '', Rev: 1, Len: 66 41:198 0:000 12. 6F0867B0: 'SSDT', 'CpuSsdt', Rev: 2, Len: 3806 41:198 0:000 13. 6F087690: 'LPIT', 'KBL-ULT', Rev: 1, Len: 148 41:198 0:000 14. 6F087728: 'WSMT', 'KBL-ULT', Rev: 1, Len: 40 41:198 0:000 15. 6F087750: 'SSDT', 'HdaDsp', Rev: 2, Len: 321 41:198 0:000 16. 6F087898: 'SSDT', 'sensrhub', Rev: 2, Len: 671 41:198 0:000 17. 6F087B38: 'SSDT', 'PtidDevc', Rev: 2, Len: 12290 41:198 0:000 18. 6F08AB40: 'SSDT', 'TbtTypeC', Rev: 2, Len: 533 41:198 0:000 19. 6F08AD58: 'DBGP', '', Rev: 1, Len: 52 41:198 0:000 20. 6F08AD90: 'DBG2', '', Rev: 0, Len: 84 41:198 0:000 21. 6F08ADE8: 'SSDT', 'DptfTabl', Rev: 2, Len: 23589 41:198 0:000 22. 6F090A10: 'MSDM', 'CBX3', Rev: 3, Len: 85 41:198 0:000 23. 6F090A68: 'SLIC', 'CBX3', Rev: 3, Len: 374 41:198 0:000 24. 6F090BE0: 'SSDT', 'SgUlt', Rev: 2, Len: 1053 41:198 0:000 25. 6F091000: 'SSDT', 'SgPch', Rev: 2, Len: 1874 41:198 0:000 26. 6F091758: 'DMAR', 'KBL', Rev: 1, Len: 240 41:198 0:000 27. 6F091848: 'TPM2', 'Tpm2Tabl', Rev: 3, Len: 52 41:198 0:000 28. 6F091880: 'SSDT', 'OptTabl', Rev: 1, Len: 7776 41:198 0:000 29. 6F0936E0: 'BGRT', '', Rev: 0, Len: 56 ================================================ FILE: EFI/CLOVER/config.plist ================================================ ACPI AutoMerge DSDT Debug DropOEM_DSM Fixes FixAirport FixRegions Patches Comment change _DSM to XSDM Disabled Find X0RTTQ== Replace WERTTQ== Comment change OSID to IDOS Disabled Find T1NJRA== Replace SURPUw== Comment change _OSI to XOSI Disabled Find X09TSQ== Replace WE9TSQ== Comment change HDAS to HDEF Disabled Find SERBUw== Replace SERFRg== Comment change HECI to IMEI Disabled Find SEVDSQ== Replace SU1FSQ== Comment chang BRT6 to BRTX Disabled Find IEJSVDY= Replace IEJSVFg= Comment change GFX0 to IGPU Disabled Find R0ZYMA== Replace SUdQVQ== Comment change SAT0 to SATA Disabled Find U0FUMA== Replace U0FUQQ== Comment change 6D03 to 6D00 Disabled Find oG2gAw== Replace oG2gAA== Comment change _PTS to ZPTS Disabled Find X1BUUw== Replace WlBUUw== Comment change _WAK to ZWAK Disabled Find X1dBSw== Replace WldBSw== Comment change ECDV to EC(dell) Disabled Find RUNEVg== Replace RUNfXw== Comment change LID0 to LID_ Disabled Find TElEMA== Replace TElEXw== Comment change _LID to XLID Disabled Find X0xJRAA= Replace WExJRAA= Comment change NEVT to XEVT(dell) Disabled Find TkVWVAA= Replace WEVWVAA= Comment XDCI:_PRW to XPRW Disabled Find X1BSVw== Replace WFBSVw== TgtBridge WERDSQ== Comment GLAN:_PRW to XPRW Disabled Find X1BSVw== Replace WFBSVw== TgtBridge R0xBTg== ReuseFFFF DropTables Signature DMAR FixHeaders FixMCFG SSDT DropOem Generate CStates PStates PluginType Boot Arguments darkwake=8 brcmfx-driver=1 brcmfx-country=#a -lilubetaall CustomLogo Theme Debug DefaultVolume MAC NoEarlyProgress Secure Timeout 1 XMPDetection BootGraphics EFILoginHiDPI 1 UIScale 1 flagstate 1 CPU HWPEnable UseARTFrequency Devices Audio Inject No Properties PciRoot(0x0)/Pci(0x0,0x0) AAPL,slot-name Internal device_type Host bridge model Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers PciRoot(0x0)/Pci(0x14,0x0) AAPL,slot-name Internal device_type USB controller model Sunrise Point-LP USB 3.0 xHCI Controller PciRoot(0x0)/Pci(0x14,0x2) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Thermal subsystem PciRoot(0x0)/Pci(0x15,0x0) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Serial IO I2C Controller #0 PciRoot(0x0)/Pci(0x15,0x1) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Serial IO I2C Controller #1 PciRoot(0x0)/Pci(0x16,0x0) AAPL,slot-name Internal device_type Communication controller model Sunrise Point-LP CSME HECI #1 PciRoot(0x0)/Pci(0x17,0x0) AAPL,slot-name Internal device_type SATA controller model Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] PciRoot(0x0)/Pci(0x1c,0x0) AAPL,slot-name Internal device_type PCI bridge model Sunrise Point-LP PCI Express Root Port #1 PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0) AAPL,slot-name Internal@1,0,0 device_type Unassigned class model GM108M [GeForce 940MX] PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0) AAPL,slot-name WLAN compatible pci14e4,4353 device_type Airport Extreme model DW1820A (BCM4350) 802.11ac Wireless name Airport PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0) AAPL,slot-name Internal@3,0,0 device_type Ethernet controller model RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller PciRoot(0x0)/Pci(0x1f,0x0) AAPL,slot-name Internal device_type ISA bridge model Sunrise Point-LP LPC Controller PciRoot(0x0)/Pci(0x1f,0x2) AAPL,slot-name Internal device_type Memory controller model Sunrise Point-LP PMC PciRoot(0x0)/Pci(0x1f,0x3) layout-id OAAAAA== PciRoot(0x0)/Pci(0x1f,0x4) AAPL,slot-name Internal device_type SMBus model Sunrise Point-LP SMBus PciRoot(0x0)/Pci(0x2,0x0) #framebuffer-unifiedmem AAAAgA== AAPL,ig-platform-id AAAWWQ== device-id FlkAAA== framebuffer-con1-enable AQAAAA== framebuffer-con1-type AAgAAA== framebuffer-con2-busid AAAAAA== framebuffer-con2-enable AQAAAA== framebuffer-con2-flags AAAAAA== framebuffer-con2-index /////w== framebuffer-con2-pipe AAAAAA== framebuffer-con2-type AQAAAA== framebuffer-fbmem AACQAA== framebuffer-memorycount AgAAAA== framebuffer-patch-enable AQAAAA== framebuffer-pipecount AgAAAA== framebuffer-portcount AgAAAA== framebuffer-stolenmem AAAwAQ== model Intel Iris Plus Graphics 655 PciRoot(0x0)/Pci(0x4,0x0) AAPL,slot-name Internal device_type Signal processing controller model Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem USB AddClockID FixOwnership HighCurrent Inject UseIntelHDMI GUI Hide Preboot Recovery Windows Mouse DoubleClick 500 Enabled Mirror Speed 8 PlayAsync Scan Entries Legacy Linux Tool ScreenResolution 1920x1080 Theme Hackintosh_ID Graphics EDID Inject Inject ATI Intel NVidia NvidiaSingle KernelAndKextPatches AppleIntelCPUPM AppleRTC Debug DellSMBIOSPatch ForceKextsToLoad \System\Library\Extensions\IONetworkingFamily.kext KernelCpu KernelLapic KernelPm KernelToPatch Comment Disable panic kext logging on 10.13 Debug kernel Disabled Find sABMi1Xw MatchOS 10.13.x Replace SIPEQF3D Comment Disable panic kext logging on kernel by DalianSky Disabled Find igKEwHQ= Replace igKEwOs= Comment MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha Disabled Find ILniAAAADzA= Replace ILniAAAAkJA= KernelXCPM KextsToPatch Comment Disable AppleIntelLpssI2C (credit by Coolstar) Disabled Find SU9LaXQ= InfoPlistPatch Name AppleIntelLpssI2C Replace SU9LaXM= Comment Disable AppleIntelLpssI2CCOntroller (credit by Coolstar) Disabled Find SU9LaXQ= InfoPlistPatch Name AppleIntelLpssI2CController Replace SU9LaXM= Comment AppleBacklightInjector.kext (credit RehabMan) Disabled Find RiV1VCUwNHgA InfoPlistPatch Name com.apple.driver.AppleBacklight Replace RiV1VHh4eHgA Comment Enable TRIM for SSD Disabled Find AEFQUExFIFNTRAA= InfoPlistPatch Name com.apple.iokit.IOAHCIBlockStorage Replace AAAAAAAAAAAAAAA= Comment USB Port limit patch 10.14.1 18B50C (credits DalianSky) Disabled Find g32IDw+DpwQA InfoPlistPatch MatchBuild 10.13.6 Name com.apple.driver.usb.AppleUSBXHCI Replace g32IkJCQkJCQ Comment USB Port limit patch 10.14.x 10.15.x #1 modify by DalianSky(credits PMheart) Disabled Find g/sPDw== InfoPlistPatch Name com.apple.iokit.IOUSBHostFamily Replace g/s/Dw== Comment USB port limit patch 10.14.x modify by DalianSky(credit PMHeart) Disabled Find g+MP0w== InfoPlistPatch Name com.apple.iokit.IOUSBHostFamily Replace g+M/0w== Comment USB Port limit patch 10.15.x #1 modify by DalianSky Disabled Find g/kPDw== InfoPlistPatch Name com.apple.driver.usb.AppleUSBXHCI Replace g/k/Dw== Comment USB Port limit patch 10.14.x modify by DalianSky(credits PMheart) Disabled Find g/sPDw== InfoPlistPatch Name com.apple.driver.usb.AppleUSBXHCI Replace g/s/Dw== Comment USB Port limit patch 10.14.x modify by DalianSky(credits PMheart) Disabled Find g/8PDw== InfoPlistPatch Name com.apple.driver.usb.AppleUSBXHCI Replace g/8/Dw== RtVariables BooterConfig 0x28 CsrActiveConfig 0x67 SMBIOS ProductName MacBookPro15,2 SystemParameters InjectKexts Detect InjectSystemID ================================================ FILE: EFI/CLOVER/config_bak.plist ================================================ ACPI AutoMerge DSDT Debug DropOEM_DSM Fixes FixRegions Patches Comment change _DSM to XSDM Disabled Find X0RTTQ== Replace WERTTQ== Comment change OSID to IDOS Disabled Find T1NJRA== Replace SURPUw== Comment change _OSI to XOSI Disabled Find X09TSQ== Replace WE9TSQ== Comment change HDAS to HDEF Disabled Find SERBUw== Replace SERFRg== Comment change HECI to IMEI Disabled Find SEVDSQ== Replace SU1FSQ== Comment chang BRT6 to BRTX Disabled Find IEJSVDY= Replace IEJSVFg= Comment change GFX0 to IGPU Disabled Find R0ZYMA== Replace SUdQVQ== Comment change SAT0 to SATA Disabled Find U0FUMA== Replace U0FUQQ== Comment change 6D03 to 6D00 Disabled Find oG2gAw== Replace oG2gAA== Comment change _PTS to ZPTS Disabled Find X1BUUw== Replace WlBUUw== Comment change _WAK to ZWAK Disabled Find X1dBSw== Replace WldBSw== Comment change ECDV to EC(dell) Disabled Find RUNEVg== Replace RUNfXw== Comment change LID0 to LID_ Disabled Find TElEMA== Replace TElEXw== Comment change _LID to XLID Disabled Find X0xJRAA= Replace WExJRAA= Comment change NEVT to XEVT(dell) Disabled Find TkVWVAA= Replace WEVWVAA= Comment XDCI:_PRW to XPRW Disabled Find X1BSVw== Replace WFBSVw== TgtBridge WERDSQ== Comment GLAN:_PRW to XPRW Disabled Find X1BSVw== Replace WFBSVw== TgtBridge R0xBTg== Comment HDEF:_PRW to XPRW Disabled Find X1BSVw== Replace WFBSVw== TgtBridge SERFRg== Comment DELL:EV6 to XEV6 Disabled Find RVY2XwI= Replace WEVWNgI= ReuseFFFF DropTables Signature DMAR FixHeaders FixMCFG SSDT DropOem Generate CStates PStates PluginType Boot Arguments darkwake=8 -lilubetaall CustomLogo Theme Debug DefaultVolume MAC NoEarlyProgress Secure Timeout 1 XMPDetection BootGraphics EFILoginHiDPI 1 UIScale 1 flagstate 1 CPU HWPEnable UseARTFrequency Devices Audio Inject No Properties PciRoot(0x0)/Pci(0x0,0x0) AAPL,slot-name Internal device_type Host bridge model Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers PciRoot(0x0)/Pci(0x14,0x0) AAPL,slot-name Internal device_type USB controller model Sunrise Point-LP USB 3.0 xHCI Controller PciRoot(0x0)/Pci(0x14,0x2) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Thermal subsystem PciRoot(0x0)/Pci(0x15,0x0) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Serial IO I2C Controller #0 PciRoot(0x0)/Pci(0x15,0x1) AAPL,slot-name Internal device_type Signal processing controller model Sunrise Point-LP Serial IO I2C Controller #1 PciRoot(0x0)/Pci(0x16,0x0) AAPL,slot-name Internal device_type Communication controller model Sunrise Point-LP CSME HECI #1 PciRoot(0x0)/Pci(0x17,0x0) AAPL,slot-name Internal device_type SATA controller model Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] PciRoot(0x0)/Pci(0x1c,0x0) AAPL,slot-name Internal device_type PCI bridge model Sunrise Point-LP PCI Express Root Port #1 PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0) AAPL,slot-name Internal@1,0,0 device_type Unassigned class model GM108M [GeForce 940MX] PciRoot(0x0)/Pci(0x1c,0x4) AAPL,slot-name Internal device_type PCI bridge model Sunrise Point-LP PCI Express Root Port #5 PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0) AAPL,slot-name Internal@2,0,0 device_type Network controller model BCM4352 802.11ac Wireless Network Adapter PciRoot(0x0)/Pci(0x1c,0x5) AAPL,slot-name Internal device_type PCI bridge model Sunrise Point-LP PCI Express Root Port #6 PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0) AAPL,slot-name Internal@3,0,0 device_type Ethernet controller model RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller PciRoot(0x0)/Pci(0x1f,0x0) AAPL,slot-name Internal device_type ISA bridge model Sunrise Point-LP LPC Controller PciRoot(0x0)/Pci(0x1f,0x2) AAPL,slot-name Internal device_type Memory controller model Sunrise Point-LP PMC PciRoot(0x0)/Pci(0x1f,0x3) layout-id OAAAAA== PciRoot(0x0)/Pci(0x1f,0x4) AAPL,slot-name Internal device_type SMBus model Sunrise Point-LP SMBus PciRoot(0x0)/Pci(0x2,0x0) #framebuffer-unifiedmem AAAAgA== AAPL,ig-platform-id AAAWWQ== device-id FlkAAA== framebuffer-con1-enable AQAAAA== framebuffer-con1-type AAgAAA== framebuffer-con2-busid AAAAAA== framebuffer-con2-enable AQAAAA== framebuffer-con2-flags AAAAAA== framebuffer-con2-index /////w== framebuffer-con2-pipe AAAAAA== framebuffer-con2-type AQAAAA== framebuffer-fbmem AACQAA== framebuffer-memorycount AgAAAA== framebuffer-patch-enable AQAAAA== framebuffer-pipecount AgAAAA== framebuffer-portcount AgAAAA== framebuffer-stolenmem AAAwAQ== model Intel Iris Plus Graphics 655 PciRoot(0x0)/Pci(0x4,0x0) AAPL,slot-name Internal device_type Signal processing controller model Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem USB AddClockID FixOwnership HighCurrent Inject UseIntelHDMI GUI Hide Preboot Recovery Windows Mouse DoubleClick 500 Enabled Mirror Speed 8 PlayAsync Scan Entries Legacy Linux Tool ScreenResolution 1920x1080 Theme Hackintosh_ID Graphics EDID Inject Inject ATI Intel NVidia NvidiaSingle KernelAndKextPatches AppleIntelCPUPM AppleRTC Debug DellSMBIOSPatch ForceKextsToLoad \System\Library\Extensions\IONetworkingFamily.kext KernelCpu KernelLapic KernelPm KernelToPatch Comment Disable panic kext logging on 10.13 Debug kernel Disabled Find sABMi1Xw MatchOS 10.13.x Replace SIPEQF3D Comment Disable panic kext logging on 10.13 Release kernel Disabled Find igKEwHRE MatchOS 10.13.x Replace igKEwOtE Comment MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha Disabled Find ILniAAAADzA= Replace ILniAAAAkJA= Comment Disable panic kext logging on 10.14 Release kernel (c) vit9696 Disabled Find igKEwHRC MatchOS 10.14.x Replace igKEwOtC KernelXCPM KextsToPatch Comment Disable AppleIntelLpssI2C (credit by Coolstar) Disabled Find SU9LaXQ= InfoPlistPatch Name AppleIntelLpssI2C Replace SU9LaXM= Comment Disable AppleIntelLpssI2CCOntroller (credit by Coolstar) Disabled Find SU9LaXQ= InfoPlistPatch Name AppleIntelLpssI2CController Replace SU9LaXM= Comment AppleBacklightInjector.kext (credit RehabMan) Disabled Find RiV1VCUwNHgA InfoPlistPatch Name com.apple.driver.AppleBacklight Replace RiV1VHh4eHgA Comment Enable TRIM for SSD Disabled Find AEFQUExFIFNTRAA= InfoPlistPatch Name com.apple.iokit.IOAHCIBlockStorage Replace AAAAAAAAAAAAAAA= Comment USB Port limit patch 10.14 (credits FredWst) Disabled Find g/sPD4MDBQAA InfoPlistPatch MatchBuild 10.14 Name com.apple.driver.usb.AppleUSBXHCI Replace g/sPkJCQkJCQ Comment USB Port limit patch 10.14.1 18B50C (credits DalianSky) Disabled Find g/sPD4OPBAAA InfoPlistPatch MatchBuild 10.14.x Name com.apple.driver.usb.AppleUSBXHCI Replace g/sPkJCQkJCQ Comment USB Port limit patch 10.14.1 18B50C (credits DalianSky) Disabled Find g32IDw+DpwQA InfoPlistPatch MatchBuild 10.13.6 Name com.apple.driver.usb.AppleUSBXHCI Replace g32IkJCQkJCQ RtVariables BooterConfig 0x28 CsrActiveConfig 0x67 SMBIOS ProductName MacBookPro15,2 SystemParameters CustomUUID 4BC7201E-AA4D-5041-858C-91B8B48F65E2 InjectKexts Detect InjectSystemID ================================================ FILE: EFI/CLOVER/kexts/Other/AirportBrcmFixup.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18F132 CFBundleDevelopmentRegion en CFBundleExecutable AirportBrcmFixup CFBundleIdentifier as.lvs1974.AirportBrcmFixup CFBundleInfoDictionaryVersion 6.0 CFBundleName AirportBrcmFixup CFBundlePackageType KEXT CFBundleShortVersionString 2.0.1 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.0.1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities Airport_Brcm4360 CFBundleIdentifier com.apple.driver.AirPort.Brcm4360 IOClass AirPort_Brcm4360 IOMatchCategory IODefaultMatchCategory IONameMatch pci14e4,4331 pci14e4,4353 pci14e4,4357 pci14e4,43b1 pci14e4,43b2 IOProbeScore 1110 IOProviderClass IOPCIDevice TruePowerOff Airport_BrcmNIC CFBundleIdentifier com.apple.driver.AirPort.BrcmNIC IOClass AirPort_BrcmNIC IOMatchCategory IODefaultMatchCategory IONameMatch pci14e4,43ba pci14e4,43a3 pci14e4,43a0 pci14e4,43b1 pci14e4,43b2 IOProbeScore 2048 IOProviderClass IOPCIDevice TruePowerOff Broadcom 802.11 PCI CFBundleIdentifier as.lvs1974.AirportBrcmFixup IOClass FakeBrcm IOMatchCategory IODefaultMatchCategory IONameMatch pci14e4,43ba pci14e4,43a3 pci14e4,43a0 pci14e4,4331 pci14e4,4353 pci14e4,43b1 pci14e4,43b2 pci14e4,4357 pci14e4,432b pci14e4,4311 pci14e4,4312 pci14e4,4313 pci14e4,4318 pci14e4,4319 pci14e4,431a pci14e4,4320 pci14e4,4324 pci14e4,4325 pci14e4,4328 pci14e4,432c pci14e4,432d IOProbeScore 6000 IOProviderClass IOPCIDevice TruePowerOff as.lvs1974.AirportBrcmFixup CFBundleIdentifier as.lvs1974.AirportBrcmFixup IOClass AirportBrcmFixup IOMatchCategory AirportBrcmFixup IOProviderClass IOResources IOResourceMatch IOKit NSHumanReadableCopyright Copyright © 2017 lvs1974. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.6 com.apple.iokit.IONetworkingFamily 1.5 com.apple.iokit.IOPCIFamily 2.7 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Network-Root ================================================ FILE: EFI/CLOVER/kexts/Other/AppleALC_v1.3.9.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G29g CFBundleDevelopmentRegion en CFBundleExecutable AppleALC CFBundleIdentifier as.vit9696.AppleALC CFBundleInfoDictionaryVersion 6.0 CFBundleName AppleALC CFBundlePackageType KEXT CFBundleShortVersionString 1.3.9 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.3.9 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities HDA Hardware Config Resource CFBundleIdentifier com.apple.driver.AppleHDAHardwareConfigDriver HDAConfigDefault AFGLowPowerState AwAAAA== Codec Creative CA0132, default CodecID 285343761 ConfigData ABcWHwAXFx4BVwoBAVcXDQFXGCQAtwwAANcc 8ADXHQAA1x4AANcfQAEXBwQBJx+QATceAAE3 H0ABhx4AAYcfQA== FuncGroup 1 LayoutID 0 AFGLowPowerState AwAAAA== Codec Creative CA0132, Alienware 15 R2 CodecID 285343761 ConfigData AVcKAQFnAwAAtxwQALcdQQC3HhAAtx+QANcc 8ADXHQAA1x4AANcfQAD3HCABFxxAARcegQEn HDABJx+Q FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== Codec Creative CA0132, 2.0 + front HP CodecID 285343761 ConfigData ABcXHgAXFRABVwoBAScIgQFnCIABVxcNAVcY JADXHPAA1x0AANceAADXH0ABBx4hAScfkAE3 HPABNx0AATceAAE3H0A= FuncGroup 1 LayoutID 2 AFGLowPowerState AwAAAA== Codec Creative CA0132, 2.0 + rear line-out CodecID 285343761 ConfigData ABcXHgAXFRQBVwoBAScIgQFnCIABVxcNAVcY JADXHPAA1x0AANceAADXH0AA5xzwAOcdAADn HgAA5x9AAQceAQEnH5A= FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Creative CA0132, 5.1 with C/Sub CodecID 285343761 ConfigData ABcWHwAXFx4AFxUUAVcKAQEnCIEBZwiAAVcX DQFXGCQA1xzwANcdAADXHgAA1x9AAOcc8ADn HQAA5x4AAOcfQAEHHgEBJx+QATcc8AE3HQAB Nx4AATcfQAGHHPABhx0AAYceAAGHH0A= FuncGroup 1 LayoutID 4 AFGLowPowerState AwAAAA== Codec Creative CA0132, 2.0 front HP + Mic CodecID 285343761 ConfigData ABcXHgAXFRIBVwoBAScIgQFnCIABVxcNAVcY IQC3HiEA1xzwANcdAADXHgAA1x9AAQceAQEX BwQBJx+Q FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Creative CA0132, 5.1 with front HP CodecID 285343761 ConfigData ABcXHgAXFRABVwoBAScIgQFnCIABVxcNAVcY JADXHPAA1x0AANceAADXH0ABBx4hAScfkA== FuncGroup 1 LayoutID 6 AFGLowPowerState AwAAAA== Codec Creative CA0132 by Andres ZeroCross CodecID 285343761 ConfigData IVcKAQC3HBAAtx1AALceAQC3HwEAxxwgAMcd gADHHkUAxx8BANccIADXHUAA1x4BANcfAQD3 HDAA9x1AAPceIQD3HwEBBxxAAQcdQAEHHiEB Bx8CARccUAEXHUABFx4BARcfAQEnHFABJx2Q AScepwEnH5A= FuncGroup 1 LayoutID 9 AFGLowPowerState AwAAAA== Codec Creative CA0132 by Andres ZeroCross CodecID 285343761 ConfigData AVcKAQAXFRQBJwiBAWcIgAFXFw0BVxgkIQce AQEnH5A= FuncGroup 1 LayoutID 10 AFGLowPowerState AwAAAA== Codec Custom Creative CA0132 5.1 channel CodecID 285343761 ConfigData IVcD8CFXFw0hVxgkIVcPgCC3HCAgtx1AILce ASC3HwEgxxxgIMcdICDHHkUgxx8BINcc8CDX HQAg1x4AINcfQCDnHPAg5x0AIOceACDnH0Ag 9xwvIPcdQCD3HiEg9x8BIQccMCEHHUAhBx4h IQcfASEXHEAhFx0QIRceASEXHwEhJxwQIScd kSEnHqEhJx+QITcc8CE3HQAhNx4AITcfQCGH HFAhhx1gIYceASGHHwE= FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Custom Creative CA0132 CodecID 285343761 ConfigData AVcKAQAXFx8AFxUQAScIgQFnCIABVxcNAVcY JAEnH5A= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Cirrus Logic CS4210 CodecID 269697552 ConfigData AFccEABXHUAAVx4hAFcfAABnHCAAZx0AAGce FwBnH5AAdxwwAHcdkAB3HoEAdx8AAJccQACX HQAAlx6gAJcfkA== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Cirrus Logic -CS4213 CodecID 269697555 ConfigData AEccEABHHRAARx4hAEcfAABXHCAAVx0AAFce FwBXH5AAZxwwAGcdEABnHoEAZx8AAHccQAB3 HQAAdx6gAHcfkABXDAI= FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec MacPeet - AD1984 - for_IBM_Lenovo_ThinkPad_T61 CodecID 299112836 ConfigData ARccEAEXHUABFx4hARcfAgFHHCABRx1QAUce gQFHHwIBJxwwAScdAAEnHhcBJx+QAScMAgFX HEABVx0AAVcepwFXH5ABtxygAbcdEAG3HkQB tx8h FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec MacPeet - AD1984A CodecID 299112778 ConfigData ISccECEnHUAhJx4BIScfASFHHCAhRx2QIUce oSFHHwIhVxwwIVcdMCFXHoEhVx8BIRccQCEX HUAhFx4hIRcfAg== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec MacPeet - AD1984A - Version2 CodecID 299112778 ConfigData ISccECEnHUAhJx4RIScfkCFHHCAhRx2QIUce oSFHHwIhVxwwIVcdMCFXHoEhVx8BIRccQCEX HUAhFx4hIRcfAg== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec AD1984A - giesteira CodecID 299112778 ConfigData ASccAAEnHUABJx4BAScfAQHHHBABxx0wAcce gQHHHwEBdxwgAXcdEAF3HqYBdx+5ARccMAEX HUABFx4hARcfAQFnHEABZx1AAWceFwFnH5EB pxxQAacdEAGnHvcBpx9RAbccYAG3HWABtx5E AbcfAQE3HPABNx0QATceHwE3H1E= FuncGroup 1 LayoutID 44 AFGLowPowerState AwAAAA== Codec AD1988A by chrome CodecID 299112840 ConfigData ARccQAEXHUABFx4hARcfAQEnHAABJx1AASce EQEnHwEBNxzwATcdAAE3HgABNx9AAUccYAFH HZABRx6gAUcfkAFXHIABVx0wAVcegQFXHwEB ZxwgAWcdEAFnHgEBZx8BAXccUAF3HZABdx6B AXcfAQGHHPABhx0AAYceAAGHH0ABtxygAbcd 8QG3HkUBtx8BAccc8AHHHQABxx4AAccfQAJH HBACRx1gAkceAQJHHwECVxwwAlcdIAJXHgEC Vx8B FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Mirone - ADI-1988B CodecID 299112843 ConfigData ARccEAEXHUABFx4hARcfAQEnHCABJx1AASce AQEnHwEBRxxAAUcdkAFHHqEBRx8BAVccUAFX HTABVx6BAVcfAQF3HHABdx2QAXceoQF3HwEB txzwAbcd8QG3HkUBtx8B FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - ADI-1988B CodecID 299112843 ConfigData ARccEAEXHUABFx4hARcfAQEnHCABJx1AASce EQEnHwEBRxwwAUcdkAFHHqABRx+QAWccQAFn HRABZx4BAWcfAQF3HFABdx2QAXcegQF3HwEB txxgAbcd8QG3HkUBtx8BAccccAHHHfEBxx7F AccfAQHXHIAB1x3xAdceVgHXHxgCRxyQAkcd YAJHHgECRx8BAlcckAJXHSACVx4BAlcfAQ== FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec 0x11d4198b CodecID 299112843 Comment Custom AD1988B by Rodion ConfigData AXccIAF3HZABdx6gAXcfkQFHHCEBRx2QAUce gQFHHwIBJxwQAScdQAEnHhEBJx8BAkccEQJH HWACRx4RAkcfAQFnHBIBZx0QAWceEQFnHwEC VxwUAlcdIAJXHhECVx8BAccc8AHHHQABxx4A AccfQAE3HPABNx0AATceAAE3H0ABpxzwAacd AAGnHgABpx9AAYcc8AGHHQABhx4AAYcfQA== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Mirone - ADI-2000B CodecID 299145371 ConfigData ARccEAEXHUABFx4hARcfAQEnHCABJx1AASce AQEnHwEBRxxAAUcdkAFHHqEBRx8BAVccUAFX HTABVx6BAVcfAQF3HHABdx2QAXceoQF3HwEB txzwAbcd8QG3HkUBtx8B FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - ADI-2000B CodecID 299145371 ConfigData ARccMAEXHUABFx4hARcfAQEnHBABJx1AASce EQEnHwEBRxxAAUcdkAFHHqABRx+QAWccUAFn HRABZx4BAWcfAQF3HCABdx2QAXcegQF3HwEB txygAbcd8QG3HkUBtx8BAcccYAHHHfEBxx7F AccfAQHXHLAB1x3xAdceVgHXHxgCRxxwAkcd YAJHHgECRx8BAlccgAJXHSACVx4BAlcfAQ== FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec Goldfish64 - ALC221 for HP Compaq Pro 4300/Pro 6300/Elite 8300 CodecID 283902497 ConfigData AUccIAFHHUABRx4BAUcfAQFHDAIBdxwQAXcd AQF3HhcBdx+QAXcMAgGnHEABpx0QAacegQGn HwIBtxwwAbcdMAG3HoEBtx8BAhccUAIXHRAC Fx4hAhcfAgIXDAI= FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - ALC221 for HP ELITE DESK 800 G1 CodecID 283902497 ConfigData AUccIAFHHUABRx4RAUcfkQFHDAIBpxwwAacd EAGnHoEBpx8CAXccQAF3HQABdx4XAXcfkAG3 HFABtx0wAbcegQG3HwECFxxwAhcdEAIXHiEC Fx8CAhcMAg== FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC225/ALC3253 on dell 7579 by ChalesYu CodecID 283902501 ConfigData ASccUAEnHQEBJx6mAScftwE3HAABNx0AATce AAE3H0ABRxywAUcdAQFHHhcBRx+QAWcc8AFn HREBZx4RAWcfQQF3HPABdx0RAXceEQF3H0EB hxzwAYcdEQGHHhEBhx9BAZccQAGXHRABlx6B AZcfAQGnHPABpx0RAaceEQGnH0EBtxzwAbcd EQG3HhEBtx9BAdccAQHXHQAB1x5gAdcfQAHn HPAB5x0RAeceEQHnH0ECFxwgAhcdEAIXHiEC Fx8EAUcMAg== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC225/ALC3253 for Dell Inspiron 17-7779 by Constanta CodecID 283902501 ConfigData ASccMAEnHQABJx6gAScfkAFHHEABRx0AAUce FwFHH5ABlxxwAZcdEAGXHoEBlx8AAhccIAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 30 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC225/ALC3253 by ChalesYu CodecID 283902501 ConfigData ASccEAEnHQEBJx6mAScfmQG3HCABtx0AAbce FwG3H5kBlxwwAZcdEAGXHoEBlx8CAhccQAIX HRACFx4hAhcfAgG3DAIBRwwCAhcMAg== FuncGroup 1 LayoutID 33 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Andres Laptop Patch ALC230 Lenovo 310-14ISK CodecID 283902512 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABlxwwAZcdEAGXHosBlx8EAhccQAIX HRACFx4rAhcfBAE3HFABNx0AATceAAE3H0AB 1xxgAdcdsAHXHmYB1x9AAUcMAgGXDAI= FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Realtek ALC230 for Lenovo Ideapad 320 by maiconjs CodecID 283902512 ConfigData AhccEAIXHRACFx4rAhcfBAFHHCABRx0BAUce FwFHH5ABJxwwAScdAQEnHqABJx+QAZccQAGX HRABlx6LAZcfBA== FuncGroup 1 LayoutID 20 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC233 CodecID 283902515 ConfigData AUccEAFHHQABRx4XAUcfkAGXHCABlx0QAZce qwGXHwMBpxwwAacdAAGnHqABpx+QAhccQAIX HRACFx4rAhcfAwFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom Realtek ALC233 (3236) CodecID 283902515 ConfigData AUccEAFHHQABRx4XAUcfkAG3HCABtx0AAbce oAG3H5ACFxwwAhcdEAIXHiECFx8BAUcMAg== FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC233/ALC3236 CodecID 283902515 ConfigData AUccEAFHHQABRx4XAUcfkAGXHCABlx2QAZce iwGXHwIBtxwwAbcdkAG3HqABtx+QAhccQAIX HUACFx4rAhcfAgFHDAIBtwwC FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC233 for Asus X550LC CodecID 283902515 ConfigData AUccEAFHHQABRx4XAUcfmQIXHCACFx0QAhce IQIXHwMBpxwwAacdAQGnHqABpx+ZAZccQAGX HRABlx6BAZcfAw== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Andres ZeroCross - Realtek ALC233 for Asus A451LB-WX076D CodecID 283902515 ConfigData AUccEAFHHQEBRx4XAUcfkAGXHCABlx0QAZce gQGXHwQBtxwwAbcdAQG3HqABtx+QAhccQAIX HRACFx4hAhcfBAFHDAIBtwwCAhcMAg== FuncGroup 1 LayoutID 21 WakeConfigData AUcMAgG3DAICFwwC WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom for Realtek ALC233 for SONY VAIO Fit 14E(SVF14316SCW) by SquallATF CodecID 283902515 ConfigData ASccQAEnHQEBJx6mAScfkAGnHDABpx1QAace gQGnHwMBRxwQAUcdAQFHHhcBRx+QAUcMAgIX HCACFx0QAhceIQIXHwMCFwwC FuncGroup 1 LayoutID 27 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom for Realtek ALC3236 for Asus TP500LN by Mohamed Khairy CodecID 283902515 ConfigData ASccEAEnHQABJx4AAScfQAFHHCABRx0AAUce EwFHH5ABtxxAAbcdAAG3HqABtx+QAdccUAHX HZAB1x5FAdcfQAIXHDACFx0QAhceIQIXHwAB RwwCAhcMAg== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom by Mirone - Realtek ALC233 (ALC3236) for Asus X550LDV CodecID 283902515 ConfigData AUccEAFHHQEBRx4TAUcfmQGXHEABlx0QAZce gQGXHwABpxwwAacdAQGnHqABpx+ZAhccIAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - ALC233 (ALC3236) for ASUS VIVOBOOK S301LA CodecID 283902515 ConfigData AaccMAGnHQABpx6nAacfkAGXHEABlx0QAZce gQGXHwABRxxQAUcdAAFHHhcBRx+QAUcMAgIX HGACFx0QAhceIQIXHwACFwwC FuncGroup 1 LayoutID 32 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - ALC233 (ALC3236) for ASUS VIVOBOOK S451LA CodecID 283902515 ConfigData AhccIAIXHRACFx4hAhcfAAIXDAIBtxwwAbcd AAG3HqcBtx+QAZccQAGXHRABlx6BAZcfAAFH HFABRx0AAUceFwFHH5ABRwwC FuncGroup 1 LayoutID 33 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC235 CodecID 283902517 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABdxwwAXcdAAF3HgABdx9AAZccQAGX HRABlx6LAZcfAAHXHFAB1x2QAdce9wHXH0AC FxxgAhcdEAIXHisCFx8BAUcMAgIXDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC235 for Ienovo by soto2080 CodecID 283902517 ConfigData ASccEAEnHAEBJxygAScckAFHHAABRxwBAUcc EAFHHJABlxwwAZccEAGXHIEBlxwCAhccIAIX HBACFxwhAhccAgF3HPABdx0AAXceAAF3H0AB hxzwAYcdAAGHHgABhx9AAacc8AGnHQABpx4A AacfQAG3HPABtx0AAbceAAG3H0AB1xzwAdcd AAHXHgAB1x9AAUcMAg== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec the-braveknight - Realtek ALC235 for Lenovo Legion Y520 CodecID 283902517 ConfigData ASccQAEnHQABJx6gAScfsAFHHBABRx0AAUce FwFHH5ABRwwCAZccMAGXHRABlx6BAZcfAAIX HGACFx0QAhceIQIXHwA= FuncGroup 1 LayoutID 14 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec qiuchenly - Realtek ALC235 for ASUS FX53VD CodecID 283902517 ConfigData AbccAAG3HQEBtx6gAbcfmQIXHBACFx0QAhce KwIXHwEBRxwgAUcdAQFHHhABRx+ZAZccMAGX HRABlx6LAZcfAQEnHPABJx0AASceAAEnH0AB dxzwAXcdAAF3HgABdx9AAYcc8AGHHQABhx4A AYcfQAGnHPABpx0AAaceAAGnH0AB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAHX HPAB1x0AAdceAAHXH0AB1xzwAdcdAAHXHgAB 1x9A FuncGroup 1 LayoutID 15 WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - Realtek ALC235 for ASUS GL553VD CodecID 283902517 ConfigData AhccIAIXHRACFx4rAhcfAAG3HDABtx0AAbce pwG3H5ABlxwwAZcdEAGXHosBlx8BAUccQAFH HQABRx4XAUcfkAFHDAI= FuncGroup 1 LayoutID 16 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec vusun123 - Realtek ALC235 for Lenovo Legion Y520 CodecID 283902517 ConfigData ASccQAEnHQABJx6gAScfsAFHHBABRx0AAUce FwFHH5ABRwwCAZccMAGXHRABlx6BAZcfAAIX HGACFx0QAhceIQIXHwA= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC236 CodecID 283902518 ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABlxwwAZcdEAGXHoEBlx8EAhccQAIX HRACFx4hAhcfBAFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Jake Lo - Realtek ALC236 CodecID 283902518 ConfigData ASccEAEnHQEBJx6gAScfkAE3HPABNx0AATce AAE3H0ABRxwwAUcdAQFHHhABRx+QAUcMAgGH HPABhx0AAYceAAGHH0ABlxwgAZcdMAGXHosB lx8BAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHEACFx1AAhceKwIX HwECFwwCABcgAAAXIXIAFyJrABcjEA== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom - Realtek ALC236 for Lenovi Air 13 Pro by rexx0520 CodecID 283902518 ConfigData ASccAAEnHQEBJx6mAScfkAFHHBABRx0BAUce EAFHH5ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHCABlx2QAZceqwGXHwAB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccMAIXHUACFx4rAhcfAAFH DAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - ALC236 for Lenovo Ideapad 500-15ISK CodecID 283902518 ConfigData ASccAAEnHQEBJx6mAScfkAFHHBABRx0BAUce EAFHH5ABRwwCAZccIAGXHRABlx6LAZcfAAIX HDACFx0QAhceKwIXHwACFwwC FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC236 for Lenovo LEGION Y7000/Y530 by xiaoM CodecID 283902518 ConfigData ASccMAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwgAUcdkAFHHhcBRx+QAUcMAgGH HPABhx0AAYceAAGHH0ABlxwgAZcdEAGXHosB lx8BAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHBACFx0QAhceKwIX HwECFwwC FuncGroup 1 LayoutID 18 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec RodionS - ALC236 for Lenovo Ideapad 320s 14ikb CodecID 283902518 ConfigData ASccAAEnHQEBJx6mAScfkAFHHBABRx0BAUce EAFHH5ABRwwCAZccIAGXHRABlx6LAZcfAAIX HDACFx0QAhceKwIXHwABRwwCAhcMAg== FuncGroup 1 LayoutID 16 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC236 for DELL-5488 by Daggeryu CodecID 283902518 ConfigData ASccMAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAUcMAgGH HPABhx0AAYceAAGHH0ABlxxAAZcdEAGXHoEB lx8CAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHCACFx0QAhceIQIX HwICFwwC FuncGroup 1 LayoutID 54 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC236 for Lenovo Air 13 IWL by DalianSky CodecID 283902518 ConfigData ATcc8AE3HQABNx4AATcfQAFHHBABRx0BAUce FwFHH5ABRwwCAYcc8AGHHQABhx4AAYcfQAGX HDABlx0QAZcegQGXHwQBpxzwAacdAAGnHgAB px9AAbcc8AG3HQABtx4AAbcfQAHXHEUB1x0b AdceZgHXH0AB5xzwAecdAAHnHgAB5x9AAhcc HwIXHRACFx4hAhcfBA== FuncGroup 1 LayoutID 99 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC255 CodecID 283902549 ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABlxwwAZcdEAGXHosBlx8AAhccUAIX HRACFx4rAhcfAgFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC255_v1 CodecID 283902549 ConfigData AbccIAG3HQABtx6gAbcfkAFHHDABRx0AAUce FwFHH5ACFxxQAhcdEAIXHiECFx8AAUcMAgIX DAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC255 Gigabyte Brix BRI5(H) by Najdanovic Ivan CodecID 283902549 ConfigData ASccMAEnHQEBJx6gAScfkAGXHCABlx0RAZce gQGXHwICFxxAAhcdEQIXHiECFx8CAhcMAg== FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC255_v2 CodecID 283902549 ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABdxwwAXcdAAF3HgABdx9AAdccQAHX HQAB1x5wAdcfQAIXHFACFx0QAhceIQIXHwIB RwwC FuncGroup 1 LayoutID 17 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DuNe - Realtek ALC255 for Aorus X5V7 CodecID 283902549 ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABtxwhAbcdAAG3HhcBtx+QAXccMAF3 HQABdx4AAXcfQAHXHEAB1x0AAdcecAHXH0AC FxxQAhcdEAIXHiECFx8CAaccYAGnHRABpx6B AacfAgHnHHAB5x0QAeceRQHnHwIBRwwC FuncGroup 1 LayoutID 18 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC255 for Asus X441UA-WX096D by Andres ZeroCross CodecID 283902549 ConfigData AZcc8AGXHRABlx6BAZcfAgGnHDABpx0BAace oAGnH5ABtxwQAbcdAQG3HhcBtx+QAhccIAIX HRACFx4hAhcfAgG3DAICFwwC FuncGroup 1 LayoutID 21 WakeConfigData AbcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec cowpod - Realtek ALC255 for UX360CA CodecID 283902549 ConfigData AUccEAFHHQABRx4XAUcfkAFHDAICFxwgAhcd EAIXHiECFx8AAhcMAgEnHDABJx0AAScepgEn H5ABlxxAAZcdAAGXHoEBlx8A FuncGroup 1 LayoutID 31 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC255 for Asus X556UA m-dudarev CodecID 283902549 ConfigData AUccEAFHHQEBRx4XAUcfkAGXHCABlx0QAZce gQGXHwQCFxwgAhcdEAIXHiECFx8EAbccMAG3 HQEBtx6gAbcfkAFHDAI= FuncGroup 1 LayoutID 27 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC255 for Lenovo B470 - vusun123 CodecID 283902549 ConfigData ASccYAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABRwwCAhccMAIXHRACFx4hAhcfAQ== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec HongyuS - Realtek ALC255 for XiaoMiAir 13.3 CodecID 283902549 ConfigData ASccMAEnHQEBJx6mAScfkAFHHBABRx0BAUce FwFHH5ABRwwCAXccAAF3HQABdx4AAXcfQAGH HPABhx0AAYceAAGHH0ABlxwgAZcdEAGXHoEB lx8EAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xwtAdcdmgHXHvcB1x9AAecc 8AHnHQAB5x4AAecfQAIXHCACFx0QAhceIQIX HwQCFwwC FuncGroup 1 LayoutID 30 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DalianSky - Realtek ALC255 (3246) for XiaoMi Air CodecID 283902549 ConfigData ASccMAEnHQEBJx6mAScfkAFHHBABRx0BAUce FwFHH5ABRwwCAXcc8AF3HQABdx4AAXcfQAGH HPABhx0AAYceAAGHH0ABlxxwAZcdEAGXHosB lx8CAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHCACFx0QAhceKwIX HwQCFwwC FuncGroup 1 LayoutID 99 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DalianSky - Realtek ALC255 (3246) for alienware alpha r2 CodecID 283902549 ConfigData ASccIAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxxAAUcdAQFHHhcBRx+QAUcMAgF3 HPABdx0AAXceAAF3H0ABhxzwAYcdAAGHHgAB hx9AAZccEAGXHRABlx6LAZcfAgGnHPABpx0A AaceAAGnH0ABtxzwAbcdAAG3HgABtx9AAdcc 8AHXHQAB1x4AAdcfQAHnHJAB5x3gAeceRQHn HwECFxwwAhcdEAIXHisCFx8CAhcMAg== FuncGroup 1 LayoutID 100 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC256 CodecID 283902550 ConfigData AScc8AEnHQABJx4AAScfQAFHHCABRx0AAUce FwFHH5ABlxwwAZcdEAGXHosBlx8CAhccUAIX HRACFx4rAhcfAgE3HPABNx0AATceAAE3H0AB hxzwAYcdAAGHHgABhx9AAacc8AGnHQABpx4A AacfQAG3HDABtx0AAbceoAG3H5AB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAFH DAIBtwwC FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Rockjesus - Realtek ALC256 (3246) - dell 7559 CodecID 283902550 ConfigData ASccAAEnHQEBJx6mAScfmQFHHBABRx0BAUce FwFHH5kCFxwgAhcdEAIXHiECFx8BAbcMAg== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Insanelydeepak - Realtek ALC256 (3246) for Dell Series CodecID 283902550 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABlxwwAZcdEAGXHosBlx8CAhccUAIX HRACFx4rAhcfAgE3HPABNx0AATceAAE3H0AB hxzwAYcdAAGHHgABhx9AAacc8AGnHQABpx4A AacfQAG3HPABtx0AAbceAAG3H0AB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAFH DAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Andres ZeroCross for Dell 5570 CodecID 283902550 ConfigData ASccEAEnHQEBJx6gAScfkAFHHCABRx0BAUce FwFHH5ABlxwwAZcdEAGXHosBlx8CAhccUAIX HRACFx4rAhcfAgFHDAICFwwCAZcHJQIXCIM= FuncGroup 1 LayoutID 21 WakeConfigData AUcMAgIXDAIBlwclAhcIgw== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902550 Comment vusun123 - ALC256 for Asus X555UJ ConfigData AUccUAFHHQABRx4XAUcfkAFHDAIBpxwwAacd AAGnHqABpx+QAhccIAIXHRACFx4hAhcfAA== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DalianSky - Realtek ALC256 (3246) for Dell 7000 Series CodecID 283902550 ConfigData ASccMAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAUcMAgGH HPABhx0AAYceAAGHH0ABlxxAAZcdEAGXHoEB lx8CAacc8AGnHQABpx4AAacfQAG3HPABtx0A AbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHCACFx0QAhceIQIX HwICFwwC FuncGroup 1 LayoutID 56 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Kk for magicbook CodecID 283902550 ConfigData AScccAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxzwAUcdAAFHHgABRx9AAYcc8AGH HQABhx4AAYcfQAGXHDABlx0QAZceiwGXHwIB pxzwAacdAAGnHgABpx9AAbccQAG3HQEBtx4Q AbcfkAG3DAIB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHFACFx0QAhceKwIX HwICFwwC FuncGroup 1 LayoutID 57 WakeConfigData AbcMAgIXDAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - Realtek ALC257 for Lenovo T480 CodecID 283902551 ConfigData ASccIAEnHQABJx6mAScfkAGXHDABlx0QAZce gQGXHwABRxxQAUcdAAFHHhcBRx+QAUcMAgIX HGACFx0QAhceIQIXHwA= FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet ALC260 for Fujitsu Celsius M 450 CodecID 283902560 ConfigData IPccECD3HUAg9x4RIPcfASD3DAIhhxwgIYcd YCGHHkQhhx8BITccQCE3HZAhNx6hITcfmSFH HFAhRx0wIUcegSFHHwEhVxxgIVcdQCFXHiEh Vx8C FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Custom ALC260 CodecID 283902560 ConfigData AQccAAEHHUABBx4hAQcfAQEnHBABJx2QASce oQEnH5kBNxwgATcdMAE3HoEBNx8B FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec DalianSky - ALC262 for MS-7480N1 CodecID 283902562 ConfigData AVccYAFXHUABVx4BAVcfAQFHHFABRx1AAUce IQFHHwEBhxwgAYcdMAGHHoEBhx8BAaccEAGn HZABpx6iAacfAQ== FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec MacPeet - ALC262 CodecID 283902562 ConfigData IUccECFHHUAhRx4BIUcfASHnHCAh5x1gIece RSHnHwAhhxwwIYcdkCGHHqEhhx+RIZccQCGX HZAhlx6hIZcfkiGnHFAhpx0wIacegSGnHwEh txxgIbcdQCG3HiEhtx8C FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Goldfish64 - ALC262 for HP Compaq dc7700 SFF CodecID 283902562 ConfigData AbccEAG3HUABtx4BAbcfAQFXHCABVx0QAVce IQFXHwIBZxwwAWcdAQFnHhMBZx+QAZccQAGX HTABlx6BAZcfAQGnHFABpx0QAacegQGnHwI= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec MacPeet - ALC262 for Fujitsu Celsius H270 CodecID 283902562 ConfigData AUccEAFHHQABRx4TAUcfkAFXHCABVx0QAVce IQFXHwIBhxwwAYcdEAGHHoEBhx8CAZccQAGX HQABlx6jAZcfkAGnHFABpx0QAacegQGnHwE= FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec MacPeet - ALC262 for HP Z800-Z600 series CodecID 283902562 ConfigData AZccAAGXHREBlx6gAZcfkgGnHBABpx0xAace gAGnH5EBVxwgAVcdQQFXHhABVx+RAWccMAFn HQEBZx4AAWcfKQGHHEABhx2QAYceoAGHH5EB txxQAbcdEAG3HisBtx8C FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC268 CodecID 283902568 ConfigData AUccEAFHHRABRx4hAUcfAQGHHEABhx2QAYce gQGHHwEBVxxQAVcdAAFXHhMBVx+QAZccYAGX HQABlx6jAZcfkAFXDAI= FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone Laptop patch ALC269 Asus N53J CodecID 283902569 ConfigData AYccIAGHHRABhx6BAYcfBAGXHBABlx0BAZce oAGXH5kBtxxAAbcdAQG3HhMBtx+ZAhccUAIX HRACFx4hAhcfBAFHDAI= FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269-VB v1 CodecID 283902569 ConfigData AUccQAFHHQEBRx4TAUcfmQGHHCABhx0QAYce gQGHHwMBlxwQAZcdAQGXHqABlx+ZAhccUAIX HRACFx4hAhcfAwFHDAI= FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment Mirone - Realtek ALC269 for Asus K53SJ, Asus G73s ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0BAUce EwFHH5ABdxxQAXcdAQF3HhMBdx+QAYccIAGH HZABhx6BAYcfAwGXHDABlx0BAZceoAGXH5AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccQAIXHRACFx4hAhcfAwFH DAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269-VB v2 CodecID 283902569 ConfigData AUccEAFHHQABRx4TAUcfkAGHHCABhx2QAYce gQGHHwIBtxwwAbcdEAG3HqABtx+QAhccQAIX HRACFx4hAhcfAgFHDAI= FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269-VB v3 CodecID 283902569 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ABhxwwAYcdEAGHHoEBhx8AAhccUAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269-VC v1 CodecID 283902569 ConfigData AUccEAFHHQABRx4TAUcfkAGHHDABhx0QAYce gQGHHwABJxxAAScdAAEnHqABJx+QAVccUAFX HRABVx4hAVcfAAFHDAI= FuncGroup 1 LayoutID 6 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269-VC v2 CodecID 283902569 ConfigData ASccEAEnHQABJx6mAScfkAFXHCABVx0QAVce IQFXHwABhxwwAYcdEAGHHoEBhx8CAbccQAG3 HQABtx4XAbcfkAG3DAI= FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269VC-v3 CodecID 283902569 ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABVxwwAVcdEAFXHiEBVx8AAYccQAGH HZABhx6BAYcfAgFHDAI= FuncGroup 1 LayoutID 8 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269VB v4 CodecID 283902569 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ABhxwwAYcdEAGHHoEBhx8AAhccUAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 9 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902569 Comment Toleda ALC269 patch for Brix ConfigData IUcc8CFHHQAhRx4AIUcfQCFXHHAhVx1AIVce ISFXHwIhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHPAhhx0AIYceACGHH0Ah lxzwIZcdACGXHgAhlx9AIacc8CGnHQAhpx4A IacfQCG3HPAhtx0AIbceACG3H0Ah5xyQIecd YSHnHksh5x8B FuncGroup 1 LayoutID 10 AFGLowPowerState AwAAAA== Codec Mosser - ALC269VB Dell Precision Workstation T1600 CodecID 283902569 ConfigData AbccIAG3HUABtx4BAbcfAQGHHDABhx2YAYce gQGHHwIBlxxAAZcdmAGXHoEBlx8BAhccUAIX HUACFx4hAhcfAg== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC269VC for Samsung NP350V5C-S08IT CodecID 283902569 ConfigData AZccEAGXHQABlx6nAZcfmQFXHCABVx0QAVce IQFXHwIBhxwwAYcdEAGHHoEBhx8CAUccQAFH HQABRx4XAUcfmQFHDAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902569 Comment Custom ALC269VC for Samsung NT550P7C-S65 with subwoofer 2.1ch by Rockjesus ConfigData AVccEAFXHRABVx4hAVcfAQGHHCABhx0QAYce gQGHHwEBlxwwAZcdAQGXHqcBlx+QAbccQAG3 HQEBtx4XAbcfkAF3HEEBdx0BAXceFwF3H5AB JxzwAScdAAEnHgABJx9AAUcc8AFHHQABRx4A AUcfQAGnHPABpx0AAaceAAGnH0AB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAG3 DAI= FuncGroup 1 LayoutID 14 AFGLowPowerState AwAAAA== Codec MacPeet - ALC269VB for Dell Optiplex 790 CodecID 283902569 ConfigData AbccIAG3HUABtx4BAbcfAQGHHDABhx2QAYce gQGHHwIBlxxAAZcdkAGXHoEBlx8BAhccUAIX HUACFx4hAhcfAg== FuncGroup 1 LayoutID 15 AFGLowPowerState AwAAAA== Codec MacPeet - ALC269VB for Dell Optiplex 790 Version2 CodecID 283902569 ConfigData AbccIAG3HUABtx4RAbcfkAGHHDABhx2QAYce oQGHH5ABlxxAAZcdkAGXHoEBlx8BAhccUAIX HUACFx4hAhcfAg== FuncGroup 1 LayoutID 16 AFGLowPowerState AwAAAA== Codec MacPeet - Latte Panda CodecID 283902569 ConfigData AYccIAGHHVABhx6hAYcfkQFXHDABVx1AAVce IQFXHwEBVwwC FuncGroup 1 LayoutID 17 WakeConfigData AVcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Hypereitan - ALC269VC for Thinkpad X230 i7 CodecID 283902569 ConfigData ASccEAEnHQEBJx6gAScfkAFHHEABRx0BAUce EAFHH5ABVxxQAVcdEAFXHiEBVx8BAYcccAGH HRABhx6hAYcfAQFHDAI= FuncGroup 1 LayoutID 18 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Asus Vivobook S300CA - Realtek ALC269VB CodecID 283902569 ConfigData ASccEAEnHQEBJx6mAScfkAFHHCABRx0BAUce FwFHH5AB1xwwAdcdkAHXHgcB1x9AAhccQAIX HRACFx4hAhcfBAFHDAI= FuncGroup 1 LayoutID 19 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment Custom ALC269 Sony Vaio VPCEB3M1R by Rodion ConfigData AVccQAFXHRABVx4hAVcfAwGHHCABhx0QAYce gQGHHwMBlxwwAZcdAQGXHqABlx+QAbccEAG3 HQEBtx4XAbcfkAFXDAI= FuncGroup 1 LayoutID 20 AFGLowPowerState AwAAAA== Codec Goldfish64 - ALC269VB for Dell Optiplex 7010 CodecID 283902569 ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0BAUce EwFHH5ABRwwCAXcc8AF3HQABdx4AAXcfQAGH HDABhx2QAYcegQGHHwIBlxxAAZcdkAGXHoEB lx8BAacc8AGnHQABpx4AAacfQAG3HCABtx1A AbceAQG3HwEB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHFACFx1AAhceIQIX HwI= FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment Custom ALC269 for Acer Aspire by Andrey1970 ConfigData AUccAAFHHUEBRx4XAUcfmQGHHBABhx2QAYce gQGHHwEBtxwgAbcdkQG3HqcBtx+ZAhccMAIX HUACFx4hAhcfAQ== FuncGroup 1 LayoutID 27 AFGLowPowerState AwAAAA== Codec ALC269VC CodecID 283902569 Comment ALC269VC for Lenovo Z580, John ConfigData AVccQAFXHRABVx4hAVcfAwGHHCABhx0QAYce gQGHHwMBlxwwAZcdAQGXHqABlx+QAbccEAG3 HQEBtx4XAbcfkAFXDAI= FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== CodecID 283902569 Comment ALC269VC for Lenovo V580, ar4er ConfigData ASccEAEnHQABJx6mAScfkAFHHCABRx0AAUce FwFHH5ABVxwwAVcdEAFXHiEBVx8AAYccQAGH HZABhx6BAYcfAgFHDAI= FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269VC for Hasee Z6SL7R3 by HF CodecID 283902569 ConfigData ASccEAEnHQEBJx6gAScfkAFHHBABRx0BAUce FwFHH5ABVxyAAVcdEAFXHiEBVx8CAYccIAGH HRABhx6BAYcfAgHnHGAB5x0AAeceQQHnHwIB RwwC FuncGroup 1 LayoutID 30 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902569 Comment Custom ALC269 Samsung np880z5e-x01ru by Constanta ConfigData ASccEAEnHQABJx6mAScfkAG3HCABtx0AAbce FwG3H5ABVxwwAVcdEAFXHiEBVx8AAYccQAGH HZABhx6BAYcfAgG3DAI= FuncGroup 1 LayoutID 32 AFGLowPowerState AwAAAA== CodecID 283902569 Comment Custom ALC269VC for Samsung NP530U3C-A0F by BblDE3HAP ConfigData AUccEAFHHQEBRx4XAUcfkAFHDAIBVxxAAVcd EAFXHiEBVx8DAVcMAgGHHCABhx0QAYcegQGH HwMBlxwwAZcdAQGXHqABlx+Q FuncGroup 1 LayoutID 33 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC269VC - Samsung NP350V5C-S0URU CodecID 283902569 ConfigData AUccEAFHHQABRx4XAUcfkAGHHCABhx0QAYce gQGHHwIBVxwwAVcdEAFXHiEBVx8CAZccQAGX HQABlx6gAZcfkAFHDAI= FuncGroup 1 LayoutID 35 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec vusun123 - Realtek ALC269VC for Lenovo W530 CodecID 283902569 ConfigData ASccQAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABRwwCAVccIAFXHRABVx4hAVcfAAGH HDABhx0QAYcegQGHHwA= FuncGroup 1 LayoutID 40 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269VC CodecID 283902569 Comment Laptop patch ALC269VC Samsung _NP350V5C - Giesteira ConfigData AUccAAFHHQABRx4XAUcfmQGHHBABhx0QAYce gQGHHwEBVxwgAVcdEAFXHiEBVx8BAZccMAGX HQABlx6nAZcfmQFHDAI= FuncGroup 1 LayoutID 44 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec maiconjs (Wolfield) - Asus A45A 269VB1 CodecID 283902569 ConfigData AUccEAFHHQABRx4XAUcfmQGHHCABhx0QAYce gQGHHwEBJxwwAScdAAEnHqYBJx+ZAhccUAIX HRACFx4hAhcfAQFHDAI= FuncGroup 1 LayoutID 45 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269VC for Thinkpad X230 with Dock4338 CodecID 283902569 ConfigData ASccEAEnHQEBJx6mAScfkAFHHEABRx0BAUce FwFHH5ABRwwCAVccUAFXHRABVx4rAVcfAgFX DAIBdxzwAXcdAAF3HgABdx9AAYccIAGHHRAB hx6LAYcfAgGXHPABlx0AAZceAAGXH0ABpxzw AacdAAGnHgABpx9AAbccYAG3HUABtx4BAbcf AQHXHPAB1x0AAdceAAHXH0AB5xzwAecdAAHn HgAB5x9A FuncGroup 1 LayoutID 55 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec HASEE Z6-i78154S2 ALC269 by lianny CodecID 283902569 ConfigData AUccEAFHHQABRx4TAUcfkAGHHDABhx0QAYce gQGHHwABJxxAAScdAAEnHqABJx+QAVccIAFX HRABVx4hAVcfAAF3HPABdx0AAXceAAF3H0AB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAG3HPABtx0AAbceAAG3H0AB1xzwAdcd AAHXHgAB1x9AAeccYAHnHRAB5x5EAecfAgFH DAI= FuncGroup 1 LayoutID 58 AFGLowPowerState AwAAAA== Codec ALC269VC for Clevo N155RD by DalianSky CodecID 283902569 ConfigData ASccEAEnHQEBJx6mAScfkAFHHDABRx0BAUce FwFHH5ABVxwgAVcdEAFXHiEBVx8CAXcc8AF3 HQABdx4AAXcfQAGHHAABhx0QAYcegQGHHwIB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAG3HPABtx0AAbceAAG3H0AB5xxwAecd EQHnHkQB5x8CAUcMAg== FuncGroup 1 LayoutID 66 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC269VB for ENZ C16B by jimmy19990 CodecID 283902569 ConfigData AUccEAFHHQEBRx4TAUcfkAGHHCABhx0QAYce gQGHHwEBlxwgAZcdAQGXHqABlx+QAhccEAIX HRACFx4hAhcfAQFHDAI= FuncGroup 1 LayoutID 76 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269 for MECHREVO X8Ti Plus by DalianSky CodecID 283902569 ConfigData ASccEAEnHQEBJx6mAScfkAFHHDABRx0BAUce FwFHH5ABVxwgAVcdEAFXHiEBVx8CAXcc8AF3 HQABdx4AAXcfQAGHHAABhx0QAYcegQGHHwIB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAG3HPABtx0AAbceAAG3H0AB5xzwAecd AAHnHgAB5x9AAUcMAg== FuncGroup 1 LayoutID 88 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment ALC269 Asus K53SJ, Asus G73s Mod by Andrey1970 (No input boost - no noise in Siri) ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0BAUce EwFHH5ABdxxQAXcdAQF3HhMBdx+QAYccIAGH HZABhx6BAYcfAwGXHDABlx0BAZceoAGXH5AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccQAIXHRACFx4hAhcfAwFH DAI= FuncGroup 1 LayoutID 93 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269-VB v4 Mod by Andrey1970 (No input boost - no noise in Siri) CodecID 283902569 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ABhxwwAYcdEAGHHoEBhx8AAhccUAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 99 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment Custom ALC269 Acer Aspire by Andrey1970 (No input boost - no noise in Siri) ConfigData AUccAAFHHUEBRx4XAUcfmQGHHBABhx2QAYce gQGHHwEBtxwgAbcdkQG3HqcBtx+ZAhccMAIX HUACFx4hAhcfAQ== FuncGroup 1 LayoutID 127 AFGLowPowerState AwAAAA== Codec ALC269 CodecID 283902569 Comment ALC269 for Lenovo Y500 by BaoStorm (No input boost - no noise in Siri) ConfigData ASccQAEnHQkBJx6mAScfkAFHHBABRx0BAUce FwFHH5ABRwwCAVccIAFXHSABVx4hAVcfBAFX DAIBhxxQAYcdKAGHHqEBhx8EAeccMAHnHSEB 5x5FAecfBA== FuncGroup 1 LayoutID 188 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC270 v1 CodecID 283902576 ConfigData AUccEAFHHQABRx4TAUcfkAGXHCABlx0AAZce oAGXH5ACFxwwAhcdEAIXHiECFx8AAUcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC270 v2 CodecID 283902576 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ACFxwwAhcdEAIXHiECFx8BAUcMAg== FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC270 CodecID 283902576 Comment ALC270 for Asus A46CB-WX024D Laptop by Andres ZeroCross ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0BAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfBAGXHDABlx0BAZceoAGXH5AB pxwgAacdEAGnHiEBpx8EAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhcc8AIXHQACFx4AAhcfQAFH DAI= FuncGroup 1 LayoutID 21 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC270 CodecID 283902576 Comment ALC270 for Asus Laptop with alternative microphone ConfigData ASccEAEnHQEBJx6mAScfkAFHHCABRx0BAUce EwFHH5ABdxzwAXcdAAF3HgABdx9AAYccMAGH HRABhx6BAYcfAgGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccQAIXHRACFx4hAhcfAgFH DAI= FuncGroup 1 LayoutID 27 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC270 CodecID 283902576 Comment ALC270 for Asus Laptop ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0BAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfBAGXHDABlx0BAZceoAGXH5AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccIAIXHRACFx4hAhcfBAFH DAI= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902569 Comment Custom ALC271x Acer Aspire s3-951 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ABhxwwAYcdkAGHHoEBhx8AAdccQAHX HZAB1x4XAdcfQAHnHFAB5x0QAeceRQHnHwAC FxxgAhcdEAIXHiECFx8AAUcMAg== FuncGroup 1 LayoutID 31 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC272 CodecID 283902578 ConfigData AYccMAGHHZABhx6BAYcfAAGXHCABlx0AAZce owGXH5ABRxwQAUcdAAFHHhMBRx+QAhccUAIX HUACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC 272 - Lenovo B470 - Sam Chen CodecID 283902578 ConfigData ASccMAEnHQABJx6jAScfkAFHHBABRx0AAUce EwFHH5ABhxwgAYcdEAGHHoEBhx8AAhccUAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC275 CodecID 283902581 ConfigData ASccAAEnHQABJx6gAScfkAFHHBABRx0BAUce FwFHH5ABVxwgAVcdEAFXHiEBVx8DAUcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC275 CodecID 283902581 ConfigData AUccEAFHHQEBRx4XAUcfkAFXHCABVx0QAVce IQFXHwMBJxwwAScdAAEnHqABJx+QAYccQAGH HVABhx6BAYcfAAHnHFAB5x0QAeceRQHnHwAB RwwC FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC275 for Sony Vaio - vusun123 CodecID 283902581 ConfigData ASccQAEnHQABJx6gAScfkAFXHBABVx0QAVce IQFXHwABhxwwAYcdUAGHHoEBhx8AAaccUAGn HQABpx4XAacfkAGnDAI= FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC280 CodecID 283902592 ConfigData AUccEAFHHQABRx4TAUcfkAFXHCABVx0QAVce IQFXHwEBJxwwAScdAAEnHqABJx+QAaccQAGn HRABpx6BAacfAgFHDAIBVwwC FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC280 - ComboJack CodecID 283902592 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABVxwwAVcdEAFXHiEBVx8CAaccQAGn HRABpx6BAacfAgFHDAIBVwwC FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Alienware alpha - Realtek ALC280 CodecID 283902592 ConfigData IUcc8CFHHQAhRx4AIUcfQCFXHPAhVx0AIVce ACFXH0AhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHPAhhx0AIYceACGHH0Ah lxzwIZcdACGXHgAhlx9AIacc8CGnHQAhpx4A IacfQCG3HPAhtx0AIbceACG3H0Ah5xwQIecd 4SHnHkUh5x8B FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec MacPeet - Realtek ALC280 - Dell T20 - Version1 - ManualMode CodecID 283902592 ConfigData AbccIAG3HUABtx4BAbcfAQGnHDABpx2QAace gQGnHwIBhxxAAYcdMAGHHoEBhx8BAVccYAFX HUABVx4hAVcfAgFXDAI= FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec MacPeet - Realtek ALC280 - Dell T20 - Version2 - SwitchMode CodecID 283902592 ConfigData AbccIAG3HUABtx4RAbcfkAGnHDABpx2QAace gQGnHwIBhxxAAYcdMAGHHoEBhx8BAVccYAFX HUABVx4hAVcfAgFXDAI= FuncGroup 1 LayoutID 15 AFGLowPowerState AwAAAA== Codec cowpod - Realtek ALC280 - Optiplex 9020SFF CodecID 283902592 ConfigData AaccMAGnHZABpx6BAacfAgGHHEABhx0wAYce gQGHHwEBRxxQAUcdAAFHHhcBRx+QAUcMAgFX HGABVx1AAVceIQFXHwIBVwwC FuncGroup 1 LayoutID 16 WakeConfigData AUcMAgFXDAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec Dell Precision T7610 Workstation ALC280 by Andres ZeroCross CodecID 283902592 ConfigData AVccIAFXHUABVx4hAVcfAgGHHDABhx0AAYce oAGHH5ABpxxAAacdkAGnHoEBpx8CAbccEAG3 HQABtx4AAbcfAQFnDAI= FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC282_v1 CodecID 283902594 ConfigData ASccEAEnHQABJx6gAScfmQFHHCABRx0AAUce EwGXHDABlx0QAZceiwGXHwABRx+ZAhccUAIX HRACFx4rAhcfAQFHDAICFwwC FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC282_v2 CodecID 283902594 ConfigData ASccQAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABhxwwAYcdEAGHHoEBhx8AAeccIAHn HRAB5x5EAecfAAIXHFACFx0QAhceIQIXHwAB RwwC FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC282 CodecID 283902594 ConfigData ASccQAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABhxwwAYcdEAGHHoEBhx8AAeccIAHn HRAB5x5EAecfAAIXHFACFx0QAhceIQIXHwAB RwwC FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902594 Comment Custom ALC282 lenovo y430p by loverto ConfigData ASccEAEnHQEBJx6mAScfkAFHHPABRx0AAUcd AAFHH0ABdxzwAXcdAAF3HgABdx9AAYcccAGH HRABhx6BAYcfAQGHHAIBlxzwAZcdAAGXHgAB lx9AAacc8AGnHQABpx4AAacfQAG3HEABtx0B AbceFwG3H5AB1xzwAdcdAAHXHgAB1x9AAecc YAHnHRAB5x5EAecfAQIXHFACFx0QAhceIQIX HwECFxwC FuncGroup 1 LayoutID 22 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902594 Comment Skvo ALC282 Acer Aspire on IvyBridge by Andrey1970 ConfigData ASccMAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHnHPAB5x0AAeceAAHnH0ACFxwgAhcd EAIXHiECFx8B FuncGroup 1 LayoutID 27 AFGLowPowerState AwAAAA== CodecID 283902594 Comment Custom ALC282 Acer Aspire E1-572G ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx0AAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbccMAG3HQEBtx6g AbcfkAHnHPAB5x0AAeceAAHnH0ACFxwgAhcd EAIXHiECFx8B FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== CodecID 283902594 Comment Custom ALC282 Dell Inspirion 3521 by Generation88 ConfigData ASccQAEnHQEBJx6gAScfkAFHHBABRx0BAUce FwFHH5ABlxwwAZcdEAGXHoEBlx8BAhccIAIX HRACFx4hAhcfAQFHDAI= FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC282 Lenovo Y410P by yunsur CodecID 283902594 ConfigData ASccEAEnHQEBJx6mAScfkAFHHPABRx0AAUce AAFHH0ABdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfAQGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbccQAG3HQEBtx4X AbcfkAHXHPAB1x0AAdceAAHXH0AB5xxwAecd EAHnHkQB5x8BAhccUAIXHRACFx4hAhcfAQFH DAI= FuncGroup 1 LayoutID 41 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC282 Lenovo Y430P by yunsur CodecID 283902594 ConfigData ASccEAEnHQEBJx6mAScfkAFHHPABRx0AAUce AAFHH0ABdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfAQGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbccQAG3HQEBtx4X AbcfkAHXHPAB1x0AAdceAAHXH0AB5xxwAecd EAHnHkQB5x8BAhccUAIXHRACFx4hAhcfAQFH DAI= FuncGroup 1 LayoutID 43 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC282 Lenovo Y510P by yunsur CodecID 283902594 ConfigData ASccEAEnHQEBJx6mAScfkAFHHEABRx0BAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfAQGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xxwAecd EAHnHkQB5x8BAhccUAIXHRACFx4hAhcfAQFH DAI= FuncGroup 1 LayoutID 51 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC282 Hasee K580C by YM2008 CodecID 283902594 ConfigData ASccEAEnHQEBJx6mAScfkAFHHCABRx1AAUce EQFHHwEBdxzwAXcdAAF3HgABdx9AAYccIAGH HRABhx6BAYcfAQGXHPABlx0AAZceAQGXH0AB pxzwAacdAAGnHgEBpx9AAdcc8AG3HQABtx4B AbcfQAHXHPUB1x0AAdceBQHXH0AB5xzwAecd AAHnHgEB5x9AAhccQAIXHXACFx4hAhcfAQFH DAI= FuncGroup 1 LayoutID 76 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902594 Comment Custom ALC282 for Asus x200la ConfigData ASccEAEnHQABJx6BAScfAAFHHCABRx0BAUce EAFHH5kBdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHDABlx0BAZcepgGXH5kB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccUAIXHUACFx4rAhcfAAFH DAICFwwC FuncGroup 1 LayoutID 86 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902594 Comment No input boost ALC282 Acer Aspire on IvyBridge by Andrey1970 ConfigData ASccMAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHnHPAB5x0AAeceAAHnH0ACFxwgAhcd EAIXHiECFx8B FuncGroup 1 LayoutID 127 AFGLowPowerState AwAAAA== Codec Toleda NUC/BRIX patch ALC283 CodecID 283902595 ConfigData AScc8AEnHQABJx4AAScfQAFHHPABRx0AAUce AAFHH0ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHGABlx0wAZceiwGXHwEB pxzwAacdAAGnHgABpx9AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhcccAIXHUACFx4rAhcfAQGX DAICFwwC FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC283 CodecID 283902595 ConfigData ASccEAEnHQEBJx6gAScfkAFHHCABRx0BAUce FwFHH5ABlxwwAZcdAAGXHosBlx8AAhccQAIX HRACFx4rAhcfAQFHDAICFwwC FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom by Slbomber ALC283 (V3-371) CodecID 283902595 ConfigData ASccEAEnHQEBJx6gAScfkAFHHEABRx0BAUce FwFHH5ABdxzwAXcdAAF3HgABdx9AAYcc8AGH HQABhx4AAYcfQAGXHPABlx0AAZceAAGXH0AB pxzwAacdAAGnHgABpx8AAbcc8AG3HQABtx4A AbcfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAhccUAIXHRACFx4hAhcfAwFH DAICFwwC FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - alc283 for LENOVO IDEAPAD 14 CodecID 283902595 ConfigData AUccEAFHHQABRx4XAUcfkAFHDAIBlxwgAZcd EAGXHoEBlx8AASccMAEnHQABJx6mAScfkAIX HGACFx0QAhceIQIXHwACFwwC FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC283 for ThinkCentre M93z 10AF ALC283 by giesteira CodecID 283902595 ConfigData AbccQAG3HQABtx4XAbcfmQEnHBABJx0AASce pgEnH5kBlxwgAZcdkAGXHoEBlx8BAaccMAGn HZABpx6BAacfAQIXHAACFx1AAhceIQIXHwEB RwwC FuncGroup 1 LayoutID 44 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ASRock DeskMini 110(H110M-STX) ALC283 by licheedev CodecID 283902595 ConfigData ASccgAEnHQABJx4AAScfQAFHHEABRx0BAUce EwFHH5ABpxwgAacdkAGnHoEBpx8BAdccYAHX HZAB1x5VAdcfQAIXHFACFx0QAhceIQIXHwEB RwwCAhcMAg== FuncGroup 1 LayoutID 66 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC284 CodecID 283902596 ConfigData ASccEAEnHQABJx6gAScfkAE3HCABNx0AATce AAE3H0ABRxwwAUcdAAFHHhcBRx+QAVccQAFX HRABVx4hAVcfAAGHHFABhx0QAYcegQGHHwIB 1xxgAdcdgAHXHmYB1x9AAUcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Rover Realtek ALC285 for X1C6th CodecID 283902597 ConfigData ASccEAEnHQEBJx6mAScfkAFHHDABRx0BAUce FwFHH5ABlxwAAZcdEAGXHosBlx8BAhccIAIX HRACFx4rAhcfAQHXHGAB1x2AAdceZgHXH0AB RwwC FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902597 CodecName Andres - Realtek ALC285 for Lenovo X1 Carbon 6th ConfigData ASccEAEnHQEBJx6mAScfkAFHHDABRx0BAUce FwFHH5ABlxwAAZcdEAGXHosBlx8EAhccIAIX HRACFx4rAhcfBAFHDAI= FuncGroup 1 LayoutID 21 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902598 CodecName Mirone - Realtek ALC286 ConfigData ASccEAEnHQABJx6mAScfsAFHHCABRx0AAUce FwFHH5ABhxwwAYcdEAGHHosBhx8EAhccQAIX HRACFx4rAhcfBAFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902598 CodecName Lenovo YOGA3 pro ALC286 - gdllzkusi ConfigData ASccIAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxxAAUcdAQFHHhcBRx+QAUcMAgF3 HPABdx0AAXceAAF3H0ABhxwQAYcdEAGHHoEB hx8EAZcc8AGXHQABlx4AAZcfQAGnHPABpx0A AaceAAGnH0AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHDACFx0QAhceIQIX HwQCFwwC FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC288 CodecID 283902600 ConfigData ASccEAEnHQABJx6gAScfkAE3HCABNx0AATce AAE3H0ABRxwwAUcdAAFHHhcBRx+QAYccQAGH HRABhx6BAYcfAgHXHFAB1x2AAdceZQHXH0AC FxxgAhcdEAIXHiECFx8BAUcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC288 for Dell XPS 9343 CodecID 283902600 ConfigData ASccIAEnHQABJx6gAScfkAFHHDABRx0AAUce FwFHH5ABNxxAATcdEAE3HoEBNx8AAhccUAIX HRACFx4hAhcfAAFHDAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec yyfn - Realtek ALC288 for Dell XPS 9343 CodecID 283902600 ConfigData ASccIAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAUcMAgF3 HPABdx0AAXceAAF3H0ABhxzwAYcdAAGHHgAB hx9AAZcc8AGXHQABlx4AAZcfQAGnHHABpx0g AacYqwGnHwIBpwwCAdcc8AHXHQAB1x4AAdcf QAHnHPAB5x0AAeceAAHnH0ACFxw/AhcdEAIX HisCFx8D FuncGroup 1 LayoutID 23 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC290 CodecID 283902608 ConfigData AUccEAFHHQABRx4XAUcfkAFXHCABVx0QAVce KwFXHwIBlxwwAZcdAAGXHqABlx+QAaccQAGn HRABpx6LAacfAAFHDAI= FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902608 Comment macpeetALC ALC290 aka ALC3241 ConfigData AaccIAGnHRABpx6BAacfAAEnHDABJx0AASce owEnH5ABRxxAAUcdAAFHHhcBRx+QAVccUAFX HRABVx4hAVcfAAFHDAI= FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902608 Comment vusun123 - ALC 290 for Dell Vostro 5480 ConfigData ASccMAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABRwwCAVccIAFXHRABVx4hAVcfAAGn HEABpx0QAacegQGnHwA= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC292 CodecID 283902610 ConfigData ASccEAEnHQABJx6gAScfmQFHHCABRx0AAUce FwFHH5kBVxwwAVcdQAFXHiEBVx8BAZccUAGX HZABlx6BAZcfAQFHDAI= FuncGroup 1 LayoutID 12 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902610 Comment vanquybn - ALC 292 for Dell M4800 ConfigData AUccEAFHHQABRx4XAUcfkAGHHCABhx2QAYce gQGHHwEBJxwwAScdAAEnHqYBJx+QAVccQAFX HUABVx4hAVcfAQ== FuncGroup 1 LayoutID 18 AFGLowPowerState AwAAAA== CodecID 283902610 Comment vusun123 - ALC 292 for Lenovo T440 ConfigData ASccMAEnHQABJx6gAScfkAFHHEABRx0AAUce FwFHH5ABRwwCAVccUAFXHRABVx4hAVcfAAGn HCABpx0QAacegQGnHwA= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC293 Dell E7450 by Andres ZeroCross CodecID 283902611 ConfigData AScc8AEnHQABJx4AAScfQAE3HBABNx0BATce oAE3H5ABRxwwAUcdAQFHHhcBRx+QAVccQAFX HUABVx4rAVcfAgFnHFABZx1AAWceAQFnHwIB hxzwAYcdAAGHHgABhx9AAZcc8AGXHQABlx4A AZcfQAGnHCABpx0QAaceiwGnHwIBtxzwAbcd AAG3HgABtx9AAdcc8AHXHQAB1x4AAdcfQAHn HPAB5x0AAeceAAHnH0ABRwwCAVcMAgFnDAI= FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec tluck - ALC 293 for Lenovo T460/T560 - extra LineOut on Dock CodecID 283902611 ConfigData ASccEAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwgAUcdAQFHHhcBRx+QAVccMAFX HRABVx4hAVcfAwFnHPABZx0AAWceAAFnH0AB hxzwAYcdAAGHHgABhx9AAZcc8AGXHQABlx4A AZcfQAGnHEABpx0QAacegQGnHwMBtxzwAbcd AAG3HgABtx9AAdcc8AHXHQAB1x4AAdcfQAHn HPAB5x0AAeceAAHnH0ABRwwCAVcMAg== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec tluck - ALC 293 for Lenovo T460/T560 CodecID 283902611 ConfigData ASccEAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxwgAUcdAQFHHhcBRx+QAVccMAFX HRABVx4hAVcfAwFnHPABZx0AAWceAAFnH0AB hxzwAYcdAAGHHgABhx9AAZcc8AGXHQABlx4A AZcfQAGnHEABpx0QAacegQGnHwMBtxzwAbcd AAG3HgABtx9AAdcc8AHXHQAB1x4AAdcfQAHn HPAB5x0AAeceAAHnH0ABRwwCAVcMAg== FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Rover - Realtek ALC294 for Asus FL8000U CodecID 283902612 ConfigData AbccEAG3HQEBtx6nAbcfkAFHHCABRx0BAUce FwFHH5ACFxwwAhcdEAIXHiECFx8BAUcMAgG3 DAICFwwC FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec MacPeet - Realtek ALC294 for Lenovo M710Q CodecID 283902612 ConfigData AhccIAIXHRACFx4hAhcfAAGXHDABlx0QAZce gQGXHwABpxxAAacdkAGnHoEBpx8AAUccUAFH HQABRx4XAUcfkAFHDAI= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC294 CodecID 283902612 ConfigData AXccEAF3HQABdx4XAXcfkAEnHCABJx0AASce oAEnH5ACFxwwAhcdEAIXHiECFx8A FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Andres ZeroCross - ALC294 ASUS ZenBook Flip 14 UX461UA CodecID 283902612 ConfigData ASccIAEnHQEBJx6gAScfkAF3HBABdx0BAXce FwF3H5ABlxxAAZcdEAGXHoEBlx8EAhccMAIX HRACFx4hAhcfBAF3DAICFwwC FuncGroup 1 LayoutID 21 WakeConfigData AXcMAgIXDAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec Damon - Realtek ALC 295 for HP Envy x360 15-bp107tx CodecID 283902613 ConfigData ASccMAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxzwAUcdAAFHHgABRx9AAUcMAgFn HPABZx0AAWceAAFnH0ABdxwQAXcdAQF3HhcB dx+QAYcc8AGHHQABhx4BAYcfQAGXHEABlx0Q AZcegQGXHwIBpxzwAacdAAGnHgABpx9AAbcc 8AG3HQABtx4AAbcfQAG3DAIB1xzwAdcdAAHX HgAB1x9AAecc8AHnHQAB5x4BAecfQAIXHCAC Fx0QAhceIQIXHwICFwwC FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC295/ALC3254 CodecID 283902613 ConfigData ASccEAEnHQABJx6mAScfmQF3HCABdx0AAXce FwF3H5kBlxwwAZcdEAGXHoEBlx8CAhccQAIX HRACFx4hAhcfAgF3DAIBRwwCAhcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DalianSky - Realtek ALC295/ALC3254 Dell7570 CodecID 283902613 ConfigData ASccIAEnHQEBJx6mAScfkAE3HPABNx0AATce AAE3H0ABRxxAAUcdAQFHHhcBRx+QAUcMAgFn HPABZx0AAWceAAFnH0ABdxzwAXcdAAF3HgAB dx9AAYcc8AGHHQABhx4AAYcfQAGXHBABlx0Q AZcegQGXHwIBpxzwAacdAAGnHgABpx9AAbcc 8AG3HQABtx4AAbcfQAHXHPAB1x0AAdceAAHX H0AB5xzwAecdAAHnHgAB5x9AAhccMAIXHRAC Fx4hAhcfAgIXDAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC295 v2 Asus UX430UA CodecID 283902613 ConfigData AXccEAF3HQABdx4XAXcfkAEnHCABJx0AASce oAEnH5ACFxwwAhcdEAIXHiECFx8AAZccQAGX HRABlx6BAZcfAAIXDAI= FuncGroup 1 LayoutID 14 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC295/ALC3254 CodecID 283902613 ConfigData AUccEAFHHQABRx4XAUcfkAEnHCABJx0AASce oAEnH5ACFxwwAhcdEAIXHiECFx8AAZccQAGX HRABlx6BAZcfAA== FuncGroup 1 LayoutID 15 AFGLowPowerState AwAAAA== Codec Andres - ALC295 Acer Nitro 5 Spin (NP515-51) CodecID 283902613 ConfigData ASccIAEnHQEBJx6gAScfkAE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAWcc8AFn HQABZx4AAWcfQAF3HPABdx0AAXceAAF3H0AB hxzwAYcdAAGHHgABhx9AAZccMAGXHRABlx6B AZcfAgGnHPABpx0AAaceAAGnH0ABtxzwAbcd AAG3HgABtx9AAdcc8AHXHQAB1x4AAdcfQAHn HPAB5x0AAeceAAHnH0ACFxxAAhcdEAIXHiEC Fx8CAUcMAgIXDAI= FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec vusun123 - ALC 295 for Skylake HP Pavilion CodecID 283902613 ConfigData ASccMAEnHQABJx6gAScfuQFHHFABRx0AAUce FwFHH5ABRwwCAZccQAGXHRABlx6BAZcfAAIX HCACFx0QAhceIQIXHwA= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Unbelievable9 - Realtek ALC295/ALC3254 for Dell Latitude 5290 CodecID 283902613 ConfigData ASccMAEnHQEBJx6mAScftwE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAUcMAgFn HPABZx0AAWceAAFnH0ABdxzwAXcdAAF3HgAB dx9AAYcc8AGHHQABhx4AAYcfQAGXHHABlx0g AZceqwGXHwIBpxzwAacdAAGnHgABpx9AAbcc 8AG3GwABtx4AAbcfQAHXHPAB1x0AAdceAAHX H0AB5xzwAecdAAHnHgAB5x9AAhccMAIXHRAC Fx4rAhcfAgIXDAI= FuncGroup 1 LayoutID 77 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC298 SP4 - ComboJack CodecID 283902616 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABhxwwAYcdEAGHHoEBhx8CAhccQAIX HRACFx4hAhcfAgFHDAICFwwC FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Rockjesus - Realtek ALC298 for Alienware 17 ALC3266 CodecID 283902616 ConfigData ASccQAEnHQEBJx6mAScftwF3HBABdx0BAXce FwF3H5ABpxwwAacdEAGnHqEBpx8DAhccIAIX HRACFx4hAhcfAw== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC298 CodecID 283902616 ConfigData AXccEAF3HQABdx4XAXcfkAEnHCABJx0AASce oAEnH5ACFxwwAhcdEAIXHiECFx8CAYccQAGH HRABhx6BAYcfAgFHDAICFwwC FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Lenovo 720S-15IKB ALC298 by Andres ZeroCross CodecID 283902616 ConfigData ASccMAEnHQEBJx6gAScfkAE3HPABNx0AATce AAE3H0ABRxzwAUcdAAFHHgABRx9AAXcc8AF3 HQABdx4AAXcfQAGHHHABhx0QAYcegQGHHwAB lxzwAZcdAAGXHgABlx9AAaccUAGnHQEBpx4X AacfkAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAfcc8AH3HQAB9x4AAfcfQAIX HCACFx0QAhceIQIXHwABpwwC FuncGroup 1 LayoutID 21 WakeConfigData AacMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Razer Blade 14 2017 by Andres ZeroCross CodecID 283902616 ConfigData ASccMAEnHQEBJx6gAScfkAE3HPABNx0AATce AAE3H0ABRxwQAUcdAQFHHhcBRx+QAXcc8AF3 HQABdx4AAXcfQAGHHEABhx0QAYcegQGHHwMB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAfcc8AH3HQAB9x4AAfcfQAIX HCACFx0QAhceIQIXHwMBRwwC FuncGroup 1 LayoutID 22 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec vusun123 - Realtek ALC298 for Dell XPS 9x50 CodecID 283902616 ConfigData ASccMAEnHQABJx6gAScfkAF3HEABdx0AAXce FwF3H5ABdwwCAhccIAIXHRACFx4hAhcfAA== FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec vusun123 - Realtek ALC298 for Lenovo X270 CodecID 283902616 ConfigData AEcc8ABHHQAARx4AAEcfAABXHPAAVx0AAFce AABXHwAAdxzwAHcdAAB3HgAAdx8AAOcc8ADn HQAA5x4AAOcfAAD3HPAA9x0AAPceAAD3HwAB BxzwAQcdAAEHHgABBx8AASccQAEnHQEBJx6g AScfkAE3HPABNx0AATceAAE3HwABRxwQAUcd AQFHHhcBRx+QAUcMAgFXHPABVx0AAVceAAFX HwABZxzwAWcdAAFnHgABZx8AAXcc8AF3HQAB dx4AAXcfAAGHHDABhx0QAYcegQGHHwMBlxzw AZcdAAGXHgABlx8AAacc8AGnHQABpx4AAacf AAG3HPABtx0AAbceAAG3HwABxxzwAccdAAHH HgABxx8AAdcc8AHXHQAB1x4AAdcfAAHnHPAB 5x0AAeceAAHnHwAB9xzwAfcdAAH3HgAB9x8A Agcc8AIHHQACBx4AAgcfAA== FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Constanta - Realtek ALC298 for Xiaomi Mi Notebook Air 13.3 Fingerprint 2018 CodecID 283902616 ConfigData ASccMAEnHQABJx6gAScfkAF3HEABdx0AAXce FwF3H5ABdwwCAYcccAGHHRABhx6BAYcfAAIX HCACFx0QAhceIQIXHwA= FuncGroup 1 LayoutID 30 WakeConfigData AXcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Daliansky - Realtek ALC298 ThinkPad T470p CodecID 283902616 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce FwFHH5ABhxwwAYcdEAGHHoEBhx8CAhccQAIX HRACFx4hAhcfAgFHDAICFwwC FuncGroup 1 LayoutID 47 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec lgs3137 - Realtek ALC298 MECHREVO S1 CodecID 283902616 ConfigData ASccMAEnHQEBJx6mAScfkAFHHEABRx0BAUce FwFHH5ABhxwQAYcdEAGHHqsBhx8CAhccIAIX HRACFx4rAhcfAgFHDAICFwwC FuncGroup 1 LayoutID 66 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom - Realtek ALC298 for Dell XPS 9560 by KNNSpeed CodecID 283902616 ConfigData ASccEAEnHQEBJx6mAScfkAF3HCABdx0BAXce FwF3H5ABhxwwAYcdEAGHHqsBhx8DAaccQAGn HRABpx6LAacfAwIXHFACFx0QAhceKwIXHwMB RwwCAXcMAgGnDAICFwwC FuncGroup 1 LayoutID 72 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Daliansky - Realtek ALC298 XiaoMi Pro CodecID 283902616 ConfigData ASccEAEnHQEBJx6gAScfkAE3HPABNx0AATce AAE3H0ABRxzwAUcdAAFHHgABRx9AAXccIAF3 HQEBdx4XAXcfkAGHHDABhx0QAYcegQGHHwMB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAHXHPAB1x0AAdceAAHXH0AB5xzwAecd AAHnHgAB5x9AAfcc8AH3HQAB9x4AAfcfQAIX HEACFx0QAhceIQIXHwMBdwwC FuncGroup 1 LayoutID 99 WakeConfigData AXcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Andres - ALC299 Acer Helios 500 CodecID 283902617 ConfigData ASccQAEnHQEBJx6gAScfkAFHHBABRx0BAUce FwFHH5ABlxwwAZcdEAGXHoEBlx8EAhccIAIX HRACFx4hAhcfBAFHDAICFwwC FuncGroup 1 LayoutID 21 WakeConfigData AUcMAgIXDAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec Andres - ALC299 Dell XPS13 CodecID 283902617 ConfigData ASccQAEnHQEBJx6gAScfkAF3HBABdx0BAXce FwF3H5ABlxwwAZcdEAGXHoEBlx8EAhccIAIX HRACFx4hAhcfBA== FuncGroup 1 LayoutID 22 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC662 CodecID 283903586 ConfigData AUccEAFHHUABRx4RAUcfkAGHHCABhx2QAYce oAGHH5AB5xwwAecdYQHnHksB5x8BAaccQAGn HTABpx6BAacfAQG3HFABtx1AAbceIQG3HwEB lxxgAZcdkAGXHoEBlx8C FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC662 CodecID 283903586 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8B FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec Custom ALC662 by Irving23 for Lenovo ThinkCentre M8400t-N000 CodecID 283903586 ConfigData IUccECFHHUAhRx4RIUcfASGHHCAhhx2QIYce oCGHH5AhlxxgIZcdkCGXHqEhlx8CIaccQCGn HTAhpx6BIacfASG3HFAhtx1AIbceISG3HwIh 5xwwIecdYSHnHksh5x8B FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Custom ALC662 by stich86 for Lenovo ThinkCentre M800 CodecID 283903586 ConfigData IUccECFHHUAhRx4RIUcfASGHHCAhhx2QIYce oCGHH5AhlxxgIZcdkCGXHqEhlx8CIaccQCGn HTAhpx6BIacfASG3HFAhtx1AIbceISG3HwIh 5xwwIecdYSHnHksh5x8B FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Custom ALC662 by Vandroiy for Asus X66Ic CodecID 283903586 ConfigData AUccMAFHHQEBRx4QAUcfkAG3HEABtx0AAbce IQG3HwEBlxwQAZcdAQGXHqABlx+QAYccIAGH HQABhx6BAYcfAQFXHPABVx0AAVceAAFXH0AB ZxzwAWcdAAFnHgABZx9AAacc8AGnHQABpx4A AacfQAHHHPABxx0AAcceAAHHH0AB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAFH DAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec MacPeet - ALC662 for Acer Aspire A7600U All in One CodecID 283903586 ConfigData AbccEAG3HUABtx4hAbcfAAG3DAIBRxwgAUcd AAFHHhcBRx+QAUcMAgGHHDABhx2QAYcegQGH HwABJxxAAScdAAEnHqYBJx+QAeccYAHnHWAB 5x5LAecfAQ== FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec phucnguyen.2411 - ALC662v3 for Lenovo ThinkCentre M92P SFF CodecID 283903586 ConfigData AZccEAGXHZEBlx6gAZcfkQFHHCABRx1AAUce IQFHHwEBVxwwAVcdQQFXHhEBVx8BAYccQAGH HZABhx6BAYcfAQG3HFABtx1AAbceIQG3HwIB 5xxgAecdYAHnHksB5x8B FuncGroup 1 LayoutID 16 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Custom ALC662 by aloha_cn for HP Compaq Elite 8000 SFF CodecID 283903586 ConfigData AUccEAFHHUABRx4hAUcfAQFXHCABVx0AAVce EwFXH5ABtxwwAbcdEAG3HiEBtx8BAYccQAGH HTABhx6hAYcfkAGXHFABlx0QAZcegQGXHwI= FuncGroup 1 LayoutID 17 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC663 CodecID 283903587 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUce EwFHH5ACFxwwAhcdEAIXHiECFx8CAUcMAg== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC663_V2 CodecID 283903587 ConfigData AUccEAFHHQABRx4TAUcfkAGHHCABhx0QAYce gQGHHwIBlxwwAZcdAAGXHqABlx+QAdccQAHX HYAB1x4FAdcfQAHnHFAB5x0QAeceRQHnHwAC FxxgAhcdEAIXHiECFx8BAUcMAg== FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC663 CodecID 283903587 Comment Custom ALC663 for Asus N56/76 by m-dudarev ConfigData AZccEAGXHQABlx6gAZcfkAGHHCABhx0QAYce gQGHHwIBRxwwAUcdAAFHHhABRx+QAUcMAgIX HEACFx0QAhceIQIXHwIBFxzwARcdAAEXHgAB Fx9AAecc8AHnHQAB5x4AAecfQA== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC663 CodecID 283903587 Comment Custom by alex1960 for ASUS N71J ConfigData AUccAAFHHQEBRx4TAUcfmQA3HBAANx0AADce VgA3HxgCFxwgAhcdQAIXHiECFx8BAbccMAG3 HUABtx4hAbcfAQHnHEAB5x0BAeceQwHnH5kB hxxQAYcdCQGHHqMBhx+ZAZccYAGXHZwBlx6B AZcfAQF3HPABdx0BAXceEwF3H5k= FuncGroup 1 LayoutID 99 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC665 CodecID 283903589 ConfigData ASccEAEnHQEBJx6gAScfmQGnHCABpx0QAace gQGnH5MBVxxAAVcdAQFXHhMBVx+ZAZccUAGX HRABlx4hAZcfAwG3HGABtx0QAbceIQG3HwMB 5xxwAecdEAHnHkUB5x8D FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC665 CodecID 283903589 ConfigData ASccUAEnHQABJx6gAScfkAFXHBABVx0AAVce EwFXH5ABVwwCAZccIAGXHRABlx4hAZcfAAGn HEABpx0QAacegQGnHwABtxxgAbcdEAG3HiEB tx8AAdcc8AHXHQAB1x6DAdcfUA== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 283903592 Comment ALC668 Mirone Laptop Patch ConfigData ABJxwQAScdAAEnHqABJx+QAUccIAFHHQABRx 4XAUcfkAFXHDABVx0QAVceIQFXHwEBZxxAAW cdAAFnHgABZx9AAbccUAG3HRABtx6BAbcfAg HXHGAB1x0AAdcewAHXH0ABRwwA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== CodecID 283903592 Comment Custom ALC668 by lazzy for laptop ASUS G551JM ConfigData ASccMAEnHQABJx6gAScfkAFHHBABRx0AAUce FwFHH5ABVxwgAVcdEAFXHiEBVx8AAbccQAG3 HRABtx6BAbcfAAFHDAI= FuncGroup 1 LayoutID 20 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283903592 Comment ALC668 syscl Laptop Patch (DELL Precision M3800) ConfigData ASccAQEnHQEBJx6gAScfkAFHHAIBRx0BAUce FwFHH5ABRwwCAVccAwFXHRABVx4rAVcfAwFX DAIBZxzwAWcdAAFnHgABZx9AAYcc8AGHHQAB hx4AAYcfQAGXHPABlx0AAZceAAGXH0ABpxzw AacdAAGnHgABpx9AAbccBAG3HRABtx6LAbcf AwHXHPAB1x0AAdceAAHXH0AB5xzwAecdAAHn HgAB5x9AAfcc8AH3HQAB9x4AAfcfQAIFAAEC BL6+AgUAAgIEqqoCBQADAgQAAAIFAAQCBAGA AgUABgIEAAACBQAHAgQPgAIFAAgCBAAxAgUA CgIEAGACBQALAgQAAAIFAAwCBHz3AgUADQIE EIACBQAOAgR/fwIFAA8CBMzMAgUAEAIE3cwC BQARAgQAAQIFABMCBAAAAgUAFAIEKqACBQAX AgSpQAIFABkCBAAAAgUAGgIEAAACBQAbAgQA AAIFABwCBAAAAgUAHQIEAAACBQAeAgR0GAIF AB8CBAgEAgUAIAIEQgACBQAhAgQEaAIFACIC BIzMAgUAIwIEAlACBQAkAgR0GAIFACcCBAAA AgUAKAIEjMwCBQAqAgT/AAIFACsCBIAAAgUA pwIE/wACBQCoAgSAAAIFAKoCBC4XAgUAqwIE oMACBQCsAgQAAAIFAK0CBAAAAgUArgIEKsYC BQCvAgSkgAIFALACBAAAAgUAsQIEAAACBQCy AgQAAAIFALMCBAAAAgUAtAIEAAACBQC1AgQQ QAIFALYCBNaXAgUAtwIEkCsCBQC4AgTWlwIF ALkCBJArAgUAugIEuLoCBQC7AgSqqwIFALwC BKqvAgUAvQIEaqoCBQC+AgQcAgIFAMACBAD/ AgUAwQIED6Y= FuncGroup 1 LayoutID 27 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283903592 Comment ALC668 Mirone Laptop Patch (Asus N750Jk) ConfigData ABJxwQAScdAAEnHqABJx+QAUccIAFHHQABRx 4XAUcfkAFXHDABVx0QAVceIQFXHwEBZxxAAW cdAAFnHgABZx9AAbccUAG3HRABtx6BAbcfAg HXHGAB1x0AAdcewAHXH0ABRwwA== FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== CodecID 283903592 Comment ALC668 Custom (Asus N750JV) ConfigData ASccAAEnHQEBJx6mAScfkAFHHBABRx0BAUce FwFHH5ABVxwfAVcdEAFXHiEBVx8DAWcc8AFn HQABZx4AAWcfQAGHHPABhx0AAYceAAGHH0AB lxzwAZcdAAGXHgABlx9AAacc8AGnHQABpx4A AacfQAG3HDABtx0QAbcegQG3HwMB1xzwAdcd AAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAH3 HPAB9x0AAfceAAH3H0ABRwwCAVcMAg== FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283903600 Comment Custom ALC670 by Alex Auditore ConfigData AbccQAG3HRABtx4rAbcfAQFXHDABVx0BAVce EwFXH5ABJxwQAScdAQEnHqABJx+QAaccUAGn HTEBpx6BAacfAQGXHCABlx2QAZcegQGXHwEB 5xxgAecdEQHnHksB5x8BARcc8AEXHQABFx4A ARcfQAE3HPABNx0AATceAAE3H0ABRxzwAUcd AAFHHgABRx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxzwAYcdAAGHHgAB hx9AAdcc8AHXHQAB1x4AAdcfQAIXHPACFx0A AhceAAIXH0A= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== CodecID 283903601 Comment MacPeet - ALC671 for Fujitsu-Siemens D3433-S (Q170 chip) ConfigData AYccIAGHHTABhx6BAYcfAQIXHDACFx1AAhce AQIXHwECFwwC FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== CodecID 283903601 Comment MacPeet - ALC671 for Fujitsu Esprimo C720 ConfigData IXccECF3HQAhdx4TIXcfkCFHHCAhRx0QIUce ISFHHwIhRwwCIhccMCIXHUAiFx4RIhcfkSIX DAIhlxxQIZcdECGXHoEhlx8CIYccYCGHHTAh hx6BIYcfAQ== FuncGroup 1 LayoutID 15 WakeConfigData IhcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC882 CodecID 283904130 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8B FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC882 CodecID 283904130 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8B FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec ALC883 CodecID 283904131 Comment Mirone - Realtek ALC883 by Andrey1970 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8B FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== CodecID 283904133 Comment toleda ALC885 ConfigData IUccECFHHUAhRx4RIUcfASFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfccoCH3HQEh9x7LIfcfASEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== Codec ALC885 CodecID 283904133 Comment Custom ALC885 by alex1960 ConfigData IUccECFHHUAhRx4RIUcfASFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfccoCH3HQEh9x7LIfcfASEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec ALC885 CodecID 283904133 Comment MacPeet - ALC885 for GA-G33M-DS2R ConfigData IUccECFHHUAhRx4RIUcfkSFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIYccQCGH HZAhhx6gIYcfkCGnHFAhpx0wIacegSGnHwEh lxxgIZcdkCGXHoEhlx8CIbcccCG3HUAhtx4h IbcfAiHnHJAh5x1hIeceSyHnHwEh9xygIfcd ASH3Hssh9x8B FuncGroup 1 LayoutID 15 AFGLowPowerState AwAAAA== CodecID 283904135 Comment Toleda ALC887 ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxwgIVcd ECFXHgEhVx8BIWccMCFnHWAhZx4BIWcfASF3 HPAhdx0AIXceACF3H0AhhxxAIYcdkCGHHqAh hx+QIZccYCGXHZAhlx6BIZcfAiGnHFAhpx0w IacegSGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904135 Comment Toleda ALC887 ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxzwIVcd ACFXHgAhVx9AIWcc8CFnHQAhZx4AIWcfQCF3 HPAhdx0AIXceACF3H0AhhxxAIYcdYCGHHgEh hx8BIZccYCGXHZAhlx6gIZcfkCGnHFAhpx0Q IaceASGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904135 Comment Toleda ALC887 ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxwgIVcd ECFXHgEhVx9AIWcc8CFnHQAhZx4AIWcfQCF3 HPAhdx0AIXceACF3H0AhhxxAIYcdkCGHHqAh hx+QIZccYCGXHZAhlx6BIZcfAiGnHFAhpx0w IacegSGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC887-VD CodecID 283904135 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwIB 5xyQAecdYAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC887-VD CodecID 283904135 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 7 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC887-VD CodecID 283904135 ConfigData AUccEAFHHUABRx4RAUcfkQFHDAIBtxwgAbcd QAG3HiEBtx8CAbcMAgGHHDABhx2QAYceoQGH H5EBlxxAAZcdkQGXHoEBlx+SAUcMAg== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC887-VD CodecID 283904135 ConfigData AbccAAG3HUABtx4hAbcfAQGHHBABhx2QAYce oAGHH5EBlxwgAZcdkAGXHoEBlx8BAUccMAFH HUABRx4RAUcfkQGnHEABpx0wAacegQGnHwEB 5xxQAecdYQHnHksB5x8BAUcMAg== FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC887-VD CodecID 283904135 ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhhxxAIYcdkCGHHqAhhx+QIaccUCGn HTAhpx6BIacfASGXHGAhlx2QIZcegSGXHwIh txxwIbcdQCG3HiEhtx8CIecckCHnHWEh5x5L IecfAQ== FuncGroup 1 LayoutID 17 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC887-VD CodecID 283904135 ConfigData IUccECFHHUAhRx4RIUcfkSFHDAIhhxxAIYcd YCGHHgEhhx8BIaccUCGnHRAhpx4BIacfASGX HGAhlx2QIZceoSGXH5EhtxxwIbcdQCG3HiEh tx8CIecckCHnHWEh5x5LIecfAQ== FuncGroup 1 LayoutID 18 AFGLowPowerState AwAAAA== Codec Realtek ALC887-VD AD0 for Asus Z97M-PLUS/BR by maiconjs CodecID 283904135 ConfigData AUccAAFHHUABRx4BAUcfAQFnHBABZx1gAWce AQFnHwEBVxwgAVcdEAFXHgEBVx8BAXccMAF3 HSABdx4BAXcfAQG3HEABtx1AAbceIQG3HwIB FxxQARcdAQEXHkYBFx+ZAYccYAGHHZABhx6g AYcfkAGnHHABpx0wAacegQGnHwEBlxyAAZcd kAGXHoEBlx8CAUcMAg== FuncGroup 1 LayoutID 20 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904135 Comment Custom by klblk ALC887 for GA-Q87TN ConfigData IRcc8CEXHQAhFx4AIRcfQCEnHPAhJx0AISce ACEnH0AhRxzwIUcdACFHHgAhRx9AIVcc8CFX HQAhVx4AIVcfQCFnHPAhZx0AIWceACFnH0Ah dxzwIXcdACF3HgAhdx9AIYcccCGHHZAhhx6B IYcfASGXHPAhlx0AIZceACGXH0AhpxwgIacd QCGnHgEhpx8BIbcc8CG3HQAhtx4AIbcfQCHH HPAhxx0AIcceACHHH0Ah1xzwIdcdACHXHgAh 1x9AIecc8CHnHQAh5x4AIecfQCH3HPAh9x0A IfceACH3H0A= FuncGroup 1 LayoutID 33 AFGLowPowerState AwAAAA== Codec Realtek ALC887-VD for Asus B85-ME by maiconjs CodecID 283904135 ConfigData AUccAAFHHUABRx4BAUcfAQG3HBABtx1AAbce IQG3HwIBhxwgAYcdkAGHHqABhx+QAaccMAGn HTABpx6BAacfAQGXHEABlx2QAZcegQGXHwIB RwwC FuncGroup 1 LayoutID 40 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904135 Comment 0th3r ALC887 for PRIME B250-PLUS ConfigData AUccEAFHHUABRx4BAUcfAQG3HCABtx1BAbce IQG3HwIBhxxAAYcdkAGHHoEBhx8BAZccUAGX HZEBlx6BAZcfAg== FuncGroup 1 LayoutID 50 AFGLowPowerState AwAAAA== CodecID 283904135 Comment ALC887 for Asus PRIME Z270-P (full Rear and Front, non auto-switch) by ctich ConfigData AUccEAFHHUABRx4BAUcfAQFHDAIBtxwgAbcd QAG3HiEBtx8CAbcMAgEXHDABFx0BARceRgEX H5ABhxxAAYcdkAGHHqABhx+RAaccTwGnHTAB px6BAacfAQGXHFABlx2RAZcegQGXHwI= FuncGroup 1 LayoutID 52 WakeConfigData AUcMAgG3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904135 Comment ALC887 for Asus PRIME Z270-P (Rear LineOut1, Mic - LineOut2, LineIn - LineOut3 - 5.1 and Front, non auto-switch) by ctich ConfigData AUccEAFHHUABRx4BAUcfAQFHDAIBhxwQAYcd YAGHHgEBhx8BAaccEAGnHRABpx4BAacfAQG3 HCABtx1AAbceIQG3HwIBtwwCARccMAEXHQEB Fx5GARcfkAGXHFABlx2RAZcegQGXHwI= FuncGroup 1 LayoutID 53 WakeConfigData AUcMAgG3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC887-VD GA-Z97 HD3 ver2.1 by varrtix CodecID 283904135 ConfigData IRccYCEXHQEhFx5DIRcfmSEnHPAhJx0AISce ACEnH0AhRxyAIUcdQCFHHhEhRx8BIUcMAiFX HIIhVx0QIVceASFXHwEhZxyBIWcdYCFnHgEh Zx8BIXccgiF3HSAhdx4BIXcfASGHHHAhhx2Q IYceoSGHHwEhlxxwIZcdkCGXHqEhlx8CIacc ICGnHTAhpx6BIacfASG3HFAhtx1AIbceISG3 HwIhtwwCIccc8CHHHQAhxx4AIccfQCHXHPAh 1x0AIdceACHXH0Ah5xzwIecdACHnHgAh5x9A Ifcc8CH3HQAh9x4AIfcfQA== FuncGroup 1 LayoutID 87 AFGLowPowerState AwAAAA== Codec Custom Realtek ALC887-VD by Constanta CodecID 283904135 ConfigData IUccECFHHUAhRx4RIUcfASGHHFAhhx2QIYce oCGHH5AhlxxgIZcdkCGXHoEhlx8CIacccCGn HTAhpx6BIacfASG3HIAhtx1AIbceISG3HwIh 5xyQIecdYCHnHkUh5x8B FuncGroup 1 LayoutID 99 AFGLowPowerState AwAAAA== CodecID 283904136 Comment toleda ALC888 ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== CodecID 283904136 Comment toleda ALC888 ConfigData IUccECFHHUAhRx4RIUcfkCFXHPAhVx0AIVce ACFXH0AhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx1gIYceASGHHwEh lxxgIZcdkCGXHqAhlx+QIaccUCGnHRAhpx4B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 2 AFGLowPowerState AwAAAA== CodecID 283904136 Comment toleda ALC888 ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC888 for Laptop CodecID 283904136 ConfigData ASccEAEnHQABJx6gAScfmQFHHCABRx1AAUce IQFHHwEBtxwwAbcdAQG3HhMBtx+ZAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYcegQGHHwEB pxxgAacdMAGnHoEBpx8BAecccAHnHUAB5x5F AecfAQFHDAI= FuncGroup 1 LayoutID 4 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC888 3 ports (Pink, Green, Blue) CodecID 283904136 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8B FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC888 5/6 ports (Gray, Black, Orange, Pink, Green, Blue) CodecID 283904136 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8B FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec ALC888S-VD Version1 for MedionP9614 by MacPeet CodecID 283904136 ConfigData AUccEAFHHRABRx4hAUcfAQFHDAIBhxwwAYcd EAGHHqEBhx8BASccQAEnHQABJx6jAScfkAF3 HFABdx0AAXceEwF3H5ABpxxgAacdEAGnHoEB px8BAecccAHnHRAB5x5FAecfAQ== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC888 for Acer Aspire 7738G by MacPeet CodecID 283904136 ConfigData AUccEAFHHQABRx4TAUcfkAFHDAIBJxxAAScd AAEnHqMBJx+QAVccUAFXHRABVx4hAVcfAAFX DAIBpxxgAacdMAGnHoEBpx8AAecccAHnHRAB 5x5FAecfAA== FuncGroup 1 LayoutID 27 AFGLowPowerState AwAAAA== Codec ALC888S-VD Version2 for MedionE7216 by MacPeet CodecID 283904136 ConfigData AUccEAFHHQABRx4TAUcfkAFHDAIBdxwgAXcd AAF3HhMBdx+QAeccMAHnHRAB5x5EAecfAAGH HEABhx0QAYceoQGHHwABJxxQAScdAAEnHqMB Jx+QAaccYAGnHRABpx6BAacfAAG3HHABtx0Q AbceIQG3HwA= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec ALC888S-VD Version3 for MedionP8610 by MacPeet CodecID 283904136 ConfigData AUccEAFHHQABRx4TAUcfkAFHDAIBdxwgAXcd EAF3HhMBdx+QAeccMAHnHRAB5x5FAecfAAGX HEABlx0AAZceowGXH5ABhxxQAYcdEAGHHoEB hx8AAVccYAFXHRABVx4hAVcfAAFXDAI= FuncGroup 1 LayoutID 29 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904137 Comment ALC889, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== CodecID 283904137 Comment ALC889, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 2 AFGLowPowerState AwAAAA== CodecID 283904137 Comment ALC889, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxwwIWcdYCFnHgEhZx8BIXcc8CF3 ASFXHwEhZxzwIWcdACFnHgAhZx9AIXcc8CF3 lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== CodecID 283904137 Comment MacPeet ALC889 Medion P4020 D ConfigData AUccEAFHHUABRx4hAUcfAQFHDAIBtxwgAbcd AAG3HhMBtx+QAeccMAHnHWAB5x5EAecfAQGX HFABlx0AAZceowGXH5ABpxxgAacdMAGnHoEB px8B FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904137 Comment alc889, Custom by Sergey_Galan ConfigData IRcc8CEXHQAhFx4AIRcfQCEnHPAhJx0AISce ACEnH0AhRxwwIUcdQSFHHhEhRx8BIVcc8CFX HQAhVx4AIVcfQCFnHPAhZx0AIWceACFnH0Ah dxzwIXcdACF3HgAhdx9AIYccECGHHZEhhx6g IYcfkCGXHCAhlx2QIZcegSGXHwEhpxzwIacd ACGnHgAhpx9AIbccgCG3HUAhtx4hIbcfASHH HPAhxx0AIcceACHHH0Ah1xzwIdcdACHXHgAh 1x9AIecckCHnHSEh5x5LIecfASH3HPAh9x0A IfceACH3H0A= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec MacPeet - ALC891 for HP Pavilion Power 580-030ng CodecID 283904103 ConfigData AXccIAF3HRABdx4hAXcfAgGHHDABhx2QAYce gQGHHwEBtxxAAbcdMAG3HoEBtx8BAhccYAIX HQACFx4RAhcfAAIXDAI= FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC891 CodecID 283904103 ConfigData AXccEAF3HUABdx4hAXcfAQFnHDABZx0wAWce gQFnHwEBhxxAAYcdkAGHHqEBhx+RAaccYAGn HZABpx6BAacfAgHnHHAB5x0AAeceRgHnH5AC FxyAAhcdQAIXHhECFx8B FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxwgIVcd ECFXHgEhVx8BIWccMCFnHWAhZx4BIWcfASF3 HPAhdx0AIXceACF3H0AhhxxAIYcdkCGHHqAh hx+QIZccYCGXHZAhlx6BIZcfAiGnHFAhpx0w IacegSGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxzwIVcd ACFXHgAhVx9AIWcc8CFnHQAhZx4AIWcfQCF3 HPAhdx0AIXceACF3H0AhhxxAIYcdYCGHHgEh hx8BIZccYCGXHZAhlx6gIZcfkCGnHFAhpx0Q IaceASGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxwgIVcd ECFXHgEhVx9AIWcc8CFnHQAhZx4AIWcfQCF3 HPAhdx0AIXceACF3H0AhhxxAIYcdkCGHHqAh hx+QIZccYCGXHZAhlx6BIZcfAiGnHFAhpx0w IacegSGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC892 for Laptop CodecID 283904146 ConfigData ASccEAEnHZABJx6gAScfmQFHHCABRx1AAUce IQFHHwEBdxwwAXcdEAF3HgEBdx8BAYccQAGH HZABhx6BAYcfAQGnHFABpx0wAacegQGnHwEB txxgAbcdQAG3HhMBtx+ZAecccAHnHWAB5x5F AecfAQG3DAI= FuncGroup 1 LayoutID 4 AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892, Mirone ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8B FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892, Mirone ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8B FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== CodecID 283904146 Comment MSI GP70/CR70 by Slava77 ConfigData AbceEQGXHqABlx+RAYcegQFHDAI= FuncGroup 1 LayoutID 12 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment MacPeet - alc892 for MSi Z97S SLI Krait Edition ConfigData AUccEAFHHUABRx4RAUcfkQG3HCABRwwCAbcd QAG3HiEBtx8CAbcMAgGHHDABhx2QAYceoQGH H5EBVxxQAVcdEAFXHgEBVx8BAWccYAFnHWAB Zx4BAWcfAQF3HHABdx0gAXceAQF3HwEBlxyA AZcdkAGXHoEBlx8CAacckAGnHTABpx6BAacf AQ== FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment MacPeet - alc892 for MSI GL73-8RD ConfigData AUccIAFHHXABRx4hAUcfAAFHDAIBVxwwAVcd AAFXHhcBVx+QAeccQAHnHXAB5x5FAecfAAEn HFABJx0AAScepgEnH5ABhxxgAYcdcAGHHoEB hx8AAXcccAF3HQABdx4XAXcfkA== FuncGroup 1 LayoutID 16 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment MacPeet - alc892 for MSI B150M MORTAR - SwitchMode ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBtxwgAbcd QAG3HiEBtx8CAbcMAgFXHDABVx0QAVceAQFX HwEBlxxQAZcdkAGXHoEBlx8CAWcccAFnHWAB Zx4BAWcfAQGHHIABhx2QAYceoAGHH5ABpxyQ AacdMAGnHoEBpx8BAeccsAHnHRAB5x5FAecf AQ== FuncGroup 1 LayoutID 17 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment MacPeet - alc892 for MSI B150M MORTAR - ManualMode ConfigData AUccEAFHHUABRx4BAUcfAQFHDAIBtxwgAbcd QAG3HiEBtx8CAbcMAgFXHDABVx0QAVceAQFX HwEBlxxQAZcdkAGXHoEBlx8CAWcccAFnHWAB Zx4BAWcfAQGHHIABhx2QAYceoAGHH5ABpxyQ AacdMAGnHoEBpx8BAeccsAHnHRAB5x5FAecf AQ== FuncGroup 1 LayoutID 18 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892 for Clevo P751DMG by Cryse Hillmes ConfigData ASccEAEnHQEBJx6mAScfkAFHHEABRx0BAUce FwFHH5ABdxxgAXcdEAF3HgEBdx8BAYccgAGH HRABhx6BAYcfAQGnHCABpx0QAacegQGnHwEB txxQAbcdEAG3HiEBtx8BAecccAHnHRAB5x5F AecfAQFHDAI= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892 for Clevo P65xSE/SA by Derek Zhu ConfigData ASccEAEnHZEBJx6mAScfkAGHHCABhx1gAYce gQGHHwEBRxwwAUcdAQFHHhcBRx+QAbccQAG3 HTABtx4hAbcfAQF3HFABdx1AAXceAQF3HwEB 5xxgAecdYQHnHkUB5x8BALcccAC3HREAtx4W ALcfkAFXHPABVx0AAVceAAFXHwQBZxzwAWcd AAFnHgABZx8EAZcc8AGXHQABlx4AAZcfBAGn HPABpx0AAaceAAGnHwQBxxzwAccdAAHHHgAB xx8EAdcc8AHXHQAB1x4AAdcfBAH3HPAB9x0A AfceAAH3HwQBRwwCAbcMAg== FuncGroup 1 LayoutID 31 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904146 Comment Custom ALC892 for GA-Z87-HD3 by BIM167 ConfigData IRccUCEXHXEhFx5EIRcfASEnHPAhJx0AISce ACEnH0AhRxwQIUcdQCFHHhEhRx+QIVccICFX HRAhVx4BIVcfASFnHDAhZx1gIWceASFnHwEh dxzwIXcdACF3HgAhdx9AIYccYCGHHZAhhx6g IYcfkCGXHIAhlx2QIZcegSGXHwIhpxxwIacd MCGnHoEhpx8BIbccQCG3HUAhtx4hIbcfAiHH HPAhxx0AIcceACHHH0Ah5xzwIecdACHnHgAh 5x9AIfcckCH3HXEh9x7EIfcfAQ== FuncGroup 1 LayoutID 92 AFGLowPowerState AwAAAA== CodecID 283904146 Comment Custom ALC892 for HASEE K770e i7 D1 by gitawake ConfigData ARcc8AEXHQABFx4AARcfQAEnHGABJx0BASce pgEnH5ABRxwQAUcdAQFHHhcBRx+QAUcMAgFX HPABVx0AAVceAAFXH0ABZxzwAWcdAAFnHgAB Zx9AAXccIAF3HRABdx4BAXcfAQGHHFABhx0Q AYcegQGHHwEBlxzwAZcdAAGXHgABlx9AAacc UAGnHRABpx6BAacfAQG3HDABtx0QAbceIQG3 HwEBtwwCAccc8AHHHQABxx4AAccfQAHXHPAB 1x0AAdceAAHXH0AB5xxAAecdEQHnHkUB5x8B Afcc8AH3HQAB9x4AAfcfQA== FuncGroup 1 LayoutID 97 AFGLowPowerState AwAAAA== CodecID 283904146 Comment ALC892 with working SPDIF ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8B FuncGroup 1 LayoutID 98 AFGLowPowerState AwAAAA== CodecID 283904146 Comment Custom ALC892 DNS P150EM by Constanta ConfigData AUccEAFHHUABRx4RAUcfAQGHHHABhx2QAYce gQGHHwEBlxxgAZcdAQGXHqABlx+QAaccgAGn HTABpx6BAacfAQG3HCABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8B FuncGroup 1 LayoutID 99 AFGLowPowerState AwAAAA== CodecID 283904153 Comment ALC898, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxwgIVcd ECFXHgEhVx8BIWccMCFnHWAhZx4BIWcfASF3 HPAhdx0AIXceACF3H0AhhxxAIYcdkCGHHqAh hx+QIZccYCGXHZAhlx6BIZcfAiGnHFAhpx0w IacegSGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 1 AFGLowPowerState AwAAAA== CodecID 283904153 Comment ALC898, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFHDAIhVxzwIVcd ACFXHgAhVx9AIWcc8CFnHQAhZx4AIWcfQCF3 HPAhdx0AIXceACF3H0AhhxxAIYcdYCGHHgEh hx8BIZccYCGXHZAhlx6gIZcfkCGnHFAhpx0Q IaceASGnHwEhtxxwIbcdQCG3HiEhtx8CIbcM AiHnHJAh5x1hIeceSyHnHwEh9xzwIfcdACH3 HgAh9x9AIRcc8CEXHQAhFx4AIRcfQA== FuncGroup 1 LayoutID 2 AFGLowPowerState AwAAAA== CodecID 283904153 Comment ALC898, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC898 CodecID 283904153 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC898 CodecID 283904153 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 7 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904153 Comment Custom ALC898 by Irving23 for MSI GT72S 6QF-065CN ConfigData ARcc8AEXHQABFx4AARcfQAEnHBABJx0BASce oAEnH5ABRxzwAUcdAAFHHgABRx9AAVcc8AFX HQABVx4AAVcfQAFnHPABZx0AAWceAAFnH0AB dxxgAXcdEAF3HgEBdx8BAYccEAGHHRABhx6h AYcfAQGXHEABlx0BAZceFwGXH5ABpxwgAacd EAGnHoEBpx8BAbccQAG3HQEBtx4XAbcfkAHH HPABxx0AAcceAAHHH0AB1xzwAdcdAAHXHgAB 1x9AAecccAHnHREB5x5FAecfAQH3HPAB9x0A AfceAAH3H0ABRwwC FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Realtek ALC898 for MSI GS40 CodecID 283904153 ConfigData AaccEAGnHQABpx4XAacfkAHnHCAB5x0QAece RgHnHwEBhxwwAYcdEAGHHoEBhx8BASccQAEn HQABJx6gAScfkA== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 283904153 Comment ALC898, Toleda ConfigData IUccECFHHUAhRx4RIUcfkCFXHCAhVx0QIVce ASFXHwEhZxzwIWcdACFnHgAhZx9AIXcc8CF3 HQAhdx4AIXcfQCGHHEAhhx2QIYceoCGHH5Ah lxxgIZcdkCGXHoEhlx8CIaccUCGnHTAhpx6B IacfASG3HHAhtx1AIbceISG3HwIh5xyQIecd YSHnHksh5x8BIfcc8CH3HQAh9x4AIfcfQCEX HPAhFx0AIRceACEXH0A= FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Realtek ALC898 for CLEVO P65xRS(-G) by datasone CodecID 283904153 ConfigData ARcc8AEXHQABFx4AARcfQAEnHFABJx0BASce pgEnH5ABRxwQAUcdAQFHHhcBRx+QAXccIAF3 HRABdx4BAXcfAQGHHEABhx0QAYcegQGHHwEB 1xzwAdcdAAHXHgAB1x9AAeccMAHnHREB5x5E AecfAQFHDAI= FuncGroup 1 LayoutID 65 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC898 for Clevo P750DM2-G CodecID 283904153 ConfigData ARcc8AEXHQABFx4AARcfQAEnHFABJx0BASce pgEnH5ABRxwQAUcdAQFHHhcBRx+QAXccIAF3 HRABdx4BAXcfAQGHHEABhx0QAYcegQGHHwEB pxxgAacdEAGnHoEBpx8BAdcc8AHXHQAB1x4A AdcfQAHnHDAB5x0RAeceRAHnHwEBRwwC FuncGroup 1 LayoutID 66 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC898 for MSI GE62 7RE Apache Pro by spectra CodecID 283904153 ConfigData ASccEAEnHQEBJx6gAScfmQGHHCABhx0QAYce gQGHHwIBVxwwAVcdAQFXHhMBVx+ZAaccMQGn HQEBpx4TAacfmQG3HDIBtx0BAbceEwG3H5kB twwCAUccQAFHHRABRx4hAUcfAgFHDAIB5xxQ AecdEQHnHkUB5x8C FuncGroup 1 LayoutID 98 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Realtek ALC898 for MSI GP62-6QG Leopard Pro CodecID 283904153 ConfigData ARcc8AEXHQABFx4AARcfQAEnHBABJx0BASce oAEnH5ABRxxQAUcdQAFHHiEBRx8BAUcMAgFX HEABVx0BAVceEAFXH5ABZxzwAWcdAAFnHgAB Zx9AAXcc8AF3HQABdx4AAXcfQAGHHCABhx2Q AYcegQGHHwEBlxzwAZcdAAGXHgABlx9AAacc 8AGnHQABpx4AAacfQAG3HPABtx0AAbceAAG3 H0ABxxzwAccdAAHHHgABxx9AAdcc8AHXHQAB 1x4AAdcfQAHnHHAB5x1BAeceRQHnHwEB9xzw AfcdAAH3HgAB9x9A FuncGroup 1 LayoutID 99 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904153 Comment ALC898, 4 Line Out by Andrey1970 ConfigData AUccAAFHHUABRx4RAUcfkAFXHBABVx0QAVce AQFXHwEBZxwgAWcdYAFnHgEBZx8BAYccMAGH HZABhx6gAYcfkAGnHEABpx0wAacegQGnHwEB lxxQAZcdkAGXHoEBlx8CAbccYAG3HUABtx4h AbcfAgHnHHAB5x1hAeceSwHnHwEBdxyAAXcd IAF3HgEBdx8BAfcc8AH3HQAB9x4AAfcfSQEX HPABFx0AARceAAEXH0k= FuncGroup 1 LayoutID 101 AFGLowPowerState AwAAAA== CodecID 283904256 Comment toleda - ALC1150 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxwgAVcd EAFXHgEBVx8BAWccMAFnHWABZx4BAWcfAQF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904256 Comment toleda - ALC1150 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdYAGHHgEB hx8BAZccYAGXHZABlx6gAZcfkAGnHFABpx0Q AaceAQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283904256 Comment toleda - ALC1150 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC1150 CodecID 283904256 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC1150 CodecID 283904256 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 7 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Realtek ALC1150 (mic boost) CodecID 283904256 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Toleda - Realtek ALC1220 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxwgAVcd EAFXHgEBVx8BAWccMAFnHWABZx4BAWcfAQF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwE= FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Toleda - Realtek ALC1220 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdYAGHHgEB hx8BAZccYAGXHZABlx6gAZcfkAGnHFABpx0Q AaceAQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwE= FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Toleda - Realtek ALC1220 ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAgG3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Mirone - Realtek ALC1220 ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Mirone - Realtek ALC1220 ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 7 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Custom Realtek ALC1220 by truesoldier ConfigData AUccEAFHHUABRx4RAUcfkAG3HCABtx1AAbce IQG3HwIB5xwwAecdIAHnHksB5x8BAYccQAGH HZABhx6gAYcfkAGXHFABlx2QAZcegQGXHwIB VxxwAVcdEAFXHgEBVx8BAWccgAFnHWABZx4B AWcfAQGnHKABpx0wAacegQGnHwE= FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== CodecID 283906592 CodecName MacPeet - ALC1220 for Clevo P950HR ConfigData AUccEAFHHRABRx4hAUcfAQFHDAIBJxwwAScd AAEnHqYBJx+ZAYccQAGHHRABhx6BAYcfAQG3 HGABtx0AAbceFwG3H5kBtwwCAecccAHnHRAB 5x5EAecfAQ== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 283906592 CodecName fleaplus - ALC1220 for MSI WT75 ConfigData AbccIAG3HQEBtx4XAbcfkAG3DAIBhxxAAYcd EAGHHqEBhx8BAZccQQGXHRQBlx6BAZcfAQGn HE8Bpx0QAacegQGnHwEBJxxQAScdAQEnHmAB Jx+Q FuncGroup 1 LayoutID 15 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName MacPeet - ALC1220 for Gigabyte Z390 ConfigData AeccMAHnHSAB5x5FAecfAQGHHEABhx2QAYce oQGHH5EBlxxQAZcdkAGXHoEBlx8CAUccYAFH HUABRx4hAUcfAgFHDAIBVxxwAVcdEAFXHgEB Vx8BAWccgAFnHWABZx4BAWcfAQGnHJABpx0w AacegQGnHwEBtxygAbcdQAG3HhEBtx+RAbcM Ag== FuncGroup 1 LayoutID 16 WakeConfigData AbcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName lostwolf - ALC1220 for Gigabyte Z370-HD3P ConfigData AScc8AEnHQABJx4AAScfQAFHHBABRx1AAUce EQFHHwEBRwwCAVccIAFXHRABVx4BAVcfAQFn HDABZx1gAWceAQFnHwEBdxxAAXcdIAF3HgEB dx8BAYccUAGHHZABhx6gAYcfkQGXHGABlx2Q AZcegAGXHwIBpxxwAacdMAGnHoEBpx8BAbcc gAG3HUABtx4hAbcfAgG3DAIB1xzwAdcdAAHX HgAB1x9AAecckAHnHQAB5x5DAecfmQ== FuncGroup 1 LayoutID 27 WakeConfigData AUcMAgG3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName MacPeet- ALC1220 for Z390 Aorus Ultra - Output SP/HP Manualmode ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxwgAVcd EAFXHgEBVx8BAWccMAFnHWABZx4BAWcfAQF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwE= FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906592 CodecName Custom ALC1220 for MSI P65 Creator by CleverCoder ConfigData AUccEAFHHRABRx4RAUcfAAFHDAIBtxwgAbcd AAG3HhcBtx+QAbcMAgGXHDABlx0QAZcegQGX HwABJxxAAScdAAEnHqYBJx+Q FuncGroup 1 LayoutID 34 CodecID 283904768 CodecName toleda - Realtek ALCS1200A ConfigData AUccEAFHHUABRx4RAUcfkAFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXcc8AF3 HQABdx4AAXcfQAGHHEABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAaccUAGnHTABpx6B AacfAQG3HHABtx1AAbceIQG3HwIB5xyQAecd YQHnHksB5x8BARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 1 WakeConfigData AUcMAgG3DAI= WakeVerbReinit CodecID 283904768 CodecName toleda - Realtek ALCS1200A ConfigData AUccEAFHHUABRx4RAUcfkAFXHPABVx0AAVce AAFXH0ABZxzwAWcdAAFnHgABZx9AAXcc8AF3 HQABdx4AAXcfQAGHHEABhx1gAYceAQGHHwEB lxxgAZcdkAGXHqABlx+QAaccUAGnHRABpx4B AacfAQG3HHABtx1AAbceIQG3HwIB5xyQAecd YQHnHksB5x8BARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 2 WakeConfigData AUcMAgG3DAI= WakeVerbReinit CodecID 283904768 CodecName toleda - Realtek ALCS1200A ConfigData AUccEAFHHUABRx4RAUcfkAFXHPABVx0AAVce AAFXH0ABZxzwAWcdAAFnHgABZx9AAXcc8AF3 HQABdx4AAXcfQAGHHEABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAaccUAGnHTABpx6B AacfAQG3HHABtx1AAbceIQG3HwIB5xyQAecd YQHnHksB5x8BARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAgG3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Toleda - Realtek ALC S1220A ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxwgAVcd EAFXHgEBVx8BAWccMAFnHWABZx4BAWcfAQF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 1 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Toleda - Realtek ALC S1220A ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdYAGHHgEB hx8BAZccYAGXHZABlx6gAZcfkAGnHFABpx0Q AaceAQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 2 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Toleda - Realtek ALC S1220A ConfigData AUccEAFHHUABRx4RAUcfkAFHDAIBVxzwAVcd AAFXHgABVx9AAWcc8AFnHQABZx4AAWcfQAF3 HPABdx0AAXceAAF3H0ABhxxAAYcdkAGHHqAB hx+QAZccYAGXHZABlx6BAZcfAgGnHFABpx0w AacegQGnHwEBtxxwAbcdQAG3HiEBtx8CAbcM AgHnHJAB5x1hAeceSwHnHwEB9xzwAfcdAAH3 HgAB9x9AARcc8AEXHQABFx4AARcfQA== FuncGroup 1 LayoutID 3 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Mirone - Realtek ALC S1220A ConfigData AUccEAFHHUABRx4RAUcfAQGHHFABhx2QAYce oAGHH5ABlxxgAZcdkAGXHoEBlx8CAacccAGn HTABpx6BAacfAQG3HIABtx1AAbceIQG3HwEB 5xyQAecd4AHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 5 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Mirone - Realtek ALC S1220A ConfigData AUccEAFHHUABRx4RAUcfAQFXHCABVx0QAVce AQFXHwEBZxwwAWcdYAFnHgEBZx8BAXccQAF3 HSABdx4BAXcfAQGHHFABhx2QAYceoAGHH5AB lxxgAZcdkAGXHoEBlx8CAacccAGnHTABpx6B AacfAQG3HIABtx1AAbceIQG3HwIB5xyQAecd YAHnHkUB5x8BAUcMAg== FuncGroup 1 LayoutID 7 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Realtek ALC S1220A RodionS, Nacho 2.0 outputs(green), 2 inputs (blue)+front panel (mic fr.panel), mic (pink), headphones(lime), SPDIF/Optical ConfigData AUceEAGHHqABhx+RAZcegQFHDAI= FuncGroup 1 LayoutID 20 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283906408 CodecName Realtek ALC S1220A RodionS, Nacho 5.1 outputs(green, black, orange), 2 inputs (blue)+front panel (mic fr.panel), mic (pink), headphones(lime), SPDIF/Optical ConfigData AUceEAGHHqABhx+RAZcegQFHDAI= FuncGroup 1 LayoutID 21 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX8050 CodecID 351346546 ConfigData AXccEAF3HQABdx4XAXcfkAGnHCABpx0AAace oAGnH5ABlxwwAZcdEAGXHosBlx8BAWccQAFn HRABZx4rAWcfAQF3DAIBZwwC FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Asus VivoBook Pro 15 CX8150 by Andres ZeroCross CodecID 351346646 ConfigData AWccQAFnHRABZx4hAWcfBAGXHDABlx0QAZce gQGXHwQBpxwgAacdAQGnHqABpx+QAdccEAHX HQEB1x4XAdcfkAFnDAIB1wwC FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX8200 CodecID 351346696 ConfigData AXccEAF3HQABdx4XAXcfkAGnHCABpx0AAace oAGnH5ABlxwwAZcdEAGXHosBlx8BAdccQAHX HRAB1x4rAdcfAQF3DAIB1wwC FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Andres ZeroCross - HP Spectre 13-V130NG CodecID 351346696 ConfigData AXccIAF3HQEBdx4XAXcfkAGXHDABlx0QAZce gQGXHwEBpxxAAacdAQGnHqABpx+QAWccEAFn HRABZx4hAWcfAQFnDAIBdwwC FuncGroup 1 LayoutID 21 WakeConfigData AWcMAgF3DAI= WakeVerbReinit AFGLowPowerState AwAAAA== Codec Conexant CX8400 CodecID 351346896 ConfigData AWccEAFnHRABZx4hAWcfBAF3HPABdx0AAXce AAF3H0ABhxzwAYcdAAGHHgABhx9AAZccIAGX HRABlx6BAZcfBAGnHDABpx0BAacepgGnH5AB 1xxAAdcdAQHXHhcB1x+ZAecc8AHnHQAB5x4A AecfQAH3HPAB9x0AAfceAAH3H0ACFxzwAhcd AAIXHgACFx9AAmcc8AJnHQACZx4AAmcfQAJ3 HPACdx0AAnceAAJ3H0ABZwwCAdcMAg== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Conexant CX20561 CodecID 351359057 ConfigData AWccQAFnHUABZx4hAWcfAQF3HPABdx0AAXce AAF3H0ABhxwwAYcdMAGHHoEBhx8BAZcc8AGX HQABlx4AAZcfQAGnHBABpx0BAaceFwGnH5AB txzwAbcdAAG3HgABtx9AAccc8AHHHQABxx4A AccfQAHXHCAB1x0BAdceoAHXH5A= FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20583 CodecID 351359079 ConfigData AZcc8AGXHUABlx4hAZcfBAGnHPABpx2QAace oQGnHwQBtxzwAbcdAQG3HgABtx9AAccc8AHH HQEBxx4AAccfQAHXHPAB1x0BAdceAAHXH0AB 5xzwAecdAQHnHqcB5x+VAfcc8AH3HQEB9x4X AfcfkgIHHPACBx0RAgceRQIHHwQCJxzwAicd AQInHgACJx9AAjcc8AI3HQECNx4AAjcfQA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20585 CodecID 351359081 ConfigData AZccEAGXHRABlx4gAZcfAAGnHCABpx0AAace AAGnH0ABtxwwAbcdEAG3HoABtx8AAcccUAHH HQABxx4AAccfQAHXHGAB1x0AAdceAAHXH0AB 5xxgAecdAAHnHgAB5x9AAfcccAH3HQAB9x4Q AfcfkAIHHIACBx0AAgceAAIHH0ACJxyAAicd AAInHgACJx9AAjcckAI3HQACNx6gAjcfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Constanta custom for Toshiba L755-16R - Conexant CX20585 CodecID 351359081 ConfigData AZccEAGXHRABlx4gAZcfAAGnHCABpx0wAace gQGnHwEBtxwwAbcdAAG3HgABtx9AAcccUAHH HQABxx4AAccfQAHXHGAB1x0AAdceAAHXH0AB 5xxgAecdAAHnHgAB5x9AAfcccAH3HQAB9x4Q AfcfkAIHHIACBx0AAgceAAIHH0ACJxyAAicd AAInHgACJx9AAjcckAI3HQECNx6gAjcfkA== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20588 CodecID 351359084 ConfigData AZccQAGXHRABlx4hAZcfAgG3HDABtx0QAbce owG3H5kCNxxQAjcdAQI3HqECNx+SAfccEAH3 HQEB9x4TAfcfmQ== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20590 CodecID 351359086 ConfigData AZccQAGXHRABlx4hAZcfAAGnHDABpx0QAace gQGnHwABtxwgAbcdAAG3HqcBtx+QAfccEAH3 HQAB9x4XAfcfkQ== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== CodecID 351359086 Comment CX20590 Custom for Lenovo Yoga 13 by usr-sse2 ConfigData AZccMAGXHUABlx4rAZcfDgH3HCAB9x0BAfce EAH3H5ACNxwQAjcdAQI3HqACNx+QAaccQAGn HRABpx6BAacfAQG3HPABtx0AAbceAAG3H0AB xxzwAccdAAHHHgABxx9AAdcc8AHXHQAB1x4A AdcfQAHnHPAB5x0AAeceAAHnH0ACBxzwAgcd AAIHHgACBx9AAicc8AInHQACJx4AAicfQA== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== CodecID 351359086 Comment CX20590 for Lenovo T420 by tluck (Additional ports for use with a Docking Station) ConfigData AFccAABXHQAAVx5WAFcfGABnHBAAZx0AAGce VgBnHxgAdxwgAHcdAAB3HlYAdx8YAZccMAGX HRABlx4hAZcfBAGnHEABpx2QAaceoQGnH2EB txxQAbcdEAG3HoEBtx8BAcccYAHHHUABxx4h AccfYQH3HHAB9x0BAfceFwH3H5kCNxyAAjcd AQI3HqYCNx+ZAbcMAg== FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 351359086 Comment CX20590 for Lenovo T420 by tluck (Standard Laptop) ConfigData AFccAABXHQAAVx5WAFcfGABnHBAAZx0AAGce VgBnHxgAdxwgAHcdAAB3HlYAdx8YAZccMAGX HRABlx4hAZcfBAGnHEABpx2QAaceoQGnH2EB txxQAbcdEAG3HoEBtx8BAcccYAHHHUABxx4h AccfYQH3HHAB9x0BAfceFwH3H5kCNxyAAjcd AQI3HqYCNx+ZAbcMAg== FuncGroup 1 LayoutID 14 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 351359137 Comment CX20641 - MacPeet - Dell OptiPlex 3010 - ManualMode ConfigData IcccECHHHUAhxx4BIccfASGnHCAhpx2QIace gSGnHwIhtxwwIbcdMCG3HoEhtx8BIZccQCGX HUAhlx4hIZcfAg== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== CodecID 351359137 Comment CX20641 - MacPeet - Dell OptiPlex 3010 - SwitchMode ConfigData IcccECHHHUAhxx4RIccfkCGnHCAhpx2QIace gSGnHwIhtxwwIbcdMCG3HoEhtx8BIZccQCGX HUAhlx4hIZcfAg== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 351359138 Comment CX20642 - MacPeet - Fujitsu ESPRIMO E910 E90+ Desktop - ManualMode ConfigData IcccECHHHUAhxx4BIccfASGnHCAhpx0QIace gSGnHwIhlxxAIZcdECGXHiEhlx8CIdccUCHX HTAh1x6BIdcfAQ== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== CodecID 351359138 Comment CX20642 - MacPeet - Fujitsu ESPRIMO E910 E90+ Desktop - SwitchMode ConfigData IcccECHHHUAhxx4RIccfkCGnHCAhpx0QIace oSGnH5IhlxxAIZcdECGXHiEhlx8CIdccUCHX HTAh1x6BIdcfAQ== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== CodecID 351359086 Comment Custom for Dell Vostro 3x60 by vusun123 ConfigData AfccEAH3HQAB9x4XAfcfkQGnHDABpx0QAace gQGnHwkBlxxAAZcdEAGXHiEBlx8AAjccIAI3 HQECNx6nAjcfkAG3DAIB1wwC FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20722 CodecID 351359218 ConfigData AXccEAF3HQABdx4WAXcfkQGnHCABpx0AAace pgGnH5ABlxwwAZcdEAGXHoEBlx8CAWccQAFn HRABZx4hAWcfAg== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20724 CodecID 351359220 ConfigData AWccEAFnHRABZx4hAWcfAgF3HCABdx0AAXce FwF3H5EBlxwwAZcdEAGXHoEBlx8CAaccQAGn HQABpx6mAacfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Conexant CX20724 CodecID 351359220 ConfigData AXccEAF3HQEBdx4XAXcfkQGnHCABpx0BAace oAGnH5UBlxwwAZcdEAGXHosBlx8EAdccQAHX HRAB1x4rAdcfBA== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20752 CodecID 351359247 ConfigData AWccEAFnHUABZx4hAWcfAQF3HCABdx0AAXce FwF3H5ABhxwwAYcdkAGHHoEBhx8BAaccQAGn HQABpx6gAacfkA== FuncGroup 1 LayoutID 3 Codec Andres ZeroCross - Asus A455LF - WX039D CodecID 351359247 ConfigData AZcHJAGnByQBZxxAAWcdEAFnHiEBZx8EAXcc EAF3HQEBdx4XAXcfkAGXHDABlx0QAZcegQGX HwQBpxwgAacdAQGnHqABpx+Q FuncGroup 1 LayoutID 21 WakeConfigData AZcHJAGnByQ= WakeVerbReinit Codec Conexant - CX20751/2 by RehabMan CodecID 351359247 ConfigData AWccQAFnHRABZx4hAWcfBAF3HBABdx0BAXce FwF3H5ABlxwwAZcdEAGXHoEBlx8EAaccIAGn HQEBpx6gAacfkA== FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20753/4 CodecID 351359249 ConfigData AWccEAFnHUABZx4hAWcfAgF3HCABdx0AAXce FwF3H5ABlxwwAZcdkAGXHoEBlx8CAaccQAGn HQABpx6gAacfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Conexant CX20753/4 CodecID 351359249 ConfigData AXccEAF3HQEBdx4XAXcfkAFnHBMBZx0QAWce IQFnHwMBlxwwAZcdEAGXHoEBlx8DAaccQAGn HQEBpx6gAacfkA== FuncGroup 1 LayoutID 14 AFGLowPowerState AwAAAA== Codec MacPeet - CX20753/4 for Lenovo Thinkpad E580 CodecID 351359249 ConfigData AXccEAF3HQABdx4XAXcfkAGnHCABpx0AAace pgGnH5ABlxwwAZcdEAGXHoEBlx8AAWccQAFn HRABZx4hAWcfAA== FuncGroup 1 LayoutID 15 AFGLowPowerState AwAAAA== Codec Andres ZeroCross - LG gram 15ZD960-GX5BK CodecID 351359249 ConfigData AXccIAF3HQEBdx4XAXcfkAGXHDABlx0QAZce gQGXHwMBpxxAAacdAQGnHqABpx+QAdccEAHX HRAB1x4hAdcfAw== FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Mirone - Conexant CX20755 CodecID 351359251 ConfigData AXccEAF3HQABdx4XAXcfkAGnHCABpx0AAace pgGnH5UBhxwwAYcdkAGHHosBhx8CAWccQAFn HUABZx4rAWcfAg== FuncGroup 1 LayoutID 3 AFGLowPowerState AQAAAA== Codec Mirone - Conexant CX20756 CodecID 351359252 ConfigData AWccEAFnHUABZx4hAWcfAQF3HCABdx0AAXce EwF3H5ABhxwwAYcdkAGHHqEBhx8CAaccQAGn HQABpx6mAacfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - Conexant CX20756 CodecID 351359252 ConfigData AXccEAF3HQEBdx4XAXcfkAGnHCABpx0BAace oAGnH5ABlxwwAZcdEAGXHosBlx8CAWccQAFn HRABZx4rAWcfAgGHHPABhx0AAYceAAGHH0A= FuncGroup 1 LayoutID 13 AFGLowPowerState AQAAAA== Codec Mirone - Conexant CX20757 CodecID 351359253 ConfigData AWccEAFnHQABZx4hAWcfAQF3HCABdx0AAXce EwF3H5ABhxwwAYcdAAGHHoEBhx8CAaccUAGn HQABpx6gAacfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Custom IDT 92HD87B1/3 by RehabMan CodecID 287143633 ConfigData AMcegQDHHwM= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec InsanelyDeepak - IDT92HD87B1/3 CodecID 287143633 ConfigData ANccAADXHQAA1x4XANcfmQEXHCABFx0AARce oAEXH5kAtxwwALcdQAC3HiEAtx8BAMccQADH HRAAxx6AAMcfAQ== FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec Custom IDT92HD87B2/4 by RehabMan CodecID 287143641 ConfigData AMcegQDHHwMBFx6gARcfkA== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Custom IDT92HD95 by RehabMan CodecID 287143573 ConfigData AKccEACnHRAApx4hAKcfAgCnDAIAtxwgALcd EAC3HqEAtx8CALcMAgDXHDAA1x0BANceFwDX H5AA1wwCAOccQADnHQEA5x6gAOcfkA== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD66C3/65 CodecID 287143667 ConfigData AKccEACnHUAApx4hAKcfAgC3HCAAtx1AALce EwC3H5AAxxwwAMcdkADHHoEAxx8CAOccQADn HZAA5x6gAOcfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD71B7X CodecID 287143602 ConfigData AKccEACnHRAApx4hAKcfAAC3HCAAtx0QALce gQC3HwIAxxwwAMcdAADHHvAAxx9AANccQADX HQAA1x4XANcfkADnHFAA5x0QAOceoQDnHyAB RxxgAUcdAAFHHvABRx9AAYcccAGHHQABhx6g AYcfkAGXHIABlx0AAZce8AGXH0AB5xyQAecd EAHnHkYB5x8BAfccoAH3HQAB9x7wAfcfQAIH HLACBx0AAgce8AIHH0ACdxzAAncdAAJ3HvAC dx9A FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Dell Studio 1535 - IDT 92HD73C1X5 by chunnann CodecID 287143541 ConfigData AKccEACnHRAApx4hAKcfAwDXHCAA1x0BANce FwDXH5AA5xwwAOcdEADnHoEA5x8DAPccQAD3 HRAA9x4BAPcfAwE3HFABNx0BATceoAE3H5A= FuncGroup 1 LayoutID 19 AFGLowPowerState AwAAAA== Codec Andres ZeroCross - IDT 92HD73C1X5 for Alienware M17X R2 CodecID 287143541 ConfigData AKccEACnHRAApx4hAKcfBADHHCAAxx0QAMce gQDHHwQA5xwwAOcdAQDnHhcA5x+QATccQAE3 HQEBNx6gATcfkA== FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD81B1C5 CodecID 287143637 ConfigData AKccIACnHRAApx6BAKcfAgC3HDAAtx0QALce IQC3HwIA1xxAANcdAADXHhcA1x+QARccUAEX HQABFx6gARcfkA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Goldfish64 - IDT 92HD81B1C5 for Dell Latitude E6410 CodecID 287143637 ConfigData AKccIACnHRAApx6BAKcfBACnDAIAtxwwALcd EAC3HiEAtx8EALcMAgDHHPAAxx0AAMceAADH H0AA1xxAANcdAQDXHhcA1x+QANcMAgDnHPAA 5x0AAOceAADnH0AA9xzwAPcdAAD3HgAA9x9A AQcc8AEHHQABBx4AAQcfQAEXHFABFx0BARce oAEXH5AB9xzwAfcdAAH3HgAB9x9AAgcc8AIH HQACBx4AAgcfQA== FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD81B1X5 CodecID 287143429 ConfigData AKccIACnHRAApx6hAKcfAQC3HBAAtx0QALce IQC3HwEA1xwwANcdAADXHhcA1x+QAOcc8ADn HQAA5x4AAOcfQAD3HEAA9x0AAPceAAD3H0AB BxxQAQcdAAEHHgABBx9AARccYAEXHQABFx6j ARcf0AH3HHAB9x0AAfceAAH3H0ACBxyAAgcd AAIHHgACBx9A FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Custom IDT 92HD81B1X5 by Andres ZeroCross CodecID 283902515 ConfigData ASccEAEnHRABJx6BAScfBAFHHCABRx0BAUce FwFHH5ABRwwCAXcc8AF3HQABdx4AAXcfQAGH HPABhx0AAYceAAGHH0ABlxzwAZcdAAGXHgAB lx9AAacc8AGnHQABpx4AAacfQAG3HDABtx0B AbceoAG3H5AB1xzwAdcdAAHXHgAB1x9AAecc 8AHnHQAB5x4AAecfQAIXHEACFx0QAhceIQIX HwMCFwwC FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec RehabMan - IDT 92HD81B1X5 CodecID 287143429 ConfigData AMcegQDHHwMBFx6gARcfkA== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Custom IDT 92HD81B1X5 by Sergey_Galan for HP ProBook 4520s CodecID 287143429 ConfigData AKccIACnHRAApx6BAKcfAQC3HFAAtx0QALce IQC3HwEA1xwwANcdAQDXHhAA1x+QAOcc8ADn HQAA5x4AAOcfQAD3HPAA9x0AAPceAAD3H0AB BxzwAQcdAAEHHgABBx9AARccEAEXHQEBFx6g ARcfkAH3HPAB9x0AAfceAAH3H0ACBxzwAgcd AAIHHgACBx9AAMcc8ADHHQAAxx4AAMcfQA== FuncGroup 1 LayoutID 20 AFGLowPowerState AwAAAA== Codec Custom IDT 92HD81B1X5 by Sergey_Galan for HP DV6-6169er CodecID 287143429 ConfigData AMccIADHHRAAxx6BAMcfAQC3HFAAtx0QALce IQC3HwEA9xwwAPcdAQD3HhAA9x+QAOcc8ADn HQAA5x4AAOcfQADXHPAA1x0AANceAADXH0AB BxzwAQcdAAEHHgABBx9AARccEAEXHQEBFx6g ARcfkAH3HPAB9x0AAfceAAH3H0ACBxzwAgcd AAIHHgACBx9AAKcc8ACnHQAApx4AAKcfQA== FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Custom IDT 92HD81B1X5 by Gujiangjiang for HP Pavilion g4 1000 series CodecID 287143429 ConfigData ARccAAEXHQEBFx6jARcfmQDHHBAAxx0QAMce gQDHHwEA1xwgANcdAQDXHhMA1x+ZALccMAC3 HRAAtx4hALcfAQFHDAI= FuncGroup 1 LayoutID 28 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD75B2X5 CodecID 287143432 ConfigData AKccEACnHRAApx4hAKcfAQC3HCAAtx0QALce gQC3HwEAxxwwAMcdEADHHqAAxx+QANccQADX HQAA1x4RANcfkADnHFAA5x0AAOce8ADnH0AB RxxgAUcdAAFHHvABRx9AAYcccAGHHQABhx7w AYcfQAHnHIAB5x0AAece8AHnH0AB9xyQAfcd AAH3HvAB9x9AAgccoAIHHQACBx7wAgcfQA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD75B3X5 CodecID 287143427 ConfigData ALccEAC3HRAAtx6gALcfkADXHCAA1x0AANce FwDXH5AA9xwwAPcdQAD3HiEA9x8BAYccQAGH HZABhx6BAYcfAQ== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD75B3X5 CodecID 287143427 ConfigData ALccAAC3HQAAtx6nALcfmQDXHBAA1x0AANce FwDXH5kA9xwgAPcdQAD3HiEA9x8B FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD90BXX CodecID 287143655 ConfigData ALccEAC3HRAAtx4hALcfAACnHCAApx0QAKce gQCnHwABFxwwARcdkAEXHqABFx+QANccQADX HQAA1x4XANcfkADnHFAA5x0QAOceAQDnHyAA 9xxgAPcdEAD3HqEA9x8gAQcc8AEHHQABBx4A AQcfQA== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec vusun123 - IDT 92HD90BXX CodecID 287143655 ConfigData AKccIACnHRAApx6BAKcfAAC3HBAAtx0QALce IQC3HwAA1xxAANcdAADXHhcA1x+QARccMAEX HQABFx6gARcf0A== FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD91BXX CodecID 287143648 ConfigData AKccAACnHRAApx6BAKcfAQC3HBAAtx0QALce IQC3HwMAxxwgAMcdAADHHgAAxx9JARccMAEX HQABFx6gARcfmQDXHEAA1x0BANceFwDXH5kA 5xxQAOcdEADnHgEA5x8jAQccYAEHHQABBx4A AQcfSQH3HHAB9x0AAfceAAH3H0kCBxyAAgcd AAIHHgACBx9J FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec RehabMan - IDT 92HD91BXX for HP Envy CodecID 287143648 ConfigData AKccAACnHRAApx6BAKcfAQC3HBAAtx0QALce IQC3HwMAxxwgAMcdAADHHgAAxx9JARccMAEX HQABFx6gARcfmQD3HEAA9x0BAPceFwD3H5kA 5xxQAOcdEADnHgEA5x8jAQccYAEHHQABBx4A AQcfSQH3HHAB9x0AAfceAAH3H0kCBxyAAgcd AAIHHgACBx9J FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec MacPeet - IDT92HD91BXX for HP Envy 6 1171-SG CodecID 287143648 ConfigData ALccEAC3HRAAtx4hALcfAAC3DAIAxxwgAMcd EADHHoEAxx8AARccMAEXHQABFx6jARcfmQDX HEAA1x0AANceEADXH5AA1wwC FuncGroup 1 LayoutID 13 AFGLowPowerState AwAAAA== Codec jl4c - IDT 92HD91BXX for HP Envy CodecID 287143648 ConfigData ALccIAC3HRAAtx4hALcfAwD3HDIA9x0BAPce FwD3H5ABFxwQARcdAQEXHqYBFx+XANcc8ADX HQAA1x4AANcfQAEHHPABBx0AAQceAAEHH0AA pxzwAKcdAACnHgAApx9AAMcc8ADHHQAAxx4A AMcfQADnHPAA5x0AAOceAADnH0AB9xzwAfcd AAH3HgAB9x9AAgcc8AIHHQACBx4AAgcfQA== FuncGroup 1 LayoutID 33 AFGLowPowerState AwAAAA== Codec macish - IDT 92HD91BXX for HP Elitebook G1 CodecID 287143648 ConfigData AKccAACnHRAApx6BAKcfAQC3HBAAtx0QALce IQC3HwMAxxwgAMcdAADHHgAAxx9JARccMAEX HQABFx6gARcfmQD3HEAA9x0BAPceFwD3H5kA 5xxQAOcdEADnHgEA5x8jAQccYAEHHQABBx4A AQcfSQH3HHAB9x0AAfceAAH3H0kCBxyAAgcd AAIHHgACBx9J FuncGroup 1 LayoutID 84 AFGLowPowerState AwAAAA== Codec Custom - IDT 92HD93BXX Dell Latitude E6430 CodecID 287143647 ConfigData AKccIACnHRAApx6BAKcfAACnDAIAtxwQALcd EAC3HiEAtx8AALcMAgDXHEAA1x0BANceFwDX H5AA1wwCAOccUADnHRAA5x4BAOcfIADnDAIA 9xxgAPcdEAD3HoEA9x8gAQcc8AEHHQABBx4A AQcfQAEXHDABFx0BARceoAEXH5A= FuncGroup 1 LayoutID 12 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD99BXX CodecID 287143653 ConfigData AKccEACnHZAApx6BAKcfAgC3HCAAtx1AALce IQC3HwIAxxwwAMcdAADHHvAAxx9AANccQADX HQAA1x4TANcf0AD3HFAA9x0AAPce8AD3H0AB FxxgARcdAAEXHqABFx+QANcMAg== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Mirone - IDT 92HD87B1 CodecID 287143429 ConfigData AKccIACnHRAApx6hAKcfAQC3HBAAtx0QALce IQC3HwEA1xwwANcdAADXHhcA1x+QAOcc8ADn HQAA5x4AAOcfQAD3HEAA9x0AAPceAAD3H0AB BxxQAQcdAAEHHgABBx9AARccYAEXHQABFx6j ARcf0AH3HHAB9x0AAfceAAH3H0ACBxyAAgcd AAIHHgACBx9A FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec Goldfish64 - STAC9200 for Dell Precision 390 CodecID 2206496400 ConfigData AIcc8ACHHQAAhx4AAIcfQACXHPAAlx0AAJce AACXH0AA1xwQANcdEADXHiEA1x8CAOccIADn HQEA5x4QAOcfkAD3HDAA9x0BAPceoAD3H5AB BxxAAQcdEAEHHoEBBx8CARcc8AEXHQABFx4A ARcfQAEnHPABJx0AASceAAEnH0A= FuncGroup 1 LayoutID 11 AFGLowPowerState AwAAAA== Codec VIA VT1705 ECS H81H3-M4 (1.0A) by Andres ZeroCross CodecID 285624160 ConfigData AkccEAJHHQACRx4AAkcfAQKHHCAChx1AAoce IQKHHwICtxwwArcdkAK3HoECtx8BAwccQAMH HQADBx6gAwcfkAJHDAI= FuncGroup 1 LayoutID 21 AFGLowPowerState AwAAAA== Codec Mirone - VIA VT1802 CodecID 285639750 ConfigData AkccEAJHHQACRx4TAkcfkAJXHCACVx1AAlce IQJXHwEClxxAApcdAAKXHqAClx+QArccYAK3 HZACtx6BArcfAgLXHHAC1x0QAtceRALXHwAC RwwCAlcMAw== FuncGroup 1 LayoutID 3 AFGLowPowerState AwAAAA== Codec VIA VT1802 for hasee k650d CodecID 285639750 ConfigData AkccEAJHHQACRx4TAkcfkAJXHCACVx1AAlce IQJXHwEClxxAApcdAAKXHqAClx+QArccYAK3 HZACtx6BArcfAgLXHHAC1x0QAtceRALXHwAC RwwCAlcMAw== FuncGroup 1 LayoutID 65 AFGLowPowerState AwAAAA== Codec ChalesYu - VIA VT1802 CodecID 285639750 ConfigData AkccQAJHHQACRx4XAkcfkAJHDAICVxxQAlcd EAJXHiECVx8CAlcMAgMHHBADBx0AAwceoAMH H5A= FuncGroup 1 LayoutID 33 AFGLowPowerState AwAAAA== Codec Mirone - VIA VT2021 CodecID 285606977 ConfigData IkccECJHHUAiRx4BIkcfASKHHCAihx1AIoce ISKHHwEilxwwIpcdkCKXHqEilx8CIqccQCKn HTAipx6BIqcfASK3HFAitx2QIrcegSK3HwEi 5xxgIucdECLnHkUi5x8A FuncGroup 1 LayoutID 5 AFGLowPowerState AwAAAA== Codec Mirone - VIA VT2021 CodecID 285606977 ConfigData IkccECJHHUAiRx4RIkcfASJXHCAiVx0QIlce ASJXHwEiZxwwImcdYCJnHgEiZx8BInccQCJ3 HSAidx4BIncfASKHHFAihx1AIoceISKHHwEi lxxgIpcdkCKXHqEilx8CIqcccCKnHTAipx6B IqcfASK3HIAitx2QIrcegSK3HwEi5xygIucd ECLnHkUi5x8A FuncGroup 1 LayoutID 7 AFGLowPowerState AwAAAA== Codec SonicBSV - VIA VT2020/2021 CodecID 285606977 ConfigData Ihcc8CIXHQAiFx4AIhcfQCJHHBAiRx1AIkce ESJHHwEiRwwCIlcc8CJXHQAiVx4AIlcfQCJn HPAiZx0AImceACJnH0AidxzwIncdACJ3HgAi dx9AIoccICKHHUAihx4hIocfASKXHEAilx2Q IpceoCKXH5AilwchIqccgCKnHTAipx6BIqcf ASK3HPAitx0AIrceACK3H0AixxzwIscdACLH HgAixx9AItcc8CLXHQAi1x4AItcfQCLnHJAi 5x1hIuceSyLnHwEi9xzwIvcdACL3HgAi9x9A FuncGroup 1 LayoutID 9 AFGLowPowerState AQAAAA== Codec Custom CX20757 Lenovo G510 by Z39 CodecID 351359253 ConfigData AWccQAFnHRABZx4hAWcfAQF3HBABdx0BAXce FwF3H5ABhxzwAYcdAAGHHgABhx9AAZccMAGX HRABlx6BAZcfAQGnHCABpx0BAacepwGnH5A= FuncGroup 1 LayoutID 28 IOClass AppleHDAHardwareConfigDriver IOMatchCategory AppleHDAHardwareConfigDriver IOProviderClass AppleHDAHardwareConfigDriverLoader as.vit9696.AppleALC CFBundleIdentifier as.vit9696.AppleALC IOClass AppleALC IOMatchCategory AppleALC IOProviderClass IOResources IOResourceMatch IOKit NSHumanReadableCopyright Copyright © 2017 vit9696. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 com.apple.iokit.IOPCIFamily 1.0.0b1 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/AppleBacklightInjector.kext/Contents/Info.plist ================================================ CFBundleDevelopmentRegion English CFBundleGetInfoString 0.9.0, Copyright 2013 RehabMan Inc. All rights reserved. CFBundleIdentifier org.rehabman.injector.AppleBacklightInjector CFBundleInfoDictionaryVersion 6.0 CFBundleName AppleBacklightInjector CFBundlePackageType KEXT CFBundleShortVersionString 0.9.0 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 0.9.0 IOKitPersonalities AppleIntelPanelA ApplePanels F10Txxxx ABEAAAA0AFIAcwCUAL4A+gE2AXIBxQIvArkDYAQaBQoGDgcQ F11Txxxx ABEAAAA2AFQAfQCyAPUBSQGxAisCuANZBBME7AXzBzQIrwrZ F12Txxxx ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oEeAVs CFBundleIdentifier com.apple.driver.AppleBacklight IOClass AppleIntelPanelA IODisplayParameters brightness max 255 min 40 commit reg 0 IOMatchCategory IODisplayParameters IONameMatch backlight IOProbeScore 2500 IOProviderClass IOACPIPlatformDevice OSBundleRequired Safe Boot ================================================ FILE: EFI/CLOVER/kexts/Other/BrcmBluetoothInjector.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G87 CFBundleIdentifier org.rehabman.injector.BrcmBluetoothInjector CFBundleInfoDictionaryVersion 6.0 CFBundleName BrcmBluetoothInjector CFBundlePackageType KEXT CFBundleShortVersionString 2.2.10 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.2.10 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10G8 DTPlatformVersion GM DTSDKBuild 18G74 DTSDKName macosx10.14 DTXcode 1030 DTXcodeBuild 10G8 IOKitPersonalities 03f0_231d no firmware CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8989 idVendor 1008 0489_e032 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57394 idVendor 1161 0489_e042 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57410 idVendor 1161 0489_e046 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57414 idVendor 1161 0489_e04f CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57423 idVendor 1161 0489_e052 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57426 idVendor 1161 0489_e055 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57429 idVendor 1161 0489_e059 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57433 idVendor 1161 0489_e079 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57465 idVendor 1161 0489_e07a CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57466 idVendor 1161 0489_e087 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57479 idVendor 1161 0489_e096 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57494 idVendor 1161 0489_e0a1 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57505 idVendor 1161 04ca_2003 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8195 idVendor 1226 04ca_2004 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8196 idVendor 1226 04ca_2005 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8197 idVendor 1226 04ca_2006 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8198 idVendor 1226 04ca_2009 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8201 idVendor 1226 04ca_200a CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8202 idVendor 1226 04ca_200b CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8203 idVendor 1226 04ca_200c CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8204 idVendor 1226 04ca_200e CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8206 idVendor 1226 04ca_200f CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8207 idVendor 1226 04ca_2012 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8210 idVendor 1226 04ca_2016 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8214 idVendor 1226 04f2_b4a1 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 46241 idVendor 1266 050d_065a CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 1626 idVendor 1293 0930_021e CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 542 idVendor 2352 0930_021f CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 543 idVendor 2352 0930_0221 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 545 idVendor 2352 0930_0223 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 547 idVendor 2352 0930_0225 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 549 idVendor 2352 0930_0226 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 550 idVendor 2352 0930_0229 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 553 idVendor 2352 0a5c_2168 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8552 idVendor 2652 0a5c_2169 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8553 idVendor 2652 0a5c_216a CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8554 idVendor 2652 0a5c_216b CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8555 idVendor 2652 0a5c_216c CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8556 idVendor 2652 0a5c_216d CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8557 idVendor 2652 0a5c_216e CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8558 idVendor 2652 0a5c_216f CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8559 idVendor 2652 0a5c_21d7 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8663 idVendor 2652 0a5c_21de CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8670 idVendor 2652 0a5c_21e1 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8673 idVendor 2652 0a5c_21e3 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8675 idVendor 2652 0a5c_21e6 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8678 idVendor 2652 0a5c_21e8 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8680 idVendor 2652 0a5c_21ec CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8684 idVendor 2652 0a5c_21f1 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8689 idVendor 2652 0a5c_21f3 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8691 idVendor 2652 0a5c_21f4 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8692 idVendor 2652 0a5c_21fb CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8699 idVendor 2652 0a5c_21fd CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8701 idVendor 2652 0a5c_22be CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 8894 idVendor 2652 0a5c_640b CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25611 idVendor 2652 0a5c_6410 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25616 idVendor 2652 0a5c_6412 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25618 idVendor 2652 0a5c_6413 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25619 idVendor 2652 0a5c_6414 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25620 idVendor 2652 0a5c_6417 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25623 idVendor 2652 0a5c_6418 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 25624 idVendor 2652 0a5c_7460 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 29792 idVendor 2652 0b05_17b5 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 6069 idVendor 2821 0b05_17cb CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 6091 idVendor 2821 0b05_17cf CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 6095 idVendor 2821 0b05_180a CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 6154 idVendor 2821 0bb4_0306 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 774 idVendor 2996 105b_e065 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57445 idVendor 4187 105b_e066 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 57446 idVendor 4187 13d3_3295 no firmware CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 12949 idVendor 5075 13d3_3384 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13188 idVendor 5075 13d3_3388 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13192 idVendor 5075 13d3_3389 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13193 idVendor 5075 13d3_3392 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13202 idVendor 5075 13d3_3404 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13316 idVendor 5075 13d3_3411 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13329 idVendor 5075 13d3_3413 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13331 idVendor 5075 13d3_3418 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13336 idVendor 5075 13d3_3427 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13351 idVendor 5075 13d3_3435 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13365 idVendor 5075 13d3_3456 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13398 idVendor 5075 13d3_3482 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13442 idVendor 5075 13d3_3484 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13444 idVendor 5075 13d3_3504 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13572 idVendor 5075 13d3_3508 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13576 idVendor 5075 13d3_3517 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 13591 idVendor 5075 145f_01a3 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 419 idVendor 5215 19ff_0239 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 569 idVendor 6655 413c_8143 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 33091 idVendor 16700 413c_8197 CFBundleIdentifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport IOClass BroadcomBluetoothHostControllerUSBTransport IOProbeScore 3000 IOProviderClass IOUSBHostDevice idProduct 33175 idVendor 16700 OSBundleRequired Root Source Code https://github.com/RehabMan/BrcmPatchRAM.git ================================================ FILE: EFI/CLOVER/kexts/Other/BrcmFirmwareData.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G87 CFBundleExecutable BrcmFirmwareData CFBundleIdentifier com.no-one.BrcmFirmwareStore CFBundleInfoDictionaryVersion 6.0 CFBundleName BrcmFirmwareData CFBundlePackageType KEXT CFBundleShortVersionString 2.2.10 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.2.10 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10G8 DTPlatformVersion GM DTSDKBuild 18G74 DTSDKName macosx10.14 DTXcode 1030 DTXcodeBuild 10G8 IOKitPersonalities BrcmFirmwareStore CFBundleIdentifier com.no-one.BrcmFirmwareStore IOClass BrcmFirmwareStore IOMatchCategory BrcmFirmwareStore IOProviderClass IOResources OSBundleCompatibleVersion 2.2.10 OSBundleLibraries com.apple.kpi.iokit 9.0 com.apple.kpi.libkern 9.0 com.apple.kpi.mach 9.0 Source Code https://github.com/RehabMan/BrcmPatchRAM.git ================================================ FILE: EFI/CLOVER/kexts/Other/BrcmPatchRAM2.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G87 CFBundleExecutable BrcmPatchRAM2 CFBundleIdentifier com.no-one.BrcmPatchRAM2 CFBundleInfoDictionaryVersion 6.0 CFBundleName BrcmPatchRAM2 CFBundlePackageType KEXT CFBundleShortVersionString 2.2.10 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.2.10 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10G8 DTPlatformVersion GM DTSDKBuild 18G74 DTSDKName macosx10.14 DTXcode 1030 DTXcodeBuild 10G8 IOKitPersonalities 0a5c_6412 CFBundleIdentifier com.no-one.BrcmPatchRAM2 DisplayName Dell Wireless 1820A Bluetooth 4.1 LE FirmwareKey BCM4350C5_003.006.007.0222.4689_v8785 IOClass BrcmPatchRAM2 IOMatchCategory BrcmPatchRAM2 IOProbeScore 4000 IOProviderClass IOUSBHostDevice InitialDelay 200 PostResetDelay 250 PreResetDelay 250 UpgradeDelay 200 idProduct 25618 idVendor 2652 BrcmPatchRAMResidency CFBundleIdentifier com.no-one.BrcmPatchRAM2 IOClass BrcmPatchRAMResidency IOMatchCategory BrcmPatchRAMResidency IOProviderClass disabled_IOResources OSBundleLibraries com.apple.iokit.IOUSBHostFamily 1.0.1 com.apple.kpi.bsd 8.0 com.apple.kpi.iokit 8.0 com.apple.kpi.libkern 8.0 com.apple.kpi.mach 8.0 com.no-one.BrcmFirmwareStore 2.2.10 Source Code https://github.com/RehabMan/BrcmPatchRAM.git ================================================ FILE: EFI/CLOVER/kexts/Other/CPUFriend.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17D102 CFBundleDevelopmentRegion en CFBundleExecutable CPUFriend CFBundleIdentifier org.vanilla.driver.CPUFriend CFBundleInfoDictionaryVersion 6.0 CFBundleName CPUFriend CFBundlePackageType KEXT CFBundleShortVersionString 1.1.6 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.1.6 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 9F2000 DTPlatformVersion GM DTSDKBuild 17E189 DTSDKName macosx10.13 DTXcode 0941 DTXcodeBuild 9F2000 IOKitPersonalities CPUFriend CFBundleIdentifier org.vanilla.driver.CPUFriend IOClass CPUFriend IOMatchCategory CPUFriend IOProviderClass IOResources IOResourceMatch IOKit CPUFriendPlatform CFBundleIdentifier org.vanilla.driver.CPUFriend IOClass CPUFriendData IOProbeScore 6000 IOPropertyMatch IOCPUNumber 0 IOProviderClass AppleACPICPU IOResourceMatch ACPI NSHumanReadableCopyright Copyright © 2017 Vanilla. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 com.apple.iokit.IOACPIFamily 1.0.0d1 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/CPUFriendDataProvider.kext/Contents/Info.plist ================================================ CFBundleIdentifier org.vanilla.driver.CPUFriendDataProvider CFBundleInfoDictionaryVersion 6.0 CFBundleName CPUFriendDataProvider CFBundlePackageType KEXT CFBundleShortVersionString 1.0.0 CFBundleVersion 1.0.0 IOKitPersonalities CPUFriendDataProvider CFBundleIdentifier com.apple.driver.AppleACPIPlatform IOClass AppleACPICPU IONameMatch processor IOProbeScore 1100 IOProviderClass IOACPIPlatformDevice cf-frequency-data PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUgQ29tcHV0ZXIvL0RURCBQTElTVCAxLjAvL0VOIiAiaHR0cDovL3d3dy5hcHBsZS5jb20vRFREcy9Qcm9wZXJ0eUxpc3QtMS4wLmR0ZCI+CjxwbGlzdCB2ZXJzaW9uPSIxLjAiPgogIDxkaWN0PgogICAgPGtleT5wbXNwRmlsZTwva2V5PgogICAgPGludGVnZXI+NzwvaW50ZWdlcj4KICAgIDxrZXk+SU9QbGF0Zm9ybVBvd2VyUHJvZmlsZTwva2V5PgogICAgPGRpY3Q+CiAgICAgIDxrZXk+UHVibGlzaExpZ2h0c2hvdzwva2V5PgogICAgICA8dHJ1ZS8+CiAgICAgIDxrZXk+TmV0d29ya1RpbWVyRGVsYXk8L2tleT4KICAgICAgPGludGVnZXI+OTAwPC9pbnRlZ2VyPgogICAgICA8a2V5PlN0YW5kYnlEZWxheTwva2V5PgogICAgICA8aW50ZWdlcj4xMDgwMDwvaW50ZWdlcj4KICAgICAgPGtleT5FclBEZWxheTwva2V5PgogICAgICA8aW50ZWdlcj4yODgwMDwvaW50ZWdlcj4KICAgICAgPGtleT5BdXRvUG93ZXJPZmY8L2tleT4KICAgICAgPHRydWUvPgogICAgICA8a2V5PklPUGxhdGZvcm1TeXN0ZW1TbGVlcFBvbGljeTwva2V5PgogICAgICA8ZGF0YT5VMHhRVkFJQUhnQUFHaElBQUFBQUFBQVZBQUFBQlFBQUJnQUFBQUFBQUFBQUpRQUFBQUFBQUNBQUFBQWdBQUFBQUFBQUFBQUFBQUFGCkFBQUFBQUFBQUFBbEFBQUFBQUFBQUFBRUFBQUFCQUFBQUFBQUFBQUFBQVlBQUFBQUFBQUFBQ1VBQUFBQUFBQUFBQUVBQUFBQkFBQUEKQUFBQUFBQUFCQUFBQUFBQUFBQUFBUUFBQUFBQUFFQWFFZ0FBQUFBQUdCRUVBQmdCQkFBRkFBQUFBZ0FBQUFBdEFBQUlBQUFBUUJvUwpBQUFBQUFBWUVRQUFHQUVBQUFVQUFBQUNBQUFBQUMwQUFBQUFBQUJBQWhBQUFBQVFBQ0JBQUFBZ1FBQUFBZ0FBQUFnQUFBQUFLUUFBCkFBQUFBRUFDQUFBQUFBQUFHQUVFQUJnQkJBQUZBQUFBQUFBQUFBQWxBQUFJQUFBQVFBSUFBQUFBQUFBWUFBQUFHQUFBQUFVQUFBQUEKQUFBQUFDVUFBQUFBQUFCQUdoSUFBQUFBQUNnUkJBQWdBUVFBQlFBQUFBSUFBQUFBTFFBQUNBQUFBRUFhRWdBQUFBQUFLQkVBQUNBQgpBQUFGQUFBQUFnQUFBQUF0QUFBQUFBQUFRQUlBQUFBQUFBQW9BUVFBSUFFRUFBVUFBQUFBQUFBQUFDVUFBQWdBQUFCQUFnQUFBQUFBCkFDZ0FBQUFnQUFBQUJRQUFBQUFBQUFBQUpRQUFBQUFBQUZBYUVnQVFBQUFBQUJFRUFBQUJCQUFGQUFBQUFnQUFBQUF0QUFBSUFBQUEKVUJvU0FCQUFBQUFBRVFBQUFBRUFBQVVBQUFBQ0FBQUFBQzBBQUFBQUFBQlFBZ0FBRUFBQUFBQUJCQUFBQVFRQUJRQUFBQUFBQUFBQQpKUUFBQ0FBQUFGQUNBQUFRQUFBQUFBQUFBQUFBQUFBRkFBQUFBQUFBQUFBbEFBQUFBQUFBQUJvU0FBQUFBQUFBR1FBQUFBa0FBQVlBCkFBQUFBQUFBQUNVQUFBQUFBQUFBR2hJQUFBRUFBQWdSQUFBSUFRQUFCZ0FBQUFBQUFBQUFKUUFBQUFBQUFBQWFFZ0FBQUFBQVFCRUEKQUVBQkFBQUdBQUFBQUFBQUFBQWxBQUFBQUFBQVFCb1NBRUFBQUFBR0VRQUFCZ0VBQUFNQUFBQUNBQUFBQUNrQUFBQUFBQUJBR2hJQQpRQUFBQUFBUkRBQUFBUXdBQWdBQUFBSUFBQUFBS1FBQUNBQUFBRUFhRWdCQUFBQUFBQkVBQUFBQkFBQUNBQUFBQWdBQUFBQXBBQUFBCkFBQUFRQUlBQUFBQUFBQUF3QUFBQU1BQUFBSUFBQUFJQUFBQUFDa0FBQUFBQUFCQUFnQUFBQUFBQUFpQUFBQUlnQUFBQlFBQUFBQUEKQUFBQUpRQUFBQUFBQUVBQ0FBQUFBQUFBQUFFTUFBQUJEQUFDQUFBQUFRQUFBQUFwQUFBSUFBQUFRQUlBQUFBQUFBQUFBQUFBQUFBQQpBQUlBQUFBQkFBQUFBQ2tBQUFBQUFBQkFBQUFBUUFBQUFBWUFBQUFHQUFBQUF3QUFBQUFBQUFBQUlRQUFBQUFBQUFBQUFBQUFBQUFBCkFBRU1BQUFCREFBQ0FBQUFBQUFBQUFBaEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUlBQUFBQUFBQUFBQ0VBQUFBQUFBQT08L2RhdGE+CiAgICAgIDxrZXk+U3RlcENvbnRleHREaWN0PC9rZXk+CiAgICAgIDxkaWN0PgogICAgICAgIDxrZXk+Tm9ybWFsPC9rZXk+CiAgICAgICAgPGRhdGE+ClhBUUFBQUFBQVFJRUFBQUNBZ0FBVlFCdUFITUFjQUJsQUdNQWFRQm1BR2tBWlFCa0RBQUgvd2NBQUEwQUFBQUNBQUFCLy84QS93RC8KQVA4QS93RC9BQVlBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTApEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFECi93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC8KQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUApBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvCkFBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEIKQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QQpBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBCkN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUEKQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQQovd0VBQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMCkR3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc0tBQUFCQ2dBQUFRQUFBQUVBQUFEMUFBRUZBQUFCQUFBRi93QUJBQUFBQVFBQUFBRUcKQUFBQ0FBQUFCQUVBQUlBQXd3QzNBQzRBTkFBTEFBQUFBZ0FBQUFFQUFBQUJBQUFBQWdBQUFBSUNBQUFDQmdBQUFRQUFBQUVBQUFEMQpBQUVGQUFBREFBQUYvd0FEQWdBQUF3WUFBQWtBQUFBRUFBQUFaQVlBQUFRQUFBWC9BQU1BQUFBQkFBQUFCQVFBQUlBQUFBQUtDZ0FBCkNBQUFBQVVBQUFBSUFBQUFCUUFBQUFNQUFBQUNBQUFBQlFZQUFBY0FBQUFCQUFBQTlRQUJCUUFBQmdBQUJmOEFBd0FBQUFNQUFBQUcKQmdBQUFnQUFBQVFBQUFDZ0FBOEZBQUFIQkFBQUJ3QUFBQU1BQUFBRUFBQUFCd1lBQUFnS0FBQURBQUFGL3dBRUFnQUFDQVlBQUFFQQpBQUFCQUFBQTlBQUJCUUFBQ1FBQUJmOEFCUUlBQUFrR0FBQUNBQUFBQkFFQUFJQUF3d0MzQUM0QU5BQUxBQUFBQ1FBQUFBb0FBQUFKCkFBQUFDZ0FBQUFVQUFBQUJBQUFBQ2dZQUFBY0FBQUFCQUFBQTlRQUJCUUFBQ3dBQUJmOEFCUUFBQUFJQUFBQUxCZ0FBQWdBQUFBUUEKQUFDZ0FBOEZBQUFNQkFBQURBQUFBQVVBQUFBREFBQUFEQVlBQUFnS0FBQUpBQUFGL3c9PQo8L2RhdGE+CiAgICAgICAgPGtleT5CYWNrZ3JvdW5kPC9rZXk+CiAgICAgICAgPGRhdGE+ClhBUUFBQUFBQVFJRUFBQUNBZ0FBVlFCdUFITUFjQUJsQUdNQWFRQm1BR2tBWlFCa0RBQUgvd2NBQUEwQUFBQUNBQUFCLy84QS93RC8KQVA4QS93RC9BQVlBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTApEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFECi93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC8KQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUApBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvCkFBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEIKQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QQpBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBCkN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUEKQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQQovd0VBQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUxEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMCkR3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc0tBQUFCQ2dBQUFRQUFBQUVBQUFEMUFBRUZBQUFCQUFBRi93QUJBQUFBQVFBQUFBRUcKQUFBQ0FBQUFCQUVBQUlBQXd3QzNBQzRBTkFBTEFBQUFBZ0FBQUFFQUFBQUJBQUFBQWdBQUFBSUNBQUFDQmdBQUFRQUFBQUVBQUFEMQpBQUVGQUFBREFBQUYvd0FEQWdBQUF3WUFBQWtBQUFBRUFBQUFaQVlBQUFRQUFBWC9BQU1BQUFBQkFBQUFCQVFBQUlBQUFBQUtDZ0FBCkNBQUFBQVVBQUFBSUFBQUFCUUFBQUFNQUFBQUNBQUFBQlFZQUFBY0FBQUFCQUFBQTlRQUJCUUFBQmdBQUJmOEFBd0FBQUFNQUFBQUcKQmdBQUFnQUFBQVFBQUFDZ0FBOEZBQUFIQkFBQUJ3QUFBQU1BQUFBRUFBQUFCd1lBQUFnS0FBQURBQUFGL3dBRUFnQUFDQVlBQUFFQQpBQUFCQUFBQTlBQUJCUUFBQ1FBQUJmOEFCUUlBQUFrR0FBQUNBQUFBQkFFQUFJQUF3d0MzQUM0QU5BQUxBQUFBQ1FBQUFBb0FBQUFKCkFBQUFDZ0FBQUFVQUFBQUJBQUFBQ2dZQUFBY0FBQUFCQUFBQTlRQUJCUUFBQ3dBQUJmOEFCUUFBQUFJQUFBQUxCZ0FBQWdBQUFBUUEKQUFDZ0FBOEZBQUFNQkFBQURBQUFBQVVBQUFBREFBQUFEQVlBQUFnS0FBQUpBQUFGL3c9PQo8L2RhdGE+CiAgICAgICAgPGtleT5SZWFsVGltZTwva2V5PgogICAgICAgIDxkYXRhPgpYQVFBQUFBQUFRSUVBQUFDQWdBQVZRQnVBSE1BY0FCbEFHTUFhUUJtQUdrQVpRQmtEQUFIL3djQUFBMEFBQUFDQUFBQi8vOEEvd0QvCkFQOEEvd0QvQUFZQUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRC93QUwKRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvQVFBRAovd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc1BBQUQvCkFRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCQUFQL0FBc1AKQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCQUFQLwpBQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEFBUDhCCkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QUN3OEEKQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBQS84QQpDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEvd0VBCkEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTER3QUEKL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNQQUFEL0FRQUQvd0FMRHdBQS93RUFBLzhBQ3c4QUFQOEJBQVAvQUFzUEFBRC9BUUFEL3dBTApEd0FBL3dFQUEvOEFDdzhBQVA4QkFBUC9BQXNLQUFBQkNnQUFBUUFBQUFFQUFBRDFBQUVGQUFBQkFBQUYvd0FCQUFBQUFRQUFBQUVHCkFBQUNBQUFBQkFFQUFJQUF3d0MzQUM0QU5BQUxBQUFBQWdBQUFBRUFBQUFCQUFBQUFnQUFBQUlDQUFBQ0JnQUFBUUFBQUFFQUFBRDEKQUFFRkFBQURBQUFGL3dBREFnQUFBd1lBQUFrQUFBQUVBQUFBWkFZQUFBUUFBQVgvQUFNQUFBQUJBQUFBQkFRQUFJQUFBQUFLQ2dBQQpDQUFBQUFVQUFBQUlBQUFBQlFBQUFBTUFBQUFDQUFBQUJRWUFBQWNBQUFBQkFBQUE5UUFCQlFBQUJnQUFCZjhBQXdBQUFBTUFBQUFHCkJnQUFBZ0FBQUFRQUFBQ2dBQThGQUFBSEJBQUFCd0FBQUFNQUFBQUVBQUFBQndZQUFBZ0tBQUFEQUFBRi93QUVBZ0FBQ0FZQUFBRUEKQUFBQkFBQUE5QUFCQlFBQUNRQUFCZjhBQlFJQUFBa0dBQUFDQUFBQUJBRUFBSUFBd3dDM0FDNEFOQUFMQUFBQUNRQUFBQW9BQUFBSgpBQUFBQ2dBQUFBVUFBQUFCQUFBQUNnWUFBQWNBQUFBQkFBQUE5UUFCQlFBQUN3QUFCZjhBQlFBQUFBSUFBQUFMQmdBQUFnQUFBQVFBCkFBQ2dBQThGQUFBTUJBQUFEQUFBQUFVQUFBQURBQUFBREFZQUFBZ0tBQUFKQUFBRi93PT0KPC9kYXRhPgogICAgICA8L2RpY3Q+CiAgICAgIDxrZXk+VW5pZmllZFNsZWVwU2xpZGVyUHJlZjwva2V5PgogICAgICA8dHJ1ZS8+CiAgICAgIDxrZXk+RGFya1dha2VTZXJ2aWNlczwva2V5PgogICAgICA8ZGljdD4KICAgICAgICA8a2V5PkRhcmtXYWtlQmFja2dyb3VuZFRhc2tzPC9rZXk+CiAgICAgICAgPGludGVnZXI+MTwvaW50ZWdlcj4KICAgICAgICA8a2V5PlNsZWVwU2VydmljZXM8L2tleT4KICAgICAgICA8aW50ZWdlcj43PC9pbnRlZ2VyPgogICAgICAgIDxrZXk+U2xlZXBTZXJ2aWNlc01vZGVzPC9rZXk+CiAgICAgICAgPGRpY3Q+CiAgICAgICAgICA8a2V5Pk1vZGVBPC9rZXk+CiAgICAgICAgICA8ZGljdD4KICAgICAgICAgICAgPGtleT5FeHBpcmF0aW9uPC9rZXk+CiAgICAgICAgICAgIDxpbnRlZ2VyPjA8L2ludGVnZXI+CiAgICAgICAgICAgIDxrZXk+QmF0dGVyeUZsb29yPC9rZXk+CiAgICAgICAgICAgIDxpbnRlZ2VyPjA8L2ludGVnZXI+CiAgICAgICAgICAgIDxrZXk+QmFzZUludGVydmFsczwva2V5PgogICAgICAgICAgICA8ZGljdD4KICAgICAgICAgICAgICA8a2V5PkFDPC9rZXk+CiAgICAgICAgICAgICAgPGRpY3Q+CiAgICAgICAgICAgICAgICA8a2V5PkJhc2VTbGVlcEludGVydmFsPC9rZXk+CiAgICAgICAgICAgICAgICA8aW50ZWdlcj4zNjAwPC9pbnRlZ2VyPgogICAgICAgICAgICAgICAgPGtleT5CYXNlV2FrZUNhcEludGVydmFsPC9rZXk+CiAgICAgICAgICAgICAgICA8aW50ZWdlcj44NjQwMDwvaW50ZWdlcj4KICAgICAgICAgICAgICA8L2RpY3Q+CiAgICAgICAgICAgICAgPGtleT5CYXR0ZXJ5PC9rZXk+CiAgICAgICAgICAgICAgPGRpY3Q+CiAgICAgICAgICAgICAgICA8a2V5PkJhc2VTbGVlcEludGVydmFsPC9rZXk+CiAgICAgICAgICAgICAgICA8aW50ZWdlcj4zNjAwPC9pbnRlZ2VyPgogICAgICAgICAgICAgICAgPGtleT5CYXNlV2FrZUNhcEludGVydmFsPC9rZXk+CiAgICAgICAgICAgICAgICA8aW50ZWdlcj4xODA8L2ludGVnZXI+CiAgICAgICAgICAgICAgPC9kaWN0PgogICAgICAgICAgICA8L2RpY3Q+CiAgICAgICAgICA8L2RpY3Q+CiAgICAgICAgPC9kaWN0PgogICAgICA8L2RpY3Q+CiAgICA8L2RpY3Q+CiAgPC9kaWN0Pgo8L3BsaXN0Pgo= NSHumanReadableCopyright Copyright © 2017 Vanilla. All rights reserved. OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/CodecCommander.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16E195 CFBundleDevelopmentRegion English CFBundleExecutable CodecCommander CFBundleGetInfoString 2.6.3, Copyright © 2013-2014 TimeWalker. All rights reserved. CFBundleIdentifier org.tw.CodecCommander CFBundleInfoDictionaryVersion 6.0 CFBundleName CodecCommander CFBundlePackageType KEXT CFBundleShortVersionString 2.6.3 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.6.3 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8E2002 DTPlatformVersion GM DTSDKBuild 10M2518 DTSDKName macosx10.6 DTXcode 0832 DTXcodeBuild 8E2002 IOKitPersonalities CodecCommander CFBundleIdentifier org.tw.CodecCommander Codec Profile 1002 Disabled HDMI 10de Disabled HDMI 10ec_0233 Realtek ALC283,etc 10ec_0235 Realtek ALC283,etc 10ec_0236 Realtek ALC283,etc 10ec_0255 Realtek ALC283,etc 10ec_0269 Realtek ALC269 10ec_0269_HDA_1028_04d9 Realtek ALC269VB 10ec_0269_HDA_1458_fa50 Realtek ALC269 BRIX 10ec_0282 Realtek ALC283,etc 10ec_0283 Realtek ALC283,etc 10ec_0292 Realtek ALC292 10ec_0668 Realtek ALC668 10ec_0892_HDA_1458 Realtek ALC892 desktop 10ec_0892_HDA_8086 Realtek ALC892 desktop 10ec_0900 Realtek ALC1150 8086 Disabled HDMI Default Check Infinitely Check Interval 3000 Custom Commands Perform Reset Perform Reset on EAPD Fail Perform Reset on External Wake Send Delay 300 Sleep Nodes Update Nodes Disabled HDMI Check Infinitely Disable Sleep Nodes Update Nodes Realtek ALC1150 Custom Commands Command AgUABw== Comment 0x20 SET_COEF_INDEX 0x07 On Init On Sleep On Wake Command AgR8sA== Comment 0x20 SET_PROC_COEF 0x7CB0 On Init On Sleep On Wake Send Delay 100 Sleep Nodes Update Nodes Realtek ALC269 Custom Commands Command AVcIgw== Comment 0x15 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Realtek ALC269 BRIX Custom Commands Command AVcIgw== Comment 0x15 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Realtek ALC269VB Custom Commands Command AhcIgw== Comment 0x21 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Send Delay 20 Sleep Nodes Realtek ALC283,etc Custom Commands Command AZcHJQ== Comment 0x19 SET_PIN_WIDGET_CONTROL 0x25 On Init On Sleep On Wake Command AhcIgw== Comment 0x21 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Perform Reset Send Delay 10 Sleep Nodes Realtek ALC292 Custom Commands Command 0x01a70724 Comment Node 0x1a - Pin Control (In Enable / VRefEn) On Init On Sleep On Wake Command AVcIgw== Comment 0x15 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Perform Reset Realtek ALC668 Custom Commands Command AVcIgw== Comment 0x15 SET_UNSOLICITED_ENABLE 0x83 On Init On Sleep On Wake Command AbcHIA== Comment Node 0x1b - Pin Control (In Enable) On Init On Sleep On Wake Perform Reset Realtek ALC892 desktop Sleep Nodes Update Nodes IOClass CodecCommander IOMatchCategory CodecCommander IOProviderClass IOHDACodecFunction IOUserClientClass CodecCommanderClient CodecCommanderPowerHook CFBundleIdentifier org.tw.CodecCommander Codec Profile 1002 Disabled HDMI 10de Disabled HDMI 8086 Disabled HDMI Disabled HDMI Disable IOClass CodecCommanderPowerHook IOMatchCategory CodecCommanderPowerHook IOProviderClass AppleHDADriver CodecCommanderProbeInit CFBundleIdentifier org.tw.CodecCommander Codec Profile Default Custom Commands IOClass CodecCommanderProbeInit IOProbeScore 5000 IOProviderClass IOHDACodecDevice CodecCommanderResidency CFBundleIdentifier org.tw.CodecCommander IOClass CodecCommanderResidency IOMatchCategory CodecCommanderResidency IOProviderClass IOResources CodecCommanderVoodooHDA CFBundleIdentifier org.tw.CodecCommander Codec Profile 1002 Disabled HDMI 10de Disabled HDMI 8086 Disabled HDMI Default Check Infinitely Perform Reset Perform Reset on EAPD Fail Perform Reset on External Wake Sleep Nodes Update Nodes Disabled HDMI Check Infinitely Disable Sleep Nodes Update Nodes IOClass CodecCommander IOMatchCategory CodecCommander IOProviderClass VoodooHDADevice IOUserClientClass CodecCommanderClient NSHumanReadableCopyright Copyright © 2013-2014 TimeWalker/RehabMan. All rights reserved. OSBundleLibraries com.apple.iokit.IOACPIFamily 1.0d1 com.apple.iokit.IOAudioFamily 1.1 com.apple.iokit.IOPCIFamily 1.0.0b1 com.apple.kpi.bsd 9.0.0 com.apple.kpi.iokit 9.0.0 com.apple.kpi.libkern 9.0.0 Source Code https://github.com/RehabMan/EAPD-Codec-Commander ================================================ FILE: EFI/CLOVER/kexts/Other/HWPEnabler.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17C205 CFBundleDevelopmentRegion English CFBundleExecutable HWPEnabler CFBundleGetInfoString HWPEnabler 1.1, copyright © 2016 GoodWin. All rights reserved. CFBundleIdentifier good.win.HWPEnabler CFBundleInfoDictionaryVersion 6.0 CFBundleName HWPEnabler CFBundlePackageType KEXT CFBundleShortVersionString 1.1 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 9C40b DTPlatformVersion GM DTSDKBuild 17C76 DTSDKName macosx10.13 DTXcode 0920 DTXcodeBuild 9C40b IOKitPersonalities HWPEnabler HWPDeaultVal 80002301 HWPSetDeaults HWPenable IOClass HWPEnabler IOMatchCategory HWPEnabler IOProviderClass IOResources IOResourceMatch IOKit IOUserClientClass HWPEnablerClient NSHumanReadableCopyright Copyright © 2016 GoodWin. All rights reserved. OSBundleLibraries com.apple.kpi.bsd 10.4 com.apple.kpi.iokit 10.4 com.apple.kpi.libkern 10.4 com.apple.kpi.mach 10.4 com.apple.kpi.unsupported 10.5 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/HoRNDIS.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 15G31 CFBundleDevelopmentRegion English CFBundleExecutable HoRNDIS CFBundleGetInfoString Android/RNDIS tethering driver CFBundleIdentifier com.joshuawise.kexts.HoRNDIS CFBundleInfoDictionaryVersion 6.0 CFBundleName HoRNDIS CFBundlePackageType KEXT CFBundleShortVersionString 8.0 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 6 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 7D1014 DTPlatformVersion GM DTSDKBuild 10K549 DTSDKName macosx10.6 DTXcode 0731 DTXcodeBuild 7D1014 IOKitPersonalities HoRNDISDevice CFBundleIdentifier com.joshuawise.kexts.HoRNDIS IOClass HoRNDISUSBDevice IOProviderClass IOUSBDevice bDeviceClass 224 bDeviceProtocol 0 bDeviceSubClass 0 HoRNDISDevice2 CFBundleIdentifier com.joshuawise.kexts.HoRNDIS IOClass HoRNDISUSBDevice IOProviderClass IOUSBDevice bDeviceClass 239 bDeviceProtocol 1 bDeviceSubClass 2 HoRNDISDeviceComposite CFBundleIdentifier com.joshuawise.kexts.HoRNDIS IOClass HoRNDISUSBDevice IOProviderClass IOUSBDevice bDeviceClass 0 bDeviceProtocol 0 bDeviceSubClass 0 MicroDriverDevice3 CFBundleIdentifier com.joshuawise.kexts.HoRNDIS IOClass HoRNDISUSBDevice IOProviderClass IOUSBDevice bDeviceClass 2 bDeviceProtocol 0 bDeviceSubClass 0 OSBundleLibraries com.apple.iokit.IONetworkingFamily 1.1 com.apple.iokit.IOUSBFamily 1.8 com.apple.kpi.bsd 8.0 com.apple.kpi.iokit 8.0 com.apple.kpi.libkern 8.0 com.apple.kpi.mach 8.0 ================================================ FILE: EFI/CLOVER/kexts/Other/HoRNDIS.kext/Contents/_CodeSignature/CodeResources ================================================ files Resources/en.lproj/InfoPlist.strings hash MiLKDDnrUKr4EmuvhS5VQwxHGK8= optional files2 Resources/en.lproj/InfoPlist.strings hash MiLKDDnrUKr4EmuvhS5VQwxHGK8= hash2 Oc8u4Ht7Mz58F50L9NeYpbcq9qTlhPUeZCcDu/pPyCg= optional rules ^Resources/ ^Resources/.*\.lproj/ optional weight 1000 ^Resources/.*\.lproj/locversion.plist$ omit weight 1100 ^version.plist$ rules2 .*\.dSYM($|/) weight 11 ^(.*/)?\.DS_Store$ omit weight 2000 ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ nested weight 10 ^.* ^Info\.plist$ omit weight 20 ^PkgInfo$ omit weight 20 ^Resources/ weight 20 ^Resources/.*\.lproj/ optional weight 1000 ^Resources/.*\.lproj/locversion.plist$ omit weight 1100 ^[^/]+$ nested weight 10 ^embedded\.provisionprofile$ weight 20 ^version\.plist$ weight 20 ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G29g CFBundleDevelopmentRegion en CFBundleExecutable Lilu CFBundleIdentifier as.vit9696.Lilu CFBundleInfoDictionaryVersion 6.0 CFBundleName Lilu CFBundlePackageType KEXT CFBundleShortVersionString 1.3.7 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.3.7 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities as.vit9696.Lilu CFBundleIdentifier as.vit9696.Lilu IOClass Lilu IOMatchCategory Lilu IOProviderClass IOResources IOResourceMatch IOKit NSHumanReadableCopyright Copyright © 2016-2018 vit9696. All rights reserved. OSBundleCompatibleVersion 1.2.0 OSBundleLibraries com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/arm.h ================================================ #ifndef CAPSTONE_ARM_H #define CAPSTONE_ARM_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> ARM shift type typedef enum arm_shifter { ARM_SFT_INVALID = 0, ARM_SFT_ASR, // shift with immediate const ARM_SFT_LSL, // shift with immediate const ARM_SFT_LSR, // shift with immediate const ARM_SFT_ROR, // shift with immediate const ARM_SFT_RRX, // shift with immediate const ARM_SFT_ASR_REG, // shift with register ARM_SFT_LSL_REG, // shift with register ARM_SFT_LSR_REG, // shift with register ARM_SFT_ROR_REG, // shift with register ARM_SFT_RRX_REG, // shift with register } arm_shifter; //> ARM condition code typedef enum arm_cc { ARM_CC_INVALID = 0, ARM_CC_EQ, // Equal Equal ARM_CC_NE, // Not equal Not equal, or unordered ARM_CC_HS, // Carry set >, ==, or unordered ARM_CC_LO, // Carry clear Less than ARM_CC_MI, // Minus, negative Less than ARM_CC_PL, // Plus, positive or zero >, ==, or unordered ARM_CC_VS, // Overflow Unordered ARM_CC_VC, // No overflow Not unordered ARM_CC_HI, // Unsigned higher Greater than, or unordered ARM_CC_LS, // Unsigned lower or same Less than or equal ARM_CC_GE, // Greater than or equal Greater than or equal ARM_CC_LT, // Less than Less than, or unordered ARM_CC_GT, // Greater than Greater than ARM_CC_LE, // Less than or equal <, ==, or unordered ARM_CC_AL // Always (unconditional) Always (unconditional) } arm_cc; typedef enum arm_sysreg { //> Special registers for MSR ARM_SYSREG_INVALID = 0, // SPSR* registers can be OR combined ARM_SYSREG_SPSR_C = 1, ARM_SYSREG_SPSR_X = 2, ARM_SYSREG_SPSR_S = 4, ARM_SYSREG_SPSR_F = 8, // CPSR* registers can be OR combined ARM_SYSREG_CPSR_C = 16, ARM_SYSREG_CPSR_X = 32, ARM_SYSREG_CPSR_S = 64, ARM_SYSREG_CPSR_F = 128, // independent registers ARM_SYSREG_APSR = 256, ARM_SYSREG_APSR_G, ARM_SYSREG_APSR_NZCVQ, ARM_SYSREG_APSR_NZCVQG, ARM_SYSREG_IAPSR, ARM_SYSREG_IAPSR_G, ARM_SYSREG_IAPSR_NZCVQG, ARM_SYSREG_EAPSR, ARM_SYSREG_EAPSR_G, ARM_SYSREG_EAPSR_NZCVQG, ARM_SYSREG_XPSR, ARM_SYSREG_XPSR_G, ARM_SYSREG_XPSR_NZCVQG, ARM_SYSREG_IPSR, ARM_SYSREG_EPSR, ARM_SYSREG_IEPSR, ARM_SYSREG_MSP, ARM_SYSREG_PSP, ARM_SYSREG_PRIMASK, ARM_SYSREG_BASEPRI, ARM_SYSREG_BASEPRI_MAX, ARM_SYSREG_FAULTMASK, ARM_SYSREG_CONTROL, } arm_sysreg; //> The memory barrier constants map directly to the 4-bit encoding of //> the option field for Memory Barrier operations. typedef enum arm_mem_barrier { ARM_MB_INVALID = 0, ARM_MB_RESERVED_0, ARM_MB_OSHLD, ARM_MB_OSHST, ARM_MB_OSH, ARM_MB_RESERVED_4, ARM_MB_NSHLD, ARM_MB_NSHST, ARM_MB_NSH, ARM_MB_RESERVED_8, ARM_MB_ISHLD, ARM_MB_ISHST, ARM_MB_ISH, ARM_MB_RESERVED_12, ARM_MB_LD, ARM_MB_ST, ARM_MB_SY, } arm_mem_barrier; //> Operand type for instruction's operands typedef enum arm_op_type { ARM_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). ARM_OP_REG, // = CS_OP_REG (Register operand). ARM_OP_IMM, // = CS_OP_IMM (Immediate operand). ARM_OP_MEM, // = CS_OP_MEM (Memory operand). ARM_OP_FP, // = CS_OP_FP (Floating-Point operand). ARM_OP_CIMM = 64, // C-Immediate (coprocessor registers) ARM_OP_PIMM, // P-Immediate (coprocessor registers) ARM_OP_SETEND, // operand for SETEND instruction ARM_OP_SYSREG, // MSR/MRS special register operand } arm_op_type; //> Operand type for SETEND instruction typedef enum arm_setend_type { ARM_SETEND_INVALID = 0, // Uninitialized. ARM_SETEND_BE, // BE operand. ARM_SETEND_LE, // LE operand } arm_setend_type; typedef enum arm_cpsmode_type { ARM_CPSMODE_INVALID = 0, ARM_CPSMODE_IE = 2, ARM_CPSMODE_ID = 3 } arm_cpsmode_type; //> Operand type for SETEND instruction typedef enum arm_cpsflag_type { ARM_CPSFLAG_INVALID = 0, ARM_CPSFLAG_F = 1, ARM_CPSFLAG_I = 2, ARM_CPSFLAG_A = 4, ARM_CPSFLAG_NONE = 16, // no flag } arm_cpsflag_type; //> Data type for elements of vector instructions. typedef enum arm_vectordata_type { ARM_VECTORDATA_INVALID = 0, // Integer type ARM_VECTORDATA_I8, ARM_VECTORDATA_I16, ARM_VECTORDATA_I32, ARM_VECTORDATA_I64, // Signed integer type ARM_VECTORDATA_S8, ARM_VECTORDATA_S16, ARM_VECTORDATA_S32, ARM_VECTORDATA_S64, // Unsigned integer type ARM_VECTORDATA_U8, ARM_VECTORDATA_U16, ARM_VECTORDATA_U32, ARM_VECTORDATA_U64, // Data type for VMUL/VMULL ARM_VECTORDATA_P8, // Floating type ARM_VECTORDATA_F32, ARM_VECTORDATA_F64, // Convert float <-> float ARM_VECTORDATA_F16F64, // f16.f64 ARM_VECTORDATA_F64F16, // f64.f16 ARM_VECTORDATA_F32F16, // f32.f16 ARM_VECTORDATA_F16F32, // f32.f16 ARM_VECTORDATA_F64F32, // f64.f32 ARM_VECTORDATA_F32F64, // f32.f64 // Convert integer <-> float ARM_VECTORDATA_S32F32, // s32.f32 ARM_VECTORDATA_U32F32, // u32.f32 ARM_VECTORDATA_F32S32, // f32.s32 ARM_VECTORDATA_F32U32, // f32.u32 ARM_VECTORDATA_F64S16, // f64.s16 ARM_VECTORDATA_F32S16, // f32.s16 ARM_VECTORDATA_F64S32, // f64.s32 ARM_VECTORDATA_S16F64, // s16.f64 ARM_VECTORDATA_S16F32, // s16.f64 ARM_VECTORDATA_S32F64, // s32.f64 ARM_VECTORDATA_U16F64, // u16.f64 ARM_VECTORDATA_U16F32, // u16.f32 ARM_VECTORDATA_U32F64, // u32.f64 ARM_VECTORDATA_F64U16, // f64.u16 ARM_VECTORDATA_F32U16, // f32.u16 ARM_VECTORDATA_F64U32, // f64.u32 } arm_vectordata_type; // Instruction's operand referring to memory // This is associated with ARM_OP_MEM operand type above typedef struct arm_op_mem { unsigned int base; // base register unsigned int index; // index register int scale; // scale for index register (can be 1, or -1) int disp; // displacement/offset value } arm_op_mem; // Instruction operand typedef struct cs_arm_op { int vector_index; // Vector Index for some vector operands (or -1 if irrelevant) struct { arm_shifter type; unsigned int value; } shift; arm_op_type type; // operand type union { unsigned int reg; // register value for REG/SYSREG operand int32_t imm; // immediate value for C-IMM, P-IMM or IMM operand double fp; // floating point value for FP operand arm_op_mem mem; // base/index/scale/disp value for MEM operand arm_setend_type setend; // SETEND instruction's operand type }; // in some instructions, an operand can be subtracted or added to // the base register, bool subtracted; // if TRUE, this operand is subtracted. otherwise, it is added. } cs_arm_op; // Instruction structure typedef struct cs_arm { bool usermode; // User-mode registers to be loaded (for LDM/STM instructions) int vector_size; // Scalar size for vector instructions arm_vectordata_type vector_data; // Data type for elements of vector instructions arm_cpsmode_type cps_mode; // CPS mode for CPS instruction arm_cpsflag_type cps_flag; // CPS mode for CPS instruction arm_cc cc; // conditional code for this insn bool update_flags; // does this insn update flags? bool writeback; // does this insn write-back? arm_mem_barrier mem_barrier; // Option for some memory barrier instructions // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_arm_op operands[36]; // operands for this instruction. } cs_arm; //> ARM registers typedef enum arm_reg { ARM_REG_INVALID = 0, ARM_REG_APSR, ARM_REG_APSR_NZCV, ARM_REG_CPSR, ARM_REG_FPEXC, ARM_REG_FPINST, ARM_REG_FPSCR, ARM_REG_FPSCR_NZCV, ARM_REG_FPSID, ARM_REG_ITSTATE, ARM_REG_LR, ARM_REG_PC, ARM_REG_SP, ARM_REG_SPSR, ARM_REG_D0, ARM_REG_D1, ARM_REG_D2, ARM_REG_D3, ARM_REG_D4, ARM_REG_D5, ARM_REG_D6, ARM_REG_D7, ARM_REG_D8, ARM_REG_D9, ARM_REG_D10, ARM_REG_D11, ARM_REG_D12, ARM_REG_D13, ARM_REG_D14, ARM_REG_D15, ARM_REG_D16, ARM_REG_D17, ARM_REG_D18, ARM_REG_D19, ARM_REG_D20, ARM_REG_D21, ARM_REG_D22, ARM_REG_D23, ARM_REG_D24, ARM_REG_D25, ARM_REG_D26, ARM_REG_D27, ARM_REG_D28, ARM_REG_D29, ARM_REG_D30, ARM_REG_D31, ARM_REG_FPINST2, ARM_REG_MVFR0, ARM_REG_MVFR1, ARM_REG_MVFR2, ARM_REG_Q0, ARM_REG_Q1, ARM_REG_Q2, ARM_REG_Q3, ARM_REG_Q4, ARM_REG_Q5, ARM_REG_Q6, ARM_REG_Q7, ARM_REG_Q8, ARM_REG_Q9, ARM_REG_Q10, ARM_REG_Q11, ARM_REG_Q12, ARM_REG_Q13, ARM_REG_Q14, ARM_REG_Q15, ARM_REG_R0, ARM_REG_R1, ARM_REG_R2, ARM_REG_R3, ARM_REG_R4, ARM_REG_R5, ARM_REG_R6, ARM_REG_R7, ARM_REG_R8, ARM_REG_R9, ARM_REG_R10, ARM_REG_R11, ARM_REG_R12, ARM_REG_S0, ARM_REG_S1, ARM_REG_S2, ARM_REG_S3, ARM_REG_S4, ARM_REG_S5, ARM_REG_S6, ARM_REG_S7, ARM_REG_S8, ARM_REG_S9, ARM_REG_S10, ARM_REG_S11, ARM_REG_S12, ARM_REG_S13, ARM_REG_S14, ARM_REG_S15, ARM_REG_S16, ARM_REG_S17, ARM_REG_S18, ARM_REG_S19, ARM_REG_S20, ARM_REG_S21, ARM_REG_S22, ARM_REG_S23, ARM_REG_S24, ARM_REG_S25, ARM_REG_S26, ARM_REG_S27, ARM_REG_S28, ARM_REG_S29, ARM_REG_S30, ARM_REG_S31, ARM_REG_ENDING, // <-- mark the end of the list or registers //> alias registers ARM_REG_R13 = ARM_REG_SP, ARM_REG_R14 = ARM_REG_LR, ARM_REG_R15 = ARM_REG_PC, ARM_REG_SB = ARM_REG_R9, ARM_REG_SL = ARM_REG_R10, ARM_REG_FP = ARM_REG_R11, ARM_REG_IP = ARM_REG_R12, } arm_reg; //> ARM instruction typedef enum arm_insn { ARM_INS_INVALID = 0, ARM_INS_ADC, ARM_INS_ADD, ARM_INS_ADR, ARM_INS_AESD, ARM_INS_AESE, ARM_INS_AESIMC, ARM_INS_AESMC, ARM_INS_AND, ARM_INS_BFC, ARM_INS_BFI, ARM_INS_BIC, ARM_INS_BKPT, ARM_INS_BL, ARM_INS_BLX, ARM_INS_BX, ARM_INS_BXJ, ARM_INS_B, ARM_INS_CDP, ARM_INS_CDP2, ARM_INS_CLREX, ARM_INS_CLZ, ARM_INS_CMN, ARM_INS_CMP, ARM_INS_CPS, ARM_INS_CRC32B, ARM_INS_CRC32CB, ARM_INS_CRC32CH, ARM_INS_CRC32CW, ARM_INS_CRC32H, ARM_INS_CRC32W, ARM_INS_DBG, ARM_INS_DMB, ARM_INS_DSB, ARM_INS_EOR, ARM_INS_VMOV, ARM_INS_FLDMDBX, ARM_INS_FLDMIAX, ARM_INS_VMRS, ARM_INS_FSTMDBX, ARM_INS_FSTMIAX, ARM_INS_HINT, ARM_INS_HLT, ARM_INS_ISB, ARM_INS_LDA, ARM_INS_LDAB, ARM_INS_LDAEX, ARM_INS_LDAEXB, ARM_INS_LDAEXD, ARM_INS_LDAEXH, ARM_INS_LDAH, ARM_INS_LDC2L, ARM_INS_LDC2, ARM_INS_LDCL, ARM_INS_LDC, ARM_INS_LDMDA, ARM_INS_LDMDB, ARM_INS_LDM, ARM_INS_LDMIB, ARM_INS_LDRBT, ARM_INS_LDRB, ARM_INS_LDRD, ARM_INS_LDREX, ARM_INS_LDREXB, ARM_INS_LDREXD, ARM_INS_LDREXH, ARM_INS_LDRH, ARM_INS_LDRHT, ARM_INS_LDRSB, ARM_INS_LDRSBT, ARM_INS_LDRSH, ARM_INS_LDRSHT, ARM_INS_LDRT, ARM_INS_LDR, ARM_INS_MCR, ARM_INS_MCR2, ARM_INS_MCRR, ARM_INS_MCRR2, ARM_INS_MLA, ARM_INS_MLS, ARM_INS_MOV, ARM_INS_MOVT, ARM_INS_MOVW, ARM_INS_MRC, ARM_INS_MRC2, ARM_INS_MRRC, ARM_INS_MRRC2, ARM_INS_MRS, ARM_INS_MSR, ARM_INS_MUL, ARM_INS_MVN, ARM_INS_ORR, ARM_INS_PKHBT, ARM_INS_PKHTB, ARM_INS_PLDW, ARM_INS_PLD, ARM_INS_PLI, ARM_INS_QADD, ARM_INS_QADD16, ARM_INS_QADD8, ARM_INS_QASX, ARM_INS_QDADD, ARM_INS_QDSUB, ARM_INS_QSAX, ARM_INS_QSUB, ARM_INS_QSUB16, ARM_INS_QSUB8, ARM_INS_RBIT, ARM_INS_REV, ARM_INS_REV16, ARM_INS_REVSH, ARM_INS_RFEDA, ARM_INS_RFEDB, ARM_INS_RFEIA, ARM_INS_RFEIB, ARM_INS_RSB, ARM_INS_RSC, ARM_INS_SADD16, ARM_INS_SADD8, ARM_INS_SASX, ARM_INS_SBC, ARM_INS_SBFX, ARM_INS_SDIV, ARM_INS_SEL, ARM_INS_SETEND, ARM_INS_SHA1C, ARM_INS_SHA1H, ARM_INS_SHA1M, ARM_INS_SHA1P, ARM_INS_SHA1SU0, ARM_INS_SHA1SU1, ARM_INS_SHA256H, ARM_INS_SHA256H2, ARM_INS_SHA256SU0, ARM_INS_SHA256SU1, ARM_INS_SHADD16, ARM_INS_SHADD8, ARM_INS_SHASX, ARM_INS_SHSAX, ARM_INS_SHSUB16, ARM_INS_SHSUB8, ARM_INS_SMC, ARM_INS_SMLABB, ARM_INS_SMLABT, ARM_INS_SMLAD, ARM_INS_SMLADX, ARM_INS_SMLAL, ARM_INS_SMLALBB, ARM_INS_SMLALBT, ARM_INS_SMLALD, ARM_INS_SMLALDX, ARM_INS_SMLALTB, ARM_INS_SMLALTT, ARM_INS_SMLATB, ARM_INS_SMLATT, ARM_INS_SMLAWB, ARM_INS_SMLAWT, ARM_INS_SMLSD, ARM_INS_SMLSDX, ARM_INS_SMLSLD, ARM_INS_SMLSLDX, ARM_INS_SMMLA, ARM_INS_SMMLAR, ARM_INS_SMMLS, ARM_INS_SMMLSR, ARM_INS_SMMUL, ARM_INS_SMMULR, ARM_INS_SMUAD, ARM_INS_SMUADX, ARM_INS_SMULBB, ARM_INS_SMULBT, ARM_INS_SMULL, ARM_INS_SMULTB, ARM_INS_SMULTT, ARM_INS_SMULWB, ARM_INS_SMULWT, ARM_INS_SMUSD, ARM_INS_SMUSDX, ARM_INS_SRSDA, ARM_INS_SRSDB, ARM_INS_SRSIA, ARM_INS_SRSIB, ARM_INS_SSAT, ARM_INS_SSAT16, ARM_INS_SSAX, ARM_INS_SSUB16, ARM_INS_SSUB8, ARM_INS_STC2L, ARM_INS_STC2, ARM_INS_STCL, ARM_INS_STC, ARM_INS_STL, ARM_INS_STLB, ARM_INS_STLEX, ARM_INS_STLEXB, ARM_INS_STLEXD, ARM_INS_STLEXH, ARM_INS_STLH, ARM_INS_STMDA, ARM_INS_STMDB, ARM_INS_STM, ARM_INS_STMIB, ARM_INS_STRBT, ARM_INS_STRB, ARM_INS_STRD, ARM_INS_STREX, ARM_INS_STREXB, ARM_INS_STREXD, ARM_INS_STREXH, ARM_INS_STRH, ARM_INS_STRHT, ARM_INS_STRT, ARM_INS_STR, ARM_INS_SUB, ARM_INS_SVC, ARM_INS_SWP, ARM_INS_SWPB, ARM_INS_SXTAB, ARM_INS_SXTAB16, ARM_INS_SXTAH, ARM_INS_SXTB, ARM_INS_SXTB16, ARM_INS_SXTH, ARM_INS_TEQ, ARM_INS_TRAP, ARM_INS_TST, ARM_INS_UADD16, ARM_INS_UADD8, ARM_INS_UASX, ARM_INS_UBFX, ARM_INS_UDF, ARM_INS_UDIV, ARM_INS_UHADD16, ARM_INS_UHADD8, ARM_INS_UHASX, ARM_INS_UHSAX, ARM_INS_UHSUB16, ARM_INS_UHSUB8, ARM_INS_UMAAL, ARM_INS_UMLAL, ARM_INS_UMULL, ARM_INS_UQADD16, ARM_INS_UQADD8, ARM_INS_UQASX, ARM_INS_UQSAX, ARM_INS_UQSUB16, ARM_INS_UQSUB8, ARM_INS_USAD8, ARM_INS_USADA8, ARM_INS_USAT, ARM_INS_USAT16, ARM_INS_USAX, ARM_INS_USUB16, ARM_INS_USUB8, ARM_INS_UXTAB, ARM_INS_UXTAB16, ARM_INS_UXTAH, ARM_INS_UXTB, ARM_INS_UXTB16, ARM_INS_UXTH, ARM_INS_VABAL, ARM_INS_VABA, ARM_INS_VABDL, ARM_INS_VABD, ARM_INS_VABS, ARM_INS_VACGE, ARM_INS_VACGT, ARM_INS_VADD, ARM_INS_VADDHN, ARM_INS_VADDL, ARM_INS_VADDW, ARM_INS_VAND, ARM_INS_VBIC, ARM_INS_VBIF, ARM_INS_VBIT, ARM_INS_VBSL, ARM_INS_VCEQ, ARM_INS_VCGE, ARM_INS_VCGT, ARM_INS_VCLE, ARM_INS_VCLS, ARM_INS_VCLT, ARM_INS_VCLZ, ARM_INS_VCMP, ARM_INS_VCMPE, ARM_INS_VCNT, ARM_INS_VCVTA, ARM_INS_VCVTB, ARM_INS_VCVT, ARM_INS_VCVTM, ARM_INS_VCVTN, ARM_INS_VCVTP, ARM_INS_VCVTT, ARM_INS_VDIV, ARM_INS_VDUP, ARM_INS_VEOR, ARM_INS_VEXT, ARM_INS_VFMA, ARM_INS_VFMS, ARM_INS_VFNMA, ARM_INS_VFNMS, ARM_INS_VHADD, ARM_INS_VHSUB, ARM_INS_VLD1, ARM_INS_VLD2, ARM_INS_VLD3, ARM_INS_VLD4, ARM_INS_VLDMDB, ARM_INS_VLDMIA, ARM_INS_VLDR, ARM_INS_VMAXNM, ARM_INS_VMAX, ARM_INS_VMINNM, ARM_INS_VMIN, ARM_INS_VMLA, ARM_INS_VMLAL, ARM_INS_VMLS, ARM_INS_VMLSL, ARM_INS_VMOVL, ARM_INS_VMOVN, ARM_INS_VMSR, ARM_INS_VMUL, ARM_INS_VMULL, ARM_INS_VMVN, ARM_INS_VNEG, ARM_INS_VNMLA, ARM_INS_VNMLS, ARM_INS_VNMUL, ARM_INS_VORN, ARM_INS_VORR, ARM_INS_VPADAL, ARM_INS_VPADDL, ARM_INS_VPADD, ARM_INS_VPMAX, ARM_INS_VPMIN, ARM_INS_VQABS, ARM_INS_VQADD, ARM_INS_VQDMLAL, ARM_INS_VQDMLSL, ARM_INS_VQDMULH, ARM_INS_VQDMULL, ARM_INS_VQMOVUN, ARM_INS_VQMOVN, ARM_INS_VQNEG, ARM_INS_VQRDMULH, ARM_INS_VQRSHL, ARM_INS_VQRSHRN, ARM_INS_VQRSHRUN, ARM_INS_VQSHL, ARM_INS_VQSHLU, ARM_INS_VQSHRN, ARM_INS_VQSHRUN, ARM_INS_VQSUB, ARM_INS_VRADDHN, ARM_INS_VRECPE, ARM_INS_VRECPS, ARM_INS_VREV16, ARM_INS_VREV32, ARM_INS_VREV64, ARM_INS_VRHADD, ARM_INS_VRINTA, ARM_INS_VRINTM, ARM_INS_VRINTN, ARM_INS_VRINTP, ARM_INS_VRINTR, ARM_INS_VRINTX, ARM_INS_VRINTZ, ARM_INS_VRSHL, ARM_INS_VRSHRN, ARM_INS_VRSHR, ARM_INS_VRSQRTE, ARM_INS_VRSQRTS, ARM_INS_VRSRA, ARM_INS_VRSUBHN, ARM_INS_VSELEQ, ARM_INS_VSELGE, ARM_INS_VSELGT, ARM_INS_VSELVS, ARM_INS_VSHLL, ARM_INS_VSHL, ARM_INS_VSHRN, ARM_INS_VSHR, ARM_INS_VSLI, ARM_INS_VSQRT, ARM_INS_VSRA, ARM_INS_VSRI, ARM_INS_VST1, ARM_INS_VST2, ARM_INS_VST3, ARM_INS_VST4, ARM_INS_VSTMDB, ARM_INS_VSTMIA, ARM_INS_VSTR, ARM_INS_VSUB, ARM_INS_VSUBHN, ARM_INS_VSUBL, ARM_INS_VSUBW, ARM_INS_VSWP, ARM_INS_VTBL, ARM_INS_VTBX, ARM_INS_VCVTR, ARM_INS_VTRN, ARM_INS_VTST, ARM_INS_VUZP, ARM_INS_VZIP, ARM_INS_ADDW, ARM_INS_ASR, ARM_INS_DCPS1, ARM_INS_DCPS2, ARM_INS_DCPS3, ARM_INS_IT, ARM_INS_LSL, ARM_INS_LSR, ARM_INS_ASRS, ARM_INS_LSRS, ARM_INS_ORN, ARM_INS_ROR, ARM_INS_RRX, ARM_INS_SUBS, ARM_INS_SUBW, ARM_INS_TBB, ARM_INS_TBH, ARM_INS_CBNZ, ARM_INS_CBZ, ARM_INS_MOVS, ARM_INS_POP, ARM_INS_PUSH, // special instructions ARM_INS_NOP, ARM_INS_YIELD, ARM_INS_WFE, ARM_INS_WFI, ARM_INS_SEV, ARM_INS_SEVL, ARM_INS_VPUSH, ARM_INS_VPOP, ARM_INS_ENDING, // <-- mark the end of the list of instructions } arm_insn; //> Group of ARM instructions typedef enum arm_insn_group { ARM_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) ARM_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups ARM_GRP_CRYPTO = 128, ARM_GRP_DATABARRIER, ARM_GRP_DIVIDE, ARM_GRP_FPARMV8, ARM_GRP_MULTPRO, ARM_GRP_NEON, ARM_GRP_T2EXTRACTPACK, ARM_GRP_THUMB2DSP, ARM_GRP_TRUSTZONE, ARM_GRP_V4T, ARM_GRP_V5T, ARM_GRP_V5TE, ARM_GRP_V6, ARM_GRP_V6T2, ARM_GRP_V7, ARM_GRP_V8, ARM_GRP_VFP2, ARM_GRP_VFP3, ARM_GRP_VFP4, ARM_GRP_ARM, ARM_GRP_MCLASS, ARM_GRP_NOTMCLASS, ARM_GRP_THUMB, ARM_GRP_THUMB1ONLY, ARM_GRP_THUMB2, ARM_GRP_PREV8, ARM_GRP_FPVMLX, ARM_GRP_MULOPS, ARM_GRP_CRC, ARM_GRP_DPVFP, ARM_GRP_V6M, ARM_GRP_ENDING, } arm_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/arm64.h ================================================ #ifndef CAPSTONE_ARM64_H #define CAPSTONE_ARM64_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> ARM64 shift type typedef enum arm64_shifter { ARM64_SFT_INVALID = 0, ARM64_SFT_LSL = 1, ARM64_SFT_MSL = 2, ARM64_SFT_LSR = 3, ARM64_SFT_ASR = 4, ARM64_SFT_ROR = 5, } arm64_shifter; //> ARM64 extender type typedef enum arm64_extender { ARM64_EXT_INVALID = 0, ARM64_EXT_UXTB = 1, ARM64_EXT_UXTH = 2, ARM64_EXT_UXTW = 3, ARM64_EXT_UXTX = 4, ARM64_EXT_SXTB = 5, ARM64_EXT_SXTH = 6, ARM64_EXT_SXTW = 7, ARM64_EXT_SXTX = 8, } arm64_extender; //> ARM64 condition code typedef enum arm64_cc { ARM64_CC_INVALID = 0, ARM64_CC_EQ = 1, // Equal ARM64_CC_NE = 2, // Not equal: Not equal, or unordered ARM64_CC_HS = 3, // Unsigned higher or same: >, ==, or unordered ARM64_CC_LO = 4, // Unsigned lower or same: Less than ARM64_CC_MI = 5, // Minus, negative: Less than ARM64_CC_PL = 6, // Plus, positive or zero: >, ==, or unordered ARM64_CC_VS = 7, // Overflow: Unordered ARM64_CC_VC = 8, // No overflow: Ordered ARM64_CC_HI = 9, // Unsigned higher: Greater than, or unordered ARM64_CC_LS = 10, // Unsigned lower or same: Less than or equal ARM64_CC_GE = 11, // Greater than or equal: Greater than or equal ARM64_CC_LT = 12, // Less than: Less than, or unordered ARM64_CC_GT = 13, // Signed greater than: Greater than ARM64_CC_LE = 14, // Signed less than or equal: <, ==, or unordered ARM64_CC_AL = 15, // Always (unconditional): Always (unconditional) ARM64_CC_NV = 16, // Always (unconditional): Always (unconditional) // Note the NV exists purely to disassemble 0b1111. Execution // is "always". } arm64_cc; //> System registers typedef enum arm64_sysreg { //> System registers for MRS ARM64_SYSREG_INVALID = 0, ARM64_SYSREG_MDCCSR_EL0 = 0x9808, // 10 011 0000 0001 000 ARM64_SYSREG_DBGDTRRX_EL0 = 0x9828, // 10 011 0000 0101 000 ARM64_SYSREG_MDRAR_EL1 = 0x8080, // 10 000 0001 0000 000 ARM64_SYSREG_OSLSR_EL1 = 0x808c, // 10 000 0001 0001 100 ARM64_SYSREG_DBGAUTHSTATUS_EL1 = 0x83f6, // 10 000 0111 1110 110 ARM64_SYSREG_PMCEID0_EL0 = 0xdce6, // 11 011 1001 1100 110 ARM64_SYSREG_PMCEID1_EL0 = 0xdce7, // 11 011 1001 1100 111 ARM64_SYSREG_MIDR_EL1 = 0xc000, // 11 000 0000 0000 000 ARM64_SYSREG_CCSIDR_EL1 = 0xc800, // 11 001 0000 0000 000 ARM64_SYSREG_CLIDR_EL1 = 0xc801, // 11 001 0000 0000 001 ARM64_SYSREG_CTR_EL0 = 0xd801, // 11 011 0000 0000 001 ARM64_SYSREG_MPIDR_EL1 = 0xc005, // 11 000 0000 0000 101 ARM64_SYSREG_REVIDR_EL1 = 0xc006, // 11 000 0000 0000 110 ARM64_SYSREG_AIDR_EL1 = 0xc807, // 11 001 0000 0000 111 ARM64_SYSREG_DCZID_EL0 = 0xd807, // 11 011 0000 0000 111 ARM64_SYSREG_ID_PFR0_EL1 = 0xc008, // 11 000 0000 0001 000 ARM64_SYSREG_ID_PFR1_EL1 = 0xc009, // 11 000 0000 0001 001 ARM64_SYSREG_ID_DFR0_EL1 = 0xc00a, // 11 000 0000 0001 010 ARM64_SYSREG_ID_AFR0_EL1 = 0xc00b, // 11 000 0000 0001 011 ARM64_SYSREG_ID_MMFR0_EL1 = 0xc00c, // 11 000 0000 0001 100 ARM64_SYSREG_ID_MMFR1_EL1 = 0xc00d, // 11 000 0000 0001 101 ARM64_SYSREG_ID_MMFR2_EL1 = 0xc00e, // 11 000 0000 0001 110 ARM64_SYSREG_ID_MMFR3_EL1 = 0xc00f, // 11 000 0000 0001 111 ARM64_SYSREG_ID_ISAR0_EL1 = 0xc010, // 11 000 0000 0010 000 ARM64_SYSREG_ID_ISAR1_EL1 = 0xc011, // 11 000 0000 0010 001 ARM64_SYSREG_ID_ISAR2_EL1 = 0xc012, // 11 000 0000 0010 010 ARM64_SYSREG_ID_ISAR3_EL1 = 0xc013, // 11 000 0000 0010 011 ARM64_SYSREG_ID_ISAR4_EL1 = 0xc014, // 11 000 0000 0010 100 ARM64_SYSREG_ID_ISAR5_EL1 = 0xc015, // 11 000 0000 0010 101 ARM64_SYSREG_ID_A64PFR0_EL1 = 0xc020, // 11 000 0000 0100 000 ARM64_SYSREG_ID_A64PFR1_EL1 = 0xc021, // 11 000 0000 0100 001 ARM64_SYSREG_ID_A64DFR0_EL1 = 0xc028, // 11 000 0000 0101 000 ARM64_SYSREG_ID_A64DFR1_EL1 = 0xc029, // 11 000 0000 0101 001 ARM64_SYSREG_ID_A64AFR0_EL1 = 0xc02c, // 11 000 0000 0101 100 ARM64_SYSREG_ID_A64AFR1_EL1 = 0xc02d, // 11 000 0000 0101 101 ARM64_SYSREG_ID_A64ISAR0_EL1 = 0xc030, // 11 000 0000 0110 000 ARM64_SYSREG_ID_A64ISAR1_EL1 = 0xc031, // 11 000 0000 0110 001 ARM64_SYSREG_ID_A64MMFR0_EL1 = 0xc038, // 11 000 0000 0111 000 ARM64_SYSREG_ID_A64MMFR1_EL1 = 0xc039, // 11 000 0000 0111 001 ARM64_SYSREG_MVFR0_EL1 = 0xc018, // 11 000 0000 0011 000 ARM64_SYSREG_MVFR1_EL1 = 0xc019, // 11 000 0000 0011 001 ARM64_SYSREG_MVFR2_EL1 = 0xc01a, // 11 000 0000 0011 010 ARM64_SYSREG_RVBAR_EL1 = 0xc601, // 11 000 1100 0000 001 ARM64_SYSREG_RVBAR_EL2 = 0xe601, // 11 100 1100 0000 001 ARM64_SYSREG_RVBAR_EL3 = 0xf601, // 11 110 1100 0000 001 ARM64_SYSREG_ISR_EL1 = 0xc608, // 11 000 1100 0001 000 ARM64_SYSREG_CNTPCT_EL0 = 0xdf01, // 11 011 1110 0000 001 ARM64_SYSREG_CNTVCT_EL0 = 0xdf02, // 11 011 1110 0000 010 // Trace registers ARM64_SYSREG_TRCSTATR = 0x8818, // 10 001 0000 0011 000 ARM64_SYSREG_TRCIDR8 = 0x8806, // 10 001 0000 0000 110 ARM64_SYSREG_TRCIDR9 = 0x880e, // 10 001 0000 0001 110 ARM64_SYSREG_TRCIDR10 = 0x8816, // 10 001 0000 0010 110 ARM64_SYSREG_TRCIDR11 = 0x881e, // 10 001 0000 0011 110 ARM64_SYSREG_TRCIDR12 = 0x8826, // 10 001 0000 0100 110 ARM64_SYSREG_TRCIDR13 = 0x882e, // 10 001 0000 0101 110 ARM64_SYSREG_TRCIDR0 = 0x8847, // 10 001 0000 1000 111 ARM64_SYSREG_TRCIDR1 = 0x884f, // 10 001 0000 1001 111 ARM64_SYSREG_TRCIDR2 = 0x8857, // 10 001 0000 1010 111 ARM64_SYSREG_TRCIDR3 = 0x885f, // 10 001 0000 1011 111 ARM64_SYSREG_TRCIDR4 = 0x8867, // 10 001 0000 1100 111 ARM64_SYSREG_TRCIDR5 = 0x886f, // 10 001 0000 1101 111 ARM64_SYSREG_TRCIDR6 = 0x8877, // 10 001 0000 1110 111 ARM64_SYSREG_TRCIDR7 = 0x887f, // 10 001 0000 1111 111 ARM64_SYSREG_TRCOSLSR = 0x888c, // 10 001 0001 0001 100 ARM64_SYSREG_TRCPDSR = 0x88ac, // 10 001 0001 0101 100 ARM64_SYSREG_TRCDEVAFF0 = 0x8bd6, // 10 001 0111 1010 110 ARM64_SYSREG_TRCDEVAFF1 = 0x8bde, // 10 001 0111 1011 110 ARM64_SYSREG_TRCLSR = 0x8bee, // 10 001 0111 1101 110 ARM64_SYSREG_TRCAUTHSTATUS = 0x8bf6, // 10 001 0111 1110 110 ARM64_SYSREG_TRCDEVARCH = 0x8bfe, // 10 001 0111 1111 110 ARM64_SYSREG_TRCDEVID = 0x8b97, // 10 001 0111 0010 111 ARM64_SYSREG_TRCDEVTYPE = 0x8b9f, // 10 001 0111 0011 111 ARM64_SYSREG_TRCPIDR4 = 0x8ba7, // 10 001 0111 0100 111 ARM64_SYSREG_TRCPIDR5 = 0x8baf, // 10 001 0111 0101 111 ARM64_SYSREG_TRCPIDR6 = 0x8bb7, // 10 001 0111 0110 111 ARM64_SYSREG_TRCPIDR7 = 0x8bbf, // 10 001 0111 0111 111 ARM64_SYSREG_TRCPIDR0 = 0x8bc7, // 10 001 0111 1000 111 ARM64_SYSREG_TRCPIDR1 = 0x8bcf, // 10 001 0111 1001 111 ARM64_SYSREG_TRCPIDR2 = 0x8bd7, // 10 001 0111 1010 111 ARM64_SYSREG_TRCPIDR3 = 0x8bdf, // 10 001 0111 1011 111 ARM64_SYSREG_TRCCIDR0 = 0x8be7, // 10 001 0111 1100 111 ARM64_SYSREG_TRCCIDR1 = 0x8bef, // 10 001 0111 1101 111 ARM64_SYSREG_TRCCIDR2 = 0x8bf7, // 10 001 0111 1110 111 ARM64_SYSREG_TRCCIDR3 = 0x8bff, // 10 001 0111 1111 111 // GICv3 registers ARM64_SYSREG_ICC_IAR1_EL1 = 0xc660, // 11 000 1100 1100 000 ARM64_SYSREG_ICC_IAR0_EL1 = 0xc640, // 11 000 1100 1000 000 ARM64_SYSREG_ICC_HPPIR1_EL1 = 0xc662, // 11 000 1100 1100 010 ARM64_SYSREG_ICC_HPPIR0_EL1 = 0xc642, // 11 000 1100 1000 010 ARM64_SYSREG_ICC_RPR_EL1 = 0xc65b, // 11 000 1100 1011 011 ARM64_SYSREG_ICH_VTR_EL2 = 0xe659, // 11 100 1100 1011 001 ARM64_SYSREG_ICH_EISR_EL2 = 0xe65b, // 11 100 1100 1011 011 ARM64_SYSREG_ICH_ELSR_EL2 = 0xe65d, // 11 100 1100 1011 101 } arm64_sysreg; typedef enum arm64_msr_reg { //> System registers for MSR ARM64_SYSREG_DBGDTRTX_EL0 = 0x9828, // 10 011 0000 0101 000 ARM64_SYSREG_OSLAR_EL1 = 0x8084, // 10 000 0001 0000 100 ARM64_SYSREG_PMSWINC_EL0 = 0xdce4, // 11 011 1001 1100 100 // Trace Registers ARM64_SYSREG_TRCOSLAR = 0x8884, // 10 001 0001 0000 100 ARM64_SYSREG_TRCLAR = 0x8be6, // 10 001 0111 1100 110 // GICv3 registers ARM64_SYSREG_ICC_EOIR1_EL1 = 0xc661, // 11 000 1100 1100 001 ARM64_SYSREG_ICC_EOIR0_EL1 = 0xc641, // 11 000 1100 1000 001 ARM64_SYSREG_ICC_DIR_EL1 = 0xc659, // 11 000 1100 1011 001 ARM64_SYSREG_ICC_SGI1R_EL1 = 0xc65d, // 11 000 1100 1011 101 ARM64_SYSREG_ICC_ASGI1R_EL1 = 0xc65e, // 11 000 1100 1011 110 ARM64_SYSREG_ICC_SGI0R_EL1 = 0xc65f, // 11 000 1100 1011 111 } arm64_msr_reg; //> System PState Field (MSR instruction) typedef enum arm64_pstate { ARM64_PSTATE_INVALID = 0, ARM64_PSTATE_SPSEL = 0x05, ARM64_PSTATE_DAIFSET = 0x1e, ARM64_PSTATE_DAIFCLR = 0x1f } arm64_pstate; //> Vector arrangement specifier (for FloatingPoint/Advanced SIMD insn) typedef enum arm64_vas { ARM64_VAS_INVALID = 0, ARM64_VAS_8B, ARM64_VAS_16B, ARM64_VAS_4H, ARM64_VAS_8H, ARM64_VAS_2S, ARM64_VAS_4S, ARM64_VAS_1D, ARM64_VAS_2D, ARM64_VAS_1Q, } arm64_vas; //> Vector element size specifier typedef enum arm64_vess { ARM64_VESS_INVALID = 0, ARM64_VESS_B, ARM64_VESS_H, ARM64_VESS_S, ARM64_VESS_D, } arm64_vess; //> Memory barrier operands typedef enum arm64_barrier_op { ARM64_BARRIER_INVALID = 0, ARM64_BARRIER_OSHLD = 0x1, ARM64_BARRIER_OSHST = 0x2, ARM64_BARRIER_OSH = 0x3, ARM64_BARRIER_NSHLD = 0x5, ARM64_BARRIER_NSHST = 0x6, ARM64_BARRIER_NSH = 0x7, ARM64_BARRIER_ISHLD = 0x9, ARM64_BARRIER_ISHST = 0xa, ARM64_BARRIER_ISH = 0xb, ARM64_BARRIER_LD = 0xd, ARM64_BARRIER_ST = 0xe, ARM64_BARRIER_SY = 0xf } arm64_barrier_op; //> Operand type for instruction's operands typedef enum arm64_op_type { ARM64_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). ARM64_OP_REG, // = CS_OP_REG (Register operand). ARM64_OP_IMM, // = CS_OP_IMM (Immediate operand). ARM64_OP_MEM, // = CS_OP_MEM (Memory operand). ARM64_OP_FP, // = CS_OP_FP (Floating-Point operand). ARM64_OP_CIMM = 64, // C-Immediate ARM64_OP_REG_MRS, // MRS register operand. ARM64_OP_REG_MSR, // MSR register operand. ARM64_OP_PSTATE, // PState operand. ARM64_OP_SYS, // SYS operand for IC/DC/AT/TLBI instructions. ARM64_OP_PREFETCH, // Prefetch operand (PRFM). ARM64_OP_BARRIER, // Memory barrier operand (ISB/DMB/DSB instructions). } arm64_op_type; //> TLBI operations typedef enum arm64_tlbi_op { ARM64_TLBI_INVALID = 0, ARM64_TLBI_VMALLE1IS, ARM64_TLBI_VAE1IS, ARM64_TLBI_ASIDE1IS, ARM64_TLBI_VAAE1IS, ARM64_TLBI_VALE1IS, ARM64_TLBI_VAALE1IS, ARM64_TLBI_ALLE2IS, ARM64_TLBI_VAE2IS, ARM64_TLBI_ALLE1IS, ARM64_TLBI_VALE2IS, ARM64_TLBI_VMALLS12E1IS, ARM64_TLBI_ALLE3IS, ARM64_TLBI_VAE3IS, ARM64_TLBI_VALE3IS, ARM64_TLBI_IPAS2E1IS, ARM64_TLBI_IPAS2LE1IS, ARM64_TLBI_IPAS2E1, ARM64_TLBI_IPAS2LE1, ARM64_TLBI_VMALLE1, ARM64_TLBI_VAE1, ARM64_TLBI_ASIDE1, ARM64_TLBI_VAAE1, ARM64_TLBI_VALE1, ARM64_TLBI_VAALE1, ARM64_TLBI_ALLE2, ARM64_TLBI_VAE2, ARM64_TLBI_ALLE1, ARM64_TLBI_VALE2, ARM64_TLBI_VMALLS12E1, ARM64_TLBI_ALLE3, ARM64_TLBI_VAE3, ARM64_TLBI_VALE3, } arm64_tlbi_op; //> AT operations typedef enum arm64_at_op { ARM64_AT_S1E1R, ARM64_AT_S1E1W, ARM64_AT_S1E0R, ARM64_AT_S1E0W, ARM64_AT_S1E2R, ARM64_AT_S1E2W, ARM64_AT_S12E1R, ARM64_AT_S12E1W, ARM64_AT_S12E0R, ARM64_AT_S12E0W, ARM64_AT_S1E3R, ARM64_AT_S1E3W, } arm64_at_op; //> DC operations typedef enum arm64_dc_op { ARM64_DC_INVALID = 0, ARM64_DC_ZVA, ARM64_DC_IVAC, ARM64_DC_ISW, ARM64_DC_CVAC, ARM64_DC_CSW, ARM64_DC_CVAU, ARM64_DC_CIVAC, ARM64_DC_CISW, } arm64_dc_op; //> IC operations typedef enum arm64_ic_op { ARM64_IC_INVALID = 0, ARM64_IC_IALLUIS, ARM64_IC_IALLU, ARM64_IC_IVAU, } arm64_ic_op; //> Prefetch operations (PRFM) typedef enum arm64_prefetch_op { ARM64_PRFM_INVALID = 0, ARM64_PRFM_PLDL1KEEP = 0x00 + 1, ARM64_PRFM_PLDL1STRM = 0x01 + 1, ARM64_PRFM_PLDL2KEEP = 0x02 + 1, ARM64_PRFM_PLDL2STRM = 0x03 + 1, ARM64_PRFM_PLDL3KEEP = 0x04 + 1, ARM64_PRFM_PLDL3STRM = 0x05 + 1, ARM64_PRFM_PLIL1KEEP = 0x08 + 1, ARM64_PRFM_PLIL1STRM = 0x09 + 1, ARM64_PRFM_PLIL2KEEP = 0x0a + 1, ARM64_PRFM_PLIL2STRM = 0x0b + 1, ARM64_PRFM_PLIL3KEEP = 0x0c + 1, ARM64_PRFM_PLIL3STRM = 0x0d + 1, ARM64_PRFM_PSTL1KEEP = 0x10 + 1, ARM64_PRFM_PSTL1STRM = 0x11 + 1, ARM64_PRFM_PSTL2KEEP = 0x12 + 1, ARM64_PRFM_PSTL2STRM = 0x13 + 1, ARM64_PRFM_PSTL3KEEP = 0x14 + 1, ARM64_PRFM_PSTL3STRM = 0x15 + 1, } arm64_prefetch_op; // Instruction's operand referring to memory // This is associated with ARM64_OP_MEM operand type above typedef struct arm64_op_mem { unsigned int base; // base register unsigned int index; // index register int32_t disp; // displacement/offset value } arm64_op_mem; // Instruction operand typedef struct cs_arm64_op { int vector_index; // Vector Index for some vector operands (or -1 if irrelevant) arm64_vas vas; // Vector Arrangement Specifier arm64_vess vess; // Vector Element Size Specifier struct { arm64_shifter type; // shifter type of this operand unsigned int value; // shifter value of this operand } shift; arm64_extender ext; // extender type of this operand arm64_op_type type; // operand type union { unsigned int reg; // register value for REG operand int64_t imm; // immediate value, or index for C-IMM or IMM operand double fp; // floating point value for FP operand arm64_op_mem mem; // base/index/scale/disp value for MEM operand arm64_pstate pstate; // PState field of MSR instruction. unsigned int sys; // IC/DC/AT/TLBI operation (see arm64_ic_op, arm64_dc_op, arm64_at_op, arm64_tlbi_op) arm64_prefetch_op prefetch; // PRFM operation. arm64_barrier_op barrier; // Memory barrier operation (ISB/DMB/DSB instructions). }; } cs_arm64_op; // Instruction structure typedef struct cs_arm64 { arm64_cc cc; // conditional code for this insn bool update_flags; // does this insn update flags? bool writeback; // does this insn request writeback? 'True' means 'yes' // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_arm64_op operands[8]; // operands for this instruction. } cs_arm64; //> ARM64 registers typedef enum arm64_reg { ARM64_REG_INVALID = 0, ARM64_REG_X29, ARM64_REG_X30, ARM64_REG_NZCV, ARM64_REG_SP, ARM64_REG_WSP, ARM64_REG_WZR, ARM64_REG_XZR, ARM64_REG_B0, ARM64_REG_B1, ARM64_REG_B2, ARM64_REG_B3, ARM64_REG_B4, ARM64_REG_B5, ARM64_REG_B6, ARM64_REG_B7, ARM64_REG_B8, ARM64_REG_B9, ARM64_REG_B10, ARM64_REG_B11, ARM64_REG_B12, ARM64_REG_B13, ARM64_REG_B14, ARM64_REG_B15, ARM64_REG_B16, ARM64_REG_B17, ARM64_REG_B18, ARM64_REG_B19, ARM64_REG_B20, ARM64_REG_B21, ARM64_REG_B22, ARM64_REG_B23, ARM64_REG_B24, ARM64_REG_B25, ARM64_REG_B26, ARM64_REG_B27, ARM64_REG_B28, ARM64_REG_B29, ARM64_REG_B30, ARM64_REG_B31, ARM64_REG_D0, ARM64_REG_D1, ARM64_REG_D2, ARM64_REG_D3, ARM64_REG_D4, ARM64_REG_D5, ARM64_REG_D6, ARM64_REG_D7, ARM64_REG_D8, ARM64_REG_D9, ARM64_REG_D10, ARM64_REG_D11, ARM64_REG_D12, ARM64_REG_D13, ARM64_REG_D14, ARM64_REG_D15, ARM64_REG_D16, ARM64_REG_D17, ARM64_REG_D18, ARM64_REG_D19, ARM64_REG_D20, ARM64_REG_D21, ARM64_REG_D22, ARM64_REG_D23, ARM64_REG_D24, ARM64_REG_D25, ARM64_REG_D26, ARM64_REG_D27, ARM64_REG_D28, ARM64_REG_D29, ARM64_REG_D30, ARM64_REG_D31, ARM64_REG_H0, ARM64_REG_H1, ARM64_REG_H2, ARM64_REG_H3, ARM64_REG_H4, ARM64_REG_H5, ARM64_REG_H6, ARM64_REG_H7, ARM64_REG_H8, ARM64_REG_H9, ARM64_REG_H10, ARM64_REG_H11, ARM64_REG_H12, ARM64_REG_H13, ARM64_REG_H14, ARM64_REG_H15, ARM64_REG_H16, ARM64_REG_H17, ARM64_REG_H18, ARM64_REG_H19, ARM64_REG_H20, ARM64_REG_H21, ARM64_REG_H22, ARM64_REG_H23, ARM64_REG_H24, ARM64_REG_H25, ARM64_REG_H26, ARM64_REG_H27, ARM64_REG_H28, ARM64_REG_H29, ARM64_REG_H30, ARM64_REG_H31, ARM64_REG_Q0, ARM64_REG_Q1, ARM64_REG_Q2, ARM64_REG_Q3, ARM64_REG_Q4, ARM64_REG_Q5, ARM64_REG_Q6, ARM64_REG_Q7, ARM64_REG_Q8, ARM64_REG_Q9, ARM64_REG_Q10, ARM64_REG_Q11, ARM64_REG_Q12, ARM64_REG_Q13, ARM64_REG_Q14, ARM64_REG_Q15, ARM64_REG_Q16, ARM64_REG_Q17, ARM64_REG_Q18, ARM64_REG_Q19, ARM64_REG_Q20, ARM64_REG_Q21, ARM64_REG_Q22, ARM64_REG_Q23, ARM64_REG_Q24, ARM64_REG_Q25, ARM64_REG_Q26, ARM64_REG_Q27, ARM64_REG_Q28, ARM64_REG_Q29, ARM64_REG_Q30, ARM64_REG_Q31, ARM64_REG_S0, ARM64_REG_S1, ARM64_REG_S2, ARM64_REG_S3, ARM64_REG_S4, ARM64_REG_S5, ARM64_REG_S6, ARM64_REG_S7, ARM64_REG_S8, ARM64_REG_S9, ARM64_REG_S10, ARM64_REG_S11, ARM64_REG_S12, ARM64_REG_S13, ARM64_REG_S14, ARM64_REG_S15, ARM64_REG_S16, ARM64_REG_S17, ARM64_REG_S18, ARM64_REG_S19, ARM64_REG_S20, ARM64_REG_S21, ARM64_REG_S22, ARM64_REG_S23, ARM64_REG_S24, ARM64_REG_S25, ARM64_REG_S26, ARM64_REG_S27, ARM64_REG_S28, ARM64_REG_S29, ARM64_REG_S30, ARM64_REG_S31, ARM64_REG_W0, ARM64_REG_W1, ARM64_REG_W2, ARM64_REG_W3, ARM64_REG_W4, ARM64_REG_W5, ARM64_REG_W6, ARM64_REG_W7, ARM64_REG_W8, ARM64_REG_W9, ARM64_REG_W10, ARM64_REG_W11, ARM64_REG_W12, ARM64_REG_W13, ARM64_REG_W14, ARM64_REG_W15, ARM64_REG_W16, ARM64_REG_W17, ARM64_REG_W18, ARM64_REG_W19, ARM64_REG_W20, ARM64_REG_W21, ARM64_REG_W22, ARM64_REG_W23, ARM64_REG_W24, ARM64_REG_W25, ARM64_REG_W26, ARM64_REG_W27, ARM64_REG_W28, ARM64_REG_W29, ARM64_REG_W30, ARM64_REG_X0, ARM64_REG_X1, ARM64_REG_X2, ARM64_REG_X3, ARM64_REG_X4, ARM64_REG_X5, ARM64_REG_X6, ARM64_REG_X7, ARM64_REG_X8, ARM64_REG_X9, ARM64_REG_X10, ARM64_REG_X11, ARM64_REG_X12, ARM64_REG_X13, ARM64_REG_X14, ARM64_REG_X15, ARM64_REG_X16, ARM64_REG_X17, ARM64_REG_X18, ARM64_REG_X19, ARM64_REG_X20, ARM64_REG_X21, ARM64_REG_X22, ARM64_REG_X23, ARM64_REG_X24, ARM64_REG_X25, ARM64_REG_X26, ARM64_REG_X27, ARM64_REG_X28, ARM64_REG_V0, ARM64_REG_V1, ARM64_REG_V2, ARM64_REG_V3, ARM64_REG_V4, ARM64_REG_V5, ARM64_REG_V6, ARM64_REG_V7, ARM64_REG_V8, ARM64_REG_V9, ARM64_REG_V10, ARM64_REG_V11, ARM64_REG_V12, ARM64_REG_V13, ARM64_REG_V14, ARM64_REG_V15, ARM64_REG_V16, ARM64_REG_V17, ARM64_REG_V18, ARM64_REG_V19, ARM64_REG_V20, ARM64_REG_V21, ARM64_REG_V22, ARM64_REG_V23, ARM64_REG_V24, ARM64_REG_V25, ARM64_REG_V26, ARM64_REG_V27, ARM64_REG_V28, ARM64_REG_V29, ARM64_REG_V30, ARM64_REG_V31, ARM64_REG_ENDING, // <-- mark the end of the list of registers //> alias registers ARM64_REG_IP0 = ARM64_REG_X16, ARM64_REG_IP1 = ARM64_REG_X17, ARM64_REG_FP = ARM64_REG_X29, ARM64_REG_LR = ARM64_REG_X30, } arm64_reg; //> ARM64 instruction typedef enum arm64_insn { ARM64_INS_INVALID = 0, ARM64_INS_ABS, ARM64_INS_ADC, ARM64_INS_ADDHN, ARM64_INS_ADDHN2, ARM64_INS_ADDP, ARM64_INS_ADD, ARM64_INS_ADDV, ARM64_INS_ADR, ARM64_INS_ADRP, ARM64_INS_AESD, ARM64_INS_AESE, ARM64_INS_AESIMC, ARM64_INS_AESMC, ARM64_INS_AND, ARM64_INS_ASR, ARM64_INS_B, ARM64_INS_BFM, ARM64_INS_BIC, ARM64_INS_BIF, ARM64_INS_BIT, ARM64_INS_BL, ARM64_INS_BLR, ARM64_INS_BR, ARM64_INS_BRK, ARM64_INS_BSL, ARM64_INS_CBNZ, ARM64_INS_CBZ, ARM64_INS_CCMN, ARM64_INS_CCMP, ARM64_INS_CLREX, ARM64_INS_CLS, ARM64_INS_CLZ, ARM64_INS_CMEQ, ARM64_INS_CMGE, ARM64_INS_CMGT, ARM64_INS_CMHI, ARM64_INS_CMHS, ARM64_INS_CMLE, ARM64_INS_CMLT, ARM64_INS_CMTST, ARM64_INS_CNT, ARM64_INS_MOV, ARM64_INS_CRC32B, ARM64_INS_CRC32CB, ARM64_INS_CRC32CH, ARM64_INS_CRC32CW, ARM64_INS_CRC32CX, ARM64_INS_CRC32H, ARM64_INS_CRC32W, ARM64_INS_CRC32X, ARM64_INS_CSEL, ARM64_INS_CSINC, ARM64_INS_CSINV, ARM64_INS_CSNEG, ARM64_INS_DCPS1, ARM64_INS_DCPS2, ARM64_INS_DCPS3, ARM64_INS_DMB, ARM64_INS_DRPS, ARM64_INS_DSB, ARM64_INS_DUP, ARM64_INS_EON, ARM64_INS_EOR, ARM64_INS_ERET, ARM64_INS_EXTR, ARM64_INS_EXT, ARM64_INS_FABD, ARM64_INS_FABS, ARM64_INS_FACGE, ARM64_INS_FACGT, ARM64_INS_FADD, ARM64_INS_FADDP, ARM64_INS_FCCMP, ARM64_INS_FCCMPE, ARM64_INS_FCMEQ, ARM64_INS_FCMGE, ARM64_INS_FCMGT, ARM64_INS_FCMLE, ARM64_INS_FCMLT, ARM64_INS_FCMP, ARM64_INS_FCMPE, ARM64_INS_FCSEL, ARM64_INS_FCVTAS, ARM64_INS_FCVTAU, ARM64_INS_FCVT, ARM64_INS_FCVTL, ARM64_INS_FCVTL2, ARM64_INS_FCVTMS, ARM64_INS_FCVTMU, ARM64_INS_FCVTNS, ARM64_INS_FCVTNU, ARM64_INS_FCVTN, ARM64_INS_FCVTN2, ARM64_INS_FCVTPS, ARM64_INS_FCVTPU, ARM64_INS_FCVTXN, ARM64_INS_FCVTXN2, ARM64_INS_FCVTZS, ARM64_INS_FCVTZU, ARM64_INS_FDIV, ARM64_INS_FMADD, ARM64_INS_FMAX, ARM64_INS_FMAXNM, ARM64_INS_FMAXNMP, ARM64_INS_FMAXNMV, ARM64_INS_FMAXP, ARM64_INS_FMAXV, ARM64_INS_FMIN, ARM64_INS_FMINNM, ARM64_INS_FMINNMP, ARM64_INS_FMINNMV, ARM64_INS_FMINP, ARM64_INS_FMINV, ARM64_INS_FMLA, ARM64_INS_FMLS, ARM64_INS_FMOV, ARM64_INS_FMSUB, ARM64_INS_FMUL, ARM64_INS_FMULX, ARM64_INS_FNEG, ARM64_INS_FNMADD, ARM64_INS_FNMSUB, ARM64_INS_FNMUL, ARM64_INS_FRECPE, ARM64_INS_FRECPS, ARM64_INS_FRECPX, ARM64_INS_FRINTA, ARM64_INS_FRINTI, ARM64_INS_FRINTM, ARM64_INS_FRINTN, ARM64_INS_FRINTP, ARM64_INS_FRINTX, ARM64_INS_FRINTZ, ARM64_INS_FRSQRTE, ARM64_INS_FRSQRTS, ARM64_INS_FSQRT, ARM64_INS_FSUB, ARM64_INS_HINT, ARM64_INS_HLT, ARM64_INS_HVC, ARM64_INS_INS, ARM64_INS_ISB, ARM64_INS_LD1, ARM64_INS_LD1R, ARM64_INS_LD2R, ARM64_INS_LD2, ARM64_INS_LD3R, ARM64_INS_LD3, ARM64_INS_LD4, ARM64_INS_LD4R, ARM64_INS_LDARB, ARM64_INS_LDARH, ARM64_INS_LDAR, ARM64_INS_LDAXP, ARM64_INS_LDAXRB, ARM64_INS_LDAXRH, ARM64_INS_LDAXR, ARM64_INS_LDNP, ARM64_INS_LDP, ARM64_INS_LDPSW, ARM64_INS_LDRB, ARM64_INS_LDR, ARM64_INS_LDRH, ARM64_INS_LDRSB, ARM64_INS_LDRSH, ARM64_INS_LDRSW, ARM64_INS_LDTRB, ARM64_INS_LDTRH, ARM64_INS_LDTRSB, ARM64_INS_LDTRSH, ARM64_INS_LDTRSW, ARM64_INS_LDTR, ARM64_INS_LDURB, ARM64_INS_LDUR, ARM64_INS_LDURH, ARM64_INS_LDURSB, ARM64_INS_LDURSH, ARM64_INS_LDURSW, ARM64_INS_LDXP, ARM64_INS_LDXRB, ARM64_INS_LDXRH, ARM64_INS_LDXR, ARM64_INS_LSL, ARM64_INS_LSR, ARM64_INS_MADD, ARM64_INS_MLA, ARM64_INS_MLS, ARM64_INS_MOVI, ARM64_INS_MOVK, ARM64_INS_MOVN, ARM64_INS_MOVZ, ARM64_INS_MRS, ARM64_INS_MSR, ARM64_INS_MSUB, ARM64_INS_MUL, ARM64_INS_MVNI, ARM64_INS_NEG, ARM64_INS_NOT, ARM64_INS_ORN, ARM64_INS_ORR, ARM64_INS_PMULL2, ARM64_INS_PMULL, ARM64_INS_PMUL, ARM64_INS_PRFM, ARM64_INS_PRFUM, ARM64_INS_RADDHN, ARM64_INS_RADDHN2, ARM64_INS_RBIT, ARM64_INS_RET, ARM64_INS_REV16, ARM64_INS_REV32, ARM64_INS_REV64, ARM64_INS_REV, ARM64_INS_ROR, ARM64_INS_RSHRN2, ARM64_INS_RSHRN, ARM64_INS_RSUBHN, ARM64_INS_RSUBHN2, ARM64_INS_SABAL2, ARM64_INS_SABAL, ARM64_INS_SABA, ARM64_INS_SABDL2, ARM64_INS_SABDL, ARM64_INS_SABD, ARM64_INS_SADALP, ARM64_INS_SADDLP, ARM64_INS_SADDLV, ARM64_INS_SADDL2, ARM64_INS_SADDL, ARM64_INS_SADDW2, ARM64_INS_SADDW, ARM64_INS_SBC, ARM64_INS_SBFM, ARM64_INS_SCVTF, ARM64_INS_SDIV, ARM64_INS_SHA1C, ARM64_INS_SHA1H, ARM64_INS_SHA1M, ARM64_INS_SHA1P, ARM64_INS_SHA1SU0, ARM64_INS_SHA1SU1, ARM64_INS_SHA256H2, ARM64_INS_SHA256H, ARM64_INS_SHA256SU0, ARM64_INS_SHA256SU1, ARM64_INS_SHADD, ARM64_INS_SHLL2, ARM64_INS_SHLL, ARM64_INS_SHL, ARM64_INS_SHRN2, ARM64_INS_SHRN, ARM64_INS_SHSUB, ARM64_INS_SLI, ARM64_INS_SMADDL, ARM64_INS_SMAXP, ARM64_INS_SMAXV, ARM64_INS_SMAX, ARM64_INS_SMC, ARM64_INS_SMINP, ARM64_INS_SMINV, ARM64_INS_SMIN, ARM64_INS_SMLAL2, ARM64_INS_SMLAL, ARM64_INS_SMLSL2, ARM64_INS_SMLSL, ARM64_INS_SMOV, ARM64_INS_SMSUBL, ARM64_INS_SMULH, ARM64_INS_SMULL2, ARM64_INS_SMULL, ARM64_INS_SQABS, ARM64_INS_SQADD, ARM64_INS_SQDMLAL, ARM64_INS_SQDMLAL2, ARM64_INS_SQDMLSL, ARM64_INS_SQDMLSL2, ARM64_INS_SQDMULH, ARM64_INS_SQDMULL, ARM64_INS_SQDMULL2, ARM64_INS_SQNEG, ARM64_INS_SQRDMULH, ARM64_INS_SQRSHL, ARM64_INS_SQRSHRN, ARM64_INS_SQRSHRN2, ARM64_INS_SQRSHRUN, ARM64_INS_SQRSHRUN2, ARM64_INS_SQSHLU, ARM64_INS_SQSHL, ARM64_INS_SQSHRN, ARM64_INS_SQSHRN2, ARM64_INS_SQSHRUN, ARM64_INS_SQSHRUN2, ARM64_INS_SQSUB, ARM64_INS_SQXTN2, ARM64_INS_SQXTN, ARM64_INS_SQXTUN2, ARM64_INS_SQXTUN, ARM64_INS_SRHADD, ARM64_INS_SRI, ARM64_INS_SRSHL, ARM64_INS_SRSHR, ARM64_INS_SRSRA, ARM64_INS_SSHLL2, ARM64_INS_SSHLL, ARM64_INS_SSHL, ARM64_INS_SSHR, ARM64_INS_SSRA, ARM64_INS_SSUBL2, ARM64_INS_SSUBL, ARM64_INS_SSUBW2, ARM64_INS_SSUBW, ARM64_INS_ST1, ARM64_INS_ST2, ARM64_INS_ST3, ARM64_INS_ST4, ARM64_INS_STLRB, ARM64_INS_STLRH, ARM64_INS_STLR, ARM64_INS_STLXP, ARM64_INS_STLXRB, ARM64_INS_STLXRH, ARM64_INS_STLXR, ARM64_INS_STNP, ARM64_INS_STP, ARM64_INS_STRB, ARM64_INS_STR, ARM64_INS_STRH, ARM64_INS_STTRB, ARM64_INS_STTRH, ARM64_INS_STTR, ARM64_INS_STURB, ARM64_INS_STUR, ARM64_INS_STURH, ARM64_INS_STXP, ARM64_INS_STXRB, ARM64_INS_STXRH, ARM64_INS_STXR, ARM64_INS_SUBHN, ARM64_INS_SUBHN2, ARM64_INS_SUB, ARM64_INS_SUQADD, ARM64_INS_SVC, ARM64_INS_SYSL, ARM64_INS_SYS, ARM64_INS_TBL, ARM64_INS_TBNZ, ARM64_INS_TBX, ARM64_INS_TBZ, ARM64_INS_TRN1, ARM64_INS_TRN2, ARM64_INS_UABAL2, ARM64_INS_UABAL, ARM64_INS_UABA, ARM64_INS_UABDL2, ARM64_INS_UABDL, ARM64_INS_UABD, ARM64_INS_UADALP, ARM64_INS_UADDLP, ARM64_INS_UADDLV, ARM64_INS_UADDL2, ARM64_INS_UADDL, ARM64_INS_UADDW2, ARM64_INS_UADDW, ARM64_INS_UBFM, ARM64_INS_UCVTF, ARM64_INS_UDIV, ARM64_INS_UHADD, ARM64_INS_UHSUB, ARM64_INS_UMADDL, ARM64_INS_UMAXP, ARM64_INS_UMAXV, ARM64_INS_UMAX, ARM64_INS_UMINP, ARM64_INS_UMINV, ARM64_INS_UMIN, ARM64_INS_UMLAL2, ARM64_INS_UMLAL, ARM64_INS_UMLSL2, ARM64_INS_UMLSL, ARM64_INS_UMOV, ARM64_INS_UMSUBL, ARM64_INS_UMULH, ARM64_INS_UMULL2, ARM64_INS_UMULL, ARM64_INS_UQADD, ARM64_INS_UQRSHL, ARM64_INS_UQRSHRN, ARM64_INS_UQRSHRN2, ARM64_INS_UQSHL, ARM64_INS_UQSHRN, ARM64_INS_UQSHRN2, ARM64_INS_UQSUB, ARM64_INS_UQXTN2, ARM64_INS_UQXTN, ARM64_INS_URECPE, ARM64_INS_URHADD, ARM64_INS_URSHL, ARM64_INS_URSHR, ARM64_INS_URSQRTE, ARM64_INS_URSRA, ARM64_INS_USHLL2, ARM64_INS_USHLL, ARM64_INS_USHL, ARM64_INS_USHR, ARM64_INS_USQADD, ARM64_INS_USRA, ARM64_INS_USUBL2, ARM64_INS_USUBL, ARM64_INS_USUBW2, ARM64_INS_USUBW, ARM64_INS_UZP1, ARM64_INS_UZP2, ARM64_INS_XTN2, ARM64_INS_XTN, ARM64_INS_ZIP1, ARM64_INS_ZIP2, // alias insn ARM64_INS_MNEG, ARM64_INS_UMNEGL, ARM64_INS_SMNEGL, ARM64_INS_NOP, ARM64_INS_YIELD, ARM64_INS_WFE, ARM64_INS_WFI, ARM64_INS_SEV, ARM64_INS_SEVL, ARM64_INS_NGC, ARM64_INS_SBFIZ, ARM64_INS_UBFIZ, ARM64_INS_SBFX, ARM64_INS_UBFX, ARM64_INS_BFI, ARM64_INS_BFXIL, ARM64_INS_CMN, ARM64_INS_MVN, ARM64_INS_TST, ARM64_INS_CSET, ARM64_INS_CINC, ARM64_INS_CSETM, ARM64_INS_CINV, ARM64_INS_CNEG, ARM64_INS_SXTB, ARM64_INS_SXTH, ARM64_INS_SXTW, ARM64_INS_CMP, ARM64_INS_UXTB, ARM64_INS_UXTH, ARM64_INS_UXTW, ARM64_INS_IC, ARM64_INS_DC, ARM64_INS_AT, ARM64_INS_TLBI, ARM64_INS_ENDING, // <-- mark the end of the list of insn } arm64_insn; //> Group of ARM64 instructions typedef enum arm64_insn_group { ARM64_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) ARM64_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups ARM64_GRP_CRYPTO = 128, ARM64_GRP_FPARMV8, ARM64_GRP_NEON, ARM64_GRP_CRC, ARM64_GRP_ENDING, // <-- mark the end of the list of groups } arm64_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/capstone.h ================================================ #ifndef CAPSTONE_ENGINE_H #define CAPSTONE_ENGINE_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2016 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include #if defined(CAPSTONE_HAS_OSXKERNEL) #include #else #include #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #pragma warning(disable:4100) #define CAPSTONE_API __cdecl #ifdef CAPSTONE_SHARED #define CAPSTONE_EXPORT __declspec(dllexport) #else // defined(CAPSTONE_STATIC) #define CAPSTONE_EXPORT #endif #else #define CAPSTONE_API #if defined(__GNUC__) && !defined(CAPSTONE_STATIC) #define CAPSTONE_EXPORT __attribute__((visibility("default"))) #else // defined(CAPSTONE_STATIC) #define CAPSTONE_EXPORT #endif #endif #ifdef __GNUC__ #define CAPSTONE_DEPRECATED __attribute__((deprecated)) #elif defined(_MSC_VER) #define CAPSTONE_DEPRECATED __declspec(deprecated) #else #pragma message("WARNING: You need to implement CAPSTONE_DEPRECATED for this compiler") #define CAPSTONE_DEPRECATED #endif // Capstone API version #define CS_API_MAJOR 3 #define CS_API_MINOR 0 // Capstone package version #define CS_VERSION_MAJOR CS_API_MAJOR #define CS_VERSION_MINOR CS_API_MINOR #define CS_VERSION_EXTRA 5 // Macro to create combined version which can be compared to // result of cs_version() API. #define CS_MAKE_VERSION(major, minor) ((major << 8) + minor) // Handle using with all API typedef size_t csh; // Architecture type typedef enum cs_arch { CS_ARCH_ARM = 0, // ARM architecture (including Thumb, Thumb-2) CS_ARCH_ARM64, // ARM-64, also called AArch64 CS_ARCH_MIPS, // Mips architecture CS_ARCH_X86, // X86 architecture (including x86 & x86-64) CS_ARCH_PPC, // PowerPC architecture CS_ARCH_SPARC, // Sparc architecture CS_ARCH_SYSZ, // SystemZ architecture CS_ARCH_XCORE, // XCore architecture CS_ARCH_MAX, CS_ARCH_ALL = 0xFFFF, // All architectures - for cs_support() } cs_arch; // Support value to verify diet mode of the engine. // If cs_support(CS_SUPPORT_DIET) return True, the engine was compiled // in diet mode. #define CS_SUPPORT_DIET (CS_ARCH_ALL + 1) // Support value to verify X86 reduce mode of the engine. // If cs_support(CS_SUPPORT_X86_REDUCE) return True, the engine was compiled // in X86 reduce mode. #define CS_SUPPORT_X86_REDUCE (CS_ARCH_ALL + 2) // Mode type typedef enum cs_mode { CS_MODE_LITTLE_ENDIAN = 0, // little-endian mode (default mode) CS_MODE_ARM = 0, // 32-bit ARM CS_MODE_16 = 1 << 1, // 16-bit mode (X86) CS_MODE_32 = 1 << 2, // 32-bit mode (X86) CS_MODE_64 = 1 << 3, // 64-bit mode (X86, PPC) CS_MODE_THUMB = 1 << 4, // ARM's Thumb mode, including Thumb-2 CS_MODE_MCLASS = 1 << 5, // ARM's Cortex-M series CS_MODE_V8 = 1 << 6, // ARMv8 A32 encodings for ARM CS_MODE_MICRO = 1 << 4, // MicroMips mode (MIPS) CS_MODE_MIPS3 = 1 << 5, // Mips III ISA CS_MODE_MIPS32R6 = 1 << 6, // Mips32r6 ISA CS_MODE_MIPSGP64 = 1 << 7, // General Purpose Registers are 64-bit wide (MIPS) CS_MODE_V9 = 1 << 4, // SparcV9 mode (Sparc) CS_MODE_BIG_ENDIAN = 1 << 31, // big-endian mode CS_MODE_MIPS32 = CS_MODE_32, // Mips32 ISA (Mips) CS_MODE_MIPS64 = CS_MODE_64, // Mips64 ISA (Mips) } cs_mode; typedef void* (CAPSTONE_API *cs_malloc_t)(size_t size); typedef void* (CAPSTONE_API *cs_calloc_t)(size_t nmemb, size_t size); typedef void* (CAPSTONE_API *cs_realloc_t)(void *ptr, size_t size); typedef void (CAPSTONE_API *cs_free_t)(void *ptr); typedef int (CAPSTONE_API *cs_vsnprintf_t)(char *str, size_t size, const char *format, va_list ap); // User-defined dynamic memory related functions: malloc/calloc/realloc/free/vsnprintf() // By default, Capstone uses system's malloc(), calloc(), realloc(), free() & vsnprintf(). typedef struct cs_opt_mem { cs_malloc_t malloc; cs_calloc_t calloc; cs_realloc_t realloc; cs_free_t free; cs_vsnprintf_t vsnprintf; } cs_opt_mem; // Runtime option for the disassembled engine typedef enum cs_opt_type { CS_OPT_INVALID = 0, // No option specified CS_OPT_SYNTAX, // Assembly output syntax CS_OPT_DETAIL, // Break down instruction structure into details CS_OPT_MODE, // Change engine's mode at run-time CS_OPT_MEM, // User-defined dynamic memory related functions CS_OPT_SKIPDATA, // Skip data when disassembling. Then engine is in SKIPDATA mode. CS_OPT_SKIPDATA_SETUP, // Setup user-defined function for SKIPDATA option } cs_opt_type; // Runtime option value (associated with option type above) typedef enum cs_opt_value { CS_OPT_OFF = 0, // Turn OFF an option - default option of CS_OPT_DETAIL, CS_OPT_SKIPDATA. CS_OPT_ON = 3, // Turn ON an option (CS_OPT_DETAIL, CS_OPT_SKIPDATA). CS_OPT_SYNTAX_DEFAULT = 0, // Default asm syntax (CS_OPT_SYNTAX). CS_OPT_SYNTAX_INTEL, // X86 Intel asm syntax - default on X86 (CS_OPT_SYNTAX). CS_OPT_SYNTAX_ATT, // X86 ATT asm syntax (CS_OPT_SYNTAX). CS_OPT_SYNTAX_NOREGNAME, // Prints register name with only number (CS_OPT_SYNTAX) } cs_opt_value; //> Common instruction operand types - to be consistent across all architectures. typedef enum cs_op_type { CS_OP_INVALID = 0, // uninitialized/invalid operand. CS_OP_REG, // Register operand. CS_OP_IMM, // Immediate operand. CS_OP_MEM, // Memory operand. CS_OP_FP, // Floating-Point operand. } cs_op_type; //> Common instruction groups - to be consistent across all architectures. typedef enum cs_group_type { CS_GRP_INVALID = 0, // uninitialized/invalid group. CS_GRP_JUMP, // all jump instructions (conditional+direct+indirect jumps) CS_GRP_CALL, // all call instructions CS_GRP_RET, // all return instructions CS_GRP_INT, // all interrupt instructions (int+syscall) CS_GRP_IRET, // all interrupt return instructions } cs_group_type; /* User-defined callback function for SKIPDATA option. See tests/test_skipdata.c for sample code demonstrating this API. @code: the input buffer containing code to be disassembled. This is the same buffer passed to cs_disasm(). @code_size: size (in bytes) of the above @code buffer. @offset: the position of the currently-examining byte in the input buffer @code mentioned above. @user_data: user-data passed to cs_option() via @user_data field in cs_opt_skipdata struct below. @return: return number of bytes to skip, or 0 to immediately stop disassembling. */ typedef size_t (CAPSTONE_API *cs_skipdata_cb_t)(const uint8_t *code, size_t code_size, size_t offset, void *user_data); // User-customized setup for SKIPDATA option typedef struct cs_opt_skipdata { // Capstone considers data to skip as special "instructions". // User can specify the string for this instruction's "mnemonic" here. // By default (if @mnemonic is NULL), Capstone use ".byte". const char *mnemonic; // User-defined callback function to be called when Capstone hits data. // If the returned value from this callback is positive (>0), Capstone // will skip exactly that number of bytes & continue. Otherwise, if // the callback returns 0, Capstone stops disassembling and returns // immediately from cs_disasm() // NOTE: if this callback pointer is NULL, Capstone would skip a number // of bytes depending on architectures, as following: // Arm: 2 bytes (Thumb mode) or 4 bytes. // Arm64: 4 bytes. // Mips: 4 bytes. // PowerPC: 4 bytes. // Sparc: 4 bytes. // SystemZ: 2 bytes. // X86: 1 bytes. // XCore: 2 bytes. cs_skipdata_cb_t callback; // default value is NULL // User-defined data to be passed to @callback function pointer. void *user_data; } cs_opt_skipdata; #include "arm.h" #include "arm64.h" #include "mips.h" #include "ppc.h" #include "sparc.h" #include "systemz.h" #include "x86.h" #include "xcore.h" // NOTE: All information in cs_detail is only available when CS_OPT_DETAIL = CS_OPT_ON typedef struct cs_detail { uint8_t regs_read[12]; // list of implicit registers read by this insn uint8_t regs_read_count; // number of implicit registers read by this insn uint8_t regs_write[20]; // list of implicit registers modified by this insn uint8_t regs_write_count; // number of implicit registers modified by this insn uint8_t groups[8]; // list of group this instruction belong to uint8_t groups_count; // number of groups this insn belongs to // Architecture-specific instruction info union { cs_x86 x86; // X86 architecture, including 16-bit, 32-bit & 64-bit mode cs_arm64 arm64; // ARM64 architecture (aka AArch64) cs_arm arm; // ARM architecture (including Thumb/Thumb2) cs_mips mips; // MIPS architecture cs_ppc ppc; // PowerPC architecture cs_sparc sparc; // Sparc architecture cs_sysz sysz; // SystemZ architecture cs_xcore xcore; // XCore architecture }; } cs_detail; // Detail information of disassembled instruction typedef struct cs_insn { // Instruction ID (basically a numeric ID for the instruction mnemonic) // Find the instruction id in the '[ARCH]_insn' enum in the header file // of corresponding architecture, such as 'arm_insn' in arm.h for ARM, // 'x86_insn' in x86.h for X86, etc... // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF // NOTE: in Skipdata mode, "data" instruction has 0 for this id field. unsigned int id; // Address (EIP) of this instruction // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF uint64_t address; // Size of this instruction // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF uint16_t size; // Machine bytes of this instruction, with number of bytes indicated by @size above // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF uint8_t bytes[16]; // Ascii text of instruction mnemonic // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF char mnemonic[32]; // Ascii text of instruction operands // This information is available even when CS_OPT_DETAIL = CS_OPT_OFF char op_str[160]; // Pointer to cs_detail. // NOTE: detail pointer is only valid when both requirements below are met: // (1) CS_OP_DETAIL = CS_OPT_ON // (2) Engine is not in Skipdata mode (CS_OP_SKIPDATA option set to CS_OPT_ON) // // NOTE 2: when in Skipdata mode, or when detail mode is OFF, even if this pointer // is not NULL, its content is still irrelevant. cs_detail *detail; } cs_insn; // Calculate the offset of a disassembled instruction in its buffer, given its position // in its array of disassembled insn // NOTE: this macro works with position (>=1), not index #define CS_INSN_OFFSET(insns, post) (insns[post - 1].address - insns[0].address) // All type of errors encountered by Capstone API. // These are values returned by cs_errno() typedef enum cs_err { CS_ERR_OK = 0, // No error: everything was fine CS_ERR_MEM, // Out-Of-Memory error: cs_open(), cs_disasm(), cs_disasm_iter() CS_ERR_ARCH, // Unsupported architecture: cs_open() CS_ERR_HANDLE, // Invalid handle: cs_op_count(), cs_op_index() CS_ERR_CSH, // Invalid csh argument: cs_close(), cs_errno(), cs_option() CS_ERR_MODE, // Invalid/unsupported mode: cs_open() CS_ERR_OPTION, // Invalid/unsupported option: cs_option() CS_ERR_DETAIL, // Information is unavailable because detail option is OFF CS_ERR_MEMSETUP, // Dynamic memory management uninitialized (see CS_OPT_MEM) CS_ERR_VERSION, // Unsupported version (bindings) CS_ERR_DIET, // Access irrelevant data in "diet" engine CS_ERR_SKIPDATA, // Access irrelevant data for "data" instruction in SKIPDATA mode CS_ERR_X86_ATT, // X86 AT&T syntax is unsupported (opt-out at compile time) CS_ERR_X86_INTEL, // X86 Intel syntax is unsupported (opt-out at compile time) } cs_err; /* Return combined API version & major and minor version numbers. @major: major number of API version @minor: minor number of API version @return hexical number as (major << 8 | minor), which encodes both major & minor versions. NOTE: This returned value can be compared with version number made with macro CS_MAKE_VERSION For example, second API version would return 1 in @major, and 1 in @minor The return value would be 0x0101 NOTE: if you only care about returned value, but not major and minor values, set both @major & @minor arguments to NULL. */ CAPSTONE_EXPORT unsigned int CAPSTONE_API cs_version(int *major, int *minor); /* This API can be used to either ask for archs supported by this library, or check to see if the library was compile with 'diet' option (or called in 'diet' mode). To check if a particular arch is supported by this library, set @query to arch mode (CS_ARCH_* value). To verify if this library supports all the archs, use CS_ARCH_ALL. To check if this library is in 'diet' mode, set @query to CS_SUPPORT_DIET. @return True if this library supports the given arch, or in 'diet' mode. */ CAPSTONE_EXPORT bool CAPSTONE_API cs_support(int query); /* Initialize CS handle: this must be done before any usage of CS. @arch: architecture type (CS_ARCH_*) @mode: hardware mode. This is combined of CS_MODE_* @handle: pointer to handle, which will be updated at return time @return CS_ERR_OK on success, or other value on failure (refer to cs_err enum for detailed error). */ CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle); /* Close CS handle: MUST do to release the handle when it is not used anymore. NOTE: this must be only called when there is no longer usage of Capstone, not even access to cs_insn array. The reason is the this API releases some cached memory, thus access to any Capstone API after cs_close() might crash your application. In fact,this API invalidate @handle by ZERO out its value (i.e *handle = 0). @handle: pointer to a handle returned by cs_open() @return CS_ERR_OK on success, or other value on failure (refer to cs_err enum for detailed error). */ CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle); /* Set option for disassembling engine at runtime @handle: handle returned by cs_open() @type: type of option to be set @value: option value corresponding with @type @return: CS_ERR_OK on success, or other value on failure. Refer to cs_err enum for detailed error. NOTE: in the case of CS_OPT_MEM, handle's value can be anything, so that cs_option(handle, CS_OPT_MEM, value) can (i.e must) be called even before cs_open() */ CAPSTONE_EXPORT cs_err CAPSTONE_API cs_option(csh handle, cs_opt_type type, size_t value); /* Report the last error number when some API function fail. Like glibc's errno, cs_errno might not retain its old value once accessed. @handle: handle returned by cs_open() @return: error code of cs_err enum type (CS_ERR_*, see above) */ CAPSTONE_EXPORT cs_err CAPSTONE_API cs_errno(csh handle); /* Return a string describing given error code. @code: error code (see CS_ERR_* above) @return: returns a pointer to a string that describes the error code passed in the argument @code */ CAPSTONE_EXPORT const char * CAPSTONE_API cs_strerror(cs_err code); /* Disassemble binary code, given the code buffer, size, address and number of instructions to be decoded. This API dynamically allocate memory to contain disassembled instruction. Resulted instructions will be put into @*insn NOTE 1: this API will automatically determine memory needed to contain output disassembled instructions in @insn. NOTE 2: caller must free the allocated memory itself to avoid memory leaking. NOTE 3: for system with scarce memory to be dynamically allocated such as OS kernel or firmware, the API cs_disasm_iter() might be a better choice than cs_disasm(). The reason is that with cs_disasm(), based on limited available memory, we have to calculate in advance how many instructions to be disassembled, which complicates things. This is especially troublesome for the case @count=0, when cs_disasm() runs uncontrollably (until either end of input buffer, or when it encounters an invalid instruction). @handle: handle returned by cs_open() @code: buffer containing raw binary code to be disassembled. @code_size: size of the above code buffer. @address: address of the first instruction in given raw code buffer. @insn: array of instructions filled in by this API. NOTE: @insn will be allocated by this function, and should be freed with cs_free() API. @count: number of instructions to be disassembled, or 0 to get all of them @return: the number of successfully disassembled instructions, or 0 if this function failed to disassemble the given code On failure, call cs_errno() for error code. */ CAPSTONE_EXPORT size_t CAPSTONE_API cs_disasm(csh handle, const uint8_t *code, size_t code_size, uint64_t address, size_t count, cs_insn **insn); /* Deprecated function - to be retired in the next version! Use cs_disasm() instead of cs_disasm_ex() */ CAPSTONE_EXPORT CAPSTONE_DEPRECATED size_t CAPSTONE_API cs_disasm_ex(csh handle, const uint8_t *code, size_t code_size, uint64_t address, size_t count, cs_insn **insn); /* Free memory allocated by cs_malloc() or cs_disasm() (argument @insn) @insn: pointer returned by @insn argument in cs_disasm() or cs_malloc() @count: number of cs_insn structures returned by cs_disasm(), or 1 to free memory allocated by cs_malloc(). */ CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count); /* Allocate memory for 1 instruction to be used by cs_disasm_iter(). @handle: handle returned by cs_open() NOTE: when no longer in use, you can reclaim the memory allocated for this instruction with cs_free(insn, 1) */ CAPSTONE_EXPORT cs_insn * CAPSTONE_API cs_malloc(csh handle); /* Fast API to disassemble binary code, given the code buffer, size, address and number of instructions to be decoded. This API put the resulted instruction into a given cache in @insn. See tests/test_iter.c for sample code demonstrating this API. NOTE 1: this API will update @code, @size & @address to point to the next instruction in the input buffer. Therefore, it is convenient to use cs_disasm_iter() inside a loop to quickly iterate all the instructions. While decoding one instruction at a time can also be achieved with cs_disasm(count=1), some benchmarks shown that cs_disasm_iter() can be 30% faster on random input. NOTE 2: the cache in @insn can be created with cs_malloc() API. NOTE 3: for system with scarce memory to be dynamically allocated such as OS kernel or firmware, this API is recommended over cs_disasm(), which allocates memory based on the number of instructions to be disassembled. The reason is that with cs_disasm(), based on limited available memory, we have to calculate in advance how many instructions to be disassembled, which complicates things. This is especially troublesome for the case @count=0, when cs_disasm() runs uncontrollably (until either end of input buffer, or when it encounters an invalid instruction). @handle: handle returned by cs_open() @code: buffer containing raw binary code to be disassembled @size: size of above code @address: address of the first insn in given raw code buffer @insn: pointer to instruction to be filled in by this API. @return: true if this API successfully decode 1 instruction, or false otherwise. On failure, call cs_errno() for error code. */ CAPSTONE_EXPORT bool CAPSTONE_API cs_disasm_iter(csh handle, const uint8_t **code, size_t *size, uint64_t *address, cs_insn *insn); /* Return friendly name of register in a string. Find the instruction id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) WARN: when in 'diet' mode, this API is irrelevant because engine does not store register name. @handle: handle returned by cs_open() @reg_id: register id @return: string name of the register, or NULL if @reg_id is invalid. */ CAPSTONE_EXPORT const char * CAPSTONE_API cs_reg_name(csh handle, unsigned int reg_id); /* Return friendly name of an instruction in a string. Find the instruction id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) WARN: when in 'diet' mode, this API is irrelevant because the engine does not store instruction name. @handle: handle returned by cs_open() @insn_id: instruction id @return: string name of the instruction, or NULL if @insn_id is invalid. */ CAPSTONE_EXPORT const char * CAPSTONE_API cs_insn_name(csh handle, unsigned int insn_id); /* Return friendly name of a group id (that an instruction can belong to) Find the group id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) WARN: when in 'diet' mode, this API is irrelevant because the engine does not store group name. @handle: handle returned by cs_open() @group_id: group id @return: string name of the group, or NULL if @group_id is invalid. */ CAPSTONE_EXPORT const char * CAPSTONE_API cs_group_name(csh handle, unsigned int group_id); /* Check if a disassembled instruction belong to a particular group. Find the group id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) Internally, this simply verifies if @group_id matches any member of insn->groups array. NOTE: this API is only valid when detail option is ON (which is OFF by default). WARN: when in 'diet' mode, this API is irrelevant because the engine does not update @groups array. @handle: handle returned by cs_open() @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @group_id: group that you want to check if this instruction belong to. @return: true if this instruction indeed belongs to aboved group, or false otherwise. */ CAPSTONE_EXPORT bool CAPSTONE_API cs_insn_group(csh handle, const cs_insn *insn, unsigned int group_id); /* Check if a disassembled instruction IMPLICITLY used a particular register. Find the register id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) Internally, this simply verifies if @reg_id matches any member of insn->regs_read array. NOTE: this API is only valid when detail option is ON (which is OFF by default) WARN: when in 'diet' mode, this API is irrelevant because the engine does not update @regs_read array. @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @reg_id: register that you want to check if this instruction used it. @return: true if this instruction indeed implicitly used aboved register, or false otherwise. */ CAPSTONE_EXPORT bool CAPSTONE_API cs_reg_read(csh handle, const cs_insn *insn, unsigned int reg_id); /* Check if a disassembled instruction IMPLICITLY modified a particular register. Find the register id from header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) Internally, this simply verifies if @reg_id matches any member of insn->regs_write array. NOTE: this API is only valid when detail option is ON (which is OFF by default) WARN: when in 'diet' mode, this API is irrelevant because the engine does not update @regs_write array. @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @reg_id: register that you want to check if this instruction modified it. @return: true if this instruction indeed implicitly modified aboved register, or false otherwise. */ CAPSTONE_EXPORT bool CAPSTONE_API cs_reg_write(csh handle, const cs_insn *insn, unsigned int reg_id); /* Count the number of operands of a given type. Find the operand type in header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) NOTE: this API is only valid when detail option is ON (which is OFF by default) @handle: handle returned by cs_open() @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @op_type: Operand type to be found. @return: number of operands of given type @op_type in instruction @insn, or -1 on failure. */ CAPSTONE_EXPORT int CAPSTONE_API cs_op_count(csh handle, const cs_insn *insn, unsigned int op_type); /* Retrieve the position of operand of given type in .operands[] array. Later, the operand can be accessed using the returned position. Find the operand type in header file of corresponding architecture (arm.h for ARM, x86.h for X86, ...) NOTE: this API is only valid when detail option is ON (which is OFF by default) @handle: handle returned by cs_open() @insn: disassembled instruction structure received from cs_disasm() or cs_disasm_iter() @op_type: Operand type to be found. @position: position of the operand to be found. This must be in the range [1, cs_op_count(handle, insn, op_type)] @return: index of operand of given type @op_type in .operands[] array in instruction @insn, or -1 on failure. */ CAPSTONE_EXPORT int CAPSTONE_API cs_op_index(csh handle, const cs_insn *insn, unsigned int op_type, unsigned int position); #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/mips.h ================================================ #ifndef CAPSTONE_MIPS_H #define CAPSTONE_MIPS_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" // GCC MIPS toolchain has a default macro called "mips" which breaks // compilation #undef mips #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> Operand type for instruction's operands typedef enum mips_op_type { MIPS_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). MIPS_OP_REG, // = CS_OP_REG (Register operand). MIPS_OP_IMM, // = CS_OP_IMM (Immediate operand). MIPS_OP_MEM, // = CS_OP_MEM (Memory operand). } mips_op_type; // Instruction's operand referring to memory // This is associated with MIPS_OP_MEM operand type above typedef struct mips_op_mem { unsigned int base; // base register int64_t disp; // displacement/offset value } mips_op_mem; // Instruction operand typedef struct cs_mips_op { mips_op_type type; // operand type union { unsigned int reg; // register value for REG operand int64_t imm; // immediate value for IMM operand mips_op_mem mem; // base/index/scale/disp value for MEM operand }; } cs_mips_op; // Instruction structure typedef struct cs_mips { // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_mips_op operands[8]; // operands for this instruction. } cs_mips; //> MIPS registers typedef enum mips_reg { MIPS_REG_INVALID = 0, //> General purpose registers MIPS_REG_0, MIPS_REG_1, MIPS_REG_2, MIPS_REG_3, MIPS_REG_4, MIPS_REG_5, MIPS_REG_6, MIPS_REG_7, MIPS_REG_8, MIPS_REG_9, MIPS_REG_10, MIPS_REG_11, MIPS_REG_12, MIPS_REG_13, MIPS_REG_14, MIPS_REG_15, MIPS_REG_16, MIPS_REG_17, MIPS_REG_18, MIPS_REG_19, MIPS_REG_20, MIPS_REG_21, MIPS_REG_22, MIPS_REG_23, MIPS_REG_24, MIPS_REG_25, MIPS_REG_26, MIPS_REG_27, MIPS_REG_28, MIPS_REG_29, MIPS_REG_30, MIPS_REG_31, //> DSP registers MIPS_REG_DSPCCOND, MIPS_REG_DSPCARRY, MIPS_REG_DSPEFI, MIPS_REG_DSPOUTFLAG, MIPS_REG_DSPOUTFLAG16_19, MIPS_REG_DSPOUTFLAG20, MIPS_REG_DSPOUTFLAG21, MIPS_REG_DSPOUTFLAG22, MIPS_REG_DSPOUTFLAG23, MIPS_REG_DSPPOS, MIPS_REG_DSPSCOUNT, //> ACC registers MIPS_REG_AC0, MIPS_REG_AC1, MIPS_REG_AC2, MIPS_REG_AC3, //> COP registers MIPS_REG_CC0, MIPS_REG_CC1, MIPS_REG_CC2, MIPS_REG_CC3, MIPS_REG_CC4, MIPS_REG_CC5, MIPS_REG_CC6, MIPS_REG_CC7, //> FPU registers MIPS_REG_F0, MIPS_REG_F1, MIPS_REG_F2, MIPS_REG_F3, MIPS_REG_F4, MIPS_REG_F5, MIPS_REG_F6, MIPS_REG_F7, MIPS_REG_F8, MIPS_REG_F9, MIPS_REG_F10, MIPS_REG_F11, MIPS_REG_F12, MIPS_REG_F13, MIPS_REG_F14, MIPS_REG_F15, MIPS_REG_F16, MIPS_REG_F17, MIPS_REG_F18, MIPS_REG_F19, MIPS_REG_F20, MIPS_REG_F21, MIPS_REG_F22, MIPS_REG_F23, MIPS_REG_F24, MIPS_REG_F25, MIPS_REG_F26, MIPS_REG_F27, MIPS_REG_F28, MIPS_REG_F29, MIPS_REG_F30, MIPS_REG_F31, MIPS_REG_FCC0, MIPS_REG_FCC1, MIPS_REG_FCC2, MIPS_REG_FCC3, MIPS_REG_FCC4, MIPS_REG_FCC5, MIPS_REG_FCC6, MIPS_REG_FCC7, //> AFPR128 MIPS_REG_W0, MIPS_REG_W1, MIPS_REG_W2, MIPS_REG_W3, MIPS_REG_W4, MIPS_REG_W5, MIPS_REG_W6, MIPS_REG_W7, MIPS_REG_W8, MIPS_REG_W9, MIPS_REG_W10, MIPS_REG_W11, MIPS_REG_W12, MIPS_REG_W13, MIPS_REG_W14, MIPS_REG_W15, MIPS_REG_W16, MIPS_REG_W17, MIPS_REG_W18, MIPS_REG_W19, MIPS_REG_W20, MIPS_REG_W21, MIPS_REG_W22, MIPS_REG_W23, MIPS_REG_W24, MIPS_REG_W25, MIPS_REG_W26, MIPS_REG_W27, MIPS_REG_W28, MIPS_REG_W29, MIPS_REG_W30, MIPS_REG_W31, MIPS_REG_HI, MIPS_REG_LO, MIPS_REG_P0, MIPS_REG_P1, MIPS_REG_P2, MIPS_REG_MPL0, MIPS_REG_MPL1, MIPS_REG_MPL2, MIPS_REG_ENDING, // <-- mark the end of the list or registers // alias registers MIPS_REG_ZERO = MIPS_REG_0, MIPS_REG_AT = MIPS_REG_1, MIPS_REG_V0 = MIPS_REG_2, MIPS_REG_V1 = MIPS_REG_3, MIPS_REG_A0 = MIPS_REG_4, MIPS_REG_A1 = MIPS_REG_5, MIPS_REG_A2 = MIPS_REG_6, MIPS_REG_A3 = MIPS_REG_7, MIPS_REG_T0 = MIPS_REG_8, MIPS_REG_T1 = MIPS_REG_9, MIPS_REG_T2 = MIPS_REG_10, MIPS_REG_T3 = MIPS_REG_11, MIPS_REG_T4 = MIPS_REG_12, MIPS_REG_T5 = MIPS_REG_13, MIPS_REG_T6 = MIPS_REG_14, MIPS_REG_T7 = MIPS_REG_15, MIPS_REG_S0 = MIPS_REG_16, MIPS_REG_S1 = MIPS_REG_17, MIPS_REG_S2 = MIPS_REG_18, MIPS_REG_S3 = MIPS_REG_19, MIPS_REG_S4 = MIPS_REG_20, MIPS_REG_S5 = MIPS_REG_21, MIPS_REG_S6 = MIPS_REG_22, MIPS_REG_S7 = MIPS_REG_23, MIPS_REG_T8 = MIPS_REG_24, MIPS_REG_T9 = MIPS_REG_25, MIPS_REG_K0 = MIPS_REG_26, MIPS_REG_K1 = MIPS_REG_27, MIPS_REG_GP = MIPS_REG_28, MIPS_REG_SP = MIPS_REG_29, MIPS_REG_FP = MIPS_REG_30, MIPS_REG_S8 = MIPS_REG_30, MIPS_REG_RA = MIPS_REG_31, MIPS_REG_HI0 = MIPS_REG_AC0, MIPS_REG_HI1 = MIPS_REG_AC1, MIPS_REG_HI2 = MIPS_REG_AC2, MIPS_REG_HI3 = MIPS_REG_AC3, MIPS_REG_LO0 = MIPS_REG_HI0, MIPS_REG_LO1 = MIPS_REG_HI1, MIPS_REG_LO2 = MIPS_REG_HI2, MIPS_REG_LO3 = MIPS_REG_HI3, } mips_reg; //> MIPS instruction typedef enum mips_insn { MIPS_INS_INVALID = 0, MIPS_INS_ABSQ_S, MIPS_INS_ADD, MIPS_INS_ADDIUPC, MIPS_INS_ADDQH, MIPS_INS_ADDQH_R, MIPS_INS_ADDQ, MIPS_INS_ADDQ_S, MIPS_INS_ADDSC, MIPS_INS_ADDS_A, MIPS_INS_ADDS_S, MIPS_INS_ADDS_U, MIPS_INS_ADDUH, MIPS_INS_ADDUH_R, MIPS_INS_ADDU, MIPS_INS_ADDU_S, MIPS_INS_ADDVI, MIPS_INS_ADDV, MIPS_INS_ADDWC, MIPS_INS_ADD_A, MIPS_INS_ADDI, MIPS_INS_ADDIU, MIPS_INS_ALIGN, MIPS_INS_ALUIPC, MIPS_INS_AND, MIPS_INS_ANDI, MIPS_INS_APPEND, MIPS_INS_ASUB_S, MIPS_INS_ASUB_U, MIPS_INS_AUI, MIPS_INS_AUIPC, MIPS_INS_AVER_S, MIPS_INS_AVER_U, MIPS_INS_AVE_S, MIPS_INS_AVE_U, MIPS_INS_BADDU, MIPS_INS_BAL, MIPS_INS_BALC, MIPS_INS_BALIGN, MIPS_INS_BC, MIPS_INS_BC0F, MIPS_INS_BC0FL, MIPS_INS_BC0T, MIPS_INS_BC0TL, MIPS_INS_BC1EQZ, MIPS_INS_BC1F, MIPS_INS_BC1FL, MIPS_INS_BC1NEZ, MIPS_INS_BC1T, MIPS_INS_BC1TL, MIPS_INS_BC2EQZ, MIPS_INS_BC2F, MIPS_INS_BC2FL, MIPS_INS_BC2NEZ, MIPS_INS_BC2T, MIPS_INS_BC2TL, MIPS_INS_BC3F, MIPS_INS_BC3FL, MIPS_INS_BC3T, MIPS_INS_BC3TL, MIPS_INS_BCLRI, MIPS_INS_BCLR, MIPS_INS_BEQ, MIPS_INS_BEQC, MIPS_INS_BEQL, MIPS_INS_BEQZALC, MIPS_INS_BEQZC, MIPS_INS_BGEC, MIPS_INS_BGEUC, MIPS_INS_BGEZ, MIPS_INS_BGEZAL, MIPS_INS_BGEZALC, MIPS_INS_BGEZALL, MIPS_INS_BGEZALS, MIPS_INS_BGEZC, MIPS_INS_BGEZL, MIPS_INS_BGTZ, MIPS_INS_BGTZALC, MIPS_INS_BGTZC, MIPS_INS_BGTZL, MIPS_INS_BINSLI, MIPS_INS_BINSL, MIPS_INS_BINSRI, MIPS_INS_BINSR, MIPS_INS_BITREV, MIPS_INS_BITSWAP, MIPS_INS_BLEZ, MIPS_INS_BLEZALC, MIPS_INS_BLEZC, MIPS_INS_BLEZL, MIPS_INS_BLTC, MIPS_INS_BLTUC, MIPS_INS_BLTZ, MIPS_INS_BLTZAL, MIPS_INS_BLTZALC, MIPS_INS_BLTZALL, MIPS_INS_BLTZALS, MIPS_INS_BLTZC, MIPS_INS_BLTZL, MIPS_INS_BMNZI, MIPS_INS_BMNZ, MIPS_INS_BMZI, MIPS_INS_BMZ, MIPS_INS_BNE, MIPS_INS_BNEC, MIPS_INS_BNEGI, MIPS_INS_BNEG, MIPS_INS_BNEL, MIPS_INS_BNEZALC, MIPS_INS_BNEZC, MIPS_INS_BNVC, MIPS_INS_BNZ, MIPS_INS_BOVC, MIPS_INS_BPOSGE32, MIPS_INS_BREAK, MIPS_INS_BSELI, MIPS_INS_BSEL, MIPS_INS_BSETI, MIPS_INS_BSET, MIPS_INS_BZ, MIPS_INS_BEQZ, MIPS_INS_B, MIPS_INS_BNEZ, MIPS_INS_BTEQZ, MIPS_INS_BTNEZ, MIPS_INS_CACHE, MIPS_INS_CEIL, MIPS_INS_CEQI, MIPS_INS_CEQ, MIPS_INS_CFC1, MIPS_INS_CFCMSA, MIPS_INS_CINS, MIPS_INS_CINS32, MIPS_INS_CLASS, MIPS_INS_CLEI_S, MIPS_INS_CLEI_U, MIPS_INS_CLE_S, MIPS_INS_CLE_U, MIPS_INS_CLO, MIPS_INS_CLTI_S, MIPS_INS_CLTI_U, MIPS_INS_CLT_S, MIPS_INS_CLT_U, MIPS_INS_CLZ, MIPS_INS_CMPGDU, MIPS_INS_CMPGU, MIPS_INS_CMPU, MIPS_INS_CMP, MIPS_INS_COPY_S, MIPS_INS_COPY_U, MIPS_INS_CTC1, MIPS_INS_CTCMSA, MIPS_INS_CVT, MIPS_INS_C, MIPS_INS_CMPI, MIPS_INS_DADD, MIPS_INS_DADDI, MIPS_INS_DADDIU, MIPS_INS_DADDU, MIPS_INS_DAHI, MIPS_INS_DALIGN, MIPS_INS_DATI, MIPS_INS_DAUI, MIPS_INS_DBITSWAP, MIPS_INS_DCLO, MIPS_INS_DCLZ, MIPS_INS_DDIV, MIPS_INS_DDIVU, MIPS_INS_DERET, MIPS_INS_DEXT, MIPS_INS_DEXTM, MIPS_INS_DEXTU, MIPS_INS_DI, MIPS_INS_DINS, MIPS_INS_DINSM, MIPS_INS_DINSU, MIPS_INS_DIV, MIPS_INS_DIVU, MIPS_INS_DIV_S, MIPS_INS_DIV_U, MIPS_INS_DLSA, MIPS_INS_DMFC0, MIPS_INS_DMFC1, MIPS_INS_DMFC2, MIPS_INS_DMOD, MIPS_INS_DMODU, MIPS_INS_DMTC0, MIPS_INS_DMTC1, MIPS_INS_DMTC2, MIPS_INS_DMUH, MIPS_INS_DMUHU, MIPS_INS_DMUL, MIPS_INS_DMULT, MIPS_INS_DMULTU, MIPS_INS_DMULU, MIPS_INS_DOTP_S, MIPS_INS_DOTP_U, MIPS_INS_DPADD_S, MIPS_INS_DPADD_U, MIPS_INS_DPAQX_SA, MIPS_INS_DPAQX_S, MIPS_INS_DPAQ_SA, MIPS_INS_DPAQ_S, MIPS_INS_DPAU, MIPS_INS_DPAX, MIPS_INS_DPA, MIPS_INS_DPOP, MIPS_INS_DPSQX_SA, MIPS_INS_DPSQX_S, MIPS_INS_DPSQ_SA, MIPS_INS_DPSQ_S, MIPS_INS_DPSUB_S, MIPS_INS_DPSUB_U, MIPS_INS_DPSU, MIPS_INS_DPSX, MIPS_INS_DPS, MIPS_INS_DROTR, MIPS_INS_DROTR32, MIPS_INS_DROTRV, MIPS_INS_DSBH, MIPS_INS_DSHD, MIPS_INS_DSLL, MIPS_INS_DSLL32, MIPS_INS_DSLLV, MIPS_INS_DSRA, MIPS_INS_DSRA32, MIPS_INS_DSRAV, MIPS_INS_DSRL, MIPS_INS_DSRL32, MIPS_INS_DSRLV, MIPS_INS_DSUB, MIPS_INS_DSUBU, MIPS_INS_EHB, MIPS_INS_EI, MIPS_INS_ERET, MIPS_INS_EXT, MIPS_INS_EXTP, MIPS_INS_EXTPDP, MIPS_INS_EXTPDPV, MIPS_INS_EXTPV, MIPS_INS_EXTRV_RS, MIPS_INS_EXTRV_R, MIPS_INS_EXTRV_S, MIPS_INS_EXTRV, MIPS_INS_EXTR_RS, MIPS_INS_EXTR_R, MIPS_INS_EXTR_S, MIPS_INS_EXTR, MIPS_INS_EXTS, MIPS_INS_EXTS32, MIPS_INS_ABS, MIPS_INS_FADD, MIPS_INS_FCAF, MIPS_INS_FCEQ, MIPS_INS_FCLASS, MIPS_INS_FCLE, MIPS_INS_FCLT, MIPS_INS_FCNE, MIPS_INS_FCOR, MIPS_INS_FCUEQ, MIPS_INS_FCULE, MIPS_INS_FCULT, MIPS_INS_FCUNE, MIPS_INS_FCUN, MIPS_INS_FDIV, MIPS_INS_FEXDO, MIPS_INS_FEXP2, MIPS_INS_FEXUPL, MIPS_INS_FEXUPR, MIPS_INS_FFINT_S, MIPS_INS_FFINT_U, MIPS_INS_FFQL, MIPS_INS_FFQR, MIPS_INS_FILL, MIPS_INS_FLOG2, MIPS_INS_FLOOR, MIPS_INS_FMADD, MIPS_INS_FMAX_A, MIPS_INS_FMAX, MIPS_INS_FMIN_A, MIPS_INS_FMIN, MIPS_INS_MOV, MIPS_INS_FMSUB, MIPS_INS_FMUL, MIPS_INS_MUL, MIPS_INS_NEG, MIPS_INS_FRCP, MIPS_INS_FRINT, MIPS_INS_FRSQRT, MIPS_INS_FSAF, MIPS_INS_FSEQ, MIPS_INS_FSLE, MIPS_INS_FSLT, MIPS_INS_FSNE, MIPS_INS_FSOR, MIPS_INS_FSQRT, MIPS_INS_SQRT, MIPS_INS_FSUB, MIPS_INS_SUB, MIPS_INS_FSUEQ, MIPS_INS_FSULE, MIPS_INS_FSULT, MIPS_INS_FSUNE, MIPS_INS_FSUN, MIPS_INS_FTINT_S, MIPS_INS_FTINT_U, MIPS_INS_FTQ, MIPS_INS_FTRUNC_S, MIPS_INS_FTRUNC_U, MIPS_INS_HADD_S, MIPS_INS_HADD_U, MIPS_INS_HSUB_S, MIPS_INS_HSUB_U, MIPS_INS_ILVEV, MIPS_INS_ILVL, MIPS_INS_ILVOD, MIPS_INS_ILVR, MIPS_INS_INS, MIPS_INS_INSERT, MIPS_INS_INSV, MIPS_INS_INSVE, MIPS_INS_J, MIPS_INS_JAL, MIPS_INS_JALR, MIPS_INS_JALRS, MIPS_INS_JALS, MIPS_INS_JALX, MIPS_INS_JIALC, MIPS_INS_JIC, MIPS_INS_JR, MIPS_INS_JRADDIUSP, MIPS_INS_JRC, MIPS_INS_JALRC, MIPS_INS_LB, MIPS_INS_LBUX, MIPS_INS_LBU, MIPS_INS_LD, MIPS_INS_LDC1, MIPS_INS_LDC2, MIPS_INS_LDC3, MIPS_INS_LDI, MIPS_INS_LDL, MIPS_INS_LDPC, MIPS_INS_LDR, MIPS_INS_LDXC1, MIPS_INS_LH, MIPS_INS_LHX, MIPS_INS_LHU, MIPS_INS_LL, MIPS_INS_LLD, MIPS_INS_LSA, MIPS_INS_LUXC1, MIPS_INS_LUI, MIPS_INS_LW, MIPS_INS_LWC1, MIPS_INS_LWC2, MIPS_INS_LWC3, MIPS_INS_LWL, MIPS_INS_LWPC, MIPS_INS_LWR, MIPS_INS_LWUPC, MIPS_INS_LWU, MIPS_INS_LWX, MIPS_INS_LWXC1, MIPS_INS_LI, MIPS_INS_MADD, MIPS_INS_MADDF, MIPS_INS_MADDR_Q, MIPS_INS_MADDU, MIPS_INS_MADDV, MIPS_INS_MADD_Q, MIPS_INS_MAQ_SA, MIPS_INS_MAQ_S, MIPS_INS_MAXA, MIPS_INS_MAXI_S, MIPS_INS_MAXI_U, MIPS_INS_MAX_A, MIPS_INS_MAX, MIPS_INS_MAX_S, MIPS_INS_MAX_U, MIPS_INS_MFC0, MIPS_INS_MFC1, MIPS_INS_MFC2, MIPS_INS_MFHC1, MIPS_INS_MFHI, MIPS_INS_MFLO, MIPS_INS_MINA, MIPS_INS_MINI_S, MIPS_INS_MINI_U, MIPS_INS_MIN_A, MIPS_INS_MIN, MIPS_INS_MIN_S, MIPS_INS_MIN_U, MIPS_INS_MOD, MIPS_INS_MODSUB, MIPS_INS_MODU, MIPS_INS_MOD_S, MIPS_INS_MOD_U, MIPS_INS_MOVE, MIPS_INS_MOVF, MIPS_INS_MOVN, MIPS_INS_MOVT, MIPS_INS_MOVZ, MIPS_INS_MSUB, MIPS_INS_MSUBF, MIPS_INS_MSUBR_Q, MIPS_INS_MSUBU, MIPS_INS_MSUBV, MIPS_INS_MSUB_Q, MIPS_INS_MTC0, MIPS_INS_MTC1, MIPS_INS_MTC2, MIPS_INS_MTHC1, MIPS_INS_MTHI, MIPS_INS_MTHLIP, MIPS_INS_MTLO, MIPS_INS_MTM0, MIPS_INS_MTM1, MIPS_INS_MTM2, MIPS_INS_MTP0, MIPS_INS_MTP1, MIPS_INS_MTP2, MIPS_INS_MUH, MIPS_INS_MUHU, MIPS_INS_MULEQ_S, MIPS_INS_MULEU_S, MIPS_INS_MULQ_RS, MIPS_INS_MULQ_S, MIPS_INS_MULR_Q, MIPS_INS_MULSAQ_S, MIPS_INS_MULSA, MIPS_INS_MULT, MIPS_INS_MULTU, MIPS_INS_MULU, MIPS_INS_MULV, MIPS_INS_MUL_Q, MIPS_INS_MUL_S, MIPS_INS_NLOC, MIPS_INS_NLZC, MIPS_INS_NMADD, MIPS_INS_NMSUB, MIPS_INS_NOR, MIPS_INS_NORI, MIPS_INS_NOT, MIPS_INS_OR, MIPS_INS_ORI, MIPS_INS_PACKRL, MIPS_INS_PAUSE, MIPS_INS_PCKEV, MIPS_INS_PCKOD, MIPS_INS_PCNT, MIPS_INS_PICK, MIPS_INS_POP, MIPS_INS_PRECEQU, MIPS_INS_PRECEQ, MIPS_INS_PRECEU, MIPS_INS_PRECRQU_S, MIPS_INS_PRECRQ, MIPS_INS_PRECRQ_RS, MIPS_INS_PRECR, MIPS_INS_PRECR_SRA, MIPS_INS_PRECR_SRA_R, MIPS_INS_PREF, MIPS_INS_PREPEND, MIPS_INS_RADDU, MIPS_INS_RDDSP, MIPS_INS_RDHWR, MIPS_INS_REPLV, MIPS_INS_REPL, MIPS_INS_RINT, MIPS_INS_ROTR, MIPS_INS_ROTRV, MIPS_INS_ROUND, MIPS_INS_SAT_S, MIPS_INS_SAT_U, MIPS_INS_SB, MIPS_INS_SC, MIPS_INS_SCD, MIPS_INS_SD, MIPS_INS_SDBBP, MIPS_INS_SDC1, MIPS_INS_SDC2, MIPS_INS_SDC3, MIPS_INS_SDL, MIPS_INS_SDR, MIPS_INS_SDXC1, MIPS_INS_SEB, MIPS_INS_SEH, MIPS_INS_SELEQZ, MIPS_INS_SELNEZ, MIPS_INS_SEL, MIPS_INS_SEQ, MIPS_INS_SEQI, MIPS_INS_SH, MIPS_INS_SHF, MIPS_INS_SHILO, MIPS_INS_SHILOV, MIPS_INS_SHLLV, MIPS_INS_SHLLV_S, MIPS_INS_SHLL, MIPS_INS_SHLL_S, MIPS_INS_SHRAV, MIPS_INS_SHRAV_R, MIPS_INS_SHRA, MIPS_INS_SHRA_R, MIPS_INS_SHRLV, MIPS_INS_SHRL, MIPS_INS_SLDI, MIPS_INS_SLD, MIPS_INS_SLL, MIPS_INS_SLLI, MIPS_INS_SLLV, MIPS_INS_SLT, MIPS_INS_SLTI, MIPS_INS_SLTIU, MIPS_INS_SLTU, MIPS_INS_SNE, MIPS_INS_SNEI, MIPS_INS_SPLATI, MIPS_INS_SPLAT, MIPS_INS_SRA, MIPS_INS_SRAI, MIPS_INS_SRARI, MIPS_INS_SRAR, MIPS_INS_SRAV, MIPS_INS_SRL, MIPS_INS_SRLI, MIPS_INS_SRLRI, MIPS_INS_SRLR, MIPS_INS_SRLV, MIPS_INS_SSNOP, MIPS_INS_ST, MIPS_INS_SUBQH, MIPS_INS_SUBQH_R, MIPS_INS_SUBQ, MIPS_INS_SUBQ_S, MIPS_INS_SUBSUS_U, MIPS_INS_SUBSUU_S, MIPS_INS_SUBS_S, MIPS_INS_SUBS_U, MIPS_INS_SUBUH, MIPS_INS_SUBUH_R, MIPS_INS_SUBU, MIPS_INS_SUBU_S, MIPS_INS_SUBVI, MIPS_INS_SUBV, MIPS_INS_SUXC1, MIPS_INS_SW, MIPS_INS_SWC1, MIPS_INS_SWC2, MIPS_INS_SWC3, MIPS_INS_SWL, MIPS_INS_SWR, MIPS_INS_SWXC1, MIPS_INS_SYNC, MIPS_INS_SYSCALL, MIPS_INS_TEQ, MIPS_INS_TEQI, MIPS_INS_TGE, MIPS_INS_TGEI, MIPS_INS_TGEIU, MIPS_INS_TGEU, MIPS_INS_TLBP, MIPS_INS_TLBR, MIPS_INS_TLBWI, MIPS_INS_TLBWR, MIPS_INS_TLT, MIPS_INS_TLTI, MIPS_INS_TLTIU, MIPS_INS_TLTU, MIPS_INS_TNE, MIPS_INS_TNEI, MIPS_INS_TRUNC, MIPS_INS_V3MULU, MIPS_INS_VMM0, MIPS_INS_VMULU, MIPS_INS_VSHF, MIPS_INS_WAIT, MIPS_INS_WRDSP, MIPS_INS_WSBH, MIPS_INS_XOR, MIPS_INS_XORI, //> some alias instructions MIPS_INS_NOP, MIPS_INS_NEGU, //> special instructions MIPS_INS_JALR_HB, // jump and link with Hazard Barrier MIPS_INS_JR_HB, // jump register with Hazard Barrier MIPS_INS_ENDING, } mips_insn; //> Group of MIPS instructions typedef enum mips_insn_group { MIPS_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) MIPS_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups MIPS_GRP_BITCOUNT = 128, MIPS_GRP_DSP, MIPS_GRP_DSPR2, MIPS_GRP_FPIDX, MIPS_GRP_MSA, MIPS_GRP_MIPS32R2, MIPS_GRP_MIPS64, MIPS_GRP_MIPS64R2, MIPS_GRP_SEINREG, MIPS_GRP_STDENC, MIPS_GRP_SWAP, MIPS_GRP_MICROMIPS, MIPS_GRP_MIPS16MODE, MIPS_GRP_FP64BIT, MIPS_GRP_NONANSFPMATH, MIPS_GRP_NOTFP64BIT, MIPS_GRP_NOTINMICROMIPS, MIPS_GRP_NOTNACL, MIPS_GRP_NOTMIPS32R6, MIPS_GRP_NOTMIPS64R6, MIPS_GRP_CNMIPS, MIPS_GRP_MIPS32, MIPS_GRP_MIPS32R6, MIPS_GRP_MIPS64R6, MIPS_GRP_MIPS2, MIPS_GRP_MIPS3, MIPS_GRP_MIPS3_32, MIPS_GRP_MIPS3_32R2, MIPS_GRP_MIPS4_32, MIPS_GRP_MIPS4_32R2, MIPS_GRP_MIPS5_32R2, MIPS_GRP_GP32BIT, MIPS_GRP_GP64BIT, MIPS_GRP_ENDING, } mips_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/platform.h ================================================ /* Capstone Disassembly Engine */ /* By Axel Souchet & Nguyen Anh Quynh, 2014 */ #ifndef CAPSTONE_PLATFORM_H #define CAPSTONE_PLATFORM_H // handle C99 issue (for pre-2013 VisualStudio) #if !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__) && (defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)) // MSVC // stdbool.h #if (_MSC_VER < 1800) || defined(_KERNEL_MODE) // this system does not have stdbool.h #ifndef __cplusplus typedef unsigned char bool; #define false 0 #define true 1 #endif #else // VisualStudio 2013+ -> C99 is supported #include #endif #else // not MSVC -> C99 is supported #include #endif // handle C99 issue (for pre-2013 VisualStudio) #if defined(CAPSTONE_HAS_OSXKERNEL) || (defined(_MSC_VER) && (_MSC_VER <= 1700 || defined(_KERNEL_MODE))) // this system does not have inttypes.h #if defined(_MSC_VER) && (_MSC_VER < 1600 || defined(_KERNEL_MODE)) // this system does not have stdint.h typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef signed long long int64_t; typedef unsigned long long uint64_t; #define INT8_MIN (-127i8 - 1) #define INT16_MIN (-32767i16 - 1) #define INT32_MIN (-2147483647i32 - 1) #define INT64_MIN (-9223372036854775807i64 - 1) #define INT8_MAX 127i8 #define INT16_MAX 32767i16 #define INT32_MAX 2147483647i32 #define INT64_MAX 9223372036854775807i64 #define UINT8_MAX 0xffui8 #define UINT16_MAX 0xffffui16 #define UINT32_MAX 0xffffffffui32 #define UINT64_MAX 0xffffffffffffffffui64 #endif #define __PRI_8_LENGTH_MODIFIER__ "hh" #define __PRI_64_LENGTH_MODIFIER__ "ll" #define PRId8 __PRI_8_LENGTH_MODIFIER__ "d" #define PRIi8 __PRI_8_LENGTH_MODIFIER__ "i" #define PRIo8 __PRI_8_LENGTH_MODIFIER__ "o" #define PRIu8 __PRI_8_LENGTH_MODIFIER__ "u" #define PRIx8 __PRI_8_LENGTH_MODIFIER__ "x" #define PRIX8 __PRI_8_LENGTH_MODIFIER__ "X" #define PRId16 "hd" #define PRIi16 "hi" #define PRIo16 "ho" #define PRIu16 "hu" #define PRIx16 "hx" #define PRIX16 "hX" #if defined(_MSC_VER) && _MSC_VER <= 1700 #define PRId32 "ld" #define PRIi32 "li" #define PRIo32 "lo" #define PRIu32 "lu" #define PRIx32 "lx" #define PRIX32 "lX" #else // OSX #define PRId32 "d" #define PRIi32 "i" #define PRIo32 "o" #define PRIu32 "u" #define PRIx32 "x" #define PRIX32 "X" #endif #if defined(_MSC_VER) && _MSC_VER <= 1700 // redefine functions from inttypes.h used in cstool #define strtoull _strtoui64 #endif #define PRId64 __PRI_64_LENGTH_MODIFIER__ "d" #define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i" #define PRIo64 __PRI_64_LENGTH_MODIFIER__ "o" #define PRIu64 __PRI_64_LENGTH_MODIFIER__ "u" #define PRIx64 __PRI_64_LENGTH_MODIFIER__ "x" #define PRIX64 __PRI_64_LENGTH_MODIFIER__ "X" #else // this system has inttypes.h by default #include #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/ppc.h ================================================ #ifndef CAPSTONE_PPC_H #define CAPSTONE_PPC_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> PPC branch codes for some branch instructions typedef enum ppc_bc { PPC_BC_INVALID = 0, PPC_BC_LT = (0 << 5) | 12, PPC_BC_LE = (1 << 5) | 4, PPC_BC_EQ = (2 << 5) | 12, PPC_BC_GE = (0 << 5) | 4, PPC_BC_GT = (1 << 5) | 12, PPC_BC_NE = (2 << 5) | 4, PPC_BC_UN = (3 << 5) | 12, PPC_BC_NU = (3 << 5) | 4, // extra conditions PPC_BC_SO = (4 << 5) | 12, // summary overflow PPC_BC_NS = (4 << 5) | 4, // not summary overflow } ppc_bc; //> PPC branch hint for some branch instructions typedef enum ppc_bh { PPC_BH_INVALID = 0, // no hint PPC_BH_PLUS, // PLUS hint PPC_BH_MINUS, // MINUS hint } ppc_bh; //> PPC registers typedef enum ppc_reg { PPC_REG_INVALID = 0, PPC_REG_CARRY, PPC_REG_CC, PPC_REG_CR0, PPC_REG_CR1, PPC_REG_CR2, PPC_REG_CR3, PPC_REG_CR4, PPC_REG_CR5, PPC_REG_CR6, PPC_REG_CR7, PPC_REG_CTR, PPC_REG_F0, PPC_REG_F1, PPC_REG_F2, PPC_REG_F3, PPC_REG_F4, PPC_REG_F5, PPC_REG_F6, PPC_REG_F7, PPC_REG_F8, PPC_REG_F9, PPC_REG_F10, PPC_REG_F11, PPC_REG_F12, PPC_REG_F13, PPC_REG_F14, PPC_REG_F15, PPC_REG_F16, PPC_REG_F17, PPC_REG_F18, PPC_REG_F19, PPC_REG_F20, PPC_REG_F21, PPC_REG_F22, PPC_REG_F23, PPC_REG_F24, PPC_REG_F25, PPC_REG_F26, PPC_REG_F27, PPC_REG_F28, PPC_REG_F29, PPC_REG_F30, PPC_REG_F31, PPC_REG_LR, PPC_REG_R0, PPC_REG_R1, PPC_REG_R2, PPC_REG_R3, PPC_REG_R4, PPC_REG_R5, PPC_REG_R6, PPC_REG_R7, PPC_REG_R8, PPC_REG_R9, PPC_REG_R10, PPC_REG_R11, PPC_REG_R12, PPC_REG_R13, PPC_REG_R14, PPC_REG_R15, PPC_REG_R16, PPC_REG_R17, PPC_REG_R18, PPC_REG_R19, PPC_REG_R20, PPC_REG_R21, PPC_REG_R22, PPC_REG_R23, PPC_REG_R24, PPC_REG_R25, PPC_REG_R26, PPC_REG_R27, PPC_REG_R28, PPC_REG_R29, PPC_REG_R30, PPC_REG_R31, PPC_REG_V0, PPC_REG_V1, PPC_REG_V2, PPC_REG_V3, PPC_REG_V4, PPC_REG_V5, PPC_REG_V6, PPC_REG_V7, PPC_REG_V8, PPC_REG_V9, PPC_REG_V10, PPC_REG_V11, PPC_REG_V12, PPC_REG_V13, PPC_REG_V14, PPC_REG_V15, PPC_REG_V16, PPC_REG_V17, PPC_REG_V18, PPC_REG_V19, PPC_REG_V20, PPC_REG_V21, PPC_REG_V22, PPC_REG_V23, PPC_REG_V24, PPC_REG_V25, PPC_REG_V26, PPC_REG_V27, PPC_REG_V28, PPC_REG_V29, PPC_REG_V30, PPC_REG_V31, PPC_REG_VRSAVE, PPC_REG_VS0, PPC_REG_VS1, PPC_REG_VS2, PPC_REG_VS3, PPC_REG_VS4, PPC_REG_VS5, PPC_REG_VS6, PPC_REG_VS7, PPC_REG_VS8, PPC_REG_VS9, PPC_REG_VS10, PPC_REG_VS11, PPC_REG_VS12, PPC_REG_VS13, PPC_REG_VS14, PPC_REG_VS15, PPC_REG_VS16, PPC_REG_VS17, PPC_REG_VS18, PPC_REG_VS19, PPC_REG_VS20, PPC_REG_VS21, PPC_REG_VS22, PPC_REG_VS23, PPC_REG_VS24, PPC_REG_VS25, PPC_REG_VS26, PPC_REG_VS27, PPC_REG_VS28, PPC_REG_VS29, PPC_REG_VS30, PPC_REG_VS31, PPC_REG_VS32, PPC_REG_VS33, PPC_REG_VS34, PPC_REG_VS35, PPC_REG_VS36, PPC_REG_VS37, PPC_REG_VS38, PPC_REG_VS39, PPC_REG_VS40, PPC_REG_VS41, PPC_REG_VS42, PPC_REG_VS43, PPC_REG_VS44, PPC_REG_VS45, PPC_REG_VS46, PPC_REG_VS47, PPC_REG_VS48, PPC_REG_VS49, PPC_REG_VS50, PPC_REG_VS51, PPC_REG_VS52, PPC_REG_VS53, PPC_REG_VS54, PPC_REG_VS55, PPC_REG_VS56, PPC_REG_VS57, PPC_REG_VS58, PPC_REG_VS59, PPC_REG_VS60, PPC_REG_VS61, PPC_REG_VS62, PPC_REG_VS63, // extra registers for PPCMapping.c PPC_REG_RM, PPC_REG_CTR8, PPC_REG_LR8, PPC_REG_CR1EQ, PPC_REG_ENDING, // <-- mark the end of the list of registers } ppc_reg; //> Operand type for instruction's operands typedef enum ppc_op_type { PPC_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). PPC_OP_REG, // = CS_OP_REG (Register operand). PPC_OP_IMM, // = CS_OP_IMM (Immediate operand). PPC_OP_MEM, // = CS_OP_MEM (Memory operand). PPC_OP_CRX = 64, // Condition Register field } ppc_op_type; // Instruction's operand referring to memory // This is associated with PPC_OP_MEM operand type above typedef struct ppc_op_mem { ppc_reg base; // base register int32_t disp; // displacement/offset value } ppc_op_mem; typedef struct ppc_op_crx { unsigned int scale; ppc_reg reg; ppc_bc cond; } ppc_op_crx; // Instruction operand typedef struct cs_ppc_op { ppc_op_type type; // operand type union { ppc_reg reg; // register value for REG operand int32_t imm; // immediate value for IMM operand ppc_op_mem mem; // base/disp value for MEM operand ppc_op_crx crx; // operand with condition register }; } cs_ppc_op; // Instruction structure typedef struct cs_ppc { // branch code for branch instructions ppc_bc bc; // branch hint for branch instructions ppc_bh bh; // if update_cr0 = True, then this 'dot' insn updates CR0 bool update_cr0; // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_ppc_op operands[8]; // operands for this instruction. } cs_ppc; //> PPC instruction typedef enum ppc_insn { PPC_INS_INVALID = 0, PPC_INS_ADD, PPC_INS_ADDC, PPC_INS_ADDE, PPC_INS_ADDI, PPC_INS_ADDIC, PPC_INS_ADDIS, PPC_INS_ADDME, PPC_INS_ADDZE, PPC_INS_AND, PPC_INS_ANDC, PPC_INS_ANDIS, PPC_INS_ANDI, PPC_INS_B, PPC_INS_BA, PPC_INS_BC, PPC_INS_BCCTR, PPC_INS_BCCTRL, PPC_INS_BCL, PPC_INS_BCLR, PPC_INS_BCLRL, PPC_INS_BCTR, PPC_INS_BCTRL, PPC_INS_BDNZ, PPC_INS_BDNZA, PPC_INS_BDNZL, PPC_INS_BDNZLA, PPC_INS_BDNZLR, PPC_INS_BDNZLRL, PPC_INS_BDZ, PPC_INS_BDZA, PPC_INS_BDZL, PPC_INS_BDZLA, PPC_INS_BDZLR, PPC_INS_BDZLRL, PPC_INS_BL, PPC_INS_BLA, PPC_INS_BLR, PPC_INS_BLRL, PPC_INS_BRINC, PPC_INS_CMPD, PPC_INS_CMPDI, PPC_INS_CMPLD, PPC_INS_CMPLDI, PPC_INS_CMPLW, PPC_INS_CMPLWI, PPC_INS_CMPW, PPC_INS_CMPWI, PPC_INS_CNTLZD, PPC_INS_CNTLZW, PPC_INS_CREQV, PPC_INS_CRXOR, PPC_INS_CRAND, PPC_INS_CRANDC, PPC_INS_CRNAND, PPC_INS_CRNOR, PPC_INS_CROR, PPC_INS_CRORC, PPC_INS_DCBA, PPC_INS_DCBF, PPC_INS_DCBI, PPC_INS_DCBST, PPC_INS_DCBT, PPC_INS_DCBTST, PPC_INS_DCBZ, PPC_INS_DCBZL, PPC_INS_DCCCI, PPC_INS_DIVD, PPC_INS_DIVDU, PPC_INS_DIVW, PPC_INS_DIVWU, PPC_INS_DSS, PPC_INS_DSSALL, PPC_INS_DST, PPC_INS_DSTST, PPC_INS_DSTSTT, PPC_INS_DSTT, PPC_INS_EIEIO, PPC_INS_EQV, PPC_INS_EVABS, PPC_INS_EVADDIW, PPC_INS_EVADDSMIAAW, PPC_INS_EVADDSSIAAW, PPC_INS_EVADDUMIAAW, PPC_INS_EVADDUSIAAW, PPC_INS_EVADDW, PPC_INS_EVAND, PPC_INS_EVANDC, PPC_INS_EVCMPEQ, PPC_INS_EVCMPGTS, PPC_INS_EVCMPGTU, PPC_INS_EVCMPLTS, PPC_INS_EVCMPLTU, PPC_INS_EVCNTLSW, PPC_INS_EVCNTLZW, PPC_INS_EVDIVWS, PPC_INS_EVDIVWU, PPC_INS_EVEQV, PPC_INS_EVEXTSB, PPC_INS_EVEXTSH, PPC_INS_EVLDD, PPC_INS_EVLDDX, PPC_INS_EVLDH, PPC_INS_EVLDHX, PPC_INS_EVLDW, PPC_INS_EVLDWX, PPC_INS_EVLHHESPLAT, PPC_INS_EVLHHESPLATX, PPC_INS_EVLHHOSSPLAT, PPC_INS_EVLHHOSSPLATX, PPC_INS_EVLHHOUSPLAT, PPC_INS_EVLHHOUSPLATX, PPC_INS_EVLWHE, PPC_INS_EVLWHEX, PPC_INS_EVLWHOS, PPC_INS_EVLWHOSX, PPC_INS_EVLWHOU, PPC_INS_EVLWHOUX, PPC_INS_EVLWHSPLAT, PPC_INS_EVLWHSPLATX, PPC_INS_EVLWWSPLAT, PPC_INS_EVLWWSPLATX, PPC_INS_EVMERGEHI, PPC_INS_EVMERGEHILO, PPC_INS_EVMERGELO, PPC_INS_EVMERGELOHI, PPC_INS_EVMHEGSMFAA, PPC_INS_EVMHEGSMFAN, PPC_INS_EVMHEGSMIAA, PPC_INS_EVMHEGSMIAN, PPC_INS_EVMHEGUMIAA, PPC_INS_EVMHEGUMIAN, PPC_INS_EVMHESMF, PPC_INS_EVMHESMFA, PPC_INS_EVMHESMFAAW, PPC_INS_EVMHESMFANW, PPC_INS_EVMHESMI, PPC_INS_EVMHESMIA, PPC_INS_EVMHESMIAAW, PPC_INS_EVMHESMIANW, PPC_INS_EVMHESSF, PPC_INS_EVMHESSFA, PPC_INS_EVMHESSFAAW, PPC_INS_EVMHESSFANW, PPC_INS_EVMHESSIAAW, PPC_INS_EVMHESSIANW, PPC_INS_EVMHEUMI, PPC_INS_EVMHEUMIA, PPC_INS_EVMHEUMIAAW, PPC_INS_EVMHEUMIANW, PPC_INS_EVMHEUSIAAW, PPC_INS_EVMHEUSIANW, PPC_INS_EVMHOGSMFAA, PPC_INS_EVMHOGSMFAN, PPC_INS_EVMHOGSMIAA, PPC_INS_EVMHOGSMIAN, PPC_INS_EVMHOGUMIAA, PPC_INS_EVMHOGUMIAN, PPC_INS_EVMHOSMF, PPC_INS_EVMHOSMFA, PPC_INS_EVMHOSMFAAW, PPC_INS_EVMHOSMFANW, PPC_INS_EVMHOSMI, PPC_INS_EVMHOSMIA, PPC_INS_EVMHOSMIAAW, PPC_INS_EVMHOSMIANW, PPC_INS_EVMHOSSF, PPC_INS_EVMHOSSFA, PPC_INS_EVMHOSSFAAW, PPC_INS_EVMHOSSFANW, PPC_INS_EVMHOSSIAAW, PPC_INS_EVMHOSSIANW, PPC_INS_EVMHOUMI, PPC_INS_EVMHOUMIA, PPC_INS_EVMHOUMIAAW, PPC_INS_EVMHOUMIANW, PPC_INS_EVMHOUSIAAW, PPC_INS_EVMHOUSIANW, PPC_INS_EVMRA, PPC_INS_EVMWHSMF, PPC_INS_EVMWHSMFA, PPC_INS_EVMWHSMI, PPC_INS_EVMWHSMIA, PPC_INS_EVMWHSSF, PPC_INS_EVMWHSSFA, PPC_INS_EVMWHUMI, PPC_INS_EVMWHUMIA, PPC_INS_EVMWLSMIAAW, PPC_INS_EVMWLSMIANW, PPC_INS_EVMWLSSIAAW, PPC_INS_EVMWLSSIANW, PPC_INS_EVMWLUMI, PPC_INS_EVMWLUMIA, PPC_INS_EVMWLUMIAAW, PPC_INS_EVMWLUMIANW, PPC_INS_EVMWLUSIAAW, PPC_INS_EVMWLUSIANW, PPC_INS_EVMWSMF, PPC_INS_EVMWSMFA, PPC_INS_EVMWSMFAA, PPC_INS_EVMWSMFAN, PPC_INS_EVMWSMI, PPC_INS_EVMWSMIA, PPC_INS_EVMWSMIAA, PPC_INS_EVMWSMIAN, PPC_INS_EVMWSSF, PPC_INS_EVMWSSFA, PPC_INS_EVMWSSFAA, PPC_INS_EVMWSSFAN, PPC_INS_EVMWUMI, PPC_INS_EVMWUMIA, PPC_INS_EVMWUMIAA, PPC_INS_EVMWUMIAN, PPC_INS_EVNAND, PPC_INS_EVNEG, PPC_INS_EVNOR, PPC_INS_EVOR, PPC_INS_EVORC, PPC_INS_EVRLW, PPC_INS_EVRLWI, PPC_INS_EVRNDW, PPC_INS_EVSLW, PPC_INS_EVSLWI, PPC_INS_EVSPLATFI, PPC_INS_EVSPLATI, PPC_INS_EVSRWIS, PPC_INS_EVSRWIU, PPC_INS_EVSRWS, PPC_INS_EVSRWU, PPC_INS_EVSTDD, PPC_INS_EVSTDDX, PPC_INS_EVSTDH, PPC_INS_EVSTDHX, PPC_INS_EVSTDW, PPC_INS_EVSTDWX, PPC_INS_EVSTWHE, PPC_INS_EVSTWHEX, PPC_INS_EVSTWHO, PPC_INS_EVSTWHOX, PPC_INS_EVSTWWE, PPC_INS_EVSTWWEX, PPC_INS_EVSTWWO, PPC_INS_EVSTWWOX, PPC_INS_EVSUBFSMIAAW, PPC_INS_EVSUBFSSIAAW, PPC_INS_EVSUBFUMIAAW, PPC_INS_EVSUBFUSIAAW, PPC_INS_EVSUBFW, PPC_INS_EVSUBIFW, PPC_INS_EVXOR, PPC_INS_EXTSB, PPC_INS_EXTSH, PPC_INS_EXTSW, PPC_INS_FABS, PPC_INS_FADD, PPC_INS_FADDS, PPC_INS_FCFID, PPC_INS_FCFIDS, PPC_INS_FCFIDU, PPC_INS_FCFIDUS, PPC_INS_FCMPU, PPC_INS_FCPSGN, PPC_INS_FCTID, PPC_INS_FCTIDUZ, PPC_INS_FCTIDZ, PPC_INS_FCTIW, PPC_INS_FCTIWUZ, PPC_INS_FCTIWZ, PPC_INS_FDIV, PPC_INS_FDIVS, PPC_INS_FMADD, PPC_INS_FMADDS, PPC_INS_FMR, PPC_INS_FMSUB, PPC_INS_FMSUBS, PPC_INS_FMUL, PPC_INS_FMULS, PPC_INS_FNABS, PPC_INS_FNEG, PPC_INS_FNMADD, PPC_INS_FNMADDS, PPC_INS_FNMSUB, PPC_INS_FNMSUBS, PPC_INS_FRE, PPC_INS_FRES, PPC_INS_FRIM, PPC_INS_FRIN, PPC_INS_FRIP, PPC_INS_FRIZ, PPC_INS_FRSP, PPC_INS_FRSQRTE, PPC_INS_FRSQRTES, PPC_INS_FSEL, PPC_INS_FSQRT, PPC_INS_FSQRTS, PPC_INS_FSUB, PPC_INS_FSUBS, PPC_INS_ICBI, PPC_INS_ICCCI, PPC_INS_ISEL, PPC_INS_ISYNC, PPC_INS_LA, PPC_INS_LBZ, PPC_INS_LBZU, PPC_INS_LBZUX, PPC_INS_LBZX, PPC_INS_LD, PPC_INS_LDARX, PPC_INS_LDBRX, PPC_INS_LDU, PPC_INS_LDUX, PPC_INS_LDX, PPC_INS_LFD, PPC_INS_LFDU, PPC_INS_LFDUX, PPC_INS_LFDX, PPC_INS_LFIWAX, PPC_INS_LFIWZX, PPC_INS_LFS, PPC_INS_LFSU, PPC_INS_LFSUX, PPC_INS_LFSX, PPC_INS_LHA, PPC_INS_LHAU, PPC_INS_LHAUX, PPC_INS_LHAX, PPC_INS_LHBRX, PPC_INS_LHZ, PPC_INS_LHZU, PPC_INS_LHZUX, PPC_INS_LHZX, PPC_INS_LI, PPC_INS_LIS, PPC_INS_LMW, PPC_INS_LSWI, PPC_INS_LVEBX, PPC_INS_LVEHX, PPC_INS_LVEWX, PPC_INS_LVSL, PPC_INS_LVSR, PPC_INS_LVX, PPC_INS_LVXL, PPC_INS_LWA, PPC_INS_LWARX, PPC_INS_LWAUX, PPC_INS_LWAX, PPC_INS_LWBRX, PPC_INS_LWZ, PPC_INS_LWZU, PPC_INS_LWZUX, PPC_INS_LWZX, PPC_INS_LXSDX, PPC_INS_LXVD2X, PPC_INS_LXVDSX, PPC_INS_LXVW4X, PPC_INS_MBAR, PPC_INS_MCRF, PPC_INS_MFCR, PPC_INS_MFCTR, PPC_INS_MFDCR, PPC_INS_MFFS, PPC_INS_MFLR, PPC_INS_MFMSR, PPC_INS_MFOCRF, PPC_INS_MFSPR, PPC_INS_MFSR, PPC_INS_MFSRIN, PPC_INS_MFTB, PPC_INS_MFVSCR, PPC_INS_MSYNC, PPC_INS_MTCRF, PPC_INS_MTCTR, PPC_INS_MTDCR, PPC_INS_MTFSB0, PPC_INS_MTFSB1, PPC_INS_MTFSF, PPC_INS_MTLR, PPC_INS_MTMSR, PPC_INS_MTMSRD, PPC_INS_MTOCRF, PPC_INS_MTSPR, PPC_INS_MTSR, PPC_INS_MTSRIN, PPC_INS_MTVSCR, PPC_INS_MULHD, PPC_INS_MULHDU, PPC_INS_MULHW, PPC_INS_MULHWU, PPC_INS_MULLD, PPC_INS_MULLI, PPC_INS_MULLW, PPC_INS_NAND, PPC_INS_NEG, PPC_INS_NOP, PPC_INS_ORI, PPC_INS_NOR, PPC_INS_OR, PPC_INS_ORC, PPC_INS_ORIS, PPC_INS_POPCNTD, PPC_INS_POPCNTW, PPC_INS_RFCI, PPC_INS_RFDI, PPC_INS_RFI, PPC_INS_RFID, PPC_INS_RFMCI, PPC_INS_RLDCL, PPC_INS_RLDCR, PPC_INS_RLDIC, PPC_INS_RLDICL, PPC_INS_RLDICR, PPC_INS_RLDIMI, PPC_INS_RLWIMI, PPC_INS_RLWINM, PPC_INS_RLWNM, PPC_INS_SC, PPC_INS_SLBIA, PPC_INS_SLBIE, PPC_INS_SLBMFEE, PPC_INS_SLBMTE, PPC_INS_SLD, PPC_INS_SLW, PPC_INS_SRAD, PPC_INS_SRADI, PPC_INS_SRAW, PPC_INS_SRAWI, PPC_INS_SRD, PPC_INS_SRW, PPC_INS_STB, PPC_INS_STBU, PPC_INS_STBUX, PPC_INS_STBX, PPC_INS_STD, PPC_INS_STDBRX, PPC_INS_STDCX, PPC_INS_STDU, PPC_INS_STDUX, PPC_INS_STDX, PPC_INS_STFD, PPC_INS_STFDU, PPC_INS_STFDUX, PPC_INS_STFDX, PPC_INS_STFIWX, PPC_INS_STFS, PPC_INS_STFSU, PPC_INS_STFSUX, PPC_INS_STFSX, PPC_INS_STH, PPC_INS_STHBRX, PPC_INS_STHU, PPC_INS_STHUX, PPC_INS_STHX, PPC_INS_STMW, PPC_INS_STSWI, PPC_INS_STVEBX, PPC_INS_STVEHX, PPC_INS_STVEWX, PPC_INS_STVX, PPC_INS_STVXL, PPC_INS_STW, PPC_INS_STWBRX, PPC_INS_STWCX, PPC_INS_STWU, PPC_INS_STWUX, PPC_INS_STWX, PPC_INS_STXSDX, PPC_INS_STXVD2X, PPC_INS_STXVW4X, PPC_INS_SUBF, PPC_INS_SUBFC, PPC_INS_SUBFE, PPC_INS_SUBFIC, PPC_INS_SUBFME, PPC_INS_SUBFZE, PPC_INS_SYNC, PPC_INS_TD, PPC_INS_TDI, PPC_INS_TLBIA, PPC_INS_TLBIE, PPC_INS_TLBIEL, PPC_INS_TLBIVAX, PPC_INS_TLBLD, PPC_INS_TLBLI, PPC_INS_TLBRE, PPC_INS_TLBSX, PPC_INS_TLBSYNC, PPC_INS_TLBWE, PPC_INS_TRAP, PPC_INS_TW, PPC_INS_TWI, PPC_INS_VADDCUW, PPC_INS_VADDFP, PPC_INS_VADDSBS, PPC_INS_VADDSHS, PPC_INS_VADDSWS, PPC_INS_VADDUBM, PPC_INS_VADDUBS, PPC_INS_VADDUHM, PPC_INS_VADDUHS, PPC_INS_VADDUWM, PPC_INS_VADDUWS, PPC_INS_VAND, PPC_INS_VANDC, PPC_INS_VAVGSB, PPC_INS_VAVGSH, PPC_INS_VAVGSW, PPC_INS_VAVGUB, PPC_INS_VAVGUH, PPC_INS_VAVGUW, PPC_INS_VCFSX, PPC_INS_VCFUX, PPC_INS_VCMPBFP, PPC_INS_VCMPEQFP, PPC_INS_VCMPEQUB, PPC_INS_VCMPEQUH, PPC_INS_VCMPEQUW, PPC_INS_VCMPGEFP, PPC_INS_VCMPGTFP, PPC_INS_VCMPGTSB, PPC_INS_VCMPGTSH, PPC_INS_VCMPGTSW, PPC_INS_VCMPGTUB, PPC_INS_VCMPGTUH, PPC_INS_VCMPGTUW, PPC_INS_VCTSXS, PPC_INS_VCTUXS, PPC_INS_VEXPTEFP, PPC_INS_VLOGEFP, PPC_INS_VMADDFP, PPC_INS_VMAXFP, PPC_INS_VMAXSB, PPC_INS_VMAXSH, PPC_INS_VMAXSW, PPC_INS_VMAXUB, PPC_INS_VMAXUH, PPC_INS_VMAXUW, PPC_INS_VMHADDSHS, PPC_INS_VMHRADDSHS, PPC_INS_VMINFP, PPC_INS_VMINSB, PPC_INS_VMINSH, PPC_INS_VMINSW, PPC_INS_VMINUB, PPC_INS_VMINUH, PPC_INS_VMINUW, PPC_INS_VMLADDUHM, PPC_INS_VMRGHB, PPC_INS_VMRGHH, PPC_INS_VMRGHW, PPC_INS_VMRGLB, PPC_INS_VMRGLH, PPC_INS_VMRGLW, PPC_INS_VMSUMMBM, PPC_INS_VMSUMSHM, PPC_INS_VMSUMSHS, PPC_INS_VMSUMUBM, PPC_INS_VMSUMUHM, PPC_INS_VMSUMUHS, PPC_INS_VMULESB, PPC_INS_VMULESH, PPC_INS_VMULEUB, PPC_INS_VMULEUH, PPC_INS_VMULOSB, PPC_INS_VMULOSH, PPC_INS_VMULOUB, PPC_INS_VMULOUH, PPC_INS_VNMSUBFP, PPC_INS_VNOR, PPC_INS_VOR, PPC_INS_VPERM, PPC_INS_VPKPX, PPC_INS_VPKSHSS, PPC_INS_VPKSHUS, PPC_INS_VPKSWSS, PPC_INS_VPKSWUS, PPC_INS_VPKUHUM, PPC_INS_VPKUHUS, PPC_INS_VPKUWUM, PPC_INS_VPKUWUS, PPC_INS_VREFP, PPC_INS_VRFIM, PPC_INS_VRFIN, PPC_INS_VRFIP, PPC_INS_VRFIZ, PPC_INS_VRLB, PPC_INS_VRLH, PPC_INS_VRLW, PPC_INS_VRSQRTEFP, PPC_INS_VSEL, PPC_INS_VSL, PPC_INS_VSLB, PPC_INS_VSLDOI, PPC_INS_VSLH, PPC_INS_VSLO, PPC_INS_VSLW, PPC_INS_VSPLTB, PPC_INS_VSPLTH, PPC_INS_VSPLTISB, PPC_INS_VSPLTISH, PPC_INS_VSPLTISW, PPC_INS_VSPLTW, PPC_INS_VSR, PPC_INS_VSRAB, PPC_INS_VSRAH, PPC_INS_VSRAW, PPC_INS_VSRB, PPC_INS_VSRH, PPC_INS_VSRO, PPC_INS_VSRW, PPC_INS_VSUBCUW, PPC_INS_VSUBFP, PPC_INS_VSUBSBS, PPC_INS_VSUBSHS, PPC_INS_VSUBSWS, PPC_INS_VSUBUBM, PPC_INS_VSUBUBS, PPC_INS_VSUBUHM, PPC_INS_VSUBUHS, PPC_INS_VSUBUWM, PPC_INS_VSUBUWS, PPC_INS_VSUM2SWS, PPC_INS_VSUM4SBS, PPC_INS_VSUM4SHS, PPC_INS_VSUM4UBS, PPC_INS_VSUMSWS, PPC_INS_VUPKHPX, PPC_INS_VUPKHSB, PPC_INS_VUPKHSH, PPC_INS_VUPKLPX, PPC_INS_VUPKLSB, PPC_INS_VUPKLSH, PPC_INS_VXOR, PPC_INS_WAIT, PPC_INS_WRTEE, PPC_INS_WRTEEI, PPC_INS_XOR, PPC_INS_XORI, PPC_INS_XORIS, PPC_INS_XSABSDP, PPC_INS_XSADDDP, PPC_INS_XSCMPODP, PPC_INS_XSCMPUDP, PPC_INS_XSCPSGNDP, PPC_INS_XSCVDPSP, PPC_INS_XSCVDPSXDS, PPC_INS_XSCVDPSXWS, PPC_INS_XSCVDPUXDS, PPC_INS_XSCVDPUXWS, PPC_INS_XSCVSPDP, PPC_INS_XSCVSXDDP, PPC_INS_XSCVUXDDP, PPC_INS_XSDIVDP, PPC_INS_XSMADDADP, PPC_INS_XSMADDMDP, PPC_INS_XSMAXDP, PPC_INS_XSMINDP, PPC_INS_XSMSUBADP, PPC_INS_XSMSUBMDP, PPC_INS_XSMULDP, PPC_INS_XSNABSDP, PPC_INS_XSNEGDP, PPC_INS_XSNMADDADP, PPC_INS_XSNMADDMDP, PPC_INS_XSNMSUBADP, PPC_INS_XSNMSUBMDP, PPC_INS_XSRDPI, PPC_INS_XSRDPIC, PPC_INS_XSRDPIM, PPC_INS_XSRDPIP, PPC_INS_XSRDPIZ, PPC_INS_XSREDP, PPC_INS_XSRSQRTEDP, PPC_INS_XSSQRTDP, PPC_INS_XSSUBDP, PPC_INS_XSTDIVDP, PPC_INS_XSTSQRTDP, PPC_INS_XVABSDP, PPC_INS_XVABSSP, PPC_INS_XVADDDP, PPC_INS_XVADDSP, PPC_INS_XVCMPEQDP, PPC_INS_XVCMPEQSP, PPC_INS_XVCMPGEDP, PPC_INS_XVCMPGESP, PPC_INS_XVCMPGTDP, PPC_INS_XVCMPGTSP, PPC_INS_XVCPSGNDP, PPC_INS_XVCPSGNSP, PPC_INS_XVCVDPSP, PPC_INS_XVCVDPSXDS, PPC_INS_XVCVDPSXWS, PPC_INS_XVCVDPUXDS, PPC_INS_XVCVDPUXWS, PPC_INS_XVCVSPDP, PPC_INS_XVCVSPSXDS, PPC_INS_XVCVSPSXWS, PPC_INS_XVCVSPUXDS, PPC_INS_XVCVSPUXWS, PPC_INS_XVCVSXDDP, PPC_INS_XVCVSXDSP, PPC_INS_XVCVSXWDP, PPC_INS_XVCVSXWSP, PPC_INS_XVCVUXDDP, PPC_INS_XVCVUXDSP, PPC_INS_XVCVUXWDP, PPC_INS_XVCVUXWSP, PPC_INS_XVDIVDP, PPC_INS_XVDIVSP, PPC_INS_XVMADDADP, PPC_INS_XVMADDASP, PPC_INS_XVMADDMDP, PPC_INS_XVMADDMSP, PPC_INS_XVMAXDP, PPC_INS_XVMAXSP, PPC_INS_XVMINDP, PPC_INS_XVMINSP, PPC_INS_XVMSUBADP, PPC_INS_XVMSUBASP, PPC_INS_XVMSUBMDP, PPC_INS_XVMSUBMSP, PPC_INS_XVMULDP, PPC_INS_XVMULSP, PPC_INS_XVNABSDP, PPC_INS_XVNABSSP, PPC_INS_XVNEGDP, PPC_INS_XVNEGSP, PPC_INS_XVNMADDADP, PPC_INS_XVNMADDASP, PPC_INS_XVNMADDMDP, PPC_INS_XVNMADDMSP, PPC_INS_XVNMSUBADP, PPC_INS_XVNMSUBASP, PPC_INS_XVNMSUBMDP, PPC_INS_XVNMSUBMSP, PPC_INS_XVRDPI, PPC_INS_XVRDPIC, PPC_INS_XVRDPIM, PPC_INS_XVRDPIP, PPC_INS_XVRDPIZ, PPC_INS_XVREDP, PPC_INS_XVRESP, PPC_INS_XVRSPI, PPC_INS_XVRSPIC, PPC_INS_XVRSPIM, PPC_INS_XVRSPIP, PPC_INS_XVRSPIZ, PPC_INS_XVRSQRTEDP, PPC_INS_XVRSQRTESP, PPC_INS_XVSQRTDP, PPC_INS_XVSQRTSP, PPC_INS_XVSUBDP, PPC_INS_XVSUBSP, PPC_INS_XVTDIVDP, PPC_INS_XVTDIVSP, PPC_INS_XVTSQRTDP, PPC_INS_XVTSQRTSP, PPC_INS_XXLAND, PPC_INS_XXLANDC, PPC_INS_XXLNOR, PPC_INS_XXLOR, PPC_INS_XXLXOR, PPC_INS_XXMRGHW, PPC_INS_XXMRGLW, PPC_INS_XXPERMDI, PPC_INS_XXSEL, PPC_INS_XXSLDWI, PPC_INS_XXSPLTW, PPC_INS_BCA, PPC_INS_BCLA, // extra & alias instructions PPC_INS_SLWI, PPC_INS_SRWI, PPC_INS_SLDI, PPC_INS_BTA, PPC_INS_CRSET, PPC_INS_CRNOT, PPC_INS_CRMOVE, PPC_INS_CRCLR, PPC_INS_MFBR0, PPC_INS_MFBR1, PPC_INS_MFBR2, PPC_INS_MFBR3, PPC_INS_MFBR4, PPC_INS_MFBR5, PPC_INS_MFBR6, PPC_INS_MFBR7, PPC_INS_MFXER, PPC_INS_MFRTCU, PPC_INS_MFRTCL, PPC_INS_MFDSCR, PPC_INS_MFDSISR, PPC_INS_MFDAR, PPC_INS_MFSRR2, PPC_INS_MFSRR3, PPC_INS_MFCFAR, PPC_INS_MFAMR, PPC_INS_MFPID, PPC_INS_MFTBLO, PPC_INS_MFTBHI, PPC_INS_MFDBATU, PPC_INS_MFDBATL, PPC_INS_MFIBATU, PPC_INS_MFIBATL, PPC_INS_MFDCCR, PPC_INS_MFICCR, PPC_INS_MFDEAR, PPC_INS_MFESR, PPC_INS_MFSPEFSCR, PPC_INS_MFTCR, PPC_INS_MFASR, PPC_INS_MFPVR, PPC_INS_MFTBU, PPC_INS_MTCR, PPC_INS_MTBR0, PPC_INS_MTBR1, PPC_INS_MTBR2, PPC_INS_MTBR3, PPC_INS_MTBR4, PPC_INS_MTBR5, PPC_INS_MTBR6, PPC_INS_MTBR7, PPC_INS_MTXER, PPC_INS_MTDSCR, PPC_INS_MTDSISR, PPC_INS_MTDAR, PPC_INS_MTSRR2, PPC_INS_MTSRR3, PPC_INS_MTCFAR, PPC_INS_MTAMR, PPC_INS_MTPID, PPC_INS_MTTBL, PPC_INS_MTTBU, PPC_INS_MTTBLO, PPC_INS_MTTBHI, PPC_INS_MTDBATU, PPC_INS_MTDBATL, PPC_INS_MTIBATU, PPC_INS_MTIBATL, PPC_INS_MTDCCR, PPC_INS_MTICCR, PPC_INS_MTDEAR, PPC_INS_MTESR, PPC_INS_MTSPEFSCR, PPC_INS_MTTCR, PPC_INS_NOT, PPC_INS_MR, PPC_INS_ROTLD, PPC_INS_ROTLDI, PPC_INS_CLRLDI, PPC_INS_ROTLWI, PPC_INS_CLRLWI, PPC_INS_ROTLW, PPC_INS_SUB, PPC_INS_SUBC, PPC_INS_LWSYNC, PPC_INS_PTESYNC, PPC_INS_TDLT, PPC_INS_TDEQ, PPC_INS_TDGT, PPC_INS_TDNE, PPC_INS_TDLLT, PPC_INS_TDLGT, PPC_INS_TDU, PPC_INS_TDLTI, PPC_INS_TDEQI, PPC_INS_TDGTI, PPC_INS_TDNEI, PPC_INS_TDLLTI, PPC_INS_TDLGTI, PPC_INS_TDUI, PPC_INS_TLBREHI, PPC_INS_TLBRELO, PPC_INS_TLBWEHI, PPC_INS_TLBWELO, PPC_INS_TWLT, PPC_INS_TWEQ, PPC_INS_TWGT, PPC_INS_TWNE, PPC_INS_TWLLT, PPC_INS_TWLGT, PPC_INS_TWU, PPC_INS_TWLTI, PPC_INS_TWEQI, PPC_INS_TWGTI, PPC_INS_TWNEI, PPC_INS_TWLLTI, PPC_INS_TWLGTI, PPC_INS_TWUI, PPC_INS_WAITRSV, PPC_INS_WAITIMPL, PPC_INS_XNOP, PPC_INS_XVMOVDP, PPC_INS_XVMOVSP, PPC_INS_XXSPLTD, PPC_INS_XXMRGHD, PPC_INS_XXMRGLD, PPC_INS_XXSWAPD, PPC_INS_BT, PPC_INS_BF, PPC_INS_BDNZT, PPC_INS_BDNZF, PPC_INS_BDZF, PPC_INS_BDZT, PPC_INS_BFA, PPC_INS_BDNZTA, PPC_INS_BDNZFA, PPC_INS_BDZTA, PPC_INS_BDZFA, PPC_INS_BTCTR, PPC_INS_BFCTR, PPC_INS_BTCTRL, PPC_INS_BFCTRL, PPC_INS_BTL, PPC_INS_BFL, PPC_INS_BDNZTL, PPC_INS_BDNZFL, PPC_INS_BDZTL, PPC_INS_BDZFL, PPC_INS_BTLA, PPC_INS_BFLA, PPC_INS_BDNZTLA, PPC_INS_BDNZFLA, PPC_INS_BDZTLA, PPC_INS_BDZFLA, PPC_INS_BTLR, PPC_INS_BFLR, PPC_INS_BDNZTLR, PPC_INS_BDZTLR, PPC_INS_BDZFLR, PPC_INS_BTLRL, PPC_INS_BFLRL, PPC_INS_BDNZTLRL, PPC_INS_BDNZFLRL, PPC_INS_BDZTLRL, PPC_INS_BDZFLRL, PPC_INS_ENDING, // <-- mark the end of the list of instructions } ppc_insn; //> Group of PPC instructions typedef enum ppc_insn_group { PPC_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) PPC_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups PPC_GRP_ALTIVEC = 128, PPC_GRP_MODE32, PPC_GRP_MODE64, PPC_GRP_BOOKE, PPC_GRP_NOTBOOKE, PPC_GRP_SPE, PPC_GRP_VSX, PPC_GRP_E500, PPC_GRP_PPC4XX, PPC_GRP_PPC6XX, PPC_GRP_ENDING, // <-- mark the end of the list of groups } ppc_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/sparc.h ================================================ #ifndef CAPSTONE_SPARC_H #define CAPSTONE_SPARC_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" // GCC SPARC toolchain has a default macro called "sparc" which breaks // compilation #undef sparc #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> Enums corresponding to Sparc condition codes, both icc's and fcc's. typedef enum sparc_cc { SPARC_CC_INVALID = 0, // invalid CC (default) //> Integer condition codes SPARC_CC_ICC_A = 8+256, // Always SPARC_CC_ICC_N = 0+256, // Never SPARC_CC_ICC_NE = 9+256, // Not Equal SPARC_CC_ICC_E = 1+256, // Equal SPARC_CC_ICC_G = 10+256, // Greater SPARC_CC_ICC_LE = 2+256, // Less or Equal SPARC_CC_ICC_GE = 11+256, // Greater or Equal SPARC_CC_ICC_L = 3+256, // Less SPARC_CC_ICC_GU = 12+256, // Greater Unsigned SPARC_CC_ICC_LEU = 4+256, // Less or Equal Unsigned SPARC_CC_ICC_CC = 13+256, // Carry Clear/Great or Equal Unsigned SPARC_CC_ICC_CS = 5+256, // Carry Set/Less Unsigned SPARC_CC_ICC_POS = 14+256, // Positive SPARC_CC_ICC_NEG = 6+256, // Negative SPARC_CC_ICC_VC = 15+256, // Overflow Clear SPARC_CC_ICC_VS = 7+256, // Overflow Set //> Floating condition codes SPARC_CC_FCC_A = 8+16+256, // Always SPARC_CC_FCC_N = 0+16+256, // Never SPARC_CC_FCC_U = 7+16+256, // Unordered SPARC_CC_FCC_G = 6+16+256, // Greater SPARC_CC_FCC_UG = 5+16+256, // Unordered or Greater SPARC_CC_FCC_L = 4+16+256, // Less SPARC_CC_FCC_UL = 3+16+256, // Unordered or Less SPARC_CC_FCC_LG = 2+16+256, // Less or Greater SPARC_CC_FCC_NE = 1+16+256, // Not Equal SPARC_CC_FCC_E = 9+16+256, // Equal SPARC_CC_FCC_UE = 10+16+256, // Unordered or Equal SPARC_CC_FCC_GE = 11+16+256, // Greater or Equal SPARC_CC_FCC_UGE = 12+16+256, // Unordered or Greater or Equal SPARC_CC_FCC_LE = 13+16+256, // Less or Equal SPARC_CC_FCC_ULE = 14+16+256, // Unordered or Less or Equal SPARC_CC_FCC_O = 15+16+256, // Ordered } sparc_cc; //> Branch hint typedef enum sparc_hint { SPARC_HINT_INVALID = 0, // no hint SPARC_HINT_A = 1 << 0, // annul delay slot instruction SPARC_HINT_PT = 1 << 1, // branch taken SPARC_HINT_PN = 1 << 2, // branch NOT taken } sparc_hint; //> Operand type for instruction's operands typedef enum sparc_op_type { SPARC_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). SPARC_OP_REG, // = CS_OP_REG (Register operand). SPARC_OP_IMM, // = CS_OP_IMM (Immediate operand). SPARC_OP_MEM, // = CS_OP_MEM (Memory operand). } sparc_op_type; // Instruction's operand referring to memory // This is associated with SPARC_OP_MEM operand type above typedef struct sparc_op_mem { uint8_t base; // base register uint8_t index; // index register int32_t disp; // displacement/offset value } sparc_op_mem; // Instruction operand typedef struct cs_sparc_op { sparc_op_type type; // operand type union { unsigned int reg; // register value for REG operand int32_t imm; // immediate value for IMM operand sparc_op_mem mem; // base/disp value for MEM operand }; } cs_sparc_op; // Instruction structure typedef struct cs_sparc { sparc_cc cc; // code condition for this insn sparc_hint hint; // branch hint: encoding as bitwise OR of sparc_hint. // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_sparc_op operands[4]; // operands for this instruction. } cs_sparc; //> SPARC registers typedef enum sparc_reg { SPARC_REG_INVALID = 0, SPARC_REG_F0, SPARC_REG_F1, SPARC_REG_F2, SPARC_REG_F3, SPARC_REG_F4, SPARC_REG_F5, SPARC_REG_F6, SPARC_REG_F7, SPARC_REG_F8, SPARC_REG_F9, SPARC_REG_F10, SPARC_REG_F11, SPARC_REG_F12, SPARC_REG_F13, SPARC_REG_F14, SPARC_REG_F15, SPARC_REG_F16, SPARC_REG_F17, SPARC_REG_F18, SPARC_REG_F19, SPARC_REG_F20, SPARC_REG_F21, SPARC_REG_F22, SPARC_REG_F23, SPARC_REG_F24, SPARC_REG_F25, SPARC_REG_F26, SPARC_REG_F27, SPARC_REG_F28, SPARC_REG_F29, SPARC_REG_F30, SPARC_REG_F31, SPARC_REG_F32, SPARC_REG_F34, SPARC_REG_F36, SPARC_REG_F38, SPARC_REG_F40, SPARC_REG_F42, SPARC_REG_F44, SPARC_REG_F46, SPARC_REG_F48, SPARC_REG_F50, SPARC_REG_F52, SPARC_REG_F54, SPARC_REG_F56, SPARC_REG_F58, SPARC_REG_F60, SPARC_REG_F62, SPARC_REG_FCC0, // Floating condition codes SPARC_REG_FCC1, SPARC_REG_FCC2, SPARC_REG_FCC3, SPARC_REG_FP, SPARC_REG_G0, SPARC_REG_G1, SPARC_REG_G2, SPARC_REG_G3, SPARC_REG_G4, SPARC_REG_G5, SPARC_REG_G6, SPARC_REG_G7, SPARC_REG_I0, SPARC_REG_I1, SPARC_REG_I2, SPARC_REG_I3, SPARC_REG_I4, SPARC_REG_I5, SPARC_REG_I7, SPARC_REG_ICC, // Integer condition codes SPARC_REG_L0, SPARC_REG_L1, SPARC_REG_L2, SPARC_REG_L3, SPARC_REG_L4, SPARC_REG_L5, SPARC_REG_L6, SPARC_REG_L7, SPARC_REG_O0, SPARC_REG_O1, SPARC_REG_O2, SPARC_REG_O3, SPARC_REG_O4, SPARC_REG_O5, SPARC_REG_O7, SPARC_REG_SP, SPARC_REG_Y, // special register SPARC_REG_XCC, SPARC_REG_ENDING, // <-- mark the end of the list of registers // extras SPARC_REG_O6 = SPARC_REG_SP, SPARC_REG_I6 = SPARC_REG_FP, } sparc_reg; //> SPARC instruction typedef enum sparc_insn { SPARC_INS_INVALID = 0, SPARC_INS_ADDCC, SPARC_INS_ADDX, SPARC_INS_ADDXCC, SPARC_INS_ADDXC, SPARC_INS_ADDXCCC, SPARC_INS_ADD, SPARC_INS_ALIGNADDR, SPARC_INS_ALIGNADDRL, SPARC_INS_ANDCC, SPARC_INS_ANDNCC, SPARC_INS_ANDN, SPARC_INS_AND, SPARC_INS_ARRAY16, SPARC_INS_ARRAY32, SPARC_INS_ARRAY8, SPARC_INS_B, SPARC_INS_JMP, SPARC_INS_BMASK, SPARC_INS_FB, SPARC_INS_BRGEZ, SPARC_INS_BRGZ, SPARC_INS_BRLEZ, SPARC_INS_BRLZ, SPARC_INS_BRNZ, SPARC_INS_BRZ, SPARC_INS_BSHUFFLE, SPARC_INS_CALL, SPARC_INS_CASX, SPARC_INS_CAS, SPARC_INS_CMASK16, SPARC_INS_CMASK32, SPARC_INS_CMASK8, SPARC_INS_CMP, SPARC_INS_EDGE16, SPARC_INS_EDGE16L, SPARC_INS_EDGE16LN, SPARC_INS_EDGE16N, SPARC_INS_EDGE32, SPARC_INS_EDGE32L, SPARC_INS_EDGE32LN, SPARC_INS_EDGE32N, SPARC_INS_EDGE8, SPARC_INS_EDGE8L, SPARC_INS_EDGE8LN, SPARC_INS_EDGE8N, SPARC_INS_FABSD, SPARC_INS_FABSQ, SPARC_INS_FABSS, SPARC_INS_FADDD, SPARC_INS_FADDQ, SPARC_INS_FADDS, SPARC_INS_FALIGNDATA, SPARC_INS_FAND, SPARC_INS_FANDNOT1, SPARC_INS_FANDNOT1S, SPARC_INS_FANDNOT2, SPARC_INS_FANDNOT2S, SPARC_INS_FANDS, SPARC_INS_FCHKSM16, SPARC_INS_FCMPD, SPARC_INS_FCMPEQ16, SPARC_INS_FCMPEQ32, SPARC_INS_FCMPGT16, SPARC_INS_FCMPGT32, SPARC_INS_FCMPLE16, SPARC_INS_FCMPLE32, SPARC_INS_FCMPNE16, SPARC_INS_FCMPNE32, SPARC_INS_FCMPQ, SPARC_INS_FCMPS, SPARC_INS_FDIVD, SPARC_INS_FDIVQ, SPARC_INS_FDIVS, SPARC_INS_FDMULQ, SPARC_INS_FDTOI, SPARC_INS_FDTOQ, SPARC_INS_FDTOS, SPARC_INS_FDTOX, SPARC_INS_FEXPAND, SPARC_INS_FHADDD, SPARC_INS_FHADDS, SPARC_INS_FHSUBD, SPARC_INS_FHSUBS, SPARC_INS_FITOD, SPARC_INS_FITOQ, SPARC_INS_FITOS, SPARC_INS_FLCMPD, SPARC_INS_FLCMPS, SPARC_INS_FLUSHW, SPARC_INS_FMEAN16, SPARC_INS_FMOVD, SPARC_INS_FMOVQ, SPARC_INS_FMOVRDGEZ, SPARC_INS_FMOVRQGEZ, SPARC_INS_FMOVRSGEZ, SPARC_INS_FMOVRDGZ, SPARC_INS_FMOVRQGZ, SPARC_INS_FMOVRSGZ, SPARC_INS_FMOVRDLEZ, SPARC_INS_FMOVRQLEZ, SPARC_INS_FMOVRSLEZ, SPARC_INS_FMOVRDLZ, SPARC_INS_FMOVRQLZ, SPARC_INS_FMOVRSLZ, SPARC_INS_FMOVRDNZ, SPARC_INS_FMOVRQNZ, SPARC_INS_FMOVRSNZ, SPARC_INS_FMOVRDZ, SPARC_INS_FMOVRQZ, SPARC_INS_FMOVRSZ, SPARC_INS_FMOVS, SPARC_INS_FMUL8SUX16, SPARC_INS_FMUL8ULX16, SPARC_INS_FMUL8X16, SPARC_INS_FMUL8X16AL, SPARC_INS_FMUL8X16AU, SPARC_INS_FMULD, SPARC_INS_FMULD8SUX16, SPARC_INS_FMULD8ULX16, SPARC_INS_FMULQ, SPARC_INS_FMULS, SPARC_INS_FNADDD, SPARC_INS_FNADDS, SPARC_INS_FNAND, SPARC_INS_FNANDS, SPARC_INS_FNEGD, SPARC_INS_FNEGQ, SPARC_INS_FNEGS, SPARC_INS_FNHADDD, SPARC_INS_FNHADDS, SPARC_INS_FNOR, SPARC_INS_FNORS, SPARC_INS_FNOT1, SPARC_INS_FNOT1S, SPARC_INS_FNOT2, SPARC_INS_FNOT2S, SPARC_INS_FONE, SPARC_INS_FONES, SPARC_INS_FOR, SPARC_INS_FORNOT1, SPARC_INS_FORNOT1S, SPARC_INS_FORNOT2, SPARC_INS_FORNOT2S, SPARC_INS_FORS, SPARC_INS_FPACK16, SPARC_INS_FPACK32, SPARC_INS_FPACKFIX, SPARC_INS_FPADD16, SPARC_INS_FPADD16S, SPARC_INS_FPADD32, SPARC_INS_FPADD32S, SPARC_INS_FPADD64, SPARC_INS_FPMERGE, SPARC_INS_FPSUB16, SPARC_INS_FPSUB16S, SPARC_INS_FPSUB32, SPARC_INS_FPSUB32S, SPARC_INS_FQTOD, SPARC_INS_FQTOI, SPARC_INS_FQTOS, SPARC_INS_FQTOX, SPARC_INS_FSLAS16, SPARC_INS_FSLAS32, SPARC_INS_FSLL16, SPARC_INS_FSLL32, SPARC_INS_FSMULD, SPARC_INS_FSQRTD, SPARC_INS_FSQRTQ, SPARC_INS_FSQRTS, SPARC_INS_FSRA16, SPARC_INS_FSRA32, SPARC_INS_FSRC1, SPARC_INS_FSRC1S, SPARC_INS_FSRC2, SPARC_INS_FSRC2S, SPARC_INS_FSRL16, SPARC_INS_FSRL32, SPARC_INS_FSTOD, SPARC_INS_FSTOI, SPARC_INS_FSTOQ, SPARC_INS_FSTOX, SPARC_INS_FSUBD, SPARC_INS_FSUBQ, SPARC_INS_FSUBS, SPARC_INS_FXNOR, SPARC_INS_FXNORS, SPARC_INS_FXOR, SPARC_INS_FXORS, SPARC_INS_FXTOD, SPARC_INS_FXTOQ, SPARC_INS_FXTOS, SPARC_INS_FZERO, SPARC_INS_FZEROS, SPARC_INS_JMPL, SPARC_INS_LDD, SPARC_INS_LD, SPARC_INS_LDQ, SPARC_INS_LDSB, SPARC_INS_LDSH, SPARC_INS_LDSW, SPARC_INS_LDUB, SPARC_INS_LDUH, SPARC_INS_LDX, SPARC_INS_LZCNT, SPARC_INS_MEMBAR, SPARC_INS_MOVDTOX, SPARC_INS_MOV, SPARC_INS_MOVRGEZ, SPARC_INS_MOVRGZ, SPARC_INS_MOVRLEZ, SPARC_INS_MOVRLZ, SPARC_INS_MOVRNZ, SPARC_INS_MOVRZ, SPARC_INS_MOVSTOSW, SPARC_INS_MOVSTOUW, SPARC_INS_MULX, SPARC_INS_NOP, SPARC_INS_ORCC, SPARC_INS_ORNCC, SPARC_INS_ORN, SPARC_INS_OR, SPARC_INS_PDIST, SPARC_INS_PDISTN, SPARC_INS_POPC, SPARC_INS_RD, SPARC_INS_RESTORE, SPARC_INS_RETT, SPARC_INS_SAVE, SPARC_INS_SDIVCC, SPARC_INS_SDIVX, SPARC_INS_SDIV, SPARC_INS_SETHI, SPARC_INS_SHUTDOWN, SPARC_INS_SIAM, SPARC_INS_SLLX, SPARC_INS_SLL, SPARC_INS_SMULCC, SPARC_INS_SMUL, SPARC_INS_SRAX, SPARC_INS_SRA, SPARC_INS_SRLX, SPARC_INS_SRL, SPARC_INS_STBAR, SPARC_INS_STB, SPARC_INS_STD, SPARC_INS_ST, SPARC_INS_STH, SPARC_INS_STQ, SPARC_INS_STX, SPARC_INS_SUBCC, SPARC_INS_SUBX, SPARC_INS_SUBXCC, SPARC_INS_SUB, SPARC_INS_SWAP, SPARC_INS_TADDCCTV, SPARC_INS_TADDCC, SPARC_INS_T, SPARC_INS_TSUBCCTV, SPARC_INS_TSUBCC, SPARC_INS_UDIVCC, SPARC_INS_UDIVX, SPARC_INS_UDIV, SPARC_INS_UMULCC, SPARC_INS_UMULXHI, SPARC_INS_UMUL, SPARC_INS_UNIMP, SPARC_INS_FCMPED, SPARC_INS_FCMPEQ, SPARC_INS_FCMPES, SPARC_INS_WR, SPARC_INS_XMULX, SPARC_INS_XMULXHI, SPARC_INS_XNORCC, SPARC_INS_XNOR, SPARC_INS_XORCC, SPARC_INS_XOR, // alias instructions SPARC_INS_RET, SPARC_INS_RETL, SPARC_INS_ENDING, // <-- mark the end of the list of instructions } sparc_insn; //> Group of SPARC instructions typedef enum sparc_insn_group { SPARC_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) SPARC_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups SPARC_GRP_HARDQUAD = 128, SPARC_GRP_V9, SPARC_GRP_VIS, SPARC_GRP_VIS2, SPARC_GRP_VIS3, SPARC_GRP_32BIT, SPARC_GRP_64BIT, SPARC_GRP_ENDING, // <-- mark the end of the list of groups } sparc_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/systemz.h ================================================ #ifndef CAPSTONE_SYSTEMZ_H #define CAPSTONE_SYSTEMZ_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> Enums corresponding to SystemZ condition codes typedef enum sysz_cc { SYSZ_CC_INVALID = 0, // invalid CC (default) SYSZ_CC_O, SYSZ_CC_H, SYSZ_CC_NLE, SYSZ_CC_L, SYSZ_CC_NHE, SYSZ_CC_LH, SYSZ_CC_NE, SYSZ_CC_E, SYSZ_CC_NLH, SYSZ_CC_HE, SYSZ_CC_NL, SYSZ_CC_LE, SYSZ_CC_NH, SYSZ_CC_NO, } sysz_cc; //> Operand type for instruction's operands typedef enum sysz_op_type { SYSZ_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). SYSZ_OP_REG, // = CS_OP_REG (Register operand). SYSZ_OP_IMM, // = CS_OP_IMM (Immediate operand). SYSZ_OP_MEM, // = CS_OP_MEM (Memory operand). SYSZ_OP_ACREG = 64, // Access register operand. } sysz_op_type; // Instruction's operand referring to memory // This is associated with SYSZ_OP_MEM operand type above typedef struct sysz_op_mem { uint8_t base; // base register uint8_t index; // index register uint64_t length; // BDLAddr operand int64_t disp; // displacement/offset value } sysz_op_mem; // Instruction operand typedef struct cs_sysz_op { sysz_op_type type; // operand type union { unsigned int reg; // register value for REG operand int64_t imm; // immediate value for IMM operand sysz_op_mem mem; // base/disp value for MEM operand }; } cs_sysz_op; // Instruction structure typedef struct cs_sysz { sysz_cc cc; // Code condition // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_sysz_op operands[6]; // operands for this instruction. } cs_sysz; //> SystemZ registers typedef enum sysz_reg { SYSZ_REG_INVALID = 0, SYSZ_REG_0, SYSZ_REG_1, SYSZ_REG_2, SYSZ_REG_3, SYSZ_REG_4, SYSZ_REG_5, SYSZ_REG_6, SYSZ_REG_7, SYSZ_REG_8, SYSZ_REG_9, SYSZ_REG_10, SYSZ_REG_11, SYSZ_REG_12, SYSZ_REG_13, SYSZ_REG_14, SYSZ_REG_15, SYSZ_REG_CC, SYSZ_REG_F0, SYSZ_REG_F1, SYSZ_REG_F2, SYSZ_REG_F3, SYSZ_REG_F4, SYSZ_REG_F5, SYSZ_REG_F6, SYSZ_REG_F7, SYSZ_REG_F8, SYSZ_REG_F9, SYSZ_REG_F10, SYSZ_REG_F11, SYSZ_REG_F12, SYSZ_REG_F13, SYSZ_REG_F14, SYSZ_REG_F15, SYSZ_REG_R0L, SYSZ_REG_ENDING, } sysz_reg; //> SystemZ instruction typedef enum sysz_insn { SYSZ_INS_INVALID = 0, SYSZ_INS_A, SYSZ_INS_ADB, SYSZ_INS_ADBR, SYSZ_INS_AEB, SYSZ_INS_AEBR, SYSZ_INS_AFI, SYSZ_INS_AG, SYSZ_INS_AGF, SYSZ_INS_AGFI, SYSZ_INS_AGFR, SYSZ_INS_AGHI, SYSZ_INS_AGHIK, SYSZ_INS_AGR, SYSZ_INS_AGRK, SYSZ_INS_AGSI, SYSZ_INS_AH, SYSZ_INS_AHI, SYSZ_INS_AHIK, SYSZ_INS_AHY, SYSZ_INS_AIH, SYSZ_INS_AL, SYSZ_INS_ALC, SYSZ_INS_ALCG, SYSZ_INS_ALCGR, SYSZ_INS_ALCR, SYSZ_INS_ALFI, SYSZ_INS_ALG, SYSZ_INS_ALGF, SYSZ_INS_ALGFI, SYSZ_INS_ALGFR, SYSZ_INS_ALGHSIK, SYSZ_INS_ALGR, SYSZ_INS_ALGRK, SYSZ_INS_ALHSIK, SYSZ_INS_ALR, SYSZ_INS_ALRK, SYSZ_INS_ALY, SYSZ_INS_AR, SYSZ_INS_ARK, SYSZ_INS_ASI, SYSZ_INS_AXBR, SYSZ_INS_AY, SYSZ_INS_BCR, SYSZ_INS_BRC, SYSZ_INS_BRCL, SYSZ_INS_CGIJ, SYSZ_INS_CGRJ, SYSZ_INS_CIJ, SYSZ_INS_CLGIJ, SYSZ_INS_CLGRJ, SYSZ_INS_CLIJ, SYSZ_INS_CLRJ, SYSZ_INS_CRJ, SYSZ_INS_BER, SYSZ_INS_JE, SYSZ_INS_JGE, SYSZ_INS_LOCE, SYSZ_INS_LOCGE, SYSZ_INS_LOCGRE, SYSZ_INS_LOCRE, SYSZ_INS_STOCE, SYSZ_INS_STOCGE, SYSZ_INS_BHR, SYSZ_INS_BHER, SYSZ_INS_JHE, SYSZ_INS_JGHE, SYSZ_INS_LOCHE, SYSZ_INS_LOCGHE, SYSZ_INS_LOCGRHE, SYSZ_INS_LOCRHE, SYSZ_INS_STOCHE, SYSZ_INS_STOCGHE, SYSZ_INS_JH, SYSZ_INS_JGH, SYSZ_INS_LOCH, SYSZ_INS_LOCGH, SYSZ_INS_LOCGRH, SYSZ_INS_LOCRH, SYSZ_INS_STOCH, SYSZ_INS_STOCGH, SYSZ_INS_CGIJNLH, SYSZ_INS_CGRJNLH, SYSZ_INS_CIJNLH, SYSZ_INS_CLGIJNLH, SYSZ_INS_CLGRJNLH, SYSZ_INS_CLIJNLH, SYSZ_INS_CLRJNLH, SYSZ_INS_CRJNLH, SYSZ_INS_CGIJE, SYSZ_INS_CGRJE, SYSZ_INS_CIJE, SYSZ_INS_CLGIJE, SYSZ_INS_CLGRJE, SYSZ_INS_CLIJE, SYSZ_INS_CLRJE, SYSZ_INS_CRJE, SYSZ_INS_CGIJNLE, SYSZ_INS_CGRJNLE, SYSZ_INS_CIJNLE, SYSZ_INS_CLGIJNLE, SYSZ_INS_CLGRJNLE, SYSZ_INS_CLIJNLE, SYSZ_INS_CLRJNLE, SYSZ_INS_CRJNLE, SYSZ_INS_CGIJH, SYSZ_INS_CGRJH, SYSZ_INS_CIJH, SYSZ_INS_CLGIJH, SYSZ_INS_CLGRJH, SYSZ_INS_CLIJH, SYSZ_INS_CLRJH, SYSZ_INS_CRJH, SYSZ_INS_CGIJNL, SYSZ_INS_CGRJNL, SYSZ_INS_CIJNL, SYSZ_INS_CLGIJNL, SYSZ_INS_CLGRJNL, SYSZ_INS_CLIJNL, SYSZ_INS_CLRJNL, SYSZ_INS_CRJNL, SYSZ_INS_CGIJHE, SYSZ_INS_CGRJHE, SYSZ_INS_CIJHE, SYSZ_INS_CLGIJHE, SYSZ_INS_CLGRJHE, SYSZ_INS_CLIJHE, SYSZ_INS_CLRJHE, SYSZ_INS_CRJHE, SYSZ_INS_CGIJNHE, SYSZ_INS_CGRJNHE, SYSZ_INS_CIJNHE, SYSZ_INS_CLGIJNHE, SYSZ_INS_CLGRJNHE, SYSZ_INS_CLIJNHE, SYSZ_INS_CLRJNHE, SYSZ_INS_CRJNHE, SYSZ_INS_CGIJL, SYSZ_INS_CGRJL, SYSZ_INS_CIJL, SYSZ_INS_CLGIJL, SYSZ_INS_CLGRJL, SYSZ_INS_CLIJL, SYSZ_INS_CLRJL, SYSZ_INS_CRJL, SYSZ_INS_CGIJNH, SYSZ_INS_CGRJNH, SYSZ_INS_CIJNH, SYSZ_INS_CLGIJNH, SYSZ_INS_CLGRJNH, SYSZ_INS_CLIJNH, SYSZ_INS_CLRJNH, SYSZ_INS_CRJNH, SYSZ_INS_CGIJLE, SYSZ_INS_CGRJLE, SYSZ_INS_CIJLE, SYSZ_INS_CLGIJLE, SYSZ_INS_CLGRJLE, SYSZ_INS_CLIJLE, SYSZ_INS_CLRJLE, SYSZ_INS_CRJLE, SYSZ_INS_CGIJNE, SYSZ_INS_CGRJNE, SYSZ_INS_CIJNE, SYSZ_INS_CLGIJNE, SYSZ_INS_CLGRJNE, SYSZ_INS_CLIJNE, SYSZ_INS_CLRJNE, SYSZ_INS_CRJNE, SYSZ_INS_CGIJLH, SYSZ_INS_CGRJLH, SYSZ_INS_CIJLH, SYSZ_INS_CLGIJLH, SYSZ_INS_CLGRJLH, SYSZ_INS_CLIJLH, SYSZ_INS_CLRJLH, SYSZ_INS_CRJLH, SYSZ_INS_BLR, SYSZ_INS_BLER, SYSZ_INS_JLE, SYSZ_INS_JGLE, SYSZ_INS_LOCLE, SYSZ_INS_LOCGLE, SYSZ_INS_LOCGRLE, SYSZ_INS_LOCRLE, SYSZ_INS_STOCLE, SYSZ_INS_STOCGLE, SYSZ_INS_BLHR, SYSZ_INS_JLH, SYSZ_INS_JGLH, SYSZ_INS_LOCLH, SYSZ_INS_LOCGLH, SYSZ_INS_LOCGRLH, SYSZ_INS_LOCRLH, SYSZ_INS_STOCLH, SYSZ_INS_STOCGLH, SYSZ_INS_JL, SYSZ_INS_JGL, SYSZ_INS_LOCL, SYSZ_INS_LOCGL, SYSZ_INS_LOCGRL, SYSZ_INS_LOCRL, SYSZ_INS_LOC, SYSZ_INS_LOCG, SYSZ_INS_LOCGR, SYSZ_INS_LOCR, SYSZ_INS_STOCL, SYSZ_INS_STOCGL, SYSZ_INS_BNER, SYSZ_INS_JNE, SYSZ_INS_JGNE, SYSZ_INS_LOCNE, SYSZ_INS_LOCGNE, SYSZ_INS_LOCGRNE, SYSZ_INS_LOCRNE, SYSZ_INS_STOCNE, SYSZ_INS_STOCGNE, SYSZ_INS_BNHR, SYSZ_INS_BNHER, SYSZ_INS_JNHE, SYSZ_INS_JGNHE, SYSZ_INS_LOCNHE, SYSZ_INS_LOCGNHE, SYSZ_INS_LOCGRNHE, SYSZ_INS_LOCRNHE, SYSZ_INS_STOCNHE, SYSZ_INS_STOCGNHE, SYSZ_INS_JNH, SYSZ_INS_JGNH, SYSZ_INS_LOCNH, SYSZ_INS_LOCGNH, SYSZ_INS_LOCGRNH, SYSZ_INS_LOCRNH, SYSZ_INS_STOCNH, SYSZ_INS_STOCGNH, SYSZ_INS_BNLR, SYSZ_INS_BNLER, SYSZ_INS_JNLE, SYSZ_INS_JGNLE, SYSZ_INS_LOCNLE, SYSZ_INS_LOCGNLE, SYSZ_INS_LOCGRNLE, SYSZ_INS_LOCRNLE, SYSZ_INS_STOCNLE, SYSZ_INS_STOCGNLE, SYSZ_INS_BNLHR, SYSZ_INS_JNLH, SYSZ_INS_JGNLH, SYSZ_INS_LOCNLH, SYSZ_INS_LOCGNLH, SYSZ_INS_LOCGRNLH, SYSZ_INS_LOCRNLH, SYSZ_INS_STOCNLH, SYSZ_INS_STOCGNLH, SYSZ_INS_JNL, SYSZ_INS_JGNL, SYSZ_INS_LOCNL, SYSZ_INS_LOCGNL, SYSZ_INS_LOCGRNL, SYSZ_INS_LOCRNL, SYSZ_INS_STOCNL, SYSZ_INS_STOCGNL, SYSZ_INS_BNOR, SYSZ_INS_JNO, SYSZ_INS_JGNO, SYSZ_INS_LOCNO, SYSZ_INS_LOCGNO, SYSZ_INS_LOCGRNO, SYSZ_INS_LOCRNO, SYSZ_INS_STOCNO, SYSZ_INS_STOCGNO, SYSZ_INS_BOR, SYSZ_INS_JO, SYSZ_INS_JGO, SYSZ_INS_LOCO, SYSZ_INS_LOCGO, SYSZ_INS_LOCGRO, SYSZ_INS_LOCRO, SYSZ_INS_STOCO, SYSZ_INS_STOCGO, SYSZ_INS_STOC, SYSZ_INS_STOCG, SYSZ_INS_BASR, SYSZ_INS_BR, SYSZ_INS_BRAS, SYSZ_INS_BRASL, SYSZ_INS_J, SYSZ_INS_JG, SYSZ_INS_BRCT, SYSZ_INS_BRCTG, SYSZ_INS_C, SYSZ_INS_CDB, SYSZ_INS_CDBR, SYSZ_INS_CDFBR, SYSZ_INS_CDGBR, SYSZ_INS_CDLFBR, SYSZ_INS_CDLGBR, SYSZ_INS_CEB, SYSZ_INS_CEBR, SYSZ_INS_CEFBR, SYSZ_INS_CEGBR, SYSZ_INS_CELFBR, SYSZ_INS_CELGBR, SYSZ_INS_CFDBR, SYSZ_INS_CFEBR, SYSZ_INS_CFI, SYSZ_INS_CFXBR, SYSZ_INS_CG, SYSZ_INS_CGDBR, SYSZ_INS_CGEBR, SYSZ_INS_CGF, SYSZ_INS_CGFI, SYSZ_INS_CGFR, SYSZ_INS_CGFRL, SYSZ_INS_CGH, SYSZ_INS_CGHI, SYSZ_INS_CGHRL, SYSZ_INS_CGHSI, SYSZ_INS_CGR, SYSZ_INS_CGRL, SYSZ_INS_CGXBR, SYSZ_INS_CH, SYSZ_INS_CHF, SYSZ_INS_CHHSI, SYSZ_INS_CHI, SYSZ_INS_CHRL, SYSZ_INS_CHSI, SYSZ_INS_CHY, SYSZ_INS_CIH, SYSZ_INS_CL, SYSZ_INS_CLC, SYSZ_INS_CLFDBR, SYSZ_INS_CLFEBR, SYSZ_INS_CLFHSI, SYSZ_INS_CLFI, SYSZ_INS_CLFXBR, SYSZ_INS_CLG, SYSZ_INS_CLGDBR, SYSZ_INS_CLGEBR, SYSZ_INS_CLGF, SYSZ_INS_CLGFI, SYSZ_INS_CLGFR, SYSZ_INS_CLGFRL, SYSZ_INS_CLGHRL, SYSZ_INS_CLGHSI, SYSZ_INS_CLGR, SYSZ_INS_CLGRL, SYSZ_INS_CLGXBR, SYSZ_INS_CLHF, SYSZ_INS_CLHHSI, SYSZ_INS_CLHRL, SYSZ_INS_CLI, SYSZ_INS_CLIH, SYSZ_INS_CLIY, SYSZ_INS_CLR, SYSZ_INS_CLRL, SYSZ_INS_CLST, SYSZ_INS_CLY, SYSZ_INS_CPSDR, SYSZ_INS_CR, SYSZ_INS_CRL, SYSZ_INS_CS, SYSZ_INS_CSG, SYSZ_INS_CSY, SYSZ_INS_CXBR, SYSZ_INS_CXFBR, SYSZ_INS_CXGBR, SYSZ_INS_CXLFBR, SYSZ_INS_CXLGBR, SYSZ_INS_CY, SYSZ_INS_DDB, SYSZ_INS_DDBR, SYSZ_INS_DEB, SYSZ_INS_DEBR, SYSZ_INS_DL, SYSZ_INS_DLG, SYSZ_INS_DLGR, SYSZ_INS_DLR, SYSZ_INS_DSG, SYSZ_INS_DSGF, SYSZ_INS_DSGFR, SYSZ_INS_DSGR, SYSZ_INS_DXBR, SYSZ_INS_EAR, SYSZ_INS_FIDBR, SYSZ_INS_FIDBRA, SYSZ_INS_FIEBR, SYSZ_INS_FIEBRA, SYSZ_INS_FIXBR, SYSZ_INS_FIXBRA, SYSZ_INS_FLOGR, SYSZ_INS_IC, SYSZ_INS_ICY, SYSZ_INS_IIHF, SYSZ_INS_IIHH, SYSZ_INS_IIHL, SYSZ_INS_IILF, SYSZ_INS_IILH, SYSZ_INS_IILL, SYSZ_INS_IPM, SYSZ_INS_L, SYSZ_INS_LA, SYSZ_INS_LAA, SYSZ_INS_LAAG, SYSZ_INS_LAAL, SYSZ_INS_LAALG, SYSZ_INS_LAN, SYSZ_INS_LANG, SYSZ_INS_LAO, SYSZ_INS_LAOG, SYSZ_INS_LARL, SYSZ_INS_LAX, SYSZ_INS_LAXG, SYSZ_INS_LAY, SYSZ_INS_LB, SYSZ_INS_LBH, SYSZ_INS_LBR, SYSZ_INS_LCDBR, SYSZ_INS_LCEBR, SYSZ_INS_LCGFR, SYSZ_INS_LCGR, SYSZ_INS_LCR, SYSZ_INS_LCXBR, SYSZ_INS_LD, SYSZ_INS_LDEB, SYSZ_INS_LDEBR, SYSZ_INS_LDGR, SYSZ_INS_LDR, SYSZ_INS_LDXBR, SYSZ_INS_LDXBRA, SYSZ_INS_LDY, SYSZ_INS_LE, SYSZ_INS_LEDBR, SYSZ_INS_LEDBRA, SYSZ_INS_LER, SYSZ_INS_LEXBR, SYSZ_INS_LEXBRA, SYSZ_INS_LEY, SYSZ_INS_LFH, SYSZ_INS_LG, SYSZ_INS_LGB, SYSZ_INS_LGBR, SYSZ_INS_LGDR, SYSZ_INS_LGF, SYSZ_INS_LGFI, SYSZ_INS_LGFR, SYSZ_INS_LGFRL, SYSZ_INS_LGH, SYSZ_INS_LGHI, SYSZ_INS_LGHR, SYSZ_INS_LGHRL, SYSZ_INS_LGR, SYSZ_INS_LGRL, SYSZ_INS_LH, SYSZ_INS_LHH, SYSZ_INS_LHI, SYSZ_INS_LHR, SYSZ_INS_LHRL, SYSZ_INS_LHY, SYSZ_INS_LLC, SYSZ_INS_LLCH, SYSZ_INS_LLCR, SYSZ_INS_LLGC, SYSZ_INS_LLGCR, SYSZ_INS_LLGF, SYSZ_INS_LLGFR, SYSZ_INS_LLGFRL, SYSZ_INS_LLGH, SYSZ_INS_LLGHR, SYSZ_INS_LLGHRL, SYSZ_INS_LLH, SYSZ_INS_LLHH, SYSZ_INS_LLHR, SYSZ_INS_LLHRL, SYSZ_INS_LLIHF, SYSZ_INS_LLIHH, SYSZ_INS_LLIHL, SYSZ_INS_LLILF, SYSZ_INS_LLILH, SYSZ_INS_LLILL, SYSZ_INS_LMG, SYSZ_INS_LNDBR, SYSZ_INS_LNEBR, SYSZ_INS_LNGFR, SYSZ_INS_LNGR, SYSZ_INS_LNR, SYSZ_INS_LNXBR, SYSZ_INS_LPDBR, SYSZ_INS_LPEBR, SYSZ_INS_LPGFR, SYSZ_INS_LPGR, SYSZ_INS_LPR, SYSZ_INS_LPXBR, SYSZ_INS_LR, SYSZ_INS_LRL, SYSZ_INS_LRV, SYSZ_INS_LRVG, SYSZ_INS_LRVGR, SYSZ_INS_LRVR, SYSZ_INS_LT, SYSZ_INS_LTDBR, SYSZ_INS_LTEBR, SYSZ_INS_LTG, SYSZ_INS_LTGF, SYSZ_INS_LTGFR, SYSZ_INS_LTGR, SYSZ_INS_LTR, SYSZ_INS_LTXBR, SYSZ_INS_LXDB, SYSZ_INS_LXDBR, SYSZ_INS_LXEB, SYSZ_INS_LXEBR, SYSZ_INS_LXR, SYSZ_INS_LY, SYSZ_INS_LZDR, SYSZ_INS_LZER, SYSZ_INS_LZXR, SYSZ_INS_MADB, SYSZ_INS_MADBR, SYSZ_INS_MAEB, SYSZ_INS_MAEBR, SYSZ_INS_MDB, SYSZ_INS_MDBR, SYSZ_INS_MDEB, SYSZ_INS_MDEBR, SYSZ_INS_MEEB, SYSZ_INS_MEEBR, SYSZ_INS_MGHI, SYSZ_INS_MH, SYSZ_INS_MHI, SYSZ_INS_MHY, SYSZ_INS_MLG, SYSZ_INS_MLGR, SYSZ_INS_MS, SYSZ_INS_MSDB, SYSZ_INS_MSDBR, SYSZ_INS_MSEB, SYSZ_INS_MSEBR, SYSZ_INS_MSFI, SYSZ_INS_MSG, SYSZ_INS_MSGF, SYSZ_INS_MSGFI, SYSZ_INS_MSGFR, SYSZ_INS_MSGR, SYSZ_INS_MSR, SYSZ_INS_MSY, SYSZ_INS_MVC, SYSZ_INS_MVGHI, SYSZ_INS_MVHHI, SYSZ_INS_MVHI, SYSZ_INS_MVI, SYSZ_INS_MVIY, SYSZ_INS_MVST, SYSZ_INS_MXBR, SYSZ_INS_MXDB, SYSZ_INS_MXDBR, SYSZ_INS_N, SYSZ_INS_NC, SYSZ_INS_NG, SYSZ_INS_NGR, SYSZ_INS_NGRK, SYSZ_INS_NI, SYSZ_INS_NIHF, SYSZ_INS_NIHH, SYSZ_INS_NIHL, SYSZ_INS_NILF, SYSZ_INS_NILH, SYSZ_INS_NILL, SYSZ_INS_NIY, SYSZ_INS_NR, SYSZ_INS_NRK, SYSZ_INS_NY, SYSZ_INS_O, SYSZ_INS_OC, SYSZ_INS_OG, SYSZ_INS_OGR, SYSZ_INS_OGRK, SYSZ_INS_OI, SYSZ_INS_OIHF, SYSZ_INS_OIHH, SYSZ_INS_OIHL, SYSZ_INS_OILF, SYSZ_INS_OILH, SYSZ_INS_OILL, SYSZ_INS_OIY, SYSZ_INS_OR, SYSZ_INS_ORK, SYSZ_INS_OY, SYSZ_INS_PFD, SYSZ_INS_PFDRL, SYSZ_INS_RISBG, SYSZ_INS_RISBHG, SYSZ_INS_RISBLG, SYSZ_INS_RLL, SYSZ_INS_RLLG, SYSZ_INS_RNSBG, SYSZ_INS_ROSBG, SYSZ_INS_RXSBG, SYSZ_INS_S, SYSZ_INS_SDB, SYSZ_INS_SDBR, SYSZ_INS_SEB, SYSZ_INS_SEBR, SYSZ_INS_SG, SYSZ_INS_SGF, SYSZ_INS_SGFR, SYSZ_INS_SGR, SYSZ_INS_SGRK, SYSZ_INS_SH, SYSZ_INS_SHY, SYSZ_INS_SL, SYSZ_INS_SLB, SYSZ_INS_SLBG, SYSZ_INS_SLBR, SYSZ_INS_SLFI, SYSZ_INS_SLG, SYSZ_INS_SLBGR, SYSZ_INS_SLGF, SYSZ_INS_SLGFI, SYSZ_INS_SLGFR, SYSZ_INS_SLGR, SYSZ_INS_SLGRK, SYSZ_INS_SLL, SYSZ_INS_SLLG, SYSZ_INS_SLLK, SYSZ_INS_SLR, SYSZ_INS_SLRK, SYSZ_INS_SLY, SYSZ_INS_SQDB, SYSZ_INS_SQDBR, SYSZ_INS_SQEB, SYSZ_INS_SQEBR, SYSZ_INS_SQXBR, SYSZ_INS_SR, SYSZ_INS_SRA, SYSZ_INS_SRAG, SYSZ_INS_SRAK, SYSZ_INS_SRK, SYSZ_INS_SRL, SYSZ_INS_SRLG, SYSZ_INS_SRLK, SYSZ_INS_SRST, SYSZ_INS_ST, SYSZ_INS_STC, SYSZ_INS_STCH, SYSZ_INS_STCY, SYSZ_INS_STD, SYSZ_INS_STDY, SYSZ_INS_STE, SYSZ_INS_STEY, SYSZ_INS_STFH, SYSZ_INS_STG, SYSZ_INS_STGRL, SYSZ_INS_STH, SYSZ_INS_STHH, SYSZ_INS_STHRL, SYSZ_INS_STHY, SYSZ_INS_STMG, SYSZ_INS_STRL, SYSZ_INS_STRV, SYSZ_INS_STRVG, SYSZ_INS_STY, SYSZ_INS_SXBR, SYSZ_INS_SY, SYSZ_INS_TM, SYSZ_INS_TMHH, SYSZ_INS_TMHL, SYSZ_INS_TMLH, SYSZ_INS_TMLL, SYSZ_INS_TMY, SYSZ_INS_X, SYSZ_INS_XC, SYSZ_INS_XG, SYSZ_INS_XGR, SYSZ_INS_XGRK, SYSZ_INS_XI, SYSZ_INS_XIHF, SYSZ_INS_XILF, SYSZ_INS_XIY, SYSZ_INS_XR, SYSZ_INS_XRK, SYSZ_INS_XY, SYSZ_INS_ENDING, // <-- mark the end of the list of instructions } sysz_insn; //> Group of SystemZ instructions typedef enum sysz_insn_group { SYSZ_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) SYSZ_GRP_JUMP, // = CS_GRP_JUMP //> Architecture-specific groups SYSZ_GRP_DISTINCTOPS = 128, SYSZ_GRP_FPEXTENSION, SYSZ_GRP_HIGHWORD, SYSZ_GRP_INTERLOCKEDACCESS1, SYSZ_GRP_LOADSTOREONCOND, SYSZ_GRP_ENDING, // <-- mark the end of the list of groups } sysz_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/x86.h ================================================ #ifndef CAPSTONE_X86_H #define CAPSTONE_X86_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif // Calculate relative address for X86-64, given cs_insn structure #define X86_REL_ADDR(insn) (((insn).detail->x86.operands[0].type == X86_OP_IMM) \ ? (uint64_t)((insn).detail->x86.operands[0].imm) \ : (((insn).address + (insn).size) + (uint64_t)(insn).detail->x86.disp)) //> X86 registers typedef enum x86_reg { X86_REG_INVALID = 0, X86_REG_AH, X86_REG_AL, X86_REG_AX, X86_REG_BH, X86_REG_BL, X86_REG_BP, X86_REG_BPL, X86_REG_BX, X86_REG_CH, X86_REG_CL, X86_REG_CS, X86_REG_CX, X86_REG_DH, X86_REG_DI, X86_REG_DIL, X86_REG_DL, X86_REG_DS, X86_REG_DX, X86_REG_EAX, X86_REG_EBP, X86_REG_EBX, X86_REG_ECX, X86_REG_EDI, X86_REG_EDX, X86_REG_EFLAGS, X86_REG_EIP, X86_REG_EIZ, X86_REG_ES, X86_REG_ESI, X86_REG_ESP, X86_REG_FPSW, X86_REG_FS, X86_REG_GS, X86_REG_IP, X86_REG_RAX, X86_REG_RBP, X86_REG_RBX, X86_REG_RCX, X86_REG_RDI, X86_REG_RDX, X86_REG_RIP, X86_REG_RIZ, X86_REG_RSI, X86_REG_RSP, X86_REG_SI, X86_REG_SIL, X86_REG_SP, X86_REG_SPL, X86_REG_SS, X86_REG_CR0, X86_REG_CR1, X86_REG_CR2, X86_REG_CR3, X86_REG_CR4, X86_REG_CR5, X86_REG_CR6, X86_REG_CR7, X86_REG_CR8, X86_REG_CR9, X86_REG_CR10, X86_REG_CR11, X86_REG_CR12, X86_REG_CR13, X86_REG_CR14, X86_REG_CR15, X86_REG_DR0, X86_REG_DR1, X86_REG_DR2, X86_REG_DR3, X86_REG_DR4, X86_REG_DR5, X86_REG_DR6, X86_REG_DR7, X86_REG_FP0, X86_REG_FP1, X86_REG_FP2, X86_REG_FP3, X86_REG_FP4, X86_REG_FP5, X86_REG_FP6, X86_REG_FP7, X86_REG_K0, X86_REG_K1, X86_REG_K2, X86_REG_K3, X86_REG_K4, X86_REG_K5, X86_REG_K6, X86_REG_K7, X86_REG_MM0, X86_REG_MM1, X86_REG_MM2, X86_REG_MM3, X86_REG_MM4, X86_REG_MM5, X86_REG_MM6, X86_REG_MM7, X86_REG_R8, X86_REG_R9, X86_REG_R10, X86_REG_R11, X86_REG_R12, X86_REG_R13, X86_REG_R14, X86_REG_R15, X86_REG_ST0, X86_REG_ST1, X86_REG_ST2, X86_REG_ST3, X86_REG_ST4, X86_REG_ST5, X86_REG_ST6, X86_REG_ST7, X86_REG_XMM0, X86_REG_XMM1, X86_REG_XMM2, X86_REG_XMM3, X86_REG_XMM4, X86_REG_XMM5, X86_REG_XMM6, X86_REG_XMM7, X86_REG_XMM8, X86_REG_XMM9, X86_REG_XMM10, X86_REG_XMM11, X86_REG_XMM12, X86_REG_XMM13, X86_REG_XMM14, X86_REG_XMM15, X86_REG_XMM16, X86_REG_XMM17, X86_REG_XMM18, X86_REG_XMM19, X86_REG_XMM20, X86_REG_XMM21, X86_REG_XMM22, X86_REG_XMM23, X86_REG_XMM24, X86_REG_XMM25, X86_REG_XMM26, X86_REG_XMM27, X86_REG_XMM28, X86_REG_XMM29, X86_REG_XMM30, X86_REG_XMM31, X86_REG_YMM0, X86_REG_YMM1, X86_REG_YMM2, X86_REG_YMM3, X86_REG_YMM4, X86_REG_YMM5, X86_REG_YMM6, X86_REG_YMM7, X86_REG_YMM8, X86_REG_YMM9, X86_REG_YMM10, X86_REG_YMM11, X86_REG_YMM12, X86_REG_YMM13, X86_REG_YMM14, X86_REG_YMM15, X86_REG_YMM16, X86_REG_YMM17, X86_REG_YMM18, X86_REG_YMM19, X86_REG_YMM20, X86_REG_YMM21, X86_REG_YMM22, X86_REG_YMM23, X86_REG_YMM24, X86_REG_YMM25, X86_REG_YMM26, X86_REG_YMM27, X86_REG_YMM28, X86_REG_YMM29, X86_REG_YMM30, X86_REG_YMM31, X86_REG_ZMM0, X86_REG_ZMM1, X86_REG_ZMM2, X86_REG_ZMM3, X86_REG_ZMM4, X86_REG_ZMM5, X86_REG_ZMM6, X86_REG_ZMM7, X86_REG_ZMM8, X86_REG_ZMM9, X86_REG_ZMM10, X86_REG_ZMM11, X86_REG_ZMM12, X86_REG_ZMM13, X86_REG_ZMM14, X86_REG_ZMM15, X86_REG_ZMM16, X86_REG_ZMM17, X86_REG_ZMM18, X86_REG_ZMM19, X86_REG_ZMM20, X86_REG_ZMM21, X86_REG_ZMM22, X86_REG_ZMM23, X86_REG_ZMM24, X86_REG_ZMM25, X86_REG_ZMM26, X86_REG_ZMM27, X86_REG_ZMM28, X86_REG_ZMM29, X86_REG_ZMM30, X86_REG_ZMM31, X86_REG_R8B, X86_REG_R9B, X86_REG_R10B, X86_REG_R11B, X86_REG_R12B, X86_REG_R13B, X86_REG_R14B, X86_REG_R15B, X86_REG_R8D, X86_REG_R9D, X86_REG_R10D, X86_REG_R11D, X86_REG_R12D, X86_REG_R13D, X86_REG_R14D, X86_REG_R15D, X86_REG_R8W, X86_REG_R9W, X86_REG_R10W, X86_REG_R11W, X86_REG_R12W, X86_REG_R13W, X86_REG_R14W, X86_REG_R15W, X86_REG_ENDING // <-- mark the end of the list of registers } x86_reg; //> Operand type for instruction's operands typedef enum x86_op_type { X86_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). X86_OP_REG, // = CS_OP_REG (Register operand). X86_OP_IMM, // = CS_OP_IMM (Immediate operand). X86_OP_MEM, // = CS_OP_MEM (Memory operand). X86_OP_FP, // = CS_OP_FP (Floating-Point operand). } x86_op_type; //> AVX broadcast type typedef enum x86_avx_bcast { X86_AVX_BCAST_INVALID = 0, // Uninitialized. X86_AVX_BCAST_2, // AVX512 broadcast type {1to2} X86_AVX_BCAST_4, // AVX512 broadcast type {1to4} X86_AVX_BCAST_8, // AVX512 broadcast type {1to8} X86_AVX_BCAST_16, // AVX512 broadcast type {1to16} } x86_avx_bcast; //> SSE Code Condition type typedef enum x86_sse_cc { X86_SSE_CC_INVALID = 0, // Uninitialized. X86_SSE_CC_EQ, X86_SSE_CC_LT, X86_SSE_CC_LE, X86_SSE_CC_UNORD, X86_SSE_CC_NEQ, X86_SSE_CC_NLT, X86_SSE_CC_NLE, X86_SSE_CC_ORD, X86_SSE_CC_EQ_UQ, X86_SSE_CC_NGE, X86_SSE_CC_NGT, X86_SSE_CC_FALSE, X86_SSE_CC_NEQ_OQ, X86_SSE_CC_GE, X86_SSE_CC_GT, X86_SSE_CC_TRUE, } x86_sse_cc; //> AVX Code Condition type typedef enum x86_avx_cc { X86_AVX_CC_INVALID = 0, // Uninitialized. X86_AVX_CC_EQ, X86_AVX_CC_LT, X86_AVX_CC_LE, X86_AVX_CC_UNORD, X86_AVX_CC_NEQ, X86_AVX_CC_NLT, X86_AVX_CC_NLE, X86_AVX_CC_ORD, X86_AVX_CC_EQ_UQ, X86_AVX_CC_NGE, X86_AVX_CC_NGT, X86_AVX_CC_FALSE, X86_AVX_CC_NEQ_OQ, X86_AVX_CC_GE, X86_AVX_CC_GT, X86_AVX_CC_TRUE, X86_AVX_CC_EQ_OS, X86_AVX_CC_LT_OQ, X86_AVX_CC_LE_OQ, X86_AVX_CC_UNORD_S, X86_AVX_CC_NEQ_US, X86_AVX_CC_NLT_UQ, X86_AVX_CC_NLE_UQ, X86_AVX_CC_ORD_S, X86_AVX_CC_EQ_US, X86_AVX_CC_NGE_UQ, X86_AVX_CC_NGT_UQ, X86_AVX_CC_FALSE_OS, X86_AVX_CC_NEQ_OS, X86_AVX_CC_GE_OQ, X86_AVX_CC_GT_OQ, X86_AVX_CC_TRUE_US, } x86_avx_cc; //> AVX static rounding mode type typedef enum x86_avx_rm { X86_AVX_RM_INVALID = 0, // Uninitialized. X86_AVX_RM_RN, // Round to nearest X86_AVX_RM_RD, // Round down X86_AVX_RM_RU, // Round up X86_AVX_RM_RZ, // Round toward zero } x86_avx_rm; //> Instruction prefixes - to be used in cs_x86.prefix[] typedef enum x86_prefix { X86_PREFIX_LOCK = 0xf0, // lock (cs_x86.prefix[0] X86_PREFIX_REP = 0xf3, // rep (cs_x86.prefix[0] X86_PREFIX_REPNE = 0xf2, // repne (cs_x86.prefix[0] X86_PREFIX_CS = 0x2e, // segment override CS (cs_x86.prefix[1] X86_PREFIX_SS = 0x36, // segment override SS (cs_x86.prefix[1] X86_PREFIX_DS = 0x3e, // segment override DS (cs_x86.prefix[1] X86_PREFIX_ES = 0x26, // segment override ES (cs_x86.prefix[1] X86_PREFIX_FS = 0x64, // segment override FS (cs_x86.prefix[1] X86_PREFIX_GS = 0x65, // segment override GS (cs_x86.prefix[1] X86_PREFIX_OPSIZE = 0x66, // operand-size override (cs_x86.prefix[2] X86_PREFIX_ADDRSIZE = 0x67, // address-size override (cs_x86.prefix[3] } x86_prefix; // Instruction's operand referring to memory // This is associated with X86_OP_MEM operand type above typedef struct x86_op_mem { unsigned int segment; // segment register (or X86_REG_INVALID if irrelevant) unsigned int base; // base register (or X86_REG_INVALID if irrelevant) unsigned int index; // index register (or X86_REG_INVALID if irrelevant) int scale; // scale for index register int64_t disp; // displacement value } x86_op_mem; // Instruction operand typedef struct cs_x86_op { x86_op_type type; // operand type union { x86_reg reg; // register value for REG operand int64_t imm; // immediate value for IMM operand double fp; // floating point value for FP operand x86_op_mem mem; // base/index/scale/disp value for MEM operand }; // size of this operand (in bytes). uint8_t size; // AVX broadcast type, or 0 if irrelevant x86_avx_bcast avx_bcast; // AVX zero opmask {z} bool avx_zero_opmask; } cs_x86_op; // Instruction structure typedef struct cs_x86 { // Instruction prefix, which can be up to 4 bytes. // A prefix byte gets value 0 when irrelevant. // prefix[0] indicates REP/REPNE/LOCK prefix (See X86_PREFIX_REP/REPNE/LOCK above) // prefix[1] indicates segment override (irrelevant for x86_64): // See X86_PREFIX_CS/SS/DS/ES/FS/GS above. // prefix[2] indicates operand-size override (X86_PREFIX_OPSIZE) // prefix[3] indicates address-size override (X86_PREFIX_ADDRSIZE) uint8_t prefix[4]; // Instruction opcode, which can be from 1 to 4 bytes in size. // This contains VEX opcode as well. // An trailing opcode byte gets value 0 when irrelevant. uint8_t opcode[4]; // REX prefix: only a non-zero value is relevant for x86_64 uint8_t rex; // Address size, which can be overridden with above prefix[5]. uint8_t addr_size; // ModR/M byte uint8_t modrm; // SIB value, or 0 when irrelevant. uint8_t sib; // Displacement value, or 0 when irrelevant. int32_t disp; /* SIB state */ // SIB index register, or X86_REG_INVALID when irrelevant. x86_reg sib_index; // SIB scale. only applicable if sib_index is relevant. int8_t sib_scale; // SIB base register, or X86_REG_INVALID when irrelevant. x86_reg sib_base; // SSE Code Condition x86_sse_cc sse_cc; // AVX Code Condition x86_avx_cc avx_cc; // AVX Suppress all Exception bool avx_sae; // AVX static rounding mode x86_avx_rm avx_rm; // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_x86_op operands[8]; // operands for this instruction. } cs_x86; //> X86 instructions typedef enum x86_insn { X86_INS_INVALID = 0, X86_INS_AAA, X86_INS_AAD, X86_INS_AAM, X86_INS_AAS, X86_INS_FABS, X86_INS_ADC, X86_INS_ADCX, X86_INS_ADD, X86_INS_ADDPD, X86_INS_ADDPS, X86_INS_ADDSD, X86_INS_ADDSS, X86_INS_ADDSUBPD, X86_INS_ADDSUBPS, X86_INS_FADD, X86_INS_FIADD, X86_INS_FADDP, X86_INS_ADOX, X86_INS_AESDECLAST, X86_INS_AESDEC, X86_INS_AESENCLAST, X86_INS_AESENC, X86_INS_AESIMC, X86_INS_AESKEYGENASSIST, X86_INS_AND, X86_INS_ANDN, X86_INS_ANDNPD, X86_INS_ANDNPS, X86_INS_ANDPD, X86_INS_ANDPS, X86_INS_ARPL, X86_INS_BEXTR, X86_INS_BLCFILL, X86_INS_BLCI, X86_INS_BLCIC, X86_INS_BLCMSK, X86_INS_BLCS, X86_INS_BLENDPD, X86_INS_BLENDPS, X86_INS_BLENDVPD, X86_INS_BLENDVPS, X86_INS_BLSFILL, X86_INS_BLSI, X86_INS_BLSIC, X86_INS_BLSMSK, X86_INS_BLSR, X86_INS_BOUND, X86_INS_BSF, X86_INS_BSR, X86_INS_BSWAP, X86_INS_BT, X86_INS_BTC, X86_INS_BTR, X86_INS_BTS, X86_INS_BZHI, X86_INS_CALL, X86_INS_CBW, X86_INS_CDQ, X86_INS_CDQE, X86_INS_FCHS, X86_INS_CLAC, X86_INS_CLC, X86_INS_CLD, X86_INS_CLFLUSH, X86_INS_CLGI, X86_INS_CLI, X86_INS_CLTS, X86_INS_CMC, X86_INS_CMOVA, X86_INS_CMOVAE, X86_INS_CMOVB, X86_INS_CMOVBE, X86_INS_FCMOVBE, X86_INS_FCMOVB, X86_INS_CMOVE, X86_INS_FCMOVE, X86_INS_CMOVG, X86_INS_CMOVGE, X86_INS_CMOVL, X86_INS_CMOVLE, X86_INS_FCMOVNBE, X86_INS_FCMOVNB, X86_INS_CMOVNE, X86_INS_FCMOVNE, X86_INS_CMOVNO, X86_INS_CMOVNP, X86_INS_FCMOVNU, X86_INS_CMOVNS, X86_INS_CMOVO, X86_INS_CMOVP, X86_INS_FCMOVU, X86_INS_CMOVS, X86_INS_CMP, X86_INS_CMPPD, X86_INS_CMPPS, X86_INS_CMPSB, X86_INS_CMPSD, X86_INS_CMPSQ, X86_INS_CMPSS, X86_INS_CMPSW, X86_INS_CMPXCHG16B, X86_INS_CMPXCHG, X86_INS_CMPXCHG8B, X86_INS_COMISD, X86_INS_COMISS, X86_INS_FCOMP, X86_INS_FCOMPI, X86_INS_FCOMI, X86_INS_FCOM, X86_INS_FCOS, X86_INS_CPUID, X86_INS_CQO, X86_INS_CRC32, X86_INS_CVTDQ2PD, X86_INS_CVTDQ2PS, X86_INS_CVTPD2DQ, X86_INS_CVTPD2PS, X86_INS_CVTPS2DQ, X86_INS_CVTPS2PD, X86_INS_CVTSD2SI, X86_INS_CVTSD2SS, X86_INS_CVTSI2SD, X86_INS_CVTSI2SS, X86_INS_CVTSS2SD, X86_INS_CVTSS2SI, X86_INS_CVTTPD2DQ, X86_INS_CVTTPS2DQ, X86_INS_CVTTSD2SI, X86_INS_CVTTSS2SI, X86_INS_CWD, X86_INS_CWDE, X86_INS_DAA, X86_INS_DAS, X86_INS_DATA16, X86_INS_DEC, X86_INS_DIV, X86_INS_DIVPD, X86_INS_DIVPS, X86_INS_FDIVR, X86_INS_FIDIVR, X86_INS_FDIVRP, X86_INS_DIVSD, X86_INS_DIVSS, X86_INS_FDIV, X86_INS_FIDIV, X86_INS_FDIVP, X86_INS_DPPD, X86_INS_DPPS, X86_INS_RET, X86_INS_ENCLS, X86_INS_ENCLU, X86_INS_ENTER, X86_INS_EXTRACTPS, X86_INS_EXTRQ, X86_INS_F2XM1, X86_INS_LCALL, X86_INS_LJMP, X86_INS_FBLD, X86_INS_FBSTP, X86_INS_FCOMPP, X86_INS_FDECSTP, X86_INS_FEMMS, X86_INS_FFREE, X86_INS_FICOM, X86_INS_FICOMP, X86_INS_FINCSTP, X86_INS_FLDCW, X86_INS_FLDENV, X86_INS_FLDL2E, X86_INS_FLDL2T, X86_INS_FLDLG2, X86_INS_FLDLN2, X86_INS_FLDPI, X86_INS_FNCLEX, X86_INS_FNINIT, X86_INS_FNOP, X86_INS_FNSTCW, X86_INS_FNSTSW, X86_INS_FPATAN, X86_INS_FPREM, X86_INS_FPREM1, X86_INS_FPTAN, X86_INS_FRNDINT, X86_INS_FRSTOR, X86_INS_FNSAVE, X86_INS_FSCALE, X86_INS_FSETPM, X86_INS_FSINCOS, X86_INS_FNSTENV, X86_INS_FXAM, X86_INS_FXRSTOR, X86_INS_FXRSTOR64, X86_INS_FXSAVE, X86_INS_FXSAVE64, X86_INS_FXTRACT, X86_INS_FYL2X, X86_INS_FYL2XP1, X86_INS_MOVAPD, X86_INS_MOVAPS, X86_INS_ORPD, X86_INS_ORPS, X86_INS_VMOVAPD, X86_INS_VMOVAPS, X86_INS_XORPD, X86_INS_XORPS, X86_INS_GETSEC, X86_INS_HADDPD, X86_INS_HADDPS, X86_INS_HLT, X86_INS_HSUBPD, X86_INS_HSUBPS, X86_INS_IDIV, X86_INS_FILD, X86_INS_IMUL, X86_INS_IN, X86_INS_INC, X86_INS_INSB, X86_INS_INSERTPS, X86_INS_INSERTQ, X86_INS_INSD, X86_INS_INSW, X86_INS_INT, X86_INS_INT1, X86_INS_INT3, X86_INS_INTO, X86_INS_INVD, X86_INS_INVEPT, X86_INS_INVLPG, X86_INS_INVLPGA, X86_INS_INVPCID, X86_INS_INVVPID, X86_INS_IRET, X86_INS_IRETD, X86_INS_IRETQ, X86_INS_FISTTP, X86_INS_FIST, X86_INS_FISTP, X86_INS_UCOMISD, X86_INS_UCOMISS, X86_INS_VCMP, X86_INS_VCOMISD, X86_INS_VCOMISS, X86_INS_VCVTSD2SS, X86_INS_VCVTSI2SD, X86_INS_VCVTSI2SS, X86_INS_VCVTSS2SD, X86_INS_VCVTTSD2SI, X86_INS_VCVTTSD2USI, X86_INS_VCVTTSS2SI, X86_INS_VCVTTSS2USI, X86_INS_VCVTUSI2SD, X86_INS_VCVTUSI2SS, X86_INS_VUCOMISD, X86_INS_VUCOMISS, X86_INS_JAE, X86_INS_JA, X86_INS_JBE, X86_INS_JB, X86_INS_JCXZ, X86_INS_JECXZ, X86_INS_JE, X86_INS_JGE, X86_INS_JG, X86_INS_JLE, X86_INS_JL, X86_INS_JMP, X86_INS_JNE, X86_INS_JNO, X86_INS_JNP, X86_INS_JNS, X86_INS_JO, X86_INS_JP, X86_INS_JRCXZ, X86_INS_JS, X86_INS_KANDB, X86_INS_KANDD, X86_INS_KANDNB, X86_INS_KANDND, X86_INS_KANDNQ, X86_INS_KANDNW, X86_INS_KANDQ, X86_INS_KANDW, X86_INS_KMOVB, X86_INS_KMOVD, X86_INS_KMOVQ, X86_INS_KMOVW, X86_INS_KNOTB, X86_INS_KNOTD, X86_INS_KNOTQ, X86_INS_KNOTW, X86_INS_KORB, X86_INS_KORD, X86_INS_KORQ, X86_INS_KORTESTW, X86_INS_KORW, X86_INS_KSHIFTLW, X86_INS_KSHIFTRW, X86_INS_KUNPCKBW, X86_INS_KXNORB, X86_INS_KXNORD, X86_INS_KXNORQ, X86_INS_KXNORW, X86_INS_KXORB, X86_INS_KXORD, X86_INS_KXORQ, X86_INS_KXORW, X86_INS_LAHF, X86_INS_LAR, X86_INS_LDDQU, X86_INS_LDMXCSR, X86_INS_LDS, X86_INS_FLDZ, X86_INS_FLD1, X86_INS_FLD, X86_INS_LEA, X86_INS_LEAVE, X86_INS_LES, X86_INS_LFENCE, X86_INS_LFS, X86_INS_LGDT, X86_INS_LGS, X86_INS_LIDT, X86_INS_LLDT, X86_INS_LMSW, X86_INS_OR, X86_INS_SUB, X86_INS_XOR, X86_INS_LODSB, X86_INS_LODSD, X86_INS_LODSQ, X86_INS_LODSW, X86_INS_LOOP, X86_INS_LOOPE, X86_INS_LOOPNE, X86_INS_RETF, X86_INS_RETFQ, X86_INS_LSL, X86_INS_LSS, X86_INS_LTR, X86_INS_XADD, X86_INS_LZCNT, X86_INS_MASKMOVDQU, X86_INS_MAXPD, X86_INS_MAXPS, X86_INS_MAXSD, X86_INS_MAXSS, X86_INS_MFENCE, X86_INS_MINPD, X86_INS_MINPS, X86_INS_MINSD, X86_INS_MINSS, X86_INS_CVTPD2PI, X86_INS_CVTPI2PD, X86_INS_CVTPI2PS, X86_INS_CVTPS2PI, X86_INS_CVTTPD2PI, X86_INS_CVTTPS2PI, X86_INS_EMMS, X86_INS_MASKMOVQ, X86_INS_MOVD, X86_INS_MOVDQ2Q, X86_INS_MOVNTQ, X86_INS_MOVQ2DQ, X86_INS_MOVQ, X86_INS_PABSB, X86_INS_PABSD, X86_INS_PABSW, X86_INS_PACKSSDW, X86_INS_PACKSSWB, X86_INS_PACKUSWB, X86_INS_PADDB, X86_INS_PADDD, X86_INS_PADDQ, X86_INS_PADDSB, X86_INS_PADDSW, X86_INS_PADDUSB, X86_INS_PADDUSW, X86_INS_PADDW, X86_INS_PALIGNR, X86_INS_PANDN, X86_INS_PAND, X86_INS_PAVGB, X86_INS_PAVGW, X86_INS_PCMPEQB, X86_INS_PCMPEQD, X86_INS_PCMPEQW, X86_INS_PCMPGTB, X86_INS_PCMPGTD, X86_INS_PCMPGTW, X86_INS_PEXTRW, X86_INS_PHADDSW, X86_INS_PHADDW, X86_INS_PHADDD, X86_INS_PHSUBD, X86_INS_PHSUBSW, X86_INS_PHSUBW, X86_INS_PINSRW, X86_INS_PMADDUBSW, X86_INS_PMADDWD, X86_INS_PMAXSW, X86_INS_PMAXUB, X86_INS_PMINSW, X86_INS_PMINUB, X86_INS_PMOVMSKB, X86_INS_PMULHRSW, X86_INS_PMULHUW, X86_INS_PMULHW, X86_INS_PMULLW, X86_INS_PMULUDQ, X86_INS_POR, X86_INS_PSADBW, X86_INS_PSHUFB, X86_INS_PSHUFW, X86_INS_PSIGNB, X86_INS_PSIGND, X86_INS_PSIGNW, X86_INS_PSLLD, X86_INS_PSLLQ, X86_INS_PSLLW, X86_INS_PSRAD, X86_INS_PSRAW, X86_INS_PSRLD, X86_INS_PSRLQ, X86_INS_PSRLW, X86_INS_PSUBB, X86_INS_PSUBD, X86_INS_PSUBQ, X86_INS_PSUBSB, X86_INS_PSUBSW, X86_INS_PSUBUSB, X86_INS_PSUBUSW, X86_INS_PSUBW, X86_INS_PUNPCKHBW, X86_INS_PUNPCKHDQ, X86_INS_PUNPCKHWD, X86_INS_PUNPCKLBW, X86_INS_PUNPCKLDQ, X86_INS_PUNPCKLWD, X86_INS_PXOR, X86_INS_MONITOR, X86_INS_MONTMUL, X86_INS_MOV, X86_INS_MOVABS, X86_INS_MOVBE, X86_INS_MOVDDUP, X86_INS_MOVDQA, X86_INS_MOVDQU, X86_INS_MOVHLPS, X86_INS_MOVHPD, X86_INS_MOVHPS, X86_INS_MOVLHPS, X86_INS_MOVLPD, X86_INS_MOVLPS, X86_INS_MOVMSKPD, X86_INS_MOVMSKPS, X86_INS_MOVNTDQA, X86_INS_MOVNTDQ, X86_INS_MOVNTI, X86_INS_MOVNTPD, X86_INS_MOVNTPS, X86_INS_MOVNTSD, X86_INS_MOVNTSS, X86_INS_MOVSB, X86_INS_MOVSD, X86_INS_MOVSHDUP, X86_INS_MOVSLDUP, X86_INS_MOVSQ, X86_INS_MOVSS, X86_INS_MOVSW, X86_INS_MOVSX, X86_INS_MOVSXD, X86_INS_MOVUPD, X86_INS_MOVUPS, X86_INS_MOVZX, X86_INS_MPSADBW, X86_INS_MUL, X86_INS_MULPD, X86_INS_MULPS, X86_INS_MULSD, X86_INS_MULSS, X86_INS_MULX, X86_INS_FMUL, X86_INS_FIMUL, X86_INS_FMULP, X86_INS_MWAIT, X86_INS_NEG, X86_INS_NOP, X86_INS_NOT, X86_INS_OUT, X86_INS_OUTSB, X86_INS_OUTSD, X86_INS_OUTSW, X86_INS_PACKUSDW, X86_INS_PAUSE, X86_INS_PAVGUSB, X86_INS_PBLENDVB, X86_INS_PBLENDW, X86_INS_PCLMULQDQ, X86_INS_PCMPEQQ, X86_INS_PCMPESTRI, X86_INS_PCMPESTRM, X86_INS_PCMPGTQ, X86_INS_PCMPISTRI, X86_INS_PCMPISTRM, X86_INS_PDEP, X86_INS_PEXT, X86_INS_PEXTRB, X86_INS_PEXTRD, X86_INS_PEXTRQ, X86_INS_PF2ID, X86_INS_PF2IW, X86_INS_PFACC, X86_INS_PFADD, X86_INS_PFCMPEQ, X86_INS_PFCMPGE, X86_INS_PFCMPGT, X86_INS_PFMAX, X86_INS_PFMIN, X86_INS_PFMUL, X86_INS_PFNACC, X86_INS_PFPNACC, X86_INS_PFRCPIT1, X86_INS_PFRCPIT2, X86_INS_PFRCP, X86_INS_PFRSQIT1, X86_INS_PFRSQRT, X86_INS_PFSUBR, X86_INS_PFSUB, X86_INS_PHMINPOSUW, X86_INS_PI2FD, X86_INS_PI2FW, X86_INS_PINSRB, X86_INS_PINSRD, X86_INS_PINSRQ, X86_INS_PMAXSB, X86_INS_PMAXSD, X86_INS_PMAXUD, X86_INS_PMAXUW, X86_INS_PMINSB, X86_INS_PMINSD, X86_INS_PMINUD, X86_INS_PMINUW, X86_INS_PMOVSXBD, X86_INS_PMOVSXBQ, X86_INS_PMOVSXBW, X86_INS_PMOVSXDQ, X86_INS_PMOVSXWD, X86_INS_PMOVSXWQ, X86_INS_PMOVZXBD, X86_INS_PMOVZXBQ, X86_INS_PMOVZXBW, X86_INS_PMOVZXDQ, X86_INS_PMOVZXWD, X86_INS_PMOVZXWQ, X86_INS_PMULDQ, X86_INS_PMULHRW, X86_INS_PMULLD, X86_INS_POP, X86_INS_POPAW, X86_INS_POPAL, X86_INS_POPCNT, X86_INS_POPF, X86_INS_POPFD, X86_INS_POPFQ, X86_INS_PREFETCH, X86_INS_PREFETCHNTA, X86_INS_PREFETCHT0, X86_INS_PREFETCHT1, X86_INS_PREFETCHT2, X86_INS_PREFETCHW, X86_INS_PSHUFD, X86_INS_PSHUFHW, X86_INS_PSHUFLW, X86_INS_PSLLDQ, X86_INS_PSRLDQ, X86_INS_PSWAPD, X86_INS_PTEST, X86_INS_PUNPCKHQDQ, X86_INS_PUNPCKLQDQ, X86_INS_PUSH, X86_INS_PUSHAW, X86_INS_PUSHAL, X86_INS_PUSHF, X86_INS_PUSHFD, X86_INS_PUSHFQ, X86_INS_RCL, X86_INS_RCPPS, X86_INS_RCPSS, X86_INS_RCR, X86_INS_RDFSBASE, X86_INS_RDGSBASE, X86_INS_RDMSR, X86_INS_RDPMC, X86_INS_RDRAND, X86_INS_RDSEED, X86_INS_RDTSC, X86_INS_RDTSCP, X86_INS_ROL, X86_INS_ROR, X86_INS_RORX, X86_INS_ROUNDPD, X86_INS_ROUNDPS, X86_INS_ROUNDSD, X86_INS_ROUNDSS, X86_INS_RSM, X86_INS_RSQRTPS, X86_INS_RSQRTSS, X86_INS_SAHF, X86_INS_SAL, X86_INS_SALC, X86_INS_SAR, X86_INS_SARX, X86_INS_SBB, X86_INS_SCASB, X86_INS_SCASD, X86_INS_SCASQ, X86_INS_SCASW, X86_INS_SETAE, X86_INS_SETA, X86_INS_SETBE, X86_INS_SETB, X86_INS_SETE, X86_INS_SETGE, X86_INS_SETG, X86_INS_SETLE, X86_INS_SETL, X86_INS_SETNE, X86_INS_SETNO, X86_INS_SETNP, X86_INS_SETNS, X86_INS_SETO, X86_INS_SETP, X86_INS_SETS, X86_INS_SFENCE, X86_INS_SGDT, X86_INS_SHA1MSG1, X86_INS_SHA1MSG2, X86_INS_SHA1NEXTE, X86_INS_SHA1RNDS4, X86_INS_SHA256MSG1, X86_INS_SHA256MSG2, X86_INS_SHA256RNDS2, X86_INS_SHL, X86_INS_SHLD, X86_INS_SHLX, X86_INS_SHR, X86_INS_SHRD, X86_INS_SHRX, X86_INS_SHUFPD, X86_INS_SHUFPS, X86_INS_SIDT, X86_INS_FSIN, X86_INS_SKINIT, X86_INS_SLDT, X86_INS_SMSW, X86_INS_SQRTPD, X86_INS_SQRTPS, X86_INS_SQRTSD, X86_INS_SQRTSS, X86_INS_FSQRT, X86_INS_STAC, X86_INS_STC, X86_INS_STD, X86_INS_STGI, X86_INS_STI, X86_INS_STMXCSR, X86_INS_STOSB, X86_INS_STOSD, X86_INS_STOSQ, X86_INS_STOSW, X86_INS_STR, X86_INS_FST, X86_INS_FSTP, X86_INS_FSTPNCE, X86_INS_SUBPD, X86_INS_SUBPS, X86_INS_FSUBR, X86_INS_FISUBR, X86_INS_FSUBRP, X86_INS_SUBSD, X86_INS_SUBSS, X86_INS_FSUB, X86_INS_FISUB, X86_INS_FSUBP, X86_INS_SWAPGS, X86_INS_SYSCALL, X86_INS_SYSENTER, X86_INS_SYSEXIT, X86_INS_SYSRET, X86_INS_T1MSKC, X86_INS_TEST, X86_INS_UD2, X86_INS_FTST, X86_INS_TZCNT, X86_INS_TZMSK, X86_INS_FUCOMPI, X86_INS_FUCOMI, X86_INS_FUCOMPP, X86_INS_FUCOMP, X86_INS_FUCOM, X86_INS_UD2B, X86_INS_UNPCKHPD, X86_INS_UNPCKHPS, X86_INS_UNPCKLPD, X86_INS_UNPCKLPS, X86_INS_VADDPD, X86_INS_VADDPS, X86_INS_VADDSD, X86_INS_VADDSS, X86_INS_VADDSUBPD, X86_INS_VADDSUBPS, X86_INS_VAESDECLAST, X86_INS_VAESDEC, X86_INS_VAESENCLAST, X86_INS_VAESENC, X86_INS_VAESIMC, X86_INS_VAESKEYGENASSIST, X86_INS_VALIGND, X86_INS_VALIGNQ, X86_INS_VANDNPD, X86_INS_VANDNPS, X86_INS_VANDPD, X86_INS_VANDPS, X86_INS_VBLENDMPD, X86_INS_VBLENDMPS, X86_INS_VBLENDPD, X86_INS_VBLENDPS, X86_INS_VBLENDVPD, X86_INS_VBLENDVPS, X86_INS_VBROADCASTF128, X86_INS_VBROADCASTI128, X86_INS_VBROADCASTI32X4, X86_INS_VBROADCASTI64X4, X86_INS_VBROADCASTSD, X86_INS_VBROADCASTSS, X86_INS_VCMPPD, X86_INS_VCMPPS, X86_INS_VCMPSD, X86_INS_VCMPSS, X86_INS_VCVTDQ2PD, X86_INS_VCVTDQ2PS, X86_INS_VCVTPD2DQX, X86_INS_VCVTPD2DQ, X86_INS_VCVTPD2PSX, X86_INS_VCVTPD2PS, X86_INS_VCVTPD2UDQ, X86_INS_VCVTPH2PS, X86_INS_VCVTPS2DQ, X86_INS_VCVTPS2PD, X86_INS_VCVTPS2PH, X86_INS_VCVTPS2UDQ, X86_INS_VCVTSD2SI, X86_INS_VCVTSD2USI, X86_INS_VCVTSS2SI, X86_INS_VCVTSS2USI, X86_INS_VCVTTPD2DQX, X86_INS_VCVTTPD2DQ, X86_INS_VCVTTPD2UDQ, X86_INS_VCVTTPS2DQ, X86_INS_VCVTTPS2UDQ, X86_INS_VCVTUDQ2PD, X86_INS_VCVTUDQ2PS, X86_INS_VDIVPD, X86_INS_VDIVPS, X86_INS_VDIVSD, X86_INS_VDIVSS, X86_INS_VDPPD, X86_INS_VDPPS, X86_INS_VERR, X86_INS_VERW, X86_INS_VEXTRACTF128, X86_INS_VEXTRACTF32X4, X86_INS_VEXTRACTF64X4, X86_INS_VEXTRACTI128, X86_INS_VEXTRACTI32X4, X86_INS_VEXTRACTI64X4, X86_INS_VEXTRACTPS, X86_INS_VFMADD132PD, X86_INS_VFMADD132PS, X86_INS_VFMADD213PD, X86_INS_VFMADD213PS, X86_INS_VFMADDPD, X86_INS_VFMADD231PD, X86_INS_VFMADDPS, X86_INS_VFMADD231PS, X86_INS_VFMADDSD, X86_INS_VFMADD213SD, X86_INS_VFMADD132SD, X86_INS_VFMADD231SD, X86_INS_VFMADDSS, X86_INS_VFMADD213SS, X86_INS_VFMADD132SS, X86_INS_VFMADD231SS, X86_INS_VFMADDSUB132PD, X86_INS_VFMADDSUB132PS, X86_INS_VFMADDSUB213PD, X86_INS_VFMADDSUB213PS, X86_INS_VFMADDSUBPD, X86_INS_VFMADDSUB231PD, X86_INS_VFMADDSUBPS, X86_INS_VFMADDSUB231PS, X86_INS_VFMSUB132PD, X86_INS_VFMSUB132PS, X86_INS_VFMSUB213PD, X86_INS_VFMSUB213PS, X86_INS_VFMSUBADD132PD, X86_INS_VFMSUBADD132PS, X86_INS_VFMSUBADD213PD, X86_INS_VFMSUBADD213PS, X86_INS_VFMSUBADDPD, X86_INS_VFMSUBADD231PD, X86_INS_VFMSUBADDPS, X86_INS_VFMSUBADD231PS, X86_INS_VFMSUBPD, X86_INS_VFMSUB231PD, X86_INS_VFMSUBPS, X86_INS_VFMSUB231PS, X86_INS_VFMSUBSD, X86_INS_VFMSUB213SD, X86_INS_VFMSUB132SD, X86_INS_VFMSUB231SD, X86_INS_VFMSUBSS, X86_INS_VFMSUB213SS, X86_INS_VFMSUB132SS, X86_INS_VFMSUB231SS, X86_INS_VFNMADD132PD, X86_INS_VFNMADD132PS, X86_INS_VFNMADD213PD, X86_INS_VFNMADD213PS, X86_INS_VFNMADDPD, X86_INS_VFNMADD231PD, X86_INS_VFNMADDPS, X86_INS_VFNMADD231PS, X86_INS_VFNMADDSD, X86_INS_VFNMADD213SD, X86_INS_VFNMADD132SD, X86_INS_VFNMADD231SD, X86_INS_VFNMADDSS, X86_INS_VFNMADD213SS, X86_INS_VFNMADD132SS, X86_INS_VFNMADD231SS, X86_INS_VFNMSUB132PD, X86_INS_VFNMSUB132PS, X86_INS_VFNMSUB213PD, X86_INS_VFNMSUB213PS, X86_INS_VFNMSUBPD, X86_INS_VFNMSUB231PD, X86_INS_VFNMSUBPS, X86_INS_VFNMSUB231PS, X86_INS_VFNMSUBSD, X86_INS_VFNMSUB213SD, X86_INS_VFNMSUB132SD, X86_INS_VFNMSUB231SD, X86_INS_VFNMSUBSS, X86_INS_VFNMSUB213SS, X86_INS_VFNMSUB132SS, X86_INS_VFNMSUB231SS, X86_INS_VFRCZPD, X86_INS_VFRCZPS, X86_INS_VFRCZSD, X86_INS_VFRCZSS, X86_INS_VORPD, X86_INS_VORPS, X86_INS_VXORPD, X86_INS_VXORPS, X86_INS_VGATHERDPD, X86_INS_VGATHERDPS, X86_INS_VGATHERPF0DPD, X86_INS_VGATHERPF0DPS, X86_INS_VGATHERPF0QPD, X86_INS_VGATHERPF0QPS, X86_INS_VGATHERPF1DPD, X86_INS_VGATHERPF1DPS, X86_INS_VGATHERPF1QPD, X86_INS_VGATHERPF1QPS, X86_INS_VGATHERQPD, X86_INS_VGATHERQPS, X86_INS_VHADDPD, X86_INS_VHADDPS, X86_INS_VHSUBPD, X86_INS_VHSUBPS, X86_INS_VINSERTF128, X86_INS_VINSERTF32X4, X86_INS_VINSERTF64X4, X86_INS_VINSERTI128, X86_INS_VINSERTI32X4, X86_INS_VINSERTI64X4, X86_INS_VINSERTPS, X86_INS_VLDDQU, X86_INS_VLDMXCSR, X86_INS_VMASKMOVDQU, X86_INS_VMASKMOVPD, X86_INS_VMASKMOVPS, X86_INS_VMAXPD, X86_INS_VMAXPS, X86_INS_VMAXSD, X86_INS_VMAXSS, X86_INS_VMCALL, X86_INS_VMCLEAR, X86_INS_VMFUNC, X86_INS_VMINPD, X86_INS_VMINPS, X86_INS_VMINSD, X86_INS_VMINSS, X86_INS_VMLAUNCH, X86_INS_VMLOAD, X86_INS_VMMCALL, X86_INS_VMOVQ, X86_INS_VMOVDDUP, X86_INS_VMOVD, X86_INS_VMOVDQA32, X86_INS_VMOVDQA64, X86_INS_VMOVDQA, X86_INS_VMOVDQU16, X86_INS_VMOVDQU32, X86_INS_VMOVDQU64, X86_INS_VMOVDQU8, X86_INS_VMOVDQU, X86_INS_VMOVHLPS, X86_INS_VMOVHPD, X86_INS_VMOVHPS, X86_INS_VMOVLHPS, X86_INS_VMOVLPD, X86_INS_VMOVLPS, X86_INS_VMOVMSKPD, X86_INS_VMOVMSKPS, X86_INS_VMOVNTDQA, X86_INS_VMOVNTDQ, X86_INS_VMOVNTPD, X86_INS_VMOVNTPS, X86_INS_VMOVSD, X86_INS_VMOVSHDUP, X86_INS_VMOVSLDUP, X86_INS_VMOVSS, X86_INS_VMOVUPD, X86_INS_VMOVUPS, X86_INS_VMPSADBW, X86_INS_VMPTRLD, X86_INS_VMPTRST, X86_INS_VMREAD, X86_INS_VMRESUME, X86_INS_VMRUN, X86_INS_VMSAVE, X86_INS_VMULPD, X86_INS_VMULPS, X86_INS_VMULSD, X86_INS_VMULSS, X86_INS_VMWRITE, X86_INS_VMXOFF, X86_INS_VMXON, X86_INS_VPABSB, X86_INS_VPABSD, X86_INS_VPABSQ, X86_INS_VPABSW, X86_INS_VPACKSSDW, X86_INS_VPACKSSWB, X86_INS_VPACKUSDW, X86_INS_VPACKUSWB, X86_INS_VPADDB, X86_INS_VPADDD, X86_INS_VPADDQ, X86_INS_VPADDSB, X86_INS_VPADDSW, X86_INS_VPADDUSB, X86_INS_VPADDUSW, X86_INS_VPADDW, X86_INS_VPALIGNR, X86_INS_VPANDD, X86_INS_VPANDND, X86_INS_VPANDNQ, X86_INS_VPANDN, X86_INS_VPANDQ, X86_INS_VPAND, X86_INS_VPAVGB, X86_INS_VPAVGW, X86_INS_VPBLENDD, X86_INS_VPBLENDMD, X86_INS_VPBLENDMQ, X86_INS_VPBLENDVB, X86_INS_VPBLENDW, X86_INS_VPBROADCASTB, X86_INS_VPBROADCASTD, X86_INS_VPBROADCASTMB2Q, X86_INS_VPBROADCASTMW2D, X86_INS_VPBROADCASTQ, X86_INS_VPBROADCASTW, X86_INS_VPCLMULQDQ, X86_INS_VPCMOV, X86_INS_VPCMP, X86_INS_VPCMPD, X86_INS_VPCMPEQB, X86_INS_VPCMPEQD, X86_INS_VPCMPEQQ, X86_INS_VPCMPEQW, X86_INS_VPCMPESTRI, X86_INS_VPCMPESTRM, X86_INS_VPCMPGTB, X86_INS_VPCMPGTD, X86_INS_VPCMPGTQ, X86_INS_VPCMPGTW, X86_INS_VPCMPISTRI, X86_INS_VPCMPISTRM, X86_INS_VPCMPQ, X86_INS_VPCMPUD, X86_INS_VPCMPUQ, X86_INS_VPCOMB, X86_INS_VPCOMD, X86_INS_VPCOMQ, X86_INS_VPCOMUB, X86_INS_VPCOMUD, X86_INS_VPCOMUQ, X86_INS_VPCOMUW, X86_INS_VPCOMW, X86_INS_VPCONFLICTD, X86_INS_VPCONFLICTQ, X86_INS_VPERM2F128, X86_INS_VPERM2I128, X86_INS_VPERMD, X86_INS_VPERMI2D, X86_INS_VPERMI2PD, X86_INS_VPERMI2PS, X86_INS_VPERMI2Q, X86_INS_VPERMIL2PD, X86_INS_VPERMIL2PS, X86_INS_VPERMILPD, X86_INS_VPERMILPS, X86_INS_VPERMPD, X86_INS_VPERMPS, X86_INS_VPERMQ, X86_INS_VPERMT2D, X86_INS_VPERMT2PD, X86_INS_VPERMT2PS, X86_INS_VPERMT2Q, X86_INS_VPEXTRB, X86_INS_VPEXTRD, X86_INS_VPEXTRQ, X86_INS_VPEXTRW, X86_INS_VPGATHERDD, X86_INS_VPGATHERDQ, X86_INS_VPGATHERQD, X86_INS_VPGATHERQQ, X86_INS_VPHADDBD, X86_INS_VPHADDBQ, X86_INS_VPHADDBW, X86_INS_VPHADDDQ, X86_INS_VPHADDD, X86_INS_VPHADDSW, X86_INS_VPHADDUBD, X86_INS_VPHADDUBQ, X86_INS_VPHADDUBW, X86_INS_VPHADDUDQ, X86_INS_VPHADDUWD, X86_INS_VPHADDUWQ, X86_INS_VPHADDWD, X86_INS_VPHADDWQ, X86_INS_VPHADDW, X86_INS_VPHMINPOSUW, X86_INS_VPHSUBBW, X86_INS_VPHSUBDQ, X86_INS_VPHSUBD, X86_INS_VPHSUBSW, X86_INS_VPHSUBWD, X86_INS_VPHSUBW, X86_INS_VPINSRB, X86_INS_VPINSRD, X86_INS_VPINSRQ, X86_INS_VPINSRW, X86_INS_VPLZCNTD, X86_INS_VPLZCNTQ, X86_INS_VPMACSDD, X86_INS_VPMACSDQH, X86_INS_VPMACSDQL, X86_INS_VPMACSSDD, X86_INS_VPMACSSDQH, X86_INS_VPMACSSDQL, X86_INS_VPMACSSWD, X86_INS_VPMACSSWW, X86_INS_VPMACSWD, X86_INS_VPMACSWW, X86_INS_VPMADCSSWD, X86_INS_VPMADCSWD, X86_INS_VPMADDUBSW, X86_INS_VPMADDWD, X86_INS_VPMASKMOVD, X86_INS_VPMASKMOVQ, X86_INS_VPMAXSB, X86_INS_VPMAXSD, X86_INS_VPMAXSQ, X86_INS_VPMAXSW, X86_INS_VPMAXUB, X86_INS_VPMAXUD, X86_INS_VPMAXUQ, X86_INS_VPMAXUW, X86_INS_VPMINSB, X86_INS_VPMINSD, X86_INS_VPMINSQ, X86_INS_VPMINSW, X86_INS_VPMINUB, X86_INS_VPMINUD, X86_INS_VPMINUQ, X86_INS_VPMINUW, X86_INS_VPMOVDB, X86_INS_VPMOVDW, X86_INS_VPMOVMSKB, X86_INS_VPMOVQB, X86_INS_VPMOVQD, X86_INS_VPMOVQW, X86_INS_VPMOVSDB, X86_INS_VPMOVSDW, X86_INS_VPMOVSQB, X86_INS_VPMOVSQD, X86_INS_VPMOVSQW, X86_INS_VPMOVSXBD, X86_INS_VPMOVSXBQ, X86_INS_VPMOVSXBW, X86_INS_VPMOVSXDQ, X86_INS_VPMOVSXWD, X86_INS_VPMOVSXWQ, X86_INS_VPMOVUSDB, X86_INS_VPMOVUSDW, X86_INS_VPMOVUSQB, X86_INS_VPMOVUSQD, X86_INS_VPMOVUSQW, X86_INS_VPMOVZXBD, X86_INS_VPMOVZXBQ, X86_INS_VPMOVZXBW, X86_INS_VPMOVZXDQ, X86_INS_VPMOVZXWD, X86_INS_VPMOVZXWQ, X86_INS_VPMULDQ, X86_INS_VPMULHRSW, X86_INS_VPMULHUW, X86_INS_VPMULHW, X86_INS_VPMULLD, X86_INS_VPMULLW, X86_INS_VPMULUDQ, X86_INS_VPORD, X86_INS_VPORQ, X86_INS_VPOR, X86_INS_VPPERM, X86_INS_VPROTB, X86_INS_VPROTD, X86_INS_VPROTQ, X86_INS_VPROTW, X86_INS_VPSADBW, X86_INS_VPSCATTERDD, X86_INS_VPSCATTERDQ, X86_INS_VPSCATTERQD, X86_INS_VPSCATTERQQ, X86_INS_VPSHAB, X86_INS_VPSHAD, X86_INS_VPSHAQ, X86_INS_VPSHAW, X86_INS_VPSHLB, X86_INS_VPSHLD, X86_INS_VPSHLQ, X86_INS_VPSHLW, X86_INS_VPSHUFB, X86_INS_VPSHUFD, X86_INS_VPSHUFHW, X86_INS_VPSHUFLW, X86_INS_VPSIGNB, X86_INS_VPSIGND, X86_INS_VPSIGNW, X86_INS_VPSLLDQ, X86_INS_VPSLLD, X86_INS_VPSLLQ, X86_INS_VPSLLVD, X86_INS_VPSLLVQ, X86_INS_VPSLLW, X86_INS_VPSRAD, X86_INS_VPSRAQ, X86_INS_VPSRAVD, X86_INS_VPSRAVQ, X86_INS_VPSRAW, X86_INS_VPSRLDQ, X86_INS_VPSRLD, X86_INS_VPSRLQ, X86_INS_VPSRLVD, X86_INS_VPSRLVQ, X86_INS_VPSRLW, X86_INS_VPSUBB, X86_INS_VPSUBD, X86_INS_VPSUBQ, X86_INS_VPSUBSB, X86_INS_VPSUBSW, X86_INS_VPSUBUSB, X86_INS_VPSUBUSW, X86_INS_VPSUBW, X86_INS_VPTESTMD, X86_INS_VPTESTMQ, X86_INS_VPTESTNMD, X86_INS_VPTESTNMQ, X86_INS_VPTEST, X86_INS_VPUNPCKHBW, X86_INS_VPUNPCKHDQ, X86_INS_VPUNPCKHQDQ, X86_INS_VPUNPCKHWD, X86_INS_VPUNPCKLBW, X86_INS_VPUNPCKLDQ, X86_INS_VPUNPCKLQDQ, X86_INS_VPUNPCKLWD, X86_INS_VPXORD, X86_INS_VPXORQ, X86_INS_VPXOR, X86_INS_VRCP14PD, X86_INS_VRCP14PS, X86_INS_VRCP14SD, X86_INS_VRCP14SS, X86_INS_VRCP28PD, X86_INS_VRCP28PS, X86_INS_VRCP28SD, X86_INS_VRCP28SS, X86_INS_VRCPPS, X86_INS_VRCPSS, X86_INS_VRNDSCALEPD, X86_INS_VRNDSCALEPS, X86_INS_VRNDSCALESD, X86_INS_VRNDSCALESS, X86_INS_VROUNDPD, X86_INS_VROUNDPS, X86_INS_VROUNDSD, X86_INS_VROUNDSS, X86_INS_VRSQRT14PD, X86_INS_VRSQRT14PS, X86_INS_VRSQRT14SD, X86_INS_VRSQRT14SS, X86_INS_VRSQRT28PD, X86_INS_VRSQRT28PS, X86_INS_VRSQRT28SD, X86_INS_VRSQRT28SS, X86_INS_VRSQRTPS, X86_INS_VRSQRTSS, X86_INS_VSCATTERDPD, X86_INS_VSCATTERDPS, X86_INS_VSCATTERPF0DPD, X86_INS_VSCATTERPF0DPS, X86_INS_VSCATTERPF0QPD, X86_INS_VSCATTERPF0QPS, X86_INS_VSCATTERPF1DPD, X86_INS_VSCATTERPF1DPS, X86_INS_VSCATTERPF1QPD, X86_INS_VSCATTERPF1QPS, X86_INS_VSCATTERQPD, X86_INS_VSCATTERQPS, X86_INS_VSHUFPD, X86_INS_VSHUFPS, X86_INS_VSQRTPD, X86_INS_VSQRTPS, X86_INS_VSQRTSD, X86_INS_VSQRTSS, X86_INS_VSTMXCSR, X86_INS_VSUBPD, X86_INS_VSUBPS, X86_INS_VSUBSD, X86_INS_VSUBSS, X86_INS_VTESTPD, X86_INS_VTESTPS, X86_INS_VUNPCKHPD, X86_INS_VUNPCKHPS, X86_INS_VUNPCKLPD, X86_INS_VUNPCKLPS, X86_INS_VZEROALL, X86_INS_VZEROUPPER, X86_INS_WAIT, X86_INS_WBINVD, X86_INS_WRFSBASE, X86_INS_WRGSBASE, X86_INS_WRMSR, X86_INS_XABORT, X86_INS_XACQUIRE, X86_INS_XBEGIN, X86_INS_XCHG, X86_INS_FXCH, X86_INS_XCRYPTCBC, X86_INS_XCRYPTCFB, X86_INS_XCRYPTCTR, X86_INS_XCRYPTECB, X86_INS_XCRYPTOFB, X86_INS_XEND, X86_INS_XGETBV, X86_INS_XLATB, X86_INS_XRELEASE, X86_INS_XRSTOR, X86_INS_XRSTOR64, X86_INS_XSAVE, X86_INS_XSAVE64, X86_INS_XSAVEOPT, X86_INS_XSAVEOPT64, X86_INS_XSETBV, X86_INS_XSHA1, X86_INS_XSHA256, X86_INS_XSTORE, X86_INS_XTEST, X86_INS_ENDING, // mark the end of the list of insn } x86_insn; //> Group of X86 instructions typedef enum x86_insn_group { X86_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) X86_GRP_JUMP, // = CS_GRP_JUMP // all call instructions X86_GRP_CALL, // = CS_GRP_CALL // all return instructions X86_GRP_RET, // = CS_GRP_RET // all interrupt instructions (int+syscall) X86_GRP_INT, // = CS_GRP_INT // all interrupt return instructions X86_GRP_IRET, // = CS_GRP_IRET //> Architecture-specific groups X86_GRP_VM = 128, // all virtualization instructions (VT-x + AMD-V) X86_GRP_3DNOW, X86_GRP_AES, X86_GRP_ADX, X86_GRP_AVX, X86_GRP_AVX2, X86_GRP_AVX512, X86_GRP_BMI, X86_GRP_BMI2, X86_GRP_CMOV, X86_GRP_F16C, X86_GRP_FMA, X86_GRP_FMA4, X86_GRP_FSGSBASE, X86_GRP_HLE, X86_GRP_MMX, X86_GRP_MODE32, X86_GRP_MODE64, X86_GRP_RTM, X86_GRP_SHA, X86_GRP_SSE1, X86_GRP_SSE2, X86_GRP_SSE3, X86_GRP_SSE41, X86_GRP_SSE42, X86_GRP_SSE4A, X86_GRP_SSSE3, X86_GRP_PCLMUL, X86_GRP_XOP, X86_GRP_CDI, X86_GRP_ERI, X86_GRP_TBM, X86_GRP_16BITMODE, X86_GRP_NOT64BITMODE, X86_GRP_SGX, X86_GRP_DQI, X86_GRP_BWI, X86_GRP_PFI, X86_GRP_VLX, X86_GRP_SMAP, X86_GRP_NOVLX, X86_GRP_ENDING } x86_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/capstone/xcore.h ================================================ #ifndef CAPSTONE_XCORE_H #define CAPSTONE_XCORE_H /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2014 */ #ifdef __cplusplus extern "C" { #endif #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) #include #endif #include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) #endif //> Operand type for instruction's operands typedef enum xcore_op_type { XCORE_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized). XCORE_OP_REG, // = CS_OP_REG (Register operand). XCORE_OP_IMM, // = CS_OP_IMM (Immediate operand). XCORE_OP_MEM, // = CS_OP_MEM (Memory operand). } xcore_op_type; // Instruction's operand referring to memory // This is associated with XCORE_OP_MEM operand type above typedef struct xcore_op_mem { uint8_t base; // base register uint8_t index; // index register int32_t disp; // displacement/offset value int direct; // +1: forward, -1: backward } xcore_op_mem; // Instruction operand typedef struct cs_xcore_op { xcore_op_type type; // operand type union { unsigned int reg; // register value for REG operand int32_t imm; // immediate value for IMM operand xcore_op_mem mem; // base/disp value for MEM operand }; } cs_xcore_op; // Instruction structure typedef struct cs_xcore { // Number of operands of this instruction, // or 0 when instruction has no operand. uint8_t op_count; cs_xcore_op operands[8]; // operands for this instruction. } cs_xcore; //> XCore registers typedef enum xcore_reg { XCORE_REG_INVALID = 0, XCORE_REG_CP, XCORE_REG_DP, XCORE_REG_LR, XCORE_REG_SP, XCORE_REG_R0, XCORE_REG_R1, XCORE_REG_R2, XCORE_REG_R3, XCORE_REG_R4, XCORE_REG_R5, XCORE_REG_R6, XCORE_REG_R7, XCORE_REG_R8, XCORE_REG_R9, XCORE_REG_R10, XCORE_REG_R11, //> pseudo registers XCORE_REG_PC, // pc // internal thread registers // see The-XMOS-XS1-Architecture(X7879A).pdf XCORE_REG_SCP, // save pc XCORE_REG_SSR, // save status XCORE_REG_ET, // exception type XCORE_REG_ED, // exception data XCORE_REG_SED, // save exception data XCORE_REG_KEP, // kernel entry pointer XCORE_REG_KSP, // kernel stack pointer XCORE_REG_ID, // thread ID XCORE_REG_ENDING, // <-- mark the end of the list of registers } xcore_reg; //> XCore instruction typedef enum xcore_insn { XCORE_INS_INVALID = 0, XCORE_INS_ADD, XCORE_INS_ANDNOT, XCORE_INS_AND, XCORE_INS_ASHR, XCORE_INS_BAU, XCORE_INS_BITREV, XCORE_INS_BLA, XCORE_INS_BLAT, XCORE_INS_BL, XCORE_INS_BF, XCORE_INS_BT, XCORE_INS_BU, XCORE_INS_BRU, XCORE_INS_BYTEREV, XCORE_INS_CHKCT, XCORE_INS_CLRE, XCORE_INS_CLRPT, XCORE_INS_CLRSR, XCORE_INS_CLZ, XCORE_INS_CRC8, XCORE_INS_CRC32, XCORE_INS_DCALL, XCORE_INS_DENTSP, XCORE_INS_DGETREG, XCORE_INS_DIVS, XCORE_INS_DIVU, XCORE_INS_DRESTSP, XCORE_INS_DRET, XCORE_INS_ECALLF, XCORE_INS_ECALLT, XCORE_INS_EDU, XCORE_INS_EEF, XCORE_INS_EET, XCORE_INS_EEU, XCORE_INS_ENDIN, XCORE_INS_ENTSP, XCORE_INS_EQ, XCORE_INS_EXTDP, XCORE_INS_EXTSP, XCORE_INS_FREER, XCORE_INS_FREET, XCORE_INS_GETD, XCORE_INS_GET, XCORE_INS_GETN, XCORE_INS_GETR, XCORE_INS_GETSR, XCORE_INS_GETST, XCORE_INS_GETTS, XCORE_INS_INCT, XCORE_INS_INIT, XCORE_INS_INPW, XCORE_INS_INSHR, XCORE_INS_INT, XCORE_INS_IN, XCORE_INS_KCALL, XCORE_INS_KENTSP, XCORE_INS_KRESTSP, XCORE_INS_KRET, XCORE_INS_LADD, XCORE_INS_LD16S, XCORE_INS_LD8U, XCORE_INS_LDA16, XCORE_INS_LDAP, XCORE_INS_LDAW, XCORE_INS_LDC, XCORE_INS_LDW, XCORE_INS_LDIVU, XCORE_INS_LMUL, XCORE_INS_LSS, XCORE_INS_LSUB, XCORE_INS_LSU, XCORE_INS_MACCS, XCORE_INS_MACCU, XCORE_INS_MJOIN, XCORE_INS_MKMSK, XCORE_INS_MSYNC, XCORE_INS_MUL, XCORE_INS_NEG, XCORE_INS_NOT, XCORE_INS_OR, XCORE_INS_OUTCT, XCORE_INS_OUTPW, XCORE_INS_OUTSHR, XCORE_INS_OUTT, XCORE_INS_OUT, XCORE_INS_PEEK, XCORE_INS_REMS, XCORE_INS_REMU, XCORE_INS_RETSP, XCORE_INS_SETCLK, XCORE_INS_SET, XCORE_INS_SETC, XCORE_INS_SETD, XCORE_INS_SETEV, XCORE_INS_SETN, XCORE_INS_SETPSC, XCORE_INS_SETPT, XCORE_INS_SETRDY, XCORE_INS_SETSR, XCORE_INS_SETTW, XCORE_INS_SETV, XCORE_INS_SEXT, XCORE_INS_SHL, XCORE_INS_SHR, XCORE_INS_SSYNC, XCORE_INS_ST16, XCORE_INS_ST8, XCORE_INS_STW, XCORE_INS_SUB, XCORE_INS_SYNCR, XCORE_INS_TESTCT, XCORE_INS_TESTLCL, XCORE_INS_TESTWCT, XCORE_INS_TSETMR, XCORE_INS_START, XCORE_INS_WAITEF, XCORE_INS_WAITET, XCORE_INS_WAITEU, XCORE_INS_XOR, XCORE_INS_ZEXT, XCORE_INS_ENDING, // <-- mark the end of the list of instructions } xcore_insn; //> Group of XCore instructions typedef enum xcore_insn_group { XCORE_GRP_INVALID = 0, // = CS_GRP_INVALID //> Generic groups // all jump instructions (conditional+direct+indirect jumps) XCORE_GRP_JUMP, // = CS_GRP_JUMP XCORE_GRP_ENDING, // <-- mark the end of the list of groups } xcore_insn_group; #ifdef __cplusplus } #endif #endif ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_api.hpp ================================================ // // kern_api.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_api_h #define kern_api_h #include #include #include #include #include #include #include class LiluAPI { public: /** * Initialise lilu api */ void init(); /** * Deinitialise lilu api */ void deinit(); /** * Errors returned by functions */ enum class Error { NoError, LockError, MemoryError, UnsupportedFeature, IncompatibleOS, Disabled, TooLate, Offline }; /** * Minimal API version that guarantees forward ABI compatibility * Present due to lack of OSBundleCompatibleVersion at kext injection */ static constexpr size_t CompatibilityVersion {parseModuleVersion("1.2.0")}; /** * Obtains api access by holding a lock, which is required when accessing out of the main context * * @param version api compatibility version * @param check do not wait on the lock but return Error::LockError on failure * * @return Error::NoError on success */ EXPORT Error requestAccess(size_t version=CompatibilityVersion, bool check=false); /** * Releases api lock * * @return Error::NoError on success */ EXPORT Error releaseAccess(); /** * You are supposed declare that your plugins work in at least one of these modes * It is assumed that single user mode is equal to normal, because it is generally * used to continue the load of a complete OS, and by default Lilu itself ignores it. */ enum RunningMode : uint32_t { RunningNormal = 1, AllowNormal = RunningNormal, RunningInstallerRecovery = 2, AllowInstallerRecovery = RunningInstallerRecovery, RunningSafeMode = 4, AllowSafeMode = RunningSafeMode }; /** * Obtain current run mode similarly to requirements * * @return run mode mask (RunningMode) */ inline uint32_t getRunMode() { return currentRunMode; } /** * Decides whether you are eligible to continue * * @param product product name * @param version product version * @param runmode bitmask of allowed enviornments * @param disableArg pointer to disabling boot arguments array * @param disableArgNum number of disabling boot arguments * @param debugArg pointer to debug boot arguments array * @param debugArgNum number of debug boot arguments * @param betaArg pointer to beta boot arguments array * @param betaArgNum number of beta boot arguments * @param min minimal required kernel version * @param max maximum supported kernel version * @param printDebug returns debug printing status (based on debugArg) * * @return Error::NoError on success */ EXPORT Error shouldLoad(const char *product, size_t version, uint32_t runmode, const char **disableArg, size_t disableArgNum, const char **debugArg, size_t debugArgNum, const char **betaArg, size_t betaArgNum, KernelVersion min, KernelVersion max, bool &printDebug); /** * Kernel patcher loaded callback * * @param user user provided pointer at registering * @param patcher kernel patcher instance */ using t_patcherLoaded = void (*)(void *user, KernelPatcher &patcher); /** * Registers custom provided callbacks for later invocation on kernel patcher initialisation * * @param callback your callback function * @param user your pointer that will be passed to the callback function * * @return Error::NoError on success */ EXPORT Error onPatcherLoad(t_patcherLoaded callback, void *user=nullptr); /** * Registers custom provided callbacks for later invocation on kernel patcher initialisation * Enforced version, which panics on registration failure (assuming your code cannot continue otherwise) * * @param callback your callback function * @param user your pointer that will be passed to the callback function * * @return Error::NoError on success */ inline void onPatcherLoadForce(t_patcherLoaded callback, void *user=nullptr) { auto err = onPatcherLoad(callback, user); if (err != Error::NoError) PANIC("api", "onPatcherLoad failed with code %d", err); } /** * Kext loaded callback * Note that you will get notified of all the requested kexts for speed reasons * * @param user user provided pointer at registering * @param patcher kernel patcher instance * @param id loaded kinfo id * @param slide loaded slide * @param size loaded memory size */ using t_kextLoaded = void (*)(void *user, KernelPatcher &patcher, size_t id, mach_vm_address_t slide, size_t size); /** * Registers custom provided callbacks for later invocation on kext load * * @param infos your kext list (make sure to point to const memory) * @param num number of provided kext entries * @param callback your callback function (optional) * @param user your pointer that will be passed to the callback function (optional) * * @return Error::NoError on success */ EXPORT Error onKextLoad(KernelPatcher::KextInfo *infos, size_t num=1, t_kextLoaded callback=nullptr, void *user=nullptr); /** * Registers custom provided callbacks for later invocation on kext load * Enforced version, which panics on registration failure (assuming your code cannot continue otherwise) * * @param infos your kext list (make sure to point to const memory) * @param num number of provided kext entries * @param callback your callback function (optional) * @param user your pointer that will be passed to the callback function (optional) * * @return Error::NoError on success */ inline void onKextLoadForce(KernelPatcher::KextInfo *infos, size_t num=1, t_kextLoaded callback=nullptr, void *user=nullptr) { auto err = onKextLoad(infos, num, callback, user); if (err != Error::NoError) PANIC("api", "onKextLoad failed with code %d", err); } /** * Registers custom provided callbacks for later invocation on binary load * * @param infos your binary list (make sure to point to const memory) * @param num number of provided binary entries * @param callback your callback function (could be null) * @param user your pointer that will be passed to the callback function * @param mods optional mod list (make sure to point to const memory) * @param modnum number of provided mod entries * * @return Error::NoError on success */ EXPORT Error onProcLoad(UserPatcher::ProcInfo *infos, size_t num=1, UserPatcher::t_BinaryLoaded callback=nullptr, void *user=nullptr, UserPatcher::BinaryModInfo *mods=nullptr, size_t modnum=0); /** * Registers custom provided callbacks for later invocation on binary load * Enforced version, which panics on registration failure (assuming your code cannot continue otherwise) * * @param infos your binary list (make sure to point to const memory) * @param num number of provided binary entries * @param callback your callback function (could be null) * @param user your pointer that will be passed to the callback function * @param mods optional mod list (make sure to point to const memory) * @param modnum number of provided mod entries * * @return Error::NoError on success */ inline void onProcLoadForce(UserPatcher::ProcInfo *infos, size_t num=1, UserPatcher::t_BinaryLoaded callback=nullptr, void *user=nullptr, UserPatcher::BinaryModInfo *mods=nullptr, size_t modnum=0) { auto err = onProcLoad(infos, num, callback, user, mods, modnum); if (err != Error::NoError) PANIC("api", "onProcLoad failed with code %d", err); } /** * Kext loaded callback * Note that you will get notified of all the requested kexts for speed reasons * * @param user user provided pointer at registering * @param task task * @param entitlement loaded kinfo id * @param original original entitlement value */ using t_entitlementRequested = void (*)(void *user, task_t task, const char *entitlement, OSObject *&original); /** * Registers custom provided callbacks for later invocation on entitlement registration * * @param callback your callback function * @param user your pointer that will be passed to the callback function * * @return Error::NoError on success */ EXPORT Error onEntitlementRequest(t_entitlementRequested callback, void *user=nullptr); /** * Registers custom provided callbacks for later invocation on entitlement registration * Enforced version, which panics on registration failure (assuming your code cannot continue otherwise) * * @param callback your callback function * @param user your pointer that will be passed to the callback function * * @return Error::NoError on success */ inline void onEntitlementRequestForce(t_entitlementRequested callback, void *user=nullptr) { auto err = onEntitlementRequest(callback, user); if (err != Error::NoError) PANIC("api", "onEntitlementRequest failed with code %d", err); } /** * Processes all the registered patcher load callbacks * * @param patcher kernel patcher instance */ void processPatcherLoadCallbacks(KernelPatcher &patcher); /** * Processes all the registered kext load callbacks * * @param patcher kernel patcher instance * @param id loaded kinfo id * @param slide loaded slide * @param size loaded memory size * @param reloadable kinfo could be unloaded */ void processKextLoadCallbacks(KernelPatcher &patcher, size_t id, mach_vm_address_t slide, size_t size, bool reloadable); /** * Processes all the registered user patcher load callbacks * * @param patcher user patcher instance */ void processUserLoadCallbacks(UserPatcher &patcher); /** * Processes all the registered binary load callbacks * * @param patcher kernel patcher instance * @param map process image vm_map * @param path path to the binary absolute or relative * @param len path length excluding null terminator */ void processBinaryLoadCallbacks(UserPatcher &patcher, vm_map_t map, const char *path, size_t len); /** * Activates patchers * * @param kpatcher kernel patcher instance * @param upatcher user patcher instance */ void activate(KernelPatcher &kpatcher, UserPatcher &upatcher); private: /** * Api lock */ IOLock *access {nullptr}; /** * Defines current running modes */ uint32_t currentRunMode {}; /** * No longer accept any requests */ bool apiRequestsOver {false}; /** * Stores call function and user pointer */ template using stored_pair = ppair; /** * Stores multiple callbacks */ template using stored_vector = evector *, stored_pair::deleter>; /** * List of patcher callbacks */ stored_vector patcherLoadedCallbacks; /** * List of kext callbacks */ stored_vector kextLoadedCallbacks; /** * List of binary callbacks */ stored_vector binaryLoadedCallbacks; /** * List of entitlement callbacks */ stored_vector entitlementRequestedCallbacks; /** * List of processed kexts */ stored_vector storedKexts; /** * List of processed procs */ evector storedProcs; /** * List of processed binary mods */ evector storedBinaryMods; /** * Copy client entitlement type (see IOUserClient) */ using t_copyClientEntitlement = OSObject *(*)(task_t, const char *); /** * Hooked entitlement copying method */ static OSObject *copyClientEntitlement(task_t task, const char *entitlement); /** * Trampoline for original entitlement copying method */ t_copyClientEntitlement orgCopyClientEntitlement {nullptr}; }; EXPORT extern LiluAPI lilu; #endif /* kern_api_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_atomic.hpp ================================================ // // kern_atomic.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_atomic_h #define kern_atomic_h #if defined(__has_include) #if __has_include() #include #else // Provide basic atomic support for legacy compilers typedef enum memory_order { memory_order_relaxed = __ATOMIC_RELAXED, memory_order_consume = __ATOMIC_CONSUME, memory_order_acquire = __ATOMIC_ACQUIRE, memory_order_release = __ATOMIC_RELEASE, memory_order_acq_rel = __ATOMIC_ACQ_REL, memory_order_seq_cst = __ATOMIC_SEQ_CST } memory_order; #define atomic_init __c11_atomic_init #define atomic_store_explicit __c11_atomic_store #define atomic_load_explicit __c11_atomic_load #define atomic_compare_exchange_strong_explicit __c11_atomic_compare_exchange_strong #endif #else // Assume to be available when there is no __has_include. #include #endif #endif /* kern_atomic_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_compat.hpp ================================================ // // kern_compat.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_compat_hpp #define kern_compat_hpp #include //Actually do not include to catch real errors //#include #include // Please do not use memcpy and similar functions, since they compile // to macros unsupported by any other system with 10.13 SDK unless // Availability.h header is included. #define lilu_os_memcpy(...) (memcpy)(__VA_ARGS__) #define lilu_os_memmove(...) (memmove)(__VA_ARGS__) #define lilu_os_strncpy(...) (strncpy)(__VA_ARGS__) #define lilu_os_strncat(...) (strncat)(__VA_ARGS__) #define lilu_os_strlcat(...) (strlcat)(__VA_ARGS__) #define lilu_os_strlcpy(...) (strlcpy)(__VA_ARGS__) #define lilu_os_strcat(...) (strcat)(__VA_ARGS__) #define lilu_os_bcopy(...) (bcopy)(__VA_ARGS__) // Additionally disallow the use of the original functions #ifndef LILU_DISABLE_MEMFUNC_REDEFINE #ifdef memcpy #undef memcpy #define memcpy(...) _Pragma("GCC error \"Avoid memcpy due to 10.13 SDK bugs!\"") #endif #ifdef memmove #undef memmove #define memmove(...) _Pragma("GCC error \"Avoid memmove due to 10.13 SDK bugs!\"") #endif #ifdef strncpy #undef strncpy #define strncpy(...) _Pragma("GCC error \"Avoid strncpy due to 10.13 SDK bugs!\"") #endif #ifdef strncat #undef strncat #define strncat(...) _Pragma("GCC error \"Avoid strncat due to 10.13 SDK bugs!\"") #endif #ifdef strlcat #undef strlcat #define strlcat(...) _Pragma("GCC error \"Avoid strlcat due to 10.13 SDK bugs!\"") #endif #ifdef strlcpy #undef strlcpy #define strlcpy(...) _Pragma("GCC error \"Avoid strlcpy due to 10.13 SDK bugs!\"") #endif #ifdef strcat #undef strcat #define strcat(...) _Pragma("GCC error \"Avoid strcat due to 10.13 SDK bugs!\"") #endif #ifdef bcopy #undef bcopy #define bcopy(...) _Pragma("GCC error \"Avoid bcopy due to 10.13 SDK bugs!\"") #endif #endif /* LILU_DISABLE_MEMFUNC_REDEFINE */ // This may not be nice but will protect users from changes in KernInfo strcture. #ifndef LILU_DISABLE_BRACE_WARNINGS #pragma clang diagnostic error "-Wmissing-braces" #endif #endif /* kern_compat_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_compression.hpp ================================================ // // kern_compression.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_compression_hpp #define kern_compression_hpp #include #ifdef LILU_COMPRESSION_SUPPORT #include #include namespace Compression { /** * Compression constants and modes */ static constexpr uint32_t Magic {0x706D6F63}; //comp static constexpr uint32_t ModeLZVN {0x6E767A6C}; //lzvn static constexpr uint32_t ModeLZSS {0x73737A6C}; //lzss /** * Compressed header structure */ struct Header { uint32_t magic; uint32_t compression; uint32_t hash; // adler32 uint32_t decompressed; uint32_t compressed; uint32_t version; uint32_t padding[90]; }; /** * Typed decompressing function (currently for lzvn and lzss) * * @param compression compression type * @param dstlen decompression buffer size * @param src compressed data * @param srclen compressed data size * @param buffer preallocated buffer to use * * @return decompressed buffer (must be freeded by Buffer::deleter if not preallocated) */ EXPORT uint8_t *decompress(uint32_t compression, uint32_t dstlen, const uint8_t *src, uint32_t srclen, uint8_t *buffer=nullptr); /** * Typed compressing function (currently for lzss) * * @param compression compression type * @param dstlen maximum compression buffer size * @param src uncompressed data * @param srclen uncompressed data size * @param buffer preallocated buffer to use * * @return compressed buffer with its actual size in dstlen (must be freeded by Buffer::deleter if not preallocated) */ EXPORT uint8_t *compress(uint32_t compression, uint32_t &dstlen, const uint8_t *src, uint32_t srclen, uint8_t *buffer=nullptr); } #endif /* LILU_COMPRESSION_SUPPORT */ #endif /* kern_compression_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_config.hpp ================================================ // // kern_config.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_config_hpp #define kern_config_hpp /** * Enable kext patching support */ #define LILU_KEXTPATCH_SUPPORT 1 /** * Enable compression and decompression support */ #define LILU_COMPRESSION_SUPPORT 1 /** * Enable advanced disassembly API based on capstone */ // #define LILU_ADVANCED_DISASSEMBLY 1 /** * Specify custom initialisation code * Use these in plugins in Xcode Project Preprocessor Macros section. */ // #define LILU_CUSTOM_IOKIT_INIT 1 // #define LILU_CUSTOM_KMOD_INIT 1 #endif /* kern_config_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_cpu.hpp ================================================ // // kern_cpu.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_cpu_h #define kern_cpu_h #include #include #include #include /** * XNU CPU-related exports missing from headers */ extern "C" { int cpu_number(void); void mp_rendezvous_no_intrs(void (*action_func)(void *), void *arg); }; namespace CPUInfo { /** * Keep this in sync to XNU MAX_CPUS from osfmk/i386/mp.h */ static constexpr size_t MaxCpus {64}; /** * Contents of CPUID(1) eax register contents describing model version */ struct CpuVersion { uint32_t stepping : 4; uint32_t model : 4; uint32_t family : 4; uint32_t type : 2; uint32_t reserved1 : 2; uint32_t extendedModel : 4; uint32_t extendedFamily : 8; uint32_t reserved2 : 4; }; static_assert(sizeof(CpuVersion) == sizeof(uint32_t), "CpuVersion size mismatch!"); /** * Intel CPU models as returned by CPUID * The list is synchronised and updated with XNU source code (osfmk/i386/cpuid.h). * Names are altered to avoid conflicts just in case. * Last update: xnu-4903.221.2 * Some details could be found on http://instlatx64.atw.hu and https://en.wikichip.org/wiki/64-bit_architecture#x86 * Also: https://www.intel.com/content/dam/www/public/us/en/documents/sa00115-microcode-update-guidance.pdf */ enum CpuModel { CPU_MODEL_UNKNOWN = 0x00, CPU_MODEL_PENRYN = 0x17, CPU_MODEL_NEHALEM = 0x1A, CPU_MODEL_FIELDS = 0x1E, /* Lynnfield, Clarksfield */ CPU_MODEL_DALES = 0x1F, /* Havendale, Auburndale */ CPU_MODEL_NEHALEM_EX = 0x2E, CPU_MODEL_DALES_32NM = 0x25, /* Clarkdale, Arrandale */ CPU_MODEL_WESTMERE = 0x2C, /* Gulftown, Westmere-EP/-WS */ CPU_MODEL_WESTMERE_EX = 0x2F, CPU_MODEL_SANDYBRIDGE = 0x2A, CPU_MODEL_JAKETOWN = 0x2D, CPU_MODEL_IVYBRIDGE = 0x3A, CPU_MODEL_IVYBRIDGE_EP = 0x3E, CPU_MODEL_CRYSTALWELL = 0x46, CPU_MODEL_HASWELL = 0x3C, CPU_MODEL_HASWELL_EP = 0x3F, CPU_MODEL_HASWELL_ULT = 0x45, CPU_MODEL_BROADWELL = 0x3D, CPU_MODEL_BROADWELL_ULX = 0x3D, CPU_MODEL_BROADWELL_ULT = 0x3D, CPU_MODEL_BRYSTALWELL = 0x47, CPU_MODEL_SKYLAKE = 0x4E, CPU_MODEL_SKYLAKE_ULT = 0x4E, CPU_MODEL_SKYLAKE_ULX = 0x4E, CPU_MODEL_SKYLAKE_DT = 0x5E, CPU_MODEL_SKYLAKE_W = 0x55, CPU_MODEL_KABYLAKE = 0x8E, CPU_MODEL_KABYLAKE_ULT = 0x8E, CPU_MODEL_KABYLAKE_ULX = 0x8E, CPU_MODEL_KABYLAKE_DT = 0x9E, CPU_MODEL_COFFEELAKE = 0x9E, CPU_MODEL_COFFEELAKE_ULT = 0x9E, CPU_MODEL_COFFEELAKE_ULX = 0x9E, CPU_MODEL_COFFEELAKE_DT = 0x9E, CPU_MODEL_CANNONLAKE = 0x66, CPU_MODEL_ICELAKE = 0x7E }; /** * Known CPU vendors */ enum class CpuVendor { Unknown, AMD, Intel /* Add more processors here if needed */ }; /** * Intel CPU generations (starting from 0) */ enum class CpuGeneration { Unknown, Penryn, Nehalem, Westmere, SandyBridge, IvyBridge, Haswell, Broadwell, Skylake, KabyLake, CoffeeLake, CannonLake, IceLake, MaxGeneration }; /* Responses identification request with %eax 0 */ /* AMD: "AuthenticAMD" */ static constexpr uint32_t signature_AMD_ebx = 0x68747541; static constexpr uint32_t signature_AMD_edx = 0x69746e65; static constexpr uint32_t signature_AMD_ecx = 0x444d4163; /* CENTAUR: "CentaurHauls" */ static constexpr uint32_t signature_CENTAUR_ebx = 0x746e6543; static constexpr uint32_t signature_CENTAUR_edx = 0x48727561; static constexpr uint32_t signature_CENTAUR_ecx = 0x736c7561; /* CYRIX: "CyrixInstead" */ static constexpr uint32_t signature_CYRIX_ebx = 0x69727943; static constexpr uint32_t signature_CYRIX_edx = 0x736e4978; static constexpr uint32_t signature_CYRIX_ecx = 0x64616574; /* INTEL: "GenuineIntel" */ static constexpr uint32_t signature_INTEL_ebx = 0x756e6547; static constexpr uint32_t signature_INTEL_edx = 0x49656e69; static constexpr uint32_t signature_INTEL_ecx = 0x6c65746e; /* TM1: "TransmetaCPU" */ static constexpr uint32_t signature_TM1_ebx = 0x6e617254; static constexpr uint32_t signature_TM1_edx = 0x74656d73; static constexpr uint32_t signature_TM1_ecx = 0x55504361; /* TM2: "GenuineTMx86" */ static constexpr uint32_t signature_TM2_ebx = 0x756e6547; static constexpr uint32_t signature_TM2_edx = 0x54656e69; static constexpr uint32_t signature_TM2_ecx = 0x3638784d; /* NSC: "Geode by NSC" */ static constexpr uint32_t signature_NSC_ebx = 0x646f6547; static constexpr uint32_t signature_NSC_edx = 0x43534e20; static constexpr uint32_t signature_NSC_ecx = 0x79622065; /* NEXGEN: "NexGenDriven" */ static constexpr uint32_t signature_NEXGEN_ebx = 0x4778654e; static constexpr uint32_t signature_NEXGEN_edx = 0x72446e65; static constexpr uint32_t signature_NEXGEN_ecx = 0x6e657669; /* RISE: "RiseRiseRise" */ static constexpr uint32_t signature_RISE_ebx = 0x65736952; static constexpr uint32_t signature_RISE_edx = 0x65736952; static constexpr uint32_t signature_RISE_ecx = 0x65736952; /* SIS: "SiS SiS SiS " */ static constexpr uint32_t signature_SIS_ebx = 0x20536953; static constexpr uint32_t signature_SIS_edx = 0x20536953; static constexpr uint32_t signature_SIS_ecx = 0x20536953; /* UMC: "UMC UMC UMC " */ static constexpr uint32_t signature_UMC_ebx = 0x20434d55; static constexpr uint32_t signature_UMC_edx = 0x20434d55; static constexpr uint32_t signature_UMC_ecx = 0x20434d55; /* VIA: "VIA VIA VIA " */ static constexpr uint32_t signature_VIA_ebx = 0x20414956; static constexpr uint32_t signature_VIA_edx = 0x20414956; static constexpr uint32_t signature_VIA_ecx = 0x20414956; /* VORTEX: "Vortex86 SoC" */ static constexpr uint32_t signature_VORTEX_ebx = 0x74726f56; static constexpr uint32_t signature_VORTEX_edx = 0x36387865; static constexpr uint32_t signature_VORTEX_ecx = 0x436f5320; /* Features in %ecx for leaf 1 */ static constexpr uint32_t bit_SSE3 = 0x00000001; static constexpr uint32_t bit_PCLMULQDQ = 0x00000002; static constexpr uint32_t bit_DTES64 = 0x00000004; static constexpr uint32_t bit_MONITOR = 0x00000008; static constexpr uint32_t bit_DSCPL = 0x00000010; static constexpr uint32_t bit_VMX = 0x00000020; static constexpr uint32_t bit_SMX = 0x00000040; static constexpr uint32_t bit_EIST = 0x00000080; static constexpr uint32_t bit_TM2 = 0x00000100; static constexpr uint32_t bit_SSSE3 = 0x00000200; static constexpr uint32_t bit_CNXTID = 0x00000400; static constexpr uint32_t bit_FMA = 0x00001000; static constexpr uint32_t bit_CMPXCHG16B = 0x00002000; static constexpr uint32_t bit_xTPR = 0x00004000; static constexpr uint32_t bit_PDCM = 0x00008000; static constexpr uint32_t bit_PCID = 0x00020000; static constexpr uint32_t bit_DCA = 0x00040000; static constexpr uint32_t bit_SSE41 = 0x00080000; static constexpr uint32_t bit_SSE42 = 0x00100000; static constexpr uint32_t bit_x2APIC = 0x00200000; static constexpr uint32_t bit_MOVBE = 0x00400000; static constexpr uint32_t bit_POPCNT = 0x00800000; static constexpr uint32_t bit_TSCDeadline = 0x01000000; static constexpr uint32_t bit_AESNI = 0x02000000; static constexpr uint32_t bit_XSAVE = 0x04000000; static constexpr uint32_t bit_OSXSAVE = 0x08000000; static constexpr uint32_t bit_AVX = 0x10000000; static constexpr uint32_t bit_F16C = 0x20000000; static constexpr uint32_t bit_RDRND = 0x40000000; /* Features in %edx for leaf 1 */ static constexpr uint32_t bit_FPU = 0x00000001; static constexpr uint32_t bit_VME = 0x00000002; static constexpr uint32_t bit_DE = 0x00000004; static constexpr uint32_t bit_PSE = 0x00000008; static constexpr uint32_t bit_TSC = 0x00000010; static constexpr uint32_t bit_MSR = 0x00000020; static constexpr uint32_t bit_PAE = 0x00000040; static constexpr uint32_t bit_MCE = 0x00000080; static constexpr uint32_t bit_CX8 = 0x00000100; static constexpr uint32_t bit_APIC = 0x00000200; static constexpr uint32_t bit_SEP = 0x00000800; static constexpr uint32_t bit_MTRR = 0x00001000; static constexpr uint32_t bit_PGE = 0x00002000; static constexpr uint32_t bit_MCA = 0x00004000; static constexpr uint32_t bit_CMOV = 0x00008000; static constexpr uint32_t bit_PAT = 0x00010000; static constexpr uint32_t bit_PSE36 = 0x00020000; static constexpr uint32_t bit_PSN = 0x00040000; static constexpr uint32_t bit_CLFSH = 0x00080000; static constexpr uint32_t bit_DS = 0x00200000; static constexpr uint32_t bit_ACPI = 0x00400000; static constexpr uint32_t bit_MMX = 0x00800000; static constexpr uint32_t bit_FXSR = 0x01000000; static constexpr uint32_t bit_SSE = 0x02000000; static constexpr uint32_t bit_SSE2 = 0x04000000; static constexpr uint32_t bit_SS = 0x08000000; static constexpr uint32_t bit_HTT = 0x10000000; static constexpr uint32_t bit_TM = 0x20000000; static constexpr uint32_t bit_PBE = 0x80000000; /* Features in %ebx for leaf 7 sub-leaf 0 */ static constexpr uint32_t bit_FSGSBASE = 0x00000001; static constexpr uint32_t bit_SGX = 0x00000004; static constexpr uint32_t bit_BMI = 0x00000008; static constexpr uint32_t bit_HLE = 0x00000010; static constexpr uint32_t bit_AVX2 = 0x00000020; static constexpr uint32_t bit_SMEP = 0x00000080; static constexpr uint32_t bit_BMI2 = 0x00000100; static constexpr uint32_t bit_ENH_MOVSB = 0x00000200; static constexpr uint32_t bit_RTM = 0x00000800; static constexpr uint32_t bit_MPX = 0x00004000; static constexpr uint32_t bit_AVX512F = 0x00010000; static constexpr uint32_t bit_AVX512DQ = 0x00020000; static constexpr uint32_t bit_RDSEED = 0x00040000; static constexpr uint32_t bit_ADX = 0x00080000; static constexpr uint32_t bit_AVX512IFMA = 0x00200000; static constexpr uint32_t bit_CLFLUSHOPT = 0x00800000; static constexpr uint32_t bit_CLWB = 0x01000000; static constexpr uint32_t bit_AVX512PF = 0x04000000; static constexpr uint32_t bit_AVX51SER = 0x08000000; static constexpr uint32_t bit_AVX512CD = 0x10000000; static constexpr uint32_t bit_SHA = 0x20000000; static constexpr uint32_t bit_AVX512BW = 0x40000000; static constexpr uint32_t bit_AVX512VL = 0x80000000; /* Features in %ecx for leaf 7 sub-leaf 0 */ static constexpr uint32_t bit_PREFTCHWT1 = 0x00000001; static constexpr uint32_t bit_AVX512VBMI = 0x00000002; static constexpr uint32_t bit_PKU = 0x00000004; static constexpr uint32_t bit_OSPKE = 0x00000010; static constexpr uint32_t bit_AVX512VPOPCNTDQ = 0x00004000; static constexpr uint32_t bit_RDPID = 0x00400000; /* Features in %edx for leaf 7 sub-leaf 0 */ static constexpr uint32_t bit_AVX5124VNNIW = 0x00000004; static constexpr uint32_t bit_AVX5124FMAPS = 0x00000008; /* Features in %eax for leaf 13 sub-leaf 1 */ static constexpr uint32_t bit_XSAVEOPT = 0x00000001; static constexpr uint32_t bit_XSAVEC = 0x00000002; static constexpr uint32_t bit_XSAVES = 0x00000008; /* Features in %ecx for leaf = 0x80000001 */; static constexpr uint32_t bit_LAHF_LM = 0x00000001; static constexpr uint32_t bit_ABM = 0x00000020; static constexpr uint32_t bit_SSE4a = 0x00000040; static constexpr uint32_t bit_PRFCHW = 0x00000100; static constexpr uint32_t bit_XOP = 0x00000800; static constexpr uint32_t bit_LWP = 0x00008000; static constexpr uint32_t bit_FMA4 = 0x00010000; static constexpr uint32_t bit_TBM = 0x00200000; static constexpr uint32_t bit_MWAITX = 0x20000000; /* Features in %edx for leaf = 0x80000001 */; static constexpr uint32_t bit_MMXEXT = 0x00400000; static constexpr uint32_t bit_LM = 0x20000000; static constexpr uint32_t bit_3DNOWP = 0x40000000; static constexpr uint32_t bit_3DNOW = 0x80000000; /* Features in %ebx for leaf = 0x80000001 */; static constexpr uint32_t bit_CLZERO = 0x00000001; /** * Reads CPU information and other data. */ void loadCpuInformation(); /** * Installed CPU information mapping */ struct CpuTopology { /** * Number of physical processors installed */ uint8_t packageCount {0}; /** * Number of physical cores per package */ uint8_t physicalCount[MaxCpus] {}; /** * Number of logical cores per package */ uint8_t logicalCount[MaxCpus] {}; /** * Total number of physical cores */ inline uint8_t totalPhysical() { uint8_t count = physicalCount[0]; for (uint8_t i = 1; i < packageCount; i++) count += physicalCount[i]; return count; } /** * Total number of logical cores */ inline uint8_t totalLogical() { uint8_t count = logicalCount[0]; for (uint8_t i = 1; i < packageCount; i++) count += logicalCount[i]; return count; } /** * Mapping of cpu_number() to CPU package from 0 to packageCount */ uint8_t numberToPackage[MaxCpus] {}; /** * Mapping of cpu_number() to physical core from 0 to physicalCount in package */ uint8_t numberToPhysical[MaxCpus] {}; /** * Mapping of cpu_number() to physical cores from 0 to totalPhysical. */ inline uint8_t numberToPhysicalUnique(uint8_t i) { uint8_t num = 0; uint8_t package = numberToPackage[i]; for (uint8_t i = 0; i < package; i++) num += physicalCount[i]; return num + numberToPhysical[i]; } /** * Mapping of cpu_number() to logical thread from 0 to logicalCount in package * Note, that the list is sorted, and the first physicalCount logical threads * correspond to their corresponding physical cores. */ uint8_t numberToLogical[MaxCpus] {}; }; /** * Get running CPU generation. * * @param ofamily a pointer to store CPU family in * @param omodel a pointer to store CPU model in * @param ostepping a pointer to store CPU stepping in * * @return detected Intel CPU generation */ EXPORT CpuGeneration getGeneration(uint32_t *ofamily=nullptr, uint32_t *omodel=nullptr, uint32_t *ostepping=nullptr); /** * Obtain CPU topology. * * @param topology parsed cpu topology, must be passed zeroed. * * @return true on success */ EXPORT bool getCpuTopology(CpuTopology &topology); /** * Obtain cpuid registers * * @param no cpuid number * @param count cpuid count * @param a eax output pointer (optional) * @param b ebx output pointer (optional) * @param c ecx output pointer (optional) * @param d edx output pointer (optional) * * @return true if supported */ EXPORT bool getCpuid(uint32_t no, uint32_t count, uint32_t *a, uint32_t *b=nullptr, uint32_t *c=nullptr, uint32_t *d=nullptr); } #endif /* kern_cpu_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_crypto.hpp ================================================ // // kern_crypto.hpp // Lilu // // Copyright © 2017 vit9696. All rights reserved. // #ifndef kern_crypto_h #define kern_crypto_h #include #include #include namespace Crypto { /** * Currently this is equal to both key size and block size */ static constexpr uint32_t BlockSize = 16; /** * Currently this is guaranteed hash size */ static constexpr uint32_t MinDigestSize = 32; /** * Encrypted data format */ struct PACKED Encrypted { uint8_t iv[BlockSize]; // Initialisation vector struct PACKED Data { uint32_t size; // Actual encrypted buffer size uint8_t buf[BlockSize - sizeof(uint32_t)]; // Encrypted buffer >= BlockSize }; union { Data enc; uint8_t buf[BlockSize]; }; }; /** * Securely erase memory buffer * Based off cc_clear from corecrypto (src/cc_clear.c) * * @param len buffer length * @param dst buffer pointer */ inline void zeroMemory(size_t len, void *dst) { auto vptr = reinterpret_cast(dst); while (len--) *vptr++ = '\0'; } /** * Generates cryptographically secure encryption key (from /dev/random) * * @return generated key of at least BlockSize bits long (must be freeded by Buffer::deleter) or nullptr */ EXPORT uint8_t *genUniqueKey(uint32_t size=BlockSize); /** * Encrypts data of specified size and stores in Encrypted format * * @param key encryption key returned by genUniqueKey * @param src source data * @param size data size, encrypted size is returned on success * * @param encrypted data in Encrypted format (must be freeded by Buffer::deleter) or nullptr */ EXPORT uint8_t *encrypt(const uint8_t *key, const uint8_t *src, uint32_t &size); /** * Decrypts data of specified size stored in Encrypted format * * @param key encryption key returned by genUniqueKey * @param src source data * @param size data size, decrypted size is returned on success * * @param decrypted data (must be freeded by Buffer::deleter) or nullptr */ EXPORT uint8_t *decrypt(const uint8_t *key, const uint8_t *src, uint32_t &size); /** * Calculate digest of given size * * @param src source data * @param size data size * * @return digest hash of at least MinDigestSize bytes (must be freeded by Buffer::deleter) or nullptr */ EXPORT uint8_t *hash(const uint8_t *src, uint32_t size); } #endif /* kern_crypto_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_devinfo.hpp ================================================ // // kern_devinfo.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_devinfo_h #define kern_devinfo_h #include #include #include /** * Obtain installed devices split into categories. * Should be used from onPatcherLoad and onwards. */ class DeviceInfo { /** * Updates reportedLayoutId */ void updateLayoutId(); /** * Updates reportedFramebufferId */ void updateFramebufferId(); /** * Updates firmwareVendor */ void updateFirmwareVendor(); /** * Obtains devices from PCI root * * @param pciRoot PCI root instance (commonly PCI0@0 device) */ void grabDevicesFromPciRoot(IORegistryEntry *pciRoot); public: /** * Obtains autodetected legacy framebuffer if applicable * * @return framebuffer or 0xFFFFFFFF */ static uint32_t getLegacyFramebufferId(); /** * Checks whether the framebuffer has connectors or not. * * @return true if the framebuffer has no connectors */ static bool isConnectorLessPlatformId(uint32_t id); /** * Common external GPU parameter list */ struct ExternalVideo { /** * Aka GFX0 device */ IORegistryEntry *video {nullptr}; /** * Aka HDAU device */ IORegistryEntry *audio {nullptr}; /** * External GPU vendor */ uint32_t vendor {0}; }; /** * Aka HDEF device */ IORegistryEntry *audioBuiltinAnalog {nullptr}; /** * Aka HDAU device for builtin GPU */ IORegistryEntry *audioBuiltinDigital {nullptr}; /** * Aka IGPU device */ IORegistryEntry *videoBuiltin {nullptr}; /** * Aka IMEI device */ IORegistryEntry *managementEngine {nullptr}; /** * Aka GFX0 devices (kept in sync with audioExternal) */ evector videoExternal; private: /** * This is the default reported layout-id passed to reportedLayoutId. * The reason for choosing 7 is its presence in 10.14 and the fact * Apple frameworks still communicate to the files present on disk. * For information purposes only! Use reportedLayoutId! */ static constexpr uint32_t DefaultReportedLayoutId = 7; /** * The boot-arg to override the reported layout-id to AppleHDA. * For user configuration only! Use reportedLayoutId! */ static constexpr const char *ReportedLayoutIdArg = "alcapplid"; /** * The property to override the reported layout-id to AppleHDA. * For user configuration only! Use reportedLayoutId! */ static constexpr const char *ReportedLayoutIdName = "apple-layout-id"; public: /** * Layout id to be reported by all audio devices (you must update it yourself). * This follows the standard convention initially found in AppleALC: * alcapplid=X boot-arg has highest priority and overrides any other value. * apple-layout-id HDEF prop has normal priority, you may use it if you need. * DefaultReportedLayoutId will be used if both of the above are not set. */ uint32_t reportedLayoutId {0}; private: /** * The boot-arg to override the reported AAPL,ig-platform-id to Intel drivers. * For user configuration only! Use reportedFramebufferId! */ static constexpr const char *ReportedFrameIdArg = "igfxframe"; /** * The boot-arg to override the reported AAPL,ig-platform-id to Intel drivers. * Sets VESA framebuffer id (0xFFFFFFFF). * For user configuration only! Use reportedFramebufferId! */ static constexpr const char *ReportedVesaIdArg = "-igfxvesa"; /** * The boot-arg to force-disable any external GPU if found. * For user configuration only! Use requestedExternalSwitchOff! */ static constexpr const char *RequestedExternalSwitchOffArg {"-wegnoegpu"}; /** * The property to set your platform id for Intel drivers (Ivy and newer). * For user configuration only! Use reportedFramebufferName! */ static constexpr const char *ReportedFrameIdName = "AAPL,ig-platform-id"; /** * The property to set your platform id for Intel drivers (Sandy). * For user configuration only! Use reportedFramebufferName! */ static constexpr const char *ReportedFrameIdLegacyName = "AAPL,snb-platform-id"; /** * The IGPU property to force-disable any external GPU if found. * For user configuration only! Use requestedExternalSwitchOff! */ static constexpr const char *RequestedExternalSwitchOffName {"disable-external-gpu"}; /** * Known platform ids used by Intel GPU kexts * For user configuration only! */ static constexpr uint32_t DefaultAppleSkylakePlatformId {0x19120000}; static constexpr uint32_t DefaultAppleKabyLakePlatformId {0x59160000}; static constexpr uint32_t DefaultAppleCoffeeLakePlatformId {0x3EA50000}; static constexpr uint32_t DefaultAppleCannonLakePlatformId {0x5A520000}; static constexpr uint32_t DefaultAppleIceLakeRealPlatformId {0x8A520000}; static constexpr uint32_t DefaultAppleIceLakeSimulatorPlatformId {0xFF050000}; /** * Framebuffers without any ports used for hardware acceleration only * Note 1: Broadwell framebuffers all have connectors added. * Note 2: Coffee Lake framebuffers without connectors are only present in 10.14. * Note 3: prerelease Cannon Lake and Ice Lake framebuffers are without connectors. * For user configuration only! */ static constexpr uint32_t ConnectorLessSandyBridgePlatformId1 {0x00030030}; static constexpr uint32_t ConnectorLessSandyBridgePlatformId2 {0x00050000}; static constexpr uint32_t ConnectorLessIvyBridgePlatformId1 {0x01620006}; static constexpr uint32_t ConnectorLessIvyBridgePlatformId2 {0x01620007}; static constexpr uint32_t ConnectorLessHaswellPlatformId1 {0x04120004}; static constexpr uint32_t ConnectorLessHaswellPlatformId2 {0x0412000B}; static constexpr uint32_t ConnectorLessSkylakePlatformId1 {0x19020001}; static constexpr uint32_t ConnectorLessSkylakePlatformId2 {0x19170001}; static constexpr uint32_t ConnectorLessSkylakePlatformId3 {0x19120001}; static constexpr uint32_t ConnectorLessSkylakePlatformId4 {0x19320001}; static constexpr uint32_t ConnectorLessKabyLakePlatformId1 {0x59180002}; static constexpr uint32_t ConnectorLessKabyLakePlatformId2 {0x59120003}; static constexpr uint32_t ConnectorLessCoffeeLakePlatformId1 {0x3E920003}; static constexpr uint32_t ConnectorLessCoffeeLakePlatformId2 {0x3E910003}; static constexpr uint32_t ConnectorLessCoffeeLakePlatformId3 {0x3E980003}; public: /** * Vesa framebuffer identifier */ static constexpr uint32_t DefaultVesaPlatformId {0xFFFFFFFF}; /** * Framebuffer id to be reported to IGPU. * This follows the standard convention initially found in IntelGraphicsFixup: * igfxframe=X boot-arg has highest priority and overrides any other value. * -igfxvesa forces 0xFFFFFFFF frame to get into VESA mode. * Manually specified AAPL,ig-platform-id or AAPL,snb-platform-id go next. * On Sandy Bridge processors a default AAPL,snb-platform-id will be tried afterwards. * On Skylake and Kaby Lake processors some default id will be tried afterwards. */ uint32_t reportedFramebufferId {0}; /** * Compatible platform id property name for this IGPU */ const char *reportedFramebufferName {nullptr}; /** * Set to true if the framebuffer has no connectors */ bool reportedFramebufferIsConnectorLess {false}; /** * Known variants of firmware vendors * Please note, that it may not be possible to always detect the right vendor */ enum class FirmwareVendor { Unknown, Apple, VMware, EDKII, Parallels, AMI, Insyde, Phoenix, HP }; /** * Firmware vendor manufacturer */ FirmwareVendor firmwareVendor {FirmwareVendor::Unknown}; /** * Requested external GPU switchoff */ bool requestedExternalSwitchOff {false}; /** * Allocate and initialise the device list. * * @return device list or nullptr */ EXPORT static DeviceInfo *create(); /** * Release initialised device list. * * @param d device list */ EXPORT static void deleter(DeviceInfo *d); }; #endif /* kern_devinfo_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_disasm.hpp ================================================ // // kern_disasm.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_disasm_hpp #define kern_disasm_hpp #include #include #ifdef LILU_ADVANCED_DISASSEMBLY #ifndef CAPSTONE_HAS_OSXKERNEL #define CAPSTONE_HAS_OSXKERNEL 1 #endif #include #endif /* LILU_ADVANCED_DISASSEMBLY */ #include #include class Disassembler { #ifdef LILU_ADVANCED_DISASSEMBLY /** * Because captsone handle can be 0 */ bool initialised {false}; /** * Internal capstone handle */ size_t handle {}; #endif /** * Max instruction size */ static constexpr size_t MaxInstruction {15}; public: /** * Return the real instruction size contained within min bytes * Unlike instructionSize this uses HDE engine and at the cost of reduced compatibility it is much faster * Note: instruction pointer should point to at least min + 32 valid bytes. * * @param ptr instruction pointer * @param min minimal possible size * * @return instruction size >= min on success or 0 */ EXPORT static size_t quickInstructionSize(mach_vm_address_t ptr, size_t min); #ifdef LILU_ADVANCED_DISASSEMBLY /** * Initialise advanced dissassembling framework * * @param detailed debugging output necessity * * @return true on success */ EXPORT bool init(bool detailed=false); /** * Deinitialise advanced dissassembling framework, must be called regardless of the init error */ EXPORT void deinit(); /** * Reads size bytes from addr and disassembles them. * * @param addr Address to read from * @param size Size of buffer to read * @param result Disassembled instructions array. You must free it * * @return size of result */ EXPORT size_t disasmBuf(mach_vm_address_t addr, size_t size, cs_insn **result); /** * Return the real instruction size contained within min bytes * * @param ptr instruction pointer * @param min minimal possible size * * @return instruction size >= min on success or 0 */ EXPORT size_t instructionSize(mach_vm_address_t ptr, size_t min); /** * Reads lookup_size bytes from addr and disassembles them. * After disassembling, tries to find num-th entry with call instruction, which argument is an immediate value (some address). * * @param addr Address to read from * @param num Number of call instruction to search for * @param lookup_size Number of bytes to read * * @note It is assumed that the operand contains a positive relative address. * * @return direct address of num-th call instruction on success, else 0 */ EXPORT mach_vm_address_t disasmNthSub(mach_vm_address_t addr, size_t num, size_t lookup_size); /** * @brief Reads lookup_size bytes from addr and disassembles them. * * After disassembling, tries to find num-th entry with jmp instruction, which argument is an immediate value (some address). * * @param addr Address to read from * @param num Number of jmp instruction to search for * @param lookup_size Number of bytes to read * * @note It is assumed that the operand contains a positive relative address. * * @return direct address of num-th jmp instruction on success, else 0 */ EXPORT mach_vm_address_t disasmNthJmp(mach_vm_address_t addr, size_t num, size_t lookup_size); /** * Reads lookup_size bytes from addr and disassembles them. * After disassembling, tries to find num-th entry of inst instruction. * * @param addr Addres to read from * @param ins Instruction code * @param num Number of ins instruction to search for * @param lookup_size Number of bytes to read * * @return address of found instruction on success, else 0 */ EXPORT mach_vm_address_t disasmNthIns(mach_vm_address_t addr, x86_insn ins, size_t num, size_t lookup_size); /** * Disassembly matching structure */ struct DisasmSig { x86_insn ins; // instruction bool sub; // relevant only for X86_INS_CALL, if its arg is X86_OP_IMM bool addr; // if you want to return the address of exact inst in sig static DisasmSig *create() { return new DisasmSig; } static void deleter(DisasmSig *sig) { delete sig; } }; /** * Reads lookup_size bytes from addr and disassembles them. * After disassembling, tries to find num-th entry of sig instruction pattern. * * @param addr Address to read from * @param sig Instruction pattern * @param num Order of pattern to search for * @param lookup_size Number of bytes to read * * @return direct address of pattern start on success, else 0 */ EXPORT mach_vm_address_t disasmSig(mach_vm_address_t addr, evector &sig, size_t num, size_t lookup_size); #endif /* LILU_ADVANCED_DISASSEMBLY */ }; #endif /* kern_disasm_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_efi.hpp ================================================ // // kern_efi.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_efi_h #define kern_efi_h #include #include /** * Convert 32-bit EFI errors provided by Apple to 64-bit EFI errors */ #define EFI_ERROR64(x) (((x) & ~(1ULL << 31)) | (1ULL << 63)) static_assert(EFI_LOAD_ERROR == 0x80000001 && EFI_ERROR64(EFI_LOAD_ERROR) == 0x8000000000000001, "Apple has finally upgraded EFI headers!"); class EfiRuntimeServices { IOLock *accessLock {nullptr}; static EfiRuntimeServices *instance; public: /** * Activates EFI Runtime Services */ static void activate(); /** * Lilu custom GUIDs exports, see OcSupportPkg/Include/Guid/OcVariables.h */ EXPORT static const EFI_GUID LiluVendorGuid; EXPORT static const EFI_GUID LiluReadOnlyGuid; EXPORT static const EFI_GUID LiluWriteOnlyGuid; /** * Get EFI Runtime Services wrapper if supported * * @param lock lock instance during the run, must be put back * * @return wrapper instance */ EXPORT static EfiRuntimeServices *get(bool lock=false); /** * Put EFI Runtime Services wrapper to unlock */ EXPORT void put(); /** * Perform system reset (does not return on success) * * @param type reset type */ EXPORT void resetSystem(EFI_RESET_TYPE type); /** * Obtain EFI variable, invokes EFI_RUNTIME_SERVICES::GetVariable. * * @param name variable name * @param guid vendor guid * @param attr variable attributes * @param size data buffer size updated on read * @param data read data * * @return EFI_STATUS code */ EXPORT uint64_t getVariable(const char16_t *name, const EFI_GUID *guid, uint32_t *attr, uint64_t *size, void *data); /** * Set EFI variable, invokes EFI_RUNTIME_SERVICES::SetVariable. * * @param name variable name * @param guid vendor guid * @param attr variable attributes * @param size data buffer size * @param data data to write * * @return EFI_STATUS code */ EXPORT uint64_t setVariable(const char16_t *name, const EFI_GUID *guid, uint32_t attr, uint64_t size, void *data); }; #endif /* kern_efi_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_file.hpp ================================================ // // kern_file.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_file_hpp #define kern_file_hpp #include #include #include #include namespace FileIO { /** * Reads file data at path * * @param path full file path * @param size bytes read * * @return allocated buffer on success or nullptr on error */ EXPORT uint8_t *readFileToBuffer(const char *path, size_t &size); /** * Read file data from a vnode * * @param buffer output buffer * @param off file offset * @param sz bytes to read * @param vnode file node * @param ctxt filesystem context * * @return 0 on success */ EXPORT int readFileData(void *buffer, off_t off, size_t sz, vnode_t vnode, vfs_context_t ctxt); /** * Read file size from a vnode * * @param vnode file node * @param ctxt filesystem context * * @return file size or 0 */ EXPORT size_t readFileSize(vnode_t vnode, vfs_context_t ctxt); /** * Writes buffer to a file at path * * @param path full file path * @param buffer input buffer * @param size bytes write * @param fmode file opening mode * @param cmode file permissions * * @return 0 on success */ EXPORT int writeBufferToFile(const char *path, void *buffer, size_t size, int fmode=O_TRUNC | O_CREAT | FWRITE | O_NOFOLLOW, int cmode=S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); /** * Write file data to a vnode * * @param buffer input buffer * @param off file offset * @param size bytes to write * @param vnode file node * @param ctxt filesystem context * * @return 0 on success */ EXPORT int writeFileData(void *buffer, off_t off, size_t size, vnode_t vnode, vfs_context_t ctxt); /** * Perform file i/o through a vnode * * @param buffer input buffer * @param off file offset * @param size bytes to write * @param vnode file node * @param ctxt filesystem context * @param write write to buffer otherwise read * * @return 0 on success */ int performFileIO(void *buffer, off_t off, size_t size, vnode_t vnode, vfs_context_t ctxt, bool write); } #endif /* kern_file_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_iokit.hpp ================================================ // // kern_iokit.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_iokit_hpp #define kern_iokit_hpp #include #include #include #include #include namespace WIOKit { /** * AppleHDAEngine::getLocation teaches us to use loop infinitely when talking to IOReg * This feels mad and insane, since it may prevent the system from booting. * Although this had never happened, we will use a far bigger fail-safe stop value. */ static constexpr size_t bruteMax {0x10000000}; /** * Read typed OSData * * @param obj read object * @param value read value * @param name propert name * * @return true on success */ template inline bool getOSDataValue(const OSObject *obj, const char *name, T &value) { if (obj) { auto data = OSDynamicCast(OSData, obj); if (data && data->getLength() == sizeof(T)) { value = *static_cast(data->getBytesNoCopy()); DBGLOG("iokit", "getOSData %s has %llX value", name, static_cast(value)); return true; } else { SYSLOG("iokit", "getOSData %s has unexpected format", name); } } else { DBGLOG("iokit", "getOSData %s was not found", name); } return false; } /** * Read typed OSData through a temp type * * @param obj read object * @param value read value * @param name propert name * * @return true on success */ template inline bool getOSDataValue(const OSObject *obj, const char *name, T &value) { AS tmp; if (getOSDataValue(obj, name, tmp)) { value = static_cast(tmp); return true; } return false; } /** * Read typed OSData from IORegistryEntry * * @see getOSDataValue */ template inline bool getOSDataValue(const IORegistryEntry *sect, const char *name, T &value) { return getOSDataValue(sect->getProperty(name), name, value); } /** * Read typed OSData from IORegistryEntry * * @see getOSDataValue */ template inline bool getOSDataValue(const IORegistryEntry *sect, const char *name, T &value) { return getOSDataValue(sect->getProperty(name), name, value); } /** * Read typed OSData from IORegistryEntry * * @see getOSDataValue */ template inline bool getOSDataValue(const OSDictionary *dict, const char *name, T &value) { return getOSDataValue(dict->getObject(name), name, value); } /** * Read typed OSData from IORegistryEntry * * @see getOSDataValue */ template inline bool getOSDataValue(const OSDictionary *dict, const char *name, T &value) { return getOSDataValue(dict->getObject(name), name, value); } /** * Retrieve property object * * @param entry IORegistry entry * @param property property name * * @return property object (must be released) or nullptr */ EXPORT OSSerialize *getProperty(IORegistryEntry *entry, const char *property); /** * Model variants */ struct ComputerModel { enum { ComputerInvalid = 0x0, ComputerLaptop = 0x1, ComputerDesktop = 0x2, ComputerAny = ComputerLaptop | ComputerDesktop }; }; /** * PCI GPU Vendor identifiers */ struct VendorID { enum : uint16_t { ATIAMD = 0x1002, AMDZEN = 0x1022, NVIDIA = 0x10DE, Intel = 0x8086, VMware = 0x15AD }; }; /** * PCI class codes */ struct ClassCode { enum : uint32_t { VGAController = 0x030000, // I have never seen this one, but laptops are evil. XGAController = 0x030100, // Some laptops use this for Optimus GPUs. Ex3DController = 0x030200, DisplayController = 0x038000, PCIBridge = 0x060400, // HDA device on some laptops like Acer Aspire VN7-592G (INSYDE). HDAMmDevice = 0x040100, // Watch out for PCISubclassMask, 0x040380 is common on laptops. HDADevice = 0x040300, // This does not seem to be documented. It works on Haswell at least. IMEI = 0x078000, // To ignore device subclasses. PCISubclassMask = 0xFFFF00, }; }; /** * Definitions of PCI Config Registers */ enum PCIRegister : uint8_t { kIOPCIConfigVendorID = 0x00, kIOPCIConfigDeviceID = 0x02, kIOPCIConfigCommand = 0x04, kIOPCIConfigStatus = 0x06, kIOPCIConfigRevisionID = 0x08, kIOPCIConfigClassCode = 0x09, kIOPCIConfigCacheLineSize = 0x0C, kIOPCIConfigLatencyTimer = 0x0D, kIOPCIConfigHeaderType = 0x0E, kIOPCIConfigBIST = 0x0F, kIOPCIConfigBaseAddress0 = 0x10, kIOPCIConfigBaseAddress1 = 0x14, kIOPCIConfigBaseAddress2 = 0x18, kIOPCIConfigBaseAddress3 = 0x1C, kIOPCIConfigBaseAddress4 = 0x20, kIOPCIConfigBaseAddress5 = 0x24, kIOPCIConfigCardBusCISPtr = 0x28, kIOPCIConfigSubSystemVendorID = 0x2C, kIOPCIConfigSubSystemID = 0x2E, kIOPCIConfigExpansionROMBase = 0x30, kIOPCIConfigCapabilitiesPtr = 0x34, kIOPCIConfigInterruptLine = 0x3C, kIOPCIConfigInterruptPin = 0x3D, kIOPCIConfigMinimumGrant = 0x3E, kIOPCIConfigMaximumLatency = 0x3F }; /** * Fixed offsets for PCI Config I/O virtual methods */ struct PCIConfigOffset { enum : size_t { ConfigRead32 = 0x10A, ConfigWrite32 = 0x10B, ConfigRead16 = 0x10C, ConfigWrite16 = 0x10D, ConfigRead8 = 0x10E, ConfigWrite8 = 0x10F, GetBusNumber = 0x11D, GetDeviceNumber = 0x11E, GetFunctionNumber = 0x11F }; }; /** * PCI Config I/O method prototypes */ using t_PCIConfigRead32 = uint32_t (*)(IORegistryEntry *service, uint32_t space, uint8_t offset); using t_PCIConfigRead16 = uint16_t (*)(IORegistryEntry *service, uint32_t space, uint8_t offset); using t_PCIConfigRead8 = uint8_t (*)(IORegistryEntry *service, uint32_t space, uint8_t offset); using t_PCIConfigWrite32 = void (*)(IORegistryEntry *service, uint32_t space, uint8_t offset, uint32_t data); using t_PCIConfigWrite16 = void (*)(IORegistryEntry *service, uint32_t space, uint8_t offset, uint16_t data); using t_PCIConfigWrite8 = void (*)(IORegistryEntry *service, uint32_t space, uint8_t offset, uint8_t data); using t_PCIGetBusNumber = uint8_t (*)(IORegistryEntry *service); using t_PCIGetDeviceNumber = uint8_t (*)(IORegistryEntry *service); using t_PCIGetFunctionNumber = uint8_t (*)(IORegistryEntry *service); /** * Read PCI Config register * * @param service IOPCIDevice-compatible service. * @param reg PCI config register * @param space adress space * @param size read size for reading custom registers */ EXPORT uint32_t readPCIConfigValue(IORegistryEntry *service, uint32_t reg, uint32_t space = 0, uint32_t size = 0); /** * Retrieve PCI device address * * @param service IOPCIDevice-compatible service. * @param bus bus address * @param device device address * @param function function address */ EXPORT void getDeviceAddress(IORegistryEntry *service, uint8_t &bus, uint8_t &device, uint8_t &function); /** * Retrieve the computer type * * @return valid computer type or ComputerAny */ EXPORT int getComputerModel(); /** * Retrieve computer model and/or board-id properties * * @param model model name output buffer or null * @param modelsz model name output buffer size * @param board board identifier output buffer or null * @param boardsz board identifier output buffer size * * @return true if relevant properties already are available, otherwise buffers are unchanged */ EXPORT bool getComputerInfo(char *model, size_t modelsz, char *board, size_t boardsz); /** * Retrieve an ioreg entry by path/prefix * * @param path an exact lookup path * @param prefix entry prefix at path * @param plane plane to lookup in * @param proc process every found entry with the method * @param brute kick ioreg until a value is found * @param user pass some value to the callback function * * @return entry pointer (must NOT be released) or nullptr (on failure or in proc mode) */ EXPORT IORegistryEntry *findEntryByPrefix(const char *path, const char *prefix, const IORegistryPlane *plane, bool (*proc)(void *, IORegistryEntry *)=nullptr, bool brute=false, void *user=nullptr); /** * Retrieve an ioreg entry by path/prefix * * @param entry an ioreg entry to look in * @param prefix entry prefix at path * @param plane plane to lookup in * @param proc process every found entry with the method * @param brute kick ioreg until a value is found * @param user pass some value to the callback function * * @return entry pointer (must NOT be released) or nullptr (on failure or in proc mode) */ EXPORT IORegistryEntry *findEntryByPrefix(IORegistryEntry *entry, const char *prefix, const IORegistryPlane *plane, bool (*proc)(void *, IORegistryEntry *)=nullptr, bool brute=false, void *user=nullptr); /** * Check if we are using prelinked kernel/kexts or not * * @return true when confirmed that we definitely are */ EXPORT bool usingPrelinkedCache(); /** * Properly rename the device * * @param entry device to rename * @param name new name * @param compat correct compatible * * @return true on success */ EXPORT bool renameDevice(IORegistryEntry *entry, const char *name, bool compat=true); } #endif /* kern_iokit_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_mach.hpp ================================================ // // kern_mach.hpp // Lilu // // Certain parts of code are the subject of // copyright © 2011, 2012, 2013, 2014 fG!, reverser@put.as - http://reverse.put.as // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_mach_hpp #define kern_mach_hpp #include #include #include #include #include #include #include #include class MachInfo { mach_vm_address_t running_text_addr {0}; // the address of running __TEXT segment mach_vm_address_t disk_text_addr {0}; // the same address at from a file mach_vm_address_t kaslr_slide {0}; // the kernel aslr slide, computed as the difference between above's addresses uint8_t *file_buf {nullptr}; // read file data OSDictionary *prelink_dict {nullptr}; // read prealinked kext dictionary uint8_t *prelink_addr {nullptr}; // prelink text base address mach_vm_address_t prelink_vmaddr {0}; // prelink text base vm address (for kexts this is their actual slide) uint32_t file_buf_size {0}; // read file data size uint8_t *linkedit_buf {nullptr}; // pointer to __LINKEDIT buffer containing symbols to solve uint64_t linkedit_fileoff {0}; // __LINKEDIT file offset so we can read uint64_t linkedit_size {0}; uint32_t symboltable_fileoff {0}; // file offset to symbol table - used to position inside the __LINKEDIT buffer uint32_t symboltable_nr_symbols {0}; uint32_t stringtable_fileoff {0}; // file offset to string table mach_header_64 *running_mh {nullptr}; // pointer to mach-o header of running kernel item off_t fat_offset {0}; // additional fat offset size_t memory_size {HeaderSize}; // memory size bool kaslr_slide_set {false}; // kaslr can be null, used for disambiguation bool allow_decompress {true}; // allows mach decompression bool prelink_slid {false}; // assume kaslr-slid kext addresses uint64_t self_uuid[2] {}; // saved uuid of the loaded kext or kernel /** * Kernel slide is aligned by 20 bits */ static constexpr size_t KASLRAlignment {0x100000}; /** * Retrieve LC_UUID command value from a mach header * * @param header mach header pointer * * @return UUID or nullptr */ uint64_t *getUUID(void *header); /** * Retrieve and preserve LC_UUID command value from a mach header * * @param header mach header pointer * * @return true on success */ bool loadUUID(void *header); /** * Enable/disable the Write Protection bit in CR0 register * * @param enable the desired value * * @return KERN_SUCCESS if succeeded */ static kern_return_t setWPBit(bool enable); /** * Retrieve the first pages of a binary at disk into a buffer * Version that uses KPI VFS functions and a ripped uio_createwithbuffer() from XNU * * @param buffer allocated buffer sized no less than HeaderSize * @param vnode file node * @param ctxt filesystem context * @param decompress enable decompression * @param off fat offset or 0 * * @return KERN_SUCCESS if the read data contains 64-bit mach header */ kern_return_t readMachHeader(uint8_t *buffer, vnode_t vnode, vfs_context_t ctxt, off_t off=0); /** * Retrieve the whole linkedit segment into target buffer from kernel binary at disk * * @param vnode file node * @param ctxt filesystem context * * @return KERN_SUCCESS on success */ kern_return_t readLinkedit(vnode_t vnode, vfs_context_t ctxt); /** * Retrieve necessary mach-o header information from the mach header * * @param header read header sized no less than HeaderSize */ void processMachHeader(void *header); /** * Load kext info dictionary and addresses if they were not loaded previously */ void updatePrelinkInfo(); /** * Lookup mach image in prelinked image * * @param identifier identifier * @param imageSize size of the returned buffer * @param slide actual slide for symbols (normally kaslr or 0) * @param missing set to true on successful prelink parsing when image is not needed * * @return pointer to const buffer on success or nullptr */ uint8_t *findImage(const char *identifier, uint32_t &imageSize, mach_vm_address_t &slide, bool &missing); MachInfo(bool asKernel, const char *id) : isKernel(asKernel), objectId(id) { DBGLOG("mach", "MachInfo asKernel %d object constructed", asKernel); } MachInfo(const MachInfo &) = delete; MachInfo &operator =(const MachInfo &) = delete; /** * Resolve mach data in the kernel via prelinked cache * * @param prelink prelink information source (i.e. Kernel MachInfo) * * @return KERN_SUCCESS if loaded */ kern_return_t initFromPrelinked(MachInfo *prelink); /** * Resolve mach data in the kernel via filesystem access * * @param paths filesystem paths for lookup * @param num the number of paths passed * * @return KERN_SUCCESS if loaded */ kern_return_t initFromFileSystem(const char * const paths[], size_t num); public: /** * Each header is assumed to fit two pages */ static constexpr size_t HeaderSize {PAGE_SIZE_64*2}; /** * Representation mode (kernel/kext) */ EXPORT const bool isKernel; /** * Specified file identifier */ EXPORT const char *objectId {nullptr}; /** * MachInfo object generator * * @param asKernel this MachInfo represents a kernel * @param id kinfo identifier (e.g. CFBundleIdentifier) * * @return MachInfo object or nullptr */ static MachInfo *create(bool asKernel=false, const char *id=nullptr) { return new MachInfo(asKernel, id); } static void deleter(MachInfo *i) { delete i; } /** * Resolve mach data in the kernel * * @param paths filesystem paths for lookup * @param num the number of paths passed * @param prelink prelink information source (i.e. Kernel MachInfo) * @param fsfallback fallback to reading from filesystem if prelink failed * * @return KERN_SUCCESS if loaded */ EXPORT kern_return_t init(const char * const paths[], size_t num = 1, MachInfo *prelink=nullptr, bool fsfallback=false); /** * Release the allocated memory, must be called regardless of the init error */ EXPORT void deinit(); /** * Retrieve the mach header and __TEXT addresses * * @param slide load slide if calculating for kexts * @param size memory size * @param force force address recalculation * * @return KERN_SUCCESS on success */ EXPORT kern_return_t getRunningAddresses(mach_vm_address_t slide=0, size_t size=0, bool force=false); /** * Set the mach header address * * @param slide load address * @param size memory size * * @return KERN_SUCCESS on success */ EXPORT kern_return_t setRunningAddresses(mach_vm_address_t slide=0, size_t size=0); /** * Retrieve running mach positions * * @param header pointer to header * @param size file size */ EXPORT void getRunningPosition(uint8_t * &header, size_t &size); /** * Solve a mach symbol (running addresses must be calculated) * * @param symbol symbol to solve * * @return running symbol address or 0 */ EXPORT mach_vm_address_t solveSymbol(const char *symbol); /** * Find the kernel base address (mach-o header) * * @return kernel base address or 0 */ EXPORT mach_vm_address_t findKernelBase(); /** * Compare the loaded kernel with the current UUID (see loadUUID) * * @param base image base, pass 0 to use kernel base * * @return true if image uuids match */ EXPORT bool isCurrentBinary(mach_vm_address_t base=0); /** * Enable/disable interrupt handling * this is similar to ml_set_interrupts_enabled except the return value * * @param enable the desired value * * @return true if changed the value and false if it is unchanged */ EXPORT static bool setInterrupts(bool enable); /** * Enable/disable kernel memory write protection * * @param enable the desired value * @param lock use spinlock to disable cpu preemption (see KernelPatcher::kernelWriteLock) * * @return KERN_SUCCESS if succeeded */ EXPORT static kern_return_t setKernelWriting(bool enable, IOSimpleLock *lock); /** * Find section bounds in a passed binary for provided cpu * * @param ptr pointer to a complete mach-o binary * @param sourceSize size of the mach-o binary * @param vmsegment returned vm segment pointer * @param vmsection returned vm section pointer * @param sectionptr returned section pointer * @param sectionSize returned section size or 0 on failure * @param segmentName segment name * @param sectionName section name * @param cpu cpu to look for in case of fat binaries */ EXPORT static void findSectionBounds(void *ptr, size_t sourceSize, vm_address_t &vmsegment, vm_address_t &vmsection, void *§ionptr, size_t §ionSize, const char *segmentName="__TEXT", const char *sectionName="__text", cpu_type_t cpu=CPU_TYPE_X86_64); /** * Request to free file buffer resources (not including linkedit symtable) */ void freeFileBufferResources(); }; #endif /* kern_mach_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_nvram.hpp ================================================ // // kern_nvram.hpp // Lilu // // Copyright © 2017 vit9696. All rights reserved. // #ifndef kern_nvram_hpp #define kern_nvram_hpp #include #include #include #include #include /** * Some of the most common GUIDs used for variable storage on macOS */ #define NVRAM_GLOBAL_GUID "8BE4DF61-93CA-11D2-AA0D-00E098032B8C" #define NVRAM_APPLE_BOOT_GUID "7C436110-AB2A-4BBB-A880-FE41995C9F82" #define NVRAM_APPLE_VENDOR_GUID "4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14" #define NVRAM_APPLE_FILEVAULT_GUID "8D63D4FE-BD3C-4AAD-881D-86FD974BC1DF" #define NVRAM_APPLE_PASSWORD_UI_GUID "9EBA2D25-BBE3-4AC2-A2C6-C87F44A1278C" /** * Custom GUIDs used for Lilu preferences * Must be kept in sync to OcSupportPkg/Include/Guid/OcVariables.h */ #define LILU_VENDOR_GUID "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" #define LILU_READ_ONLY_GUID "E09B9297-7928-4440-9AAB-D1F8536FBF0A" #define LILU_WRITE_ONLY_GUID "F0B9AF8F-2222-4840-8A37-ECF7CC8C12E1" /** * Prefix variable name with a GUID */ #define NVRAM_PREFIX(x, y) x ":" y class NVStorage { /** * Local nvram controller reference */ IORegistryEntry *dtEntry {nullptr}; public: /** * Compress data with a default compression algorithm * * @param src source data * @param size data size (updated with new size) * @param sensitive contains sensitive data * * @return compressed data (must be freed with Buffer::deleter) or nullptr */ EXPORT uint8_t *compress(const uint8_t *src, uint32_t &size, bool sensitive=false); /** * Decompress data compressed with compress * * @param src compressed data * @param size data size (updated with new size) * @param sensitive contains sensitive data * * @return decompressed data (must be freed with Buffer::deleter) or nullptr */ EXPORT uint8_t *decompress(const uint8_t *src, uint32_t &size, bool sensitive=false); /** * Value storage options */ enum Options { OptAuto = 0, // Default options OptRaw = 1, // i/o as raw buffer OptCompressed = 2, // Apply compression (see kern_compression.hpp) OptEncrypted = 4, // Apply encryption with device-unique key (see kern_crypto.hpp) OptChecksum = 8, // Append CRC32 checksum to the end OptSensitive = 16 // Value contains sensitive data }; /** * Prepended value header unless OptRaw is used * After the header the following fields should go: * uint8_t iv[16]; aes initialisation vector (if OptEncrypted is set) * uint32_t size; decryption size (if OptEncrypted is set, encrypted) * uint32_t size; decompression size (if OptCompressed is set, encrypted if OptEncrypted) * uint8_t data[]; content data (encrypted if OptEncrypted) * uint32_t crc32; CRC32 cheksum (if OptChecksum is set) */ struct PACKED Header { static constexpr uint16_t Magic = 0xC717; static constexpr uint8_t MaxVer = 1; using Checksum = uint32_t; uint16_t magic {Magic}; uint8_t version {MaxVer}; uint8_t opts {OptAuto}; }; /** * Attempt to connect to active nvram, may fail at early stages * * @return true on success */ EXPORT bool init(); /** * Relinquish resources used, must be called regardless of the init error */ EXPORT void deinit(); /** * Read data from nvram * * @param key key name * @param size amount of data read * @param opts bitmask of Options, may set option requirements * @param enckey encryption key (platform-defined if OptEncrypted is set) * * @return pointer to data (must be freed via Buffer::deleter), nullptr on failure */ EXPORT uint8_t *read(const char *key, uint32_t &size, uint8_t opts=OptAuto, const uint8_t *enckey=nullptr); /** * Read data from nvram * * @param key key name * @param opts bitmask of Options, may set option requirements * @param enckey encryption key (platform-defined if OptEncrypted is set) * * @return pointer to data (must be freed via OSData::release), nullptr on failure */ EXPORT OSData *read(const char *key, uint8_t opts=OptAuto, const uint8_t *enckey=nullptr); /** * Write data to nvram * * @param key key name * @param src source buffer * @param size buffer size * @param opts bitmask of Options * @param enckey encryption key (platform-defined if OptEncrypted is set) * * @return true on success */ EXPORT bool write(const char *key, const uint8_t *src, uint32_t sz, uint8_t opts=OptAuto, const uint8_t *enckey=nullptr); /** * Write data to nvram * * @param key key name * @param data data object to write * @param opts bitmask of Options * @param enckey encryption key (platform-defined if OptEncrypted is set) * * @return true on success */ EXPORT bool write(const char *key, const OSData *data, uint8_t opts=OptAuto, const uint8_t *enckey=nullptr); /** * Delete key from nvram * * @param key key name * @param sensitive sensitive data * * @return true on successful deletion or if key is missing */ EXPORT bool remove(const char *key, bool sensitive=false); /** * Synchronize with nvram controller * This method might fail if synchronisation was done recently. * * @return true if synchronised */ EXPORT bool sync(); /** * Exports nvram to a plist file * * @param filename file path * @oaram max max output size * @param sensitive contains sensitive data * * @return true if saved */ EXPORT bool save(const char *filename, uint32_t max=0x20000, bool sensitive=false); /** * Check whether key exists * * @param key key name * * @return true if key exists */ EXPORT bool exists(const char *key); }; #endif /* kern_nvram_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_patcher.hpp ================================================ // // kern_patcher.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_patcher_hpp #define kern_patcher_hpp #include #include #include #include #include #include namespace Patch { union All; void deleter(All *); } #ifdef LILU_KEXTPATCH_SUPPORT struct OSKextLoadedKextSummaryHeader; struct OSKextLoadedKextSummary; #endif /* LILU_KEXTPATCH_SUPPORT */ class KernelPatcher { public: /** * Errors set by functions */ enum class Error { NoError, NoKinfoFound, NoSymbolFound, KernInitFailure, KernRunningInitFailure, KextListeningFailure, DisasmFailure, MemoryIssue, MemoryProtection, PointerRange, AlreadyDone, LockError, Unsupported, InvalidSymbolFound }; /** * Get last error * * @return error code */ EXPORT Error getError(); /** * Reset all the previous errors */ EXPORT void clearError(); /** * Initialise KernelPatcher, prepare for modifications */ void init(); /** * Deinitialise KernelPatcher, must be called regardless of the init error */ void deinit(); /** * Kernel write lock used for performing kernel & kext writes to disable cpu preemption * See MachInfo::setKernelWriting */ EXPORT static IOSimpleLock *kernelWriteLock; /** * Kext information */ struct KextInfo; #ifdef LILU_KEXTPATCH_SUPPORT struct KextInfo { static constexpr size_t Unloaded {0}; enum SysFlags : size_t { Loaded, // invoke for kext if it is already loaded Reloadable, // allow the kext to unload and get patched again Disabled, // do not load this kext (formerly achieved pathNum = 0, this no longer works) FSOnly, // do not use prelinkedkernel (kextcache) as a symbol source FSFallback, // perform fs fallback if kextcache failed Reserved, SysFlagNum, }; static constexpr size_t UserFlagNum {sizeof(size_t)-SysFlagNum}; static_assert(UserFlagNum > 0, "There should be at least one user flag"); const char *id {nullptr}; const char **paths {nullptr}; size_t pathNum {0}; bool sys[SysFlagNum] {}; bool user[UserFlagNum] {}; size_t loadIndex {Unloaded}; // Updated after loading /** * Disable this info from being used * May be called from onPatcherLoad callbacks to disable certain kexts */ void switchOff() { sys[KernelPatcher::KextInfo::Disabled] = true; } }; static_assert(sizeof(KextInfo) == 5 * sizeof(size_t), "KextInfo is no longer ABI compatible"); #endif /* LILU_KEXTPATCH_SUPPORT */ /** * Loads and stores kinfo information locally * * @param id kernel item identifier * @param paths item filesystem path array * @param num number of path entries * @param isKernel kinfo is kernel info * @param fsonly avoid using prelinkedkernel for kexts * @param fsfallback fallback to reading from filesystem if prelink failed * * @return loaded kinfo id */ EXPORT size_t loadKinfo(const char *id, const char * const paths[], size_t num=1, bool isKernel=false, bool fsonly=false, bool fsfallback=false); #ifdef LILU_KEXTPATCH_SUPPORT /** * Loads and stores kinfo information locally * * @param info kext to load, updated on success * * @return loaded kinfo id */ EXPORT size_t loadKinfo(KextInfo *info); #endif /* LILU_KEXTPATCH_SUPPORT */ /** * Kernel kinfo id */ static constexpr size_t KernelID {0}; /** * Update running information * * @param id loaded kinfo id * @param slide loaded slide * @param size loaded memory size * @param force force recalculatiob */ EXPORT void updateRunningInfo(size_t id, mach_vm_address_t slide=0, size_t size=0, bool force=false); /** * Any kernel */ static constexpr uint32_t KernelAny {0}; /** * Check kernel compatibility * * @param min minimal requested version or KernelAny * @param max maximum supported version or KernelAny * * @return true on success */ EXPORT static bool compatibleKernel(uint32_t min, uint32_t max); /** * Erase coverage instruction prefix (like inc qword ptr[]), that causes function routing to fail * * @param addr address to valid instruction code * @param count amount of instructions to inspect */ EXPORT void eraseCoverageInstPrefix(mach_vm_address_t addr, size_t count=5); /** * Erase coverage instruction prefix (like inc qword ptr[]), that causes function routing to fail * * @param addr address to valid instruction code * @param count amount of instructions to inspect * @param limit amount of bytes to inspect */ EXPORT void eraseCoverageInstPrefix(mach_vm_address_t addr, size_t count, off_t limit); /** * Solve a kinfo symbol * * @param id loaded kinfo id * @param symbol symbol to solve * * @return running symbol address or 0 */ EXPORT mach_vm_address_t solveSymbol(size_t id, const char *symbol); /** * Solve a kinfo symbol in range with designated type * * @param id loaded kinfo id * @param symbol symbol to solve * @param start start address range * @param size address range size * @param crash kernel panic on invalid non-zero address * * @return running symbol address or 0 casted to type T (mach_vm_address_t) */ template inline T solveSymbol(size_t id, const char *symbol, mach_vm_address_t start, size_t size, bool crash=false) { auto addr = solveSymbol(id, symbol); if (addr) { if (addr >= start && addr < start + size) return (T)addr; code = Error::InvalidSymbolFound; SYSTRACE("patcher", "address " PRIKADDR " is out of range " PRIKADDR " with size %lX", CASTKADDR(addr), CASTKADDR(start), size); PANIC_COND(crash, "patcher", "address " PRIKADDR " is out of range " PRIKADDR " with size %lX", CASTKADDR(addr), CASTKADDR(start), size); } return (T)nullptr; } /** * Hook kext loading and unloading to access kexts at early stage */ EXPORT void setupKextListening(); /** * Free file buffer resources and effectively make prelinked kext loading impossible */ void freeFileBufferResources(); /** * Activates monitoring functions if necessary */ void activate(); /** * Load handling structure */ class KextHandler { using t_handler = void (*)(KextHandler *); KextHandler(const char * const i, size_t idx, t_handler h, bool l, bool r) : id(i), index(idx), handler(h), loaded(l), reloadable(r) {} public: static KextHandler *create(const char * const i, size_t idx, t_handler h, bool l=false, bool r=false) { return new KextHandler(i, idx, h, l, r); } static void deleter(KextHandler *i) { delete i; } void *self {nullptr}; const char * const id {nullptr}; size_t index {0}; mach_vm_address_t address {0}; size_t size {0}; t_handler handler {nullptr}; bool loaded {false}; bool reloadable {false}; }; #ifdef LILU_KEXTPATCH_SUPPORT /** * Enqueue handler processing at kext loading * * @param handler handler to process */ EXPORT void waitOnKext(KextHandler *handler); /** * Update kext handler features * * @param info loaded kext info with features */ void updateKextHandlerFeatures(KextInfo *info); /** * Arbitrary kext find/replace patch */ struct LookupPatch { KextInfo *kext; const uint8_t *find; const uint8_t *replace; size_t size; size_t count; }; /** * Apply a find/replace patch * * @param patch patch to apply */ EXPORT void applyLookupPatch(const LookupPatch *patch); /** * Apply a find/replace patch with additional constraints * * @param patch patch to apply * @param startingAddress start with this address (or kext/kernel lowest address) * @param maxSize maximum size to lookup (or kext/kernel max size) */ EXPORT void applyLookupPatch(const LookupPatch *patch, uint8_t *startingAddress, size_t maxSize); #endif /* LILU_KEXTPATCH_SUPPORT */ /** * Route function to function * * @param from function to route * @param to routed function * @param buildWrapper create entrance wrapper * @param kernelRoute kernel change requiring memory protection changes and patch reverting at unload * @param revertible patches could be reverted * * @return wrapper pointer or 0 on success */ EXPORT mach_vm_address_t routeFunction(mach_vm_address_t from, mach_vm_address_t to, bool buildWrapper=false, bool kernelRoute=true, bool revertible=true); /** * Route block at assembly level * * @param from address to route * @param opcodes opcodes to insert * @param opnum number of opcodes * @param buildWrapper create entrance wrapper * @param kernelRoute kernel change requiring memory protection changes and patch reverting at unload * * @return wrapper pointer or 0 on success */ EXPORT mach_vm_address_t routeBlock(mach_vm_address_t from, const uint8_t *opcodes, size_t opnum, bool buildWrapper=false, bool kernelRoute=true); /** * Route virtual function to function * * @param obj OSObject-compatible instance * @param off function offset in a virtual table (arch-neutral, i.e. divided by sizeof(uintptr_t) * @param func function to replace with * @param orgFunc pointer to store the original function * * @return true on success */ template static inline bool routeVirtual(void *obj, size_t off, T func, T *orgFunc=nullptr) { // First OSObject (and similar) field is its virtual table. auto vt = obj ? reinterpret_cast(obj)[0] : nullptr; if (vt) { // Do not try to replace twice! if (vt[off] == func) return false; if (orgFunc) *orgFunc = vt[off]; vt[off] = func; return true; } return false; } /** * Route request to simplify casting and error handling * See routeMultiple. * * symbol symbol to lookup * from solved symbol (assigned by routeMultiple) * to destination address * org trampoline storage to the original symbol */ struct RouteRequest { const char *symbol {nullptr}; mach_vm_address_t from {0}; const mach_vm_address_t to {0}; mach_vm_address_t *org {nullptr}; /** * Construct RouteRequest for wrapping a function * @param s symbol to lookup * @param t destination address * @param o trampoline storage to the original symbol */ template RouteRequest(const char *s, T t, mach_vm_address_t &o) : symbol(s), to(reinterpret_cast(t)), org(&o) { } /** * Construct RouteRequest for routing a function * @param s symbol to lookup * @param t destination address */ template RouteRequest(const char *s, T t) : symbol(s), to(reinterpret_cast(t)) { } }; /** * Simple route multiple functions with basic error handling * * @param id kernel item identifier * @param requests an array of requests to replace * @param num requests array size * @param start start address range * @param size address range size * @param kernelRoute kernel change requiring memory protection changes and patch reverting at unload * @param force continue on first error * * @return false if it at least one error happened */ EXPORT bool routeMultiple(size_t id, RouteRequest *requests, size_t num, mach_vm_address_t start=0, size_t size=0, bool kernelRoute=true, bool force=false); /** * Simple route multiple functions with basic error handling * * @param id kernel item identifier * @param requests an array of requests to replace * @param start start address range * @param size address range size * @param kernelRoute kernel change requiring memory protection changes and patch reverting at unload * @param force continue on first error * * @return false if it at least one error happened */ template inline bool routeMultiple(size_t id, RouteRequest (&requests)[N], mach_vm_address_t start=0, size_t size=0, bool kernelRoute=true, bool force=false) { return routeMultiple(id, requests, N, start, size, kernelRoute, force); } private: /** * The minimal reasonable memory requirement */ static constexpr size_t TempExecutableMemorySize {4096}; /** * As of 10.12 we seem to be not allowed to call vm_ functions from several places including onKextSummariesUpdated. */ static uint8_t tempExecutableMemory[TempExecutableMemorySize]; /** * Offset to tempExecutableMemory that is safe to use */ size_t tempExecutableMemoryOff {0}; /** * Patcher status */ bool activated {false}; /** * Created routed trampoline page * * @param func original area * @param min minimal amount of bytes that will be overwritten * @param opcodes opcodes to insert before function * @param opnum number of opcodes * * @return trampoline pointer or 0 */ mach_vm_address_t createTrampoline(mach_vm_address_t func, size_t min, const uint8_t *opcodes=nullptr, size_t opnum=0); #ifdef LILU_KEXTPATCH_SUPPORT /** * Called at kext loading and unloading if kext listening is enabled */ static void onKextSummariesUpdated(); /** * A pointer to loaded kext information */ OSKextLoadedKextSummaryHeader **loadedKextSummaries {nullptr}; /** * A pointer to kext summaries update */ void (*orgUpdateLoadedKextSummaries)(void) {nullptr}; /** * Process already loaded kexts once at the start * * @param summaries loaded kext summaries * @param num number of loaded kext summaries */ void processAlreadyLoadedKexts(OSKextLoadedKextSummary *summaries, size_t num); #endif /* LILU_KEXTPATCH_SUPPORT */ /** * Kernel prelink image in case prelink is used */ MachInfo *prelinkInfo {nullptr}; /** * Loaded kernel items */ evector kinfos; /** * Applied patches */ evector kpatches; #ifdef LILU_KEXTPATCH_SUPPORT /** * Awaiting kext notificators */ evector khandlers; /** * Awaiting already loaded kext list */ bool waitingForAlreadyLoadedKexts {false}; #endif /* LILU_KEXTPATCH_SUPPORT */ /** * Allocated pages */ evector kpages; /** * Current error code */ Error code {Error::NoError}; static constexpr size_t INVALID {0}; /** * Jump instruction sizes */ static constexpr size_t SmallJump {1 + sizeof(int32_t)}; static constexpr size_t LongJump {6 + sizeof(uint64_t)}; /** * Possible kernel paths */ #ifdef LILU_COMPRESSION_SUPPORT const char *prelinkKernelPaths[6] { // This is the usual kernel cache place, which often the best thing to use "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache", // Otherwise fallback to one of the prelinked kernels // Since we always verify the LC_UUID value, trying the kernels could be done in any order. "/System/Library/PrelinkedKernels/prelinkedkernel", // normal "/macOS Install Data/Locked Files/Boot Files/prelinkedkernel", // 10.13 installer "/com.apple.boot.R/prelinkedkernel", // 10.12+ fusion drive installer "/com.apple.boot.S/System/Library/PrelinkedKernels/prelinkedkernel", // 10.11 fusion drive installer "/com.apple.recovery.boot/prelinkedkernel" // recovery }; #endif const char *kernelPaths[2] { "/System/Library/Kernels/kernel", //since 10.10 "/mach_kernel" }; }; #endif /* kern_patcher_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_policy.hpp ================================================ // // kern_policy.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_policy_hpp #define kern_policy_hpp #include #include #include #include #include #include class Policy { /** * TrustedBSD Policy handle */ mac_policy_handle_t policyHandle {0}; /** * TrustedBSD policy configuration */ mac_policy_conf policyConf; public: /** * May be used at TrustedBSD policy initialisation * * @param conf policy configuration */ static void dummyPolicyInitBSD(mac_policy_conf *conf) { DBGLOG("policy", "init bsd"); } /** * Compile-time policy constructor * * @param name policy name literal * @param descr policy description literal * @param ops policy functions */ constexpr Policy(const char *name, const char *descr, struct mac_policy_ops *ops) : policyConf{ .mpc_name = name, .mpc_fullname = descr, .mpc_labelnames = nullptr, .mpc_labelname_count = 0, .mpc_ops = ops, // Our policies are loaded very early and are static. We cannot unload them. .mpc_loadtime_flags = 0 /*MPC_LOADTIME_FLAG_UNLOADOK*/, .mpc_field_off = nullptr, .mpc_runtime_flags = 0 } { } /** * Registers TrustedBSD policy * * @return true on success */ EXPORT bool registerPolicy(); /** * Unregisters TrustedBSD policy if allowed * * @return true on success */ EXPORT bool unregisterPolicy(); }; #endif /* kern_policy_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_rtc.hpp ================================================ // // kern_rtc.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_rtc_h #define kern_rtc_h #include #include #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winconsistent-missing-override" #include #pragma clang diagnostic pop class RTCStorage { /** * General access RTC ports on x86 systems. */ static constexpr uint8_t R_PCH_RTC_INDEX = 0x70; static constexpr uint8_t R_PCH_RTC_TARGET = 0x71; static constexpr uint8_t R_PCH_RTC_EXT_INDEX = 0x72; static constexpr uint8_t R_PCH_RTC_EXT_TARGET = 0x73; /** * RTC has N banks (we support up to 2) of memory. */ static constexpr uint8_t RTC_BANK_SIZE = 0x80; /** * Non-ext RTC index register uses higher bit for nmi. */ static constexpr uint8_t RTC_DATA_MASK = 0x7F; static constexpr uint8_t RTC_NMI_MASK = 0x80; /** * Apple-specific RTC checksum addresses */ static constexpr uint8_t APPLERTC_HASHED_ADDR = 0x0E; static constexpr uint8_t APPLERTC_CHECKSUM_ADDR1 = 0x58; static constexpr uint8_t APPLERTC_CHECKSUM_ADDR2 = 0x59; /** * AppleRTC service handle */ IOService *rtcSrv {nullptr}; /** * Low-level RTC read (does not check memory availability). * * @param dev RTC ACPI device * @param offset offset * * @result read value */ static uint8_t readByte(IOACPIPlatformDevice *dev, uint8_t offset); /** * Low-level RTC write (does not check memory availability). * * @param dev RTC ACPI device * @param offset offset * @param value value */ static void writeByte(IOACPIPlatformDevice *dev, uint8_t offset, uint8_t value); public: /** * Attempt to connect to active RTC service * * @param wait wait for service availability * * @return true on success */ EXPORT bool init(bool wait=true); /** * Release obtained RTC service */ EXPORT void deinit(); /** * Check whether extended (higher 128 bytes) is available * * @return true on success */ EXPORT bool checkExtendedMemory(); /** * Read memory from RTC * * @param off offset to read data from * @param size data size * @param buffer data buffer to read to * * @return true on success */ EXPORT bool read(uint64_t off, uint32_t size, uint8_t *buffer); /** * Write memory to RTC * * @param off offset to write data to * @param size data size * @param buffer data buffer to write from * * @return true on success */ EXPORT bool write(uint64_t off, uint32_t size, uint8_t *buffer); /** * Obtain RTC device for direct writing. * Written as inline to avoid IOACPIPlatformDevice dependency. * * @param name device name * * @return RTC ACPI device for I/O access, must be released */ static inline IOACPIPlatformDevice *getRTCDevice(const char *name = "PNP0B00") { IOService *rtcDev = nullptr; auto matching = IOService::nameMatching(name); if (matching) { rtcDev = IOService::waitForMatchingService(matching); matching->release(); } else { SYSLOG("rtc", "failed to allocate rtc device matching"); } if (rtcDev) { DBGLOG("rtc", "got rtc device"); auto acpiDev = OSDynamicCast(IOACPIPlatformDevice, rtcDev); if (acpiDev) { DBGLOG("rtc", "got rtc acpi device"); return acpiDev; } else { SYSLOG("rtc", "failed to obtain rtc acpi device"); rtcDev->release(); } } SYSLOG("rtc", "failed to get rtc device"); return nullptr; } /** * Directly read RTC memory (UNSAFE, usage with caution!) * * @param dev RTC device * @param off offset to read data from * @param size data size * @param buffer data buffer to read to * @param introff turn interrupts off * * @return true on success */ EXPORT static void readDirect(IOACPIPlatformDevice *dev, uint8_t off, uint16_t size, uint8_t *buffer, bool introff); /** * Directly write RTC memory (UNSAFE, usage with caution!) * * @param dev RTC device * @param off offset to read data from * @param size data size * @param buffer data buffer to read to * @param updatecrc recalculate crc on write * @param introff turn interrupts off * * @return true on success */ EXPORT static void writeDirect(IOACPIPlatformDevice *dev, uint8_t off, uint16_t size, uint8_t *buffer, bool updatecrc, bool introff); /** * Directly read RTC memory (UNSAFE, usage with caution!), this is just a compatibility function. * * @param off offset to read data from * @param size data size * @param buffer data buffer to read to * @param introff turn interrupts off * * @return true on success */ static inline bool readDirect(uint8_t off, uint16_t size, uint8_t *buffer, bool introff) { if (size > RTC_BANK_SIZE*2 - off) { SYSLOG("rtc", "reading unsupported size"); return false; } auto rtc = getRTCDevice(); if (rtc) { readDirect(rtc, off, size, buffer, introff); rtc->release(); return true; } return false; } /** * Directly write RTC memory (UNSAFE, usage with caution!), this is just a compatibility function. * * @param off offset to read data from * @param size data size * @param buffer data buffer to read to * @param updatecrc recalculate crc on write * @param introff turn interrupts off * * @return true on success */ static inline bool writeDirect(uint8_t off, uint16_t size, uint8_t *buffer, bool updatecrc, bool introff) { if (size > RTC_BANK_SIZE*2 - off) { SYSLOG("rtc", "writing unsupported size"); return false; } auto rtc = getRTCDevice(); if (rtc) { writeDirect(rtc, off, size, buffer, updatecrc, introff); rtc->release(); return true; } return false; } }; #endif /* kern_rtc_h */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_time.hpp ================================================ // // kern_time.hpp // Lilu // // Copyright © 2018 vit9696. All rights reserved. // #ifndef kern_time_hpp #define kern_time_hpp #include /** * Obtain current system time in nanoseconds * * @return current time */ inline uint64_t getCurrentTimeNs() { uint64_t currt = 0; absolutetime_to_nanoseconds(mach_absolute_time(), &currt); return currt; } /** * Obtain current calendar system time in nanoseconds * * @return current time */ inline uint64_t getCalendarTimeNs() { clock_sec_t sc; clock_nsec_t ns; clock_get_calendar_nanotime(&sc, &ns); return static_cast(sc) * NSEC_PER_SEC + ns; } /** * Obtain time passed since some timestamp in nanoseconds * * @param start starting timestamp * @param current timestamp to check against (pass 0 for current time) * * @return delta or 0 (if current time equals or precedeces the start) */ inline uint64_t getTimeSinceNs(uint64_t start, uint64_t current = 0) { if (current == 0) current = getCurrentTimeNs(); if (current > start) return current - start; return 0; } /** * Obtain time left till a timestamp in the future in nanoseconds * * @param start starting timestamp * @param timeout timeout for the event * @param current timestamp to check against (pass 0 for current time) * * @return delta or 0 (if the timeout is over) */ inline uint64_t getTimeLeftNs(uint64_t start, uint64_t timeout, uint64_t current = 0) { if (current == 0) current = getCurrentTimeNs(); if (start + timeout > current) return start + timeout - current; return 0; } /** * Convert from nanoseconds to milliseconds * * @param t timestamp in ns * * @return timestamp in ms */ constexpr uint64_t convertNsToMs(uint64_t t) { return t / 1000000; } /** * Convert from nanoseconds to seconds * * @param t timestamp in ns * * @return timestamp in s */ constexpr uint64_t convertNsToSc(uint64_t t) { return t / 1000000000; } /** * Convert from milliseconds to seconds * * @param t timestamp in ms * * @return timestamp in s */ constexpr uint64_t convertMsToSc(uint64_t t) { return t / 1000; } /** * Convert from milliseconds to nanoseconds * * @param t timestamp in ms * * @return timestamp in ns */ constexpr uint64_t convertMsToNs(uint64_t t) { return t * 1000000; } /** * Convert from seconds to nanoseconds * * @param t timestamp in s * * @return timestamp in ns */ constexpr uint64_t convertScToNs(uint64_t t) { return t * 1000000000; } /** * Convert from seconds to milliseconds * * @param t timestamp in s * * @return timestamp in ms */ constexpr uint64_t convertScToMs(uint64_t t) { return t * 1000; } #endif /* kern_time_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_user.hpp ================================================ // // kern_user.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_user_hpp #define kern_user_hpp #include #include #include #include class UserPatcher { public: /** * Initialise UserPatcher, prepare for modifications * * @param patcher kernel patcher instance * @param preferSlowMode policy boot type * * @return true on success */ bool init(KernelPatcher &patcher, bool preferSlowMode); /** * Deinitialise UserPatcher, must be called regardless of the init error */ void deinit(); /** * Obtain page protection * * @param map vm map * @param addr map offset * * @return protection */ EXPORT vm_prot_t getPageProtection(vm_map_t map, vm_map_address_t addr); /** * Mach segment/section references for patch locations */ enum FileSegment : uint32_t { SegmentsTextStart, SegmentTextText = SegmentsTextStart, SegmentTextStubs, SegmentTextConst, SegmentTextCstring, SegmentTextUstring, SegmentsTextEnd = SegmentTextUstring, SegmentsDataStart, SegmentDataConst = SegmentsDataStart, SegmentDataCfstring, SegmentDataCommon, SegmentsDataEnd = SegmentDataCommon, SegmentTotal }; /** * Mach segment names kept in sync with FileSegment */ const char *fileSegments[SegmentTotal] { "__TEXT", "__TEXT", "__TEXT", "__TEXT", "__TEXT", "__DATA", "__DATA", "__DATA" }; /** * Mach section names kept in sync with FileSegment */ const char *fileSections[SegmentTotal] { "__text", "__stubs", "__const", "__cstring", "__ustring", "__const", "__cfstring", "__common" }; /** * Structure holding lookup-style binary patches */ struct BinaryModPatch { cpu_type_t cpu; const uint8_t *find; const uint8_t *replace; size_t size; size_t skip; size_t count; FileSegment segment; uint32_t section; }; /** * Structure describing the modifications for the binary */ struct BinaryModInfo { const char *path; BinaryModPatch *patches; size_t count; vm_address_t startTEXT; vm_address_t endTEXT; vm_address_t startDATA; vm_address_t endDATA; }; /** * Structure describing relevant processes run */ struct ProcInfo { /** * Process matching flags */ enum ProcFlags { MatchExact = 0, MatchAny = 1, MatchPrefix = 2, MatchSuffix = 4, MatchMask = MatchExact | MatchAny | MatchPrefix | MatchSuffix }; /** * Unused (aka disabled) proc info section */ static constexpr uint32_t SectionDisabled {0}; const char *path {nullptr}; uint32_t len {0}; uint32_t section {SectionDisabled}; uint32_t flags {MatchExact}; }; /** * External callback type for on process invocation * * @param user user provided pointer at registering * @param patcher user patcher instance * @param map process image vm_map * @param path path to the binary absolute or relative * @param len path length excluding null terminator */ using t_BinaryLoaded = void (*)(void *user, UserPatcher &patcher, vm_map_t map, const char *path, size_t len); /** * Instructs user patcher to do further actions * * @param procs process list * @param procNum process list size * @param mods modification list * @param modNum modification list size * @param callback callback function * @param user pointer that will be passed to the callback function */ bool registerPatches(ProcInfo **procs, size_t procNum, BinaryModInfo **mods, size_t modNum, t_BinaryLoaded callback, void *user); /** * Reads current process header * * @param map vm map * @param header Mach-O header * * @return false on failure */ EXPORT bool getTaskHeader(vm_map_t map, mach_header_64 &header); /** * Disables dyld_shared_cache for the current process * * @param map vm map * * @return false on mach image failure */ EXPORT bool injectRestrict(vm_map_t map); /** * Injects payload into the process right after the header with EP replacement. * * @param map vm map * @param payload code * @param size code size (up to PAGE_SIZE) * @param ep original entrypoint (may be written to code before copying) * * @return false on mach image failure */ EXPORT bool injectPayload(vm_map_t map, uint8_t *payload, size_t size, void *ep=nullptr); /** * Allocates a new segment in the process. * * @param map vm map * @param addr allocation address (e.g. a little below SHARED_REGION_BASE_X86_64) * @param payload code * @param size code size (must be PAGE_SIZE-aligned) * @param prot segment protection * * @return allocated address or 0 on failure */ EXPORT vm_address_t injectSegment(vm_map_t taskPort, vm_address_t addr, uint8_t *payload, size_t size, vm_prot_t prot); /** * Activates monitoring functions if necessary */ void activate(); private: /** * Kernel function prototypes */ using vm_shared_region_t = void *; using shared_file_mapping_np = void *; using t_currentMap = vm_map_t (*)(void); using t_getTaskMap = vm_map_t (*)(task_t); using t_getMapMin = vm_map_offset_t (*)(vm_map_t); using t_vmMapSwitchProtect = void (*)(vm_map_t, boolean_t); using t_vmMapCheckProtection = boolean_t (*)(vm_map_t, vm_offset_t, vm_offset_t, vm_prot_t); using t_vmMapReadUser = kern_return_t (*)(vm_map_t, vm_map_address_t, const void *, vm_size_t); using t_vmMapWriteUser = kern_return_t (*)(vm_map_t, const void *, vm_map_address_t, vm_size_t); /** * Original kernel function trampolines */ mach_vm_address_t orgCodeSignValidatePageWrapper {}; mach_vm_address_t orgCodeSignValidateRangeWrapper {}; mach_vm_address_t orgVmSharedRegionMapFile {}; mach_vm_address_t orgVmSharedRegionSlide {}; mach_vm_address_t orgVmSharedRegionSlideMojave {}; t_currentMap orgCurrentMap {nullptr}; t_getMapMin orgGetMapMin {nullptr}; t_getTaskMap orgGetTaskMap {nullptr}; t_vmMapSwitchProtect orgVmMapSwitchProtect {nullptr}; t_vmMapCheckProtection orgVmMapCheckProtection {nullptr}; t_vmMapReadUser orgVmMapReadUser {nullptr}; t_vmMapWriteUser orgVmMapWriteUser {nullptr}; mach_vm_address_t orgTaskSetMainThreadQos {}; /** * Kernel function wrappers */ static boolean_t codeSignValidatePageWrapper(void *blobs, memory_object_t pager, memory_object_offset_t page_offset, const void *data, unsigned *tainted); static boolean_t codeSignValidateRangeWrapper(void *blobs, memory_object_t pager, memory_object_offset_t range_offset, const void *data, memory_object_size_t data_size, unsigned *tainted); static vm_map_t swapTaskMap(task_t task, thread_t thread, vm_map_t map, boolean_t doswitch); static vm_map_t vmMapSwitch(vm_map_t map); static kern_return_t vmSharedRegionMapFile(vm_shared_region_t shared_region, unsigned int mappings_count, shared_file_mapping_np *mappings, memory_object_control_t file_control, memory_object_size_t file_size, void *root_dir, uint32_t slide, user_addr_t slide_start, user_addr_t slide_size); static void execsigs(proc_t p, thread_t thread); static int vmSharedRegionSlide(uint32_t slide, mach_vm_offset_t entry_start_address, mach_vm_size_t entry_size, mach_vm_offset_t slide_start, mach_vm_size_t slide_size, memory_object_control_t sr_file_control); static int vmSharedRegionSlideMojave(uint32_t slide, mach_vm_offset_t entry_start_address, mach_vm_size_t entry_size, mach_vm_offset_t slide_start, mach_vm_size_t slide_size, mach_vm_offset_t slid_mapping, memory_object_control_t sr_file_control); static void taskSetMainThreadQos(task_t task, thread_t main_thread); /** * Applies page patches to the memory range * * @param data_ptr pages in kernel memory * @param data_size data size divisible by PAGE_SIZE */ void performPagePatch(const void *data_ptr, size_t data_size); /** * dyld shared cache map entry structure */ struct MapEntry { const char *filename; size_t length; vm_address_t startTEXT; vm_address_t endTEXT; vm_address_t startDATA; vm_address_t endDATA; }; /** * Obtains __TEXT addresses from .map files * * @param mapBuf read .map file * @param mapSz .map file size * @param mapEntries entries to look for * @param nentries number of entries * * @return number of entries found */ size_t mapAddresses(const char *mapBuf, MapEntry *mapEntries, size_t nentries); /** * Stored ASLR slide of dyld shared cache */ uint32_t storedSharedCacheSlide {0}; /** * Set once shared cache slide is defined */ bool sharedCacheSlideStored {false}; /** * Set on init to decide on whether to use __RESTRICT or patch dyld shared cache */ bool patchDyldSharedCache {false}; /** * Kernel patcher instance */ KernelPatcher *patcher {nullptr}; /** * Pending callback entry */ struct PendingUser { /** * Patch requested for path */ char path[MAXPATHLEN] {}; /** * Patch requested for path */ uint32_t pathLen {0}; }; /** * Stored pending callback */ ThreadLocal pending; /** * Current minimal proc name length */ uint32_t currentMinProcLength {0}; /** * Provided binary modification list */ BinaryModInfo **binaryMod {nullptr}; /** * Amount of provided binary modifications */ size_t binaryModSize {0}; /** * Provided process list */ ProcInfo **procInfo {nullptr}; /** * Amount of provided processes */ size_t procInfoSize {0}; /** * Provided global callback for on proc invocation */ ppair userCallback {}; /** * Applies dyld shared cache patches * * @param map current process map * @param slide ASLR offset * @param cpu cache cpu type * @param restore true to rollback the changes */ void patchSharedCache(vm_map_t map, uint32_t slide, cpu_type_t cpu, bool applyChanges=true); /** * Structure holding userspace lookup patches */ struct LookupStorage { struct PatchRef { size_t i {0}; evector pageOffs; evector segOffs; static PatchRef *create() { return new PatchRef; } static void deleter(PatchRef *r) { r->pageOffs.deinit(); r->segOffs.deinit(); delete r; } }; const BinaryModInfo *mod {nullptr}; evector refs; Page *page {nullptr}; vm_address_t pageOff {0}; static LookupStorage *create() { auto p = new LookupStorage; if (p) { p->page = Page::create(); if (!p->page) { deleter(p); p = nullptr; } } return p; } static void deleter(LookupStorage *p) { if (p->page) { Page::deleter(p->page); p->page = nullptr; } p->refs.deinit(); delete p; } }; struct Lookup { uint32_t offs[4] {}; static constexpr size_t matchNum {4}; evector c[matchNum]; }; evector lookupStorage; Lookup lookup; /** * Restrict 64-bit entry overlapping DYLD_SHARED_CACHE to enforce manual library loading */ segment_command_64 restrictSegment64 { LC_SEGMENT_64, sizeof(segment_command_64), "__RESTRICT", SHARED_REGION_BASE_X86_64, 1, 0, 0, 0, 0, 0, 0 }; /** * Restrict 32-bit entry overlapping DYLD_SHARED_CACHE to enforce manual library loading */ segment_command restrictSegment32 { LC_SEGMENT, sizeof(segment_command), "__RESTRICT", SHARED_REGION_BASE_I386, 1, 0, 0, 0, 0, 0, 0 }; /** * Temporary buffer for reading image data */ uint8_t tmpBufferData[PAGE_SIZE*3] {}; /** * Kernel auth listener handle */ kauth_listener_t listener {nullptr}; /** * Patcher status */ bool activated {false}; /** * Validation cookie */ void *cookie {nullptr}; /** * Flags for codesign (PL) offset in struct proc. (uint32_t p_csflags) */ size_t csFlagsOffset {0}; /** * Exec callback * * @param credential kauth credential * @param idata cookie * @param action passed action, we only need KAUTH_FILEOP_EXEC * @param arg0 pointer to vnode (vnode *) for executable * @param arg1 pointer to path (char *) to executable * * @return 0 to allow further execution */ static int execListener(kauth_cred_t /* credential */, void *idata, kauth_action_t action, uintptr_t /* arg0 */, uintptr_t arg1, uintptr_t, uintptr_t); /** * Unrestricted vm_protect, that takes care of Mojave codesign limitations for everyone's good. * See vm_protect description. */ kern_return_t vmProtect(vm_map_t map, vm_offset_t start, vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection); /** * Callback invoked at process loading * * @param path binary path * @param len path length */ void onPath(const char *path, uint32_t len); /** * Reads files from BinaryModInfos and prepares lookupStorage * * @return true on success */ bool loadFilesForPatching(); /** * Reads dyld shared cache and obtains segment offsets * * @return true on success */ bool loadDyldSharedCacheMapping(); /** * Prepares quick page lookup based on lookupStorage values * * @return true on success */ bool loadLookups(); /** * Hooks memory access to get ready for patching * * @return true on success */ bool hookMemoryAccess(); /** * Peforms the actual binary patching * * @param map vm map * @param path binary path * @param len path length */ void patchBinary(vm_map_t map, const char *path, uint32_t len); /** * Dyld shared cache map path for 10.10+ on Haswell */ static constexpr const char *SharedCacheMapHaswell {"/private/var/db/dyld/dyld_shared_cache_x86_64h.map"}; /** * Dyld shared cache map path for all other systems and older CPUs */ static constexpr const char *SharedCacheMapLegacy {"/private/var/db/dyld/dyld_shared_cache_x86_64.map"}; }; #endif /* kern_user_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/kern_util.hpp ================================================ // // kern_util.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_util_hpp #define kern_util_hpp #include #include #include #include #include #include #include #include #include #define xStringify(a) Stringify(a) #define Stringify(a) #a #define xConcat(a, b) Concat(a, b) #define Concat(a, b) a ## b /** * Prefix name with your plugin name (to ease symbolication and avoid conflicts) */ #define ADDPR(a) xConcat(xConcat(PRODUCT_NAME, _), a) /** * Debugging state exported for your plugin */ extern bool ADDPR(debugEnabled); /** * Debugging print delay used as an ugly hack around printf bufferisation, * which results in messages not appearing in the boot log. * Use liludelay=1000 (1 second) boot-arg to put a second after each message. */ extern uint32_t ADDPR(debugPrintDelay); /** * Kernel version major */ extern const int version_major; /** * Kernel version minor */ extern const int version_minor; /** * Kernel map */ extern vm_map_t kernel_map; /** * Kernel proc */ extern proc_t kernproc; /** * For noreturn failures */ #define UNREACHABLE() do { __builtin_unreachable(); } while (0) /** * Conditional logging to system log prefixed with you plugin name * * @param cond precondition * @param str printf-like string */ #define SYSLOG_COND(cond, module, str, ...) \ do { \ if (cond) \ lilu_os_log( "%s%10s" str "\n", xStringify(PRODUCT_NAME) ": ", module " @ ", ## __VA_ARGS__); \ } while (0) /** * Write to system log prefixed with you plugin name * * @param module log module * @param str printf-like string */ #define SYSLOG(module, str, ...) SYSLOG_COND(true, module, str, ## __VA_ARGS__) /** * Conditional tracing to system log prefixed with you plugin name * * @param cond precondition * @param module log module * @param str printf-like string */ #define SYSTRACE_COND(cond, module, str, ...) \ do { \ if (cond) { \ SYSLOG(module, str, ## __VA_ARGS__); \ OSReportWithBacktrace( "%s%10s" str "\n", xStringify(PRODUCT_NAME) ": ", module " @ ", ## __VA_ARGS__); \ } \ } while (0) /** * Write call trace to system log prefixed with you plugin name * * @param module log module * @param str printf-like string */ #define SYSTRACE(module, str, ...) SYSTRACE_COND(true, module, str, ## __VA_ARGS__) /** * Conditional panic prefixed with you plugin name * * @param cond precondition * @param module log module * @param str printf-like string */ #define PANIC_COND(cond, module, str, ...) \ do { \ if (cond) { \ (panic)( "%s%10s" str "\n", xStringify(PRODUCT_NAME) ": ", module " @ ", ## __VA_ARGS__); \ UNREACHABLE(); \ } \ } while (0) /** * Cause immediate kernel panic prefixed with you plugin name * * @param module log module * @param str printf-like string */ #define PANIC(module, str, ...) PANIC_COND(true, module, str, ## __VA_ARGS__) #ifdef DEBUG /** * Conditional debug logging to system log prefixed with you plugin name * * @param cond precondition * @param module log module * @param str printf-like string */ #define DBGLOG_COND(cond, module, str, ...) \ do { \ SYSLOG_COND(ADDPR(debugEnabled) && (cond), module, "%s" str, "(DBG) ", ## __VA_ARGS__); \ } while (0) /** * Write debug message to system log prefixed with you plugin name * * @param module log module * @param str printf-like string */ #define DBGLOG(module, str, ...) DBGLOG_COND(true, module, str, ## __VA_ARGS__) /** * Conditional debug tracing to system log prefixed with you plugin name * * @param cond precondition * @param module log module * @param str printf-like string */ #define DBGTRACE_COND(cond, module, str, ...) \ do { \ SYSTRACE_COND(ADDPR(debugEnabled) && (cond), module, "%s" str, "(DBG) ", ## __VA_ARGS__); \ } while (0) /** * Write debug call trace to system log prefixed with you plugin name * * @param module log module * @param str printf-like string */ #define DBGTRACE(module, str, ...) DBGTRACE_COND(true, module, str, ## __VA_ARGS__) #else /* DEBUG */ #define DBGLOG_COND(module, str, ...) do { } while (0) #define DBGLOG(module, str, ...) do { } while (0) #define DBGTRACE_COND(module, str, ...) do { } while (0) #define DBGTRACE(module, str, ...) do { } while (0) #endif /** * Deprecate the interface */ #define DEPRECATE(x) __attribute__((deprecated(x))) /** * Macros to bypass kernel address printing protection */ #define PRIKADDR "0x%08X%08X" #define CASTKADDR(x) \ static_cast(reinterpret_cast(x) >> 32), \ static_cast(reinterpret_cast(x)) /** * Ugly floating point printing macros */ #define PRIFRAC "%lld.%04lld" #define CASTFRAC(x) static_cast(x), static_cast(((x) - static_cast(x)) * 10000) /** * Macros to print the UUID */ #define PRIUUID "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X" #define CASTUUID(uuid) \ reinterpret_cast(uuid)[0], \ reinterpret_cast(uuid)[1], \ reinterpret_cast(uuid)[2], \ reinterpret_cast(uuid)[3], \ reinterpret_cast(uuid)[4], \ reinterpret_cast(uuid)[5], \ reinterpret_cast(uuid)[6], \ reinterpret_cast(uuid)[7], \ reinterpret_cast(uuid)[8], \ reinterpret_cast(uuid)[9], \ reinterpret_cast(uuid)[10], \ reinterpret_cast(uuid)[11], \ reinterpret_cast(uuid)[12], \ reinterpret_cast(uuid)[13], \ reinterpret_cast(uuid)[14], \ reinterpret_cast(uuid)[15] /** * Export function or symbol for linking */ #define EXPORT __attribute__((visibility("default"))) /** * Remove padding between fields */ #define PACKED __attribute__((packed)) /** * This function is supposed to workaround missing entries in the system log. * By providing its own buffer for logging data. * * @param format formatted string */ EXPORT extern "C" void lilu_os_log(const char *format, ...); /** * Two-way substring search * * @param stack String to search in * @param needle Substring to search for * @param len Length of substring * * @return substring address if there or nullptr */ EXPORT const char *strstr(const char *stack, const char *needle, size_t len=0); /** * Reverse character search * * @param stack String to search in * @param ch Character to search for * * @return character address if there or null */ EXPORT char *strrchr(const char *stack, int ch); /** * XNU kernel implementation of a C-standard qsort function normally not exported by the kernel. * * @param a array to sort * @param n array length * @param es array element size * @param cmp array element comparator */ EXPORT void qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *)); /** * Count array elements * * @param array Array to process * * @return number of elements */ template constexpr size_t arrsize(const T (&array)[N]) { return N; } /** * C-style memory management from libkern, missing from headers */ extern "C" { void *kern_os_malloc(size_t size); void *kern_os_calloc(size_t num, size_t size); void kern_os_free(void *addr); void *kern_os_realloc(void *addr, size_t nsize); // kern_os_free does not check its argument for nullptr EXPORT void lilu_os_free(void *addr); } /** * Known kernel versions */ enum KernelVersion { SnowLeopard = 10, Lion = 11, MountainLion = 12, Mavericks = 13, Yosemite = 14, ElCapitan = 15, Sierra = 16, HighSierra = 17, Mojave = 18, Catalina = 19, }; /** * Kernel minor version for symmetry */ using KernelMinorVersion = int; /** * Obtain major kernel version * * @return numeric kernel version */ inline KernelVersion getKernelVersion() { return static_cast(version_major); } /** * Obtain minor kernel version * * @return numeric minor kernel version */ inline KernelMinorVersion getKernelMinorVersion() { return static_cast(version_minor); } /** * Check whether kernel boot argument is passed ignoring the value (e.g. -arg or arg). * * @param name argument name * * @return true if argument was passed */ inline bool checkKernelArgument(const char *name) { int val[16]; return PE_parse_boot_argn(name, val, sizeof(val)); } /** * Parse apple version at compile time * * @param version string literal representing apple version (e.g. 1.1.1) * * @return numeric kernel version */ constexpr size_t parseModuleVersion(const char *version) { return (size_t)(version[0] - '0') * 100 + (version[2] - '0') * 10 + (version[4] - '0'); } /** * Access struct member by its offset * * @param T pointer to the field you need * @param that pointer to struct * @param off offset in bytes to the member * * @return reference to the struct member */ template inline T &getMember(void *that, size_t off) { return *reinterpret_cast(static_cast(that) + off); } /** * Align value by align (page size by default) * * @param size value * * @return algined value */ template inline T alignValue(T size, T align = 4096) { return (size + align - 1) & (~(align - 1)); } /** * Check pointer alignment for type T * * @param p pointer * * @return true if properly aligned */ template inline bool isAligned(T *p) { return reinterpret_cast(p) % alignof(T) == 0; } /** * Obtain bit value of size sizeof(T) * Warning, you are suggested to always pass the type explicitly! * * @param n bit no * * @return bit value */ template constexpr T getBit(T n) { return static_cast(1U) << n; } /** * Obtain bit mask of size sizeof(T) * Warning, you are suggested to always pass the type explicitly! * * @param hi starting high bit * @param lo ending low bit * * @return bit mask */ template constexpr T getBitMask(T hi, T lo) { return (getBit(hi)|(getBit(hi)-1U)) & ~(getBit(lo)-1U); } /** * Obtain bit field of size sizeof(T) * Warning, you are suggested to always pass the type explicitly! * * @param so source * @param hi starting high bit * @param lo ending low bit * * @return bit field value */ template constexpr T getBitField(T so, T hi, T lo) { return (so & getBitMask(hi, lo)) >> lo; } /** * Set bit field of size sizeof(T) * Warning, you are suggested to always pass the type explicitly! * * @param va value * @param hi starting high bit * @param lo ending low bit * * @return bit field value */ template constexpr T setBitField(T so, T hi, T lo) { return (so << lo) & getBitMask(hi, lo); } /** * This is an ugly replacement to std::find_if, allowing you * to check whether a container consists only of value values. * * @param in container * @param size container size * @param value value to look for * * @return true if an element different from value was found */ template inline bool findNotEquals(T &in, size_t size, Y value) { for (size_t i = 0; i < size; i++) if (in[i] != value) return true; return false; } /** * Returns non-null string when they can be null * * @param str original string * * @return non-null string */ inline const char *safeString(const char *str) { return str ? str : "(null)"; } /** * A shorter form of writing reinterpret_cast(ptr) */ template inline T FunctionCast(T org, mach_vm_address_t ptr) { return reinterpret_cast(ptr); } /** * Typed buffer allocator */ namespace Buffer { /** * Allocating more than 1 GB is unreasonable for stability purposes. */ static constexpr size_t BufferMax = 1024*1024*1024; template inline T *create(size_t size) { size_t s = sizeof(T) * size; if (s > BufferMax) return nullptr; return static_cast(kern_os_malloc(s)); } template inline bool resize(T *&buf, size_t size) { size_t s = sizeof(T) * size; if (s > BufferMax) return false; auto nbuf = static_cast(kern_os_realloc(buf, s)); if (nbuf) { buf = nbuf; return true; } return false; } template inline void deleter(T *buf) { lilu_os_free(buf); } } /** * Dynamically allocated page */ struct Page { /** * Allocates a page * * @return true on success */ EXPORT bool alloc(); /** * Sets page protection * * @param prot protection bitmask * * @return true on success */ EXPORT bool protect(vm_prot_t prot); /** * Deletes the page * * @param p page */ EXPORT static void deleter(Page *p); /** * Creates a page object * * @return pointer to new page object or nullptr */ EXPORT static Page *create(); /** * Page buffer */ uint8_t *p {nullptr}; }; /** * Thread specific container of T values in up to N threads */ template class ThreadLocal { /** * A list of tread identifiers */ _Atomic(thread_t) threads[N]; /** * A list of value references */ T values[N] {}; public: /** * Initialise storage * * @return true on success */ void init() { for (auto &thread : threads) atomic_init(&thread, nullptr); } /** * Deinitialise storage */ void deinit() { for (size_t i = 0; i < N; i++) { atomic_store_explicit(&threads[i], nullptr, memory_order_relaxed); values[i] = {}; } } /** * Set or overwrite thread specific value * * @param value value to store * * @return true on success */ bool set(T value) { auto currThread = current_thread(); T *ptr = nullptr; // Find previous value if any for (size_t i = 0; ptr == nullptr && i < N; i++) if (atomic_load_explicit(&threads[i], memory_order_acquire) == currThread) ptr = &values[i]; // Find null value if any for (size_t i = 0; ptr == nullptr && i < N; i++) { thread_t nullThread = nullptr; if (atomic_compare_exchange_strong_explicit(&threads[i], &nullThread, currThread, memory_order_acq_rel, memory_order_acq_rel)) ptr = &values[i]; } // Insert if we can if (ptr) *ptr = value; return ptr != nullptr; } /** * Get thread specific value * * @return pointer to stored value on success */ T *get() { auto currThread = current_thread(); for (size_t i = 0; i < N; i++) if (atomic_load_explicit(&threads[i], memory_order_acquire) == currThread) return &values[i]; return nullptr; } /** * Unset thread specific value if present * * @return true on success */ bool erase() { auto currThread = current_thread(); for (size_t i = 0; i < N; i++) { if (atomic_load_explicit(&threads[i], memory_order_acquire) == currThread) { values[i] = {}; thread_t nullThread = nullptr; return atomic_compare_exchange_strong_explicit(&threads[i], &currThread, nullThread, memory_order_acq_rel, memory_order_acq_rel); } } return false; } }; /** * Use this deleter when storing scalar types */ template static void emptyDeleter(T) { /* no dynamic alloc */ } template , void (*deleterY)(Y)=emptyDeleter> struct ppair { T first; Y second; static ppair *create() { return new ppair; } static void deleter(ppair *p) { deleterT(p->first); deleterY(p->second); delete p; } }; /** * Embedded vector-like container * You muse call deinit before destruction * Ugh, someone, please, port libc++ to XNU... * * @param T held type * @param deleter type destructor */ template > class evector { T *ptr {nullptr}; size_t cnt {0}; size_t rsvd {0}; public: /** * Return evector size * * @return element count */ size_t size() const { return cnt; } /** * Return pointer to the elements * Valid until evector contents change * * @return elements ptr */ T *data() const { return ptr; } /** * Return last element id * * @return element id */ size_t last() const { return cnt-1; } /** * Return evector element reference * * @param index array index * * @return the element at provided index */ T &operator [](size_t index) { return ptr[index]; } /** * Return evector const element reference * * @param index array index * * @return the element at provided index */ const T &operator [](size_t index) const { return ptr[index]; } /** * Reserve memory for at least N elements * * @param num amount of elements * * @return elements ptr or null */ template T *reserve(size_t num) { if (rsvd < num) { T *nPtr = static_cast(kern_os_realloc(ptr, MUL * num * sizeof(T))); if (nPtr) { ptr = nPtr; rsvd = MUL * num; } else { return nullptr; } } return ptr; } /** * Erase evector element * * @param index element index */ void erase(size_t index, bool free=true) { deleter(ptr[index]); if (--cnt != index) lilu_os_memmove(&ptr[index], &ptr[index + 1], (cnt - index) * sizeof(T)); if (free && cnt == 0) { kern_os_free(ptr); ptr = nullptr; rsvd = 0; } } /** * Add an element to evector end * * @param &element an element to add * * @return true on success */ template bool push_back(T &element) { if (reserve(cnt+1)) { ptr[cnt] = element; cnt++; return true; } SYSLOG("evector", "insertion failure"); return false; } /** * Add an element to evector end * * @param &element an element to add * * @return true on success */ template bool push_back(T &&element) { if (reserve(cnt+1)) { ptr[cnt] = element; cnt++; return true; } SYSLOG("evector", "insertion failure"); return false; } evector() = default; evector(const evector &) = delete; evector operator =(const evector &) = delete; /** * Free the used memory */ void deinit() { if (ptr) { for (size_t i = 0; i < cnt; i++) deleter(ptr[i]); kern_os_free(ptr); ptr = nullptr; cnt = rsvd = 0; } } }; /** * Slightly non-standard helpers to get the date in a YYYY-MM-DD format. */ template inline constexpr char getBuildYear() { static_assert(i < 4, "Year consists of four digits"); return __DATE__[7+i]; } template inline constexpr char getBuildMonth() { static_assert(i < 2, "Month consists of two digits"); auto mon = static_cast(__DATE__[0]) | (static_cast(__DATE__[1]) << 8U) | (static_cast(__DATE__[2]) << 16U) | (static_cast(__DATE__[3]) << 24U); switch (mon) { case ' naJ': return "01"[i]; case ' beF': return "02"[i]; case ' raM': return "03"[i]; case ' rpA': return "04"[i]; case ' yaM': return "05"[i]; case ' nuJ': return "06"[i]; case ' luJ': return "07"[i]; case ' guA': return "08"[i]; case ' peS': return "09"[i]; case ' tcO': return "10"[i]; case ' voN': return "11"[i]; case ' ceD': return "12"[i]; default: return '0'; } } template inline constexpr char getBuildDay() { static_assert(i < 2, "Day consists of two digits"); if (i == 0 && __DATE__[4+i] == ' ') return '0'; return __DATE__[4+i]; } #endif /* kern_util_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Headers/plugin_start.hpp ================================================ // // kern_start.hpp // AppleALC // // Copyright © 2016 vit9696. All rights reserved. // #ifndef kern_start_hpp #define kern_start_hpp #include #include #include struct PluginConfiguration { const char *product; // Product name (e.g. xStringify(PRODUCT_NAME)) size_t version; // Product version (e.g. parseModuleVersion(xStringify(MODULE_VERSION))) uint32_t runmode; // Product supported environments (e.g. LiluAPI::AllowNormal) const char **disableArg; // Pointer to disabling boot arguments array size_t disableArgNum; // Number of disabling boot arguments const char **debugArg; // Pointer to debug boot arguments array size_t debugArgNum; // Number of debug boot arguments const char **betaArg; // Pointer to beta boot arguments array size_t betaArgNum; // Number of beta boot arguments KernelVersion minKernel; // Minimal required kernel version KernelVersion maxKernel; // Maximum supported kernel version void (*pluginStart)(); // Main function }; #ifndef LILU_CUSTOM_KMOD_INIT extern PluginConfiguration ADDPR(config); extern bool ADDPR(startSuccess); #endif /* LILU_CUSTOM_KMOD_INIT */ #ifndef LILU_CUSTOM_IOKIT_INIT class EXPORT PRODUCT_NAME : public IOService { OSDeclareDefaultStructors(PRODUCT_NAME) public: IOService *probe(IOService *provider, SInt32 *score) override; bool start(IOService *provider) override; void stop(IOService *provider) override; }; extern PRODUCT_NAME *ADDPR(selfInstance); #endif /* LILU_CUSTOM_IOKIT_INIT */ #endif /* kern_start_hpp */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/LegacyIOService.h ================================================ /* * Copyright (c) 1998-2011 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /* * Copyright (c) 1998,1999 Apple Computer, Inc. All rights reserved. * * HISTORY * */ /*! @header This header contains the definition of the IOService class. IOService is the sole direct subclass of IORegistryEntry and is the base class of almost all I/O Kit family superclasses. IOService defines methods that support the life cycle of I/O Kit drivers. For more information on IOService, see {@linkdoc //apple_ref/doc/uid/TP0000011 I/O Kit Fundamentals}. @seealso //apple_ref/doc/header/IORegistryEntry.h IORegistryEntry */ #ifndef _IOKIT_IOSERVICE_H #define _IOKIT_IOSERVICE_H #include #include #include #include #include #include #include #include #include extern "C" { #include } #ifndef UINT64_MAX #define UINT64_MAX 18446744073709551615ULL #endif enum { kIODefaultProbeScore = 0 }; // masks for getState() enum { kIOServiceInactiveState = 0x00000001, kIOServiceRegisteredState = 0x00000002, kIOServiceMatchedState = 0x00000004, kIOServiceFirstPublishState = 0x00000008, kIOServiceFirstMatchState = 0x00000010 }; enum { // options for registerService() kIOServiceExclusive = 0x00000001, // options for terminate() kIOServiceRequired = 0x00000001, kIOServiceTerminate = 0x00000004, // options for registerService() & terminate() kIOServiceSynchronous = 0x00000002, // options for registerService() kIOServiceAsynchronous = 0x00000008 }; // options for open() enum { kIOServiceSeize = 0x00000001, kIOServiceFamilyOpenOptions = 0xffff0000 }; // options for close() enum { kIOServiceFamilyCloseOptions = 0xffff0000 }; typedef void * IONotificationRef; extern const IORegistryPlane * gIOServicePlane; extern const IORegistryPlane * gIOPowerPlane; extern const OSSymbol * gIOResourcesKey; extern const OSSymbol * gIOResourceMatchKey; extern const OSSymbol * gIOProviderClassKey; extern const OSSymbol * gIONameMatchKey; extern const OSSymbol * gIONameMatchedKey; extern const OSSymbol * gIOPropertyMatchKey; extern const OSSymbol * gIOLocationMatchKey; extern const OSSymbol * gIOParentMatchKey; extern const OSSymbol * gIOPathMatchKey; extern const OSSymbol * gIOMatchCategoryKey; extern const OSSymbol * gIODefaultMatchCategoryKey; extern const OSSymbol * gIOMatchedServiceCountKey; extern const OSSymbol * gIOUserClientClassKey; extern const OSSymbol * gIOKitDebugKey; extern const OSSymbol * gIOServiceKey; extern const OSSymbol * gIOCommandPoolSizeKey; extern const OSSymbol * gIOPublishNotification; extern const OSSymbol * gIOFirstPublishNotification; extern const OSSymbol * gIOMatchedNotification; extern const OSSymbol * gIOFirstMatchNotification; extern const OSSymbol * gIOTerminatedNotification; extern const OSSymbol * gIOGeneralInterest; extern const OSSymbol * gIOBusyInterest; extern const OSSymbol * gIOOpenInterest; extern const OSSymbol * gIOAppPowerStateInterest; extern const OSSymbol * gIOPriorityPowerStateInterest; extern const OSSymbol * gIOConsoleSecurityInterest; extern const OSSymbol * gIODeviceMemoryKey; extern const OSSymbol * gIOInterruptControllersKey; extern const OSSymbol * gIOInterruptSpecifiersKey; extern SInt32 IOServiceOrdering( const OSMetaClassBase * inObj1, const OSMetaClassBase * inObj2, void * ref ); typedef void (*IOInterruptAction)( OSObject * target, void * refCon, IOService * nub, int source ); /*! @typedef IOServiceNotificationHandler @param target Reference supplied when the notification was registered. @param refCon Reference constant supplied when the notification was registered. @param newService The IOService object the notification is delivering. It is retained for the duration of the handler's invocation and doesn't need to be released by the handler. */ typedef bool (*IOServiceNotificationHandler)( void * target, void * refCon, IOService * newService ); typedef bool (*IOServiceMatchingNotificationHandler)( void * target, void * refCon, IOService * newService, IONotifier * notifier ); /*! @typedef IOServiceInterestHandler @param target Reference supplied when the notification was registered. @param refCon Reference constant supplied when the notification was registered. @param messageType Type of the message - IOKit defined in IOKit/IOMessage.h or family specific. @param provider The IOService object who is delivering the notification. It is retained for the duration of the handler's invocation and doesn't need to be released by the handler. @param messageArgument An argument for message, dependent on its type. @param argSize Non zero if the argument represents a struct of that size, used when delivering messages outside the kernel. */ typedef IOReturn (*IOServiceInterestHandler)( void * target, void * refCon, UInt32 messageType, IOService * provider, void * messageArgument, vm_size_t argSize ); typedef void (*IOServiceApplierFunction)(IOService * service, void * context); typedef void (*OSObjectApplierFunction)(OSObject * object, void * context); class IOUserClient; class IOPlatformExpert; /*! @class IOService @abstract The base class for most I/O Kit families, devices, and drivers. @discussion The IOService base class defines APIs used to publish services, instantiate other services based on the existance of a providing service (ie. driver stacking), destroy a service and its dependent stack, notify interested parties of service state changes, and general utility functions useful across all families. Types of service are specified with a matching dictionary that describes properties of the service. For example, a matching dictionary might describe any IOUSBDevice (or subclass), an IOUSBDevice with a certain class code, or a IOPCIDevice with a set of matching names or device & vendor IDs. Since the matching dictionary is interpreted by the family which created the service, as well as generically by IOService, the list of properties considered for matching depends on the familiy. Matching dictionaries are associated with IOService classes by the catalogue, as driver property tables, and also supplied by clients of the notification APIs. IOService provides matching based on C++ class (via OSMetaClass dynamic casting), registry entry name, a registry path to the service (which includes device tree paths), a name assigned by BSD, or by its location (its point of attachment).

Driver Instantiation by IOService

Drivers are subclasses of IOService, and their availability is managed through the catalogue. They are instantiated based on the publication of an IOService they use (for example, an IOPCIDevice or IOUSBDevice), or when they are added to the catalogue and the IOService(s) they use are already available. When an IOService (the "provider") is published with the @link registerService registerService@/link method, the matching and probing process begins, which is always single threaded per provider. A list of matching dictionaries from the catalog and installed publish notification requests, that successfully match the IOService, is constructed, with ordering supplied by kIOProbeScoreKey ("IOProbeScore") property in the dictionary, or supplied with the notification. Each entry in the list is then processed in order - for notifications, the notification is delivered, for driver property tables a lot more happens. The driver class is instantiated and init() called with its property table. The new driver instance is then attached to the provider, and has its @link probe probe@/link method called with the provider as an argument. The default probe method does nothing but return success, but a driver may implement this method to interrogate the provider to make sure it can work with it. It may also modify its probe score at this time. After probe, the driver is detached and the next in the list is considered (ie. attached, probed, and detached). When the probing phase is complete, the list consists of successfully probed drivers, in order of their probe score (after adjustment during the @link probe probe@/link call). The list is then divided into categories based on the kIOMatchCategoryKey property ("IOMatchCategory"); drivers without a match category are all considered in one default category. Match categories allow multiple clients of a provider to be attached and started, though the provider may also enforce open/close semantics to gain active access to it. For each category, the highest scoring driver in that category is attached to the provider, and its @link start start@/link method called. If start is successful, the rest of the drivers in the same match category are discarded, otherwise the next highest scoring driver is started, and so on. The driver should only consider itself in action when the start method is called, meaning it has been selected for use on the provider, and consuming that particular match category. It should also be prepared to be allocated, probed and freed even if the probe was successful. After the drivers have all synchronously been started, the installed "matched" notifications that match the registered IOService are delivered.

Properties used by IOService

kIOClassKey, extern const OSSymbol * gIOClassKey, "IOClass"

Class of the driver to instantiate on matching providers.

kIOProviderClassKey, extern const OSSymbol * gIOProviderClassKey, "IOProviderClass"

Class of the provider(s) to be considered for matching, checked with OSDynamicCast so subclasses will also match.

kIOProbeScoreKey, extern const OSSymbol * gIOProbeScoreKey, "IOProbeScore"

The probe score initially used to order multiple matching drivers.

kIOMatchCategoryKey, extern const OSSymbol * gIOMatchCategoryKey, "IOMatchCategory"

A string defining the driver category for matching purposes. All drivers with no IOMatchCategory property are considered to be in the same default category. Only one driver in a category can be started on each provider.

kIONameMatchKey, extern const OSSymbol * gIONameMatchKey, "IONameMatch"
A string or collection of strings that match the provider's name. The comparison is implemented with the @link //apple_ref/cpp/instm/IORegistryEntry/compareNames/virtualbool/(OSObject*,OSString**) IORegistryEntry::compareNames@/link method, which supports a single string, or any collection (OSArray, OSSet, OSDictionary etc.) of strings. IOService objects with device tree properties (eg. IOPCIDevice) will also be matched based on that standard's "compatible", "name", "device_type" properties. The matching name will be left in the driver's property table in the kIONameMatchedKey property.
Examples
@textblock
	IONameMatch
	pci106b,7
@/textblock
For a list of possible matching names, a serialized array of strings should used, eg.
@textblock
	IONameMatch
	
		APPL,happy16
		pci106b,7
	
@/textblock

kIONameMatchedKey, extern const OSSymbol * gIONameMatchedKey, "IONameMatched"
The name successfully matched name from the kIONameMatchKey property will be left in the driver's property table as the kIONameMatchedKey property.

kIOPropertyMatchKey, extern const OSSymbol * gIOPropertyMatchKey, "IOPropertyMatch"
A dictionary of properties that each must exist in the matching IOService and compare successfully with the isEqualTo method.
@textblock
	IOPropertyMatch
	
		APPL,happy16
		APPL,meek8
	
@/textblock

kIOUserClientClassKey, extern const OSSymbol * gIOUserClientClassKey, "IOUserClientClass"
The class name that the service will attempt to allocate when a user client connection is requested. First the device nub is queried, then the nub's provider is queried by default.

kIOKitDebugKey, extern const OSSymbol * gIOKitDebugKey, "IOKitDebug"
Set some debug flags for logging the driver loading process. Flags are defined in IOKit/IOKitDebug.h, but 65535 works well.*/ class IOService : public IORegistryEntry { OSDeclareDefaultStructors(IOService) protected: /*! @struct ExpansionData @discussion This structure will be used to expand the capablilties of this class in the future. */ struct ExpansionData { }; /*! @var reserved Reserved for future use. (Internal use only) */ ExpansionData * reserved; private: IOService * __provider; SInt32 __providerGeneration; IOService * __owner; IOOptionBits __state[2]; uint64_t __timeBusy; uint64_t __accumBusy; IOServicePM * pwrMgt; protected: // TRUE once PMinit has been called bool initialized; public: // DEPRECATED void * pm_vars; public: /* methods available in Mac OS X 10.1 or later */ /*! @function requestTerminate @abstract Passes a termination up the stack. @discussion When an IOService is made inactive the default behavior is to also make any of its clients that have it as their only provider also inactive, in this way recursing the termination up the driver stack. This method allows an IOService object to override this behavior. Returning true from this method when passed a just terminated provider will cause the client to also be terminated. @param provider The terminated provider of this object. @param options Options originally passed to terminate, plus kIOServiceRecursing. @result true if this object should be terminated now that its provider has been. */ virtual bool requestTerminate( IOService * provider, IOOptionBits options ); /*! @function willTerminate @abstract Passes a termination up the stack. @discussion Notification that a provider has been terminated, sent before recursing up the stack, in root-to-leaf order. @param provider The terminated provider of this object. @param options Options originally passed to terminate. @result true. */ virtual bool willTerminate( IOService * provider, IOOptionBits options ); /*! @function didTerminate @abstract Passes a termination up the stack. @discussion Notification that a provider has been terminated, sent after recursing up the stack, in leaf-to-root order. @param provider The terminated provider of this object. @param options Options originally passed to terminate. @param defer If there is pending I/O that requires this object to persist, and the provider is not opened by this object set defer to true and call the IOService::didTerminate() implementation when the I/O completes. Otherwise, leave defer set to its default value of false. @result true. */ virtual bool didTerminate( IOService * provider, IOOptionBits options, bool * defer ); /*! @function nextIdleTimeout @availability Mac OS X v10.4 and later @abstract Allows subclasses to customize idle power management behavior. @discussion Returns the next time that the device should idle into its next lower power state. Subclasses may override for custom idle behavior. A power managed driver might override this method to provide a more sophisticated idle power off algorithm than the one defined by power management. @param currentTime The current time @param lastActivity The time of last activity on this device @param powerState The device's current power state. @result Returns the next time the device should idle off (in seconds, relative to the current time). */ virtual SInt32 nextIdleTimeout(AbsoluteTime currentTime, AbsoluteTime lastActivity, unsigned int powerState); /*! @function systemWillShutdown @availability Mac OS X v10.5 and later @abstract Notifies members of the power plane of system shutdown and restart. @discussion This function is called for all members of the power plane in leaf-to-root order. If a subclass needs to wait for a pending I/O, then the call to systemWillShutdown should be postponed until the I/O completes. Any power managed driver (which has called @link joinPMtree joinPMtree@/link to join the power plane) interested in taking action at system shutdown or restart should override this method. @param specifier kIOMessageSystemWillPowerOff or kIOMessageSystemWillRestart. */ virtual void systemWillShutdown( IOOptionBits specifier ); /*! @function copyClientWithCategory @availability Mac OS X v10.6 and later @param category An OSSymbol corresponding to an IOMatchCategory matching property. @result Returns a reference to the IOService child with the given category. The result should be released by the caller. */ virtual IOService * copyClientWithCategory( const OSSymbol * category ); private: #if __LP64__ OSMetaClassDeclareReservedUnused(IOService, 0); OSMetaClassDeclareReservedUnused(IOService, 1); OSMetaClassDeclareReservedUnused(IOService, 2); OSMetaClassDeclareReservedUnused(IOService, 3); OSMetaClassDeclareReservedUnused(IOService, 4); OSMetaClassDeclareReservedUnused(IOService, 5); #else OSMetaClassDeclareReservedUsed(IOService, 0); OSMetaClassDeclareReservedUsed(IOService, 1); OSMetaClassDeclareReservedUsed(IOService, 2); OSMetaClassDeclareReservedUsed(IOService, 3); OSMetaClassDeclareReservedUsed(IOService, 4); OSMetaClassDeclareReservedUsed(IOService, 5); #endif OSMetaClassDeclareReservedUnused(IOService, 6); OSMetaClassDeclareReservedUnused(IOService, 7); OSMetaClassDeclareReservedUnused(IOService, 8); OSMetaClassDeclareReservedUnused(IOService, 9); OSMetaClassDeclareReservedUnused(IOService, 10); OSMetaClassDeclareReservedUnused(IOService, 11); OSMetaClassDeclareReservedUnused(IOService, 12); OSMetaClassDeclareReservedUnused(IOService, 13); OSMetaClassDeclareReservedUnused(IOService, 14); OSMetaClassDeclareReservedUnused(IOService, 15); OSMetaClassDeclareReservedUnused(IOService, 16); OSMetaClassDeclareReservedUnused(IOService, 17); OSMetaClassDeclareReservedUnused(IOService, 18); OSMetaClassDeclareReservedUnused(IOService, 19); OSMetaClassDeclareReservedUnused(IOService, 20); OSMetaClassDeclareReservedUnused(IOService, 21); OSMetaClassDeclareReservedUnused(IOService, 22); OSMetaClassDeclareReservedUnused(IOService, 23); OSMetaClassDeclareReservedUnused(IOService, 24); OSMetaClassDeclareReservedUnused(IOService, 25); OSMetaClassDeclareReservedUnused(IOService, 26); OSMetaClassDeclareReservedUnused(IOService, 27); OSMetaClassDeclareReservedUnused(IOService, 28); OSMetaClassDeclareReservedUnused(IOService, 29); OSMetaClassDeclareReservedUnused(IOService, 30); OSMetaClassDeclareReservedUnused(IOService, 31); OSMetaClassDeclareReservedUnused(IOService, 32); OSMetaClassDeclareReservedUnused(IOService, 33); OSMetaClassDeclareReservedUnused(IOService, 34); OSMetaClassDeclareReservedUnused(IOService, 35); OSMetaClassDeclareReservedUnused(IOService, 36); OSMetaClassDeclareReservedUnused(IOService, 37); OSMetaClassDeclareReservedUnused(IOService, 38); OSMetaClassDeclareReservedUnused(IOService, 39); OSMetaClassDeclareReservedUnused(IOService, 40); OSMetaClassDeclareReservedUnused(IOService, 41); OSMetaClassDeclareReservedUnused(IOService, 42); OSMetaClassDeclareReservedUnused(IOService, 43); OSMetaClassDeclareReservedUnused(IOService, 44); OSMetaClassDeclareReservedUnused(IOService, 45); OSMetaClassDeclareReservedUnused(IOService, 46); OSMetaClassDeclareReservedUnused(IOService, 47); public: /*! @function getState @abstract Accessor for IOService state bits, not normally needed or used outside IOService. @result State bits for the IOService, eg. kIOServiceInactiveState, kIOServiceRegisteredState. */ virtual IOOptionBits getState( void ) const; /*! @function isInactive @abstract Checks if the IOService object has been terminated, and is in the process of being destroyed. @discussion When an IOService object is successfully terminated, it is immediately made inactive, which blocks further attach()es, matching or notifications occuring on the object. It remains inactive until the last client closes, and is then finalized and destroyed. @result true if the IOService object has been terminated. */ bool isInactive( void ) const; /* Stack creation */ /*! @function registerService @abstract Starts the registration process for a newly discovered IOService object. @discussion This function allows an IOService subclass to be published and made available to possible clients, by starting the registration process and delivering notifications to registered clients. The object should be completely setup and ready to field requests from clients before registerService is called. @param options The default zero options mask is recommended and should be used in most cases. The registration process is usually asynchronous, with possible driver probing and notification occurring some time later. kIOServiceSynchronous may be passed to carry out the matching and notification process for currently registered clients before returning to the caller. */ virtual void registerService( IOOptionBits options = 0 ); /*! @function probe @abstract During an IOService object's instantiation, probes a matched service to see if it can be used. @discussion The registration process for an IOService object (the provider) includes instantiating possible driver clients. The probe method is called in the client instance to check the matched service can be used before the driver is considered to be started. Since matching screens many possible providers, in many cases the probe method can be left unimplemented by IOService subclasses. The client is already attached to the provider when probe is called. @param provider The registered IOService object that matches a driver personality's matching dictionary. @param score Pointer to the current driver's probe score, which is used to order multiple matching drivers in the same match category. It defaults to the value of the IOProbeScore property in the drivers property table, or kIODefaultProbeScore if none is specified. The probe method may alter the score to affect start order. @result An IOService instance or zero when the probe is unsuccessful. In almost all cases the value of this is returned on success. If another IOService object is returned, the probed instance is detached and freed, and the returned instance is used in its stead for start. */ virtual IOService * probe( IOService * provider, SInt32 * score ); /*! @function start @abstract During an IOService object's instantiation, starts the IOService object that has been selected to run on the provider. @discussion The start method of an IOService instance is called by its provider when it has been selected (due to its probe score and match category) as the winning client. The client is already attached to the provider when start is called.
Implementations of start must call start on their superclass at an appropriate point. If an implementation of start has already called super::start but subsequently determines that it will fail, it must call super::stop to balance the prior call to super::start and prevent reference leaks. @result true if the start was successful; false otherwise (which will cause the instance to be detached and usually freed). */ virtual bool start( IOService * provider ); /*! @function stop @abstract During an IOService termination, the stop method is called in its clients before they are detached & it is destroyed. @discussion The termination process for an IOService (the provider) will call stop in each of its clients, after they have closed the provider if they had it open, or immediately on termination. */ virtual void stop( IOService * provider ); /* Open / Close */ /*! @function open @abstract Requests active access to a provider. @discussion IOService provides generic open and close semantics to track clients of a provider that have established an active datapath. The use of open and @link close close@/link, and rules regarding ownership are family defined, and defined by the @link handleOpen handleOpen@/link and @link handleClose handleClose@/link methods in the provider. Some families will limit access to a provider based on its open state. @param forClient Designates the client of the provider requesting the open. @param options Options for the open. The provider family may implement options for open; IOService defines only kIOServiceSeize to request the device be withdrawn from its current owner. @result true if the open was successful; false otherwise. */ virtual bool open( IOService * forClient, IOOptionBits options = 0, void * arg = 0 ); /*! @function close @abstract Releases active access to a provider. @discussion IOService provides generic open and close semantics to track clients of a provider that have established an active datapath. The use of @link open open@/link and close, and rules regarding ownership are family defined, and defined by the @link handleOpen handleOpen@/link and @link handleClose handleClose@/link methods in the provider. @param forClient Designates the client of the provider requesting the close. @param options Options available for the close. The provider family may implement options for close; IOService defines none. @param arg Family specific arguments which are ignored by IOService. */ virtual void close( IOService * forClient, IOOptionBits options = 0 ); /*! @function isOpen @abstract Determines whether a specific, or any, client has an IOService object open. @discussion Returns the open state of an IOService object with respect to the specified client, or when it is open by any client. @param forClient If non-zero, open. The object is locked via @link lockForArbitration lockForArbitration@/link before handleOpen is called. @param forClient Designates the client of the provider requesting the open. @param options Options for the open, may be interpreted by the implementor of handleOpen. @result trueif the open was successful; false otherwise. */ virtual bool handleOpen( IOService * forClient, IOOptionBits options, void * arg ); /*! @function handleClose @abstract Controls the open / close behavior of an IOService object (overrideable by subclasses). @discussion IOService calls this method in its subclasses in response to the @link close close@/link method, so the subclass may implement the request. The default implementation provides single owner access to an IOService object via @link open open@/link. The object is locked via @link lockForArbitration lockForArbitration@/link before handleClose is called. @param forClient Designates the client of the provider requesting the close. @param options Options for the close, may be interpreted by the implementor of @link handleOpen handleOpen@/link. */ virtual void handleClose( IOService * forClient, IOOptionBits options ); /*! @function handleIsOpen @abstract Controls the open / close behavior of an IOService object (overrideable by subclasses). @discussion IOService calls this method in its subclasses in response to the @link open open@/link method, so the subclass may implement the request. The default implementation provides single owner access to an IOService object via @link open open@/link. The object is locked via @link lockForArbitration lockForArbitration@/link before handleIsOpen is called. @param forClient If non-zero, isOpen returns the open state for that client. If zero is passed, isOpen returns the open state for all clients. @result true if the specific, or any, client has the IOService object open. */ virtual bool handleIsOpen( const IOService * forClient ) const; /* Stacking change */ /*! @function terminate @abstract Makes an IOService object inactive and begins its destruction. @discussion Registering an IOService object informs possible clients of its existance and instantiates drivers that may be used with it; terminate involves the opposite process of informing clients that an IOService object is no longer able to be used and will be destroyed. By default, if any client has the service open, terminate fails. If the kIOServiceRequired flag is passed however, terminate will be successful though further progress in the destruction of the IOService object will not proceed until the last client has closed it. The service will be made inactive immediately upon successful termination, and all its clients will be notified via their @link message message@/link method with a message of type kIOMessageServiceIsTerminated. Both these actions take place on the caller's thread. After the IOService object is made inactive, further matching or attach calls will fail on it. Each client has its @link stop stop@/link method called upon their close of an inactive IOService object , or on its termination if they do not have it open. After stop, @link detach detach@/link is called in each client. When all clients have been detached, the @link finalize finalize@/link method is called in the inactive service. The termination process is inherently asynchronous because it will be deferred until all clients have chosen to close. @param options In most cases no options are needed. kIOServiceSynchronous may be passed to cause terminate to not return until the service is finalized. */ virtual bool terminate( IOOptionBits options = 0 ); /*! @function finalize @abstract Finalizes the destruction of an IOService object. @discussion The finalize method is called in an inactive (ie. terminated) IOService object after the last client has detached. IOService's implementation will call @link stop stop@/link, @link close close@/link, and @link detach detach@/link on each provider. When finalize returns, the object's retain count will have no references generated by IOService's registration process. @param options The options passed to the @link terminate terminate@/link method of the IOService object are passed on to finalize. @result true. */ virtual bool finalize( IOOptionBits options ); /*! @function free @abstract Frees data structures that were allocated when power management was initialized on this service. */ virtual void free( void ) override; /*! @function lockForArbitration @abstract Locks an IOService object against changes in state or ownership. @discussion The registration, termination and open / close functions of IOService use lockForArbtration to single-thread access to an IOService object. lockForArbitration grants recursive access to the same thread. @param isSuccessRequired If a request for access to an IOService object should be denied if it is terminated, pass false, otherwise pass true. */ virtual bool lockForArbitration( bool isSuccessRequired = true ); /*! @function unlockForArbitration @abstract Unlocks an IOService obkect after a successful @link lockForArbitration lockForArbitration@/link. @discussion A thread granted exclusive access to an IOService object should release it with unlockForArbitration. */ virtual void unlockForArbitration( void ); /*! @function terminateClient @abstract Passes a termination up the stack. @discussion When an IOService object is made inactive the default behavior is to also make any of its clients that have it as their only provider inactive, in this way recursing the termination up the driver stack. This method allows a terminated IOService object to override this behavior. Note the client may also override this behavior by overriding its @link terminate terminate@/link method. @param client The client of the terminated provider. @param options Options originally passed to @link terminate terminate@/link, plus kIOServiceRecursing. @result result of the terminate request on the client. */ virtual bool terminateClient( IOService * client, IOOptionBits options ); /* Busy state indicates discovery, matching or termination is in progress */ /*! @function getBusyState @abstract Returns the busyState of an IOService object. @discussion Many activities in IOService are asynchronous. When registration, matching, or termination is in progress on an IOService object, its busyState is increased by one. Change in busyState to or from zero also changes the IOService object's provider's busyState by one, which means that an IOService object is marked busy when any of the above activities is ocurring on it or any of its clients. @result The busyState value. */ virtual UInt32 getBusyState( void ); /*! @function adjustBusy @abstract Adjusts the busyState of an IOService object. @discussion Applies a delta to an IOService object's busyState. A change in the busyState to or from zero will change the IOService object's provider's busyState by one (in the same direction). @param delta The delta to be applied to the IOService object's busyState. */ virtual void adjustBusy( SInt32 delta ); APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn waitQuiet(mach_timespec_t * timeout) APPLE_KEXT_DEPRECATED; /*! @function waitQuiet @abstract Waits for an IOService object's busyState to be zero. @discussion Blocks the caller until an IOService object is non busy. @param timeout The maximum time to wait in nanoseconds. Default is to wait forever. @result Returns an error code if Mach synchronization primitives fail, kIOReturnTimeout, or kIOReturnSuccess. */ IOReturn waitQuiet(uint64_t timeout = UINT64_MAX); /* Matching */ /*! @function matchPropertyTable @abstract Allows a registered IOService object to implement family specific matching. @discussion All matching on an IOService object will call this method to allow a family writer to implement matching in addition to the generic methods provided by IOService. The implementer should examine the matching dictionary passed to see if it contains properties the family understands for matching, and use them to match with the IOService object if so. Note that since matching is also carried out by other parts of the I/O Kit, the matching dictionary may contain properties the family does not understand - these should not be considered matching failures. @param table The dictionary of properties to be matched against. @param score Pointer to the current driver's probe score, which is used to order multiple matching drivers in the same match category. It defaults to the value of the IOProbeScore property in the drivers property table, or kIODefaultProbeScore if none is specified. @result false if the family considers the matching dictionary does not match in properties it understands; true otherwise. */ virtual bool matchPropertyTable( OSDictionary * table, SInt32 * score ); virtual bool matchPropertyTable( OSDictionary * table ); /*! @function matchLocation @abstract Allows a registered IOService object to direct location matching. @discussion By default, a location matching property will be applied to an IOService object's provider. This method allows that behavior to be overridden by families. @param client The IOService object at which matching is taking place. @result Returns the IOService instance to be used for location matching. */ virtual IOService * matchLocation( IOService * client ); /* Resource service */ /*! @function publishResource @abstract Uses the resource service to publish a property. @discussion The resource service uses IOService's matching and notification to allow objects to be published and found by any I/O Kit client by a global name. publishResource makes an object available to anyone waiting for it or looking for it in the future. @param key An OSSymbol key that globally identifies the object. @param The object to be published. */ static void publishResource( const OSSymbol * key, OSObject * value = 0 ); /*! @function publishResource @abstract Uses the resource service to publish a property. @discussion The resource service uses IOService object's matching and notification to allow objects to be published and found by any I/O Kit client by a global name. publishResource makes an object available to anyone waiting for it or looking for it in the future. @param key A C string key that globally identifies the object. @param The object to be published. */ static void publishResource( const char * key, OSObject * value = 0 ); virtual bool addNeededResource( const char * key ); /* Notifications */ /*! @function addNotification @abstract Deprecated use addMatchingNotification(). Adds a persistant notification handler to be notified of IOService events. @discussion IOService will deliver notifications of changes in state of an IOService object to registered clients. The type of notification is specified by a symbol, for example gIOMatchedNotification or gIOTerminatedNotification, and notifications will only include IOService objects that match the supplied matching dictionary. Notifications are ordered by a priority set with addNotification. When the notification is installed, its handler will be called with each of any currently existing IOService objects that are in the correct state (eg. registered) and match the supplied matching dictionary, avoiding races between finding preexisting and new IOService events. The notification request is identified by an instance of an IONotifier object, through which it can be enabled, disabled, or removed. addNotification consumes a retain count on the matching dictionary when the notification is removed. @param type An OSSymbol identifying the type of notification and IOService state:
gIOPublishNotification Delivered when an IOService object is registered.
gIOFirstPublishNotification Delivered when an IOService object is registered, but only once per IOService instance. Some IOService objects may be reregistered when their state is changed.
gIOMatchedNotification Delivered when an IOService object has been matched with all client drivers, and they have been probed and started.
gIOFirstMatchNotification Delivered when an IOService object has been matched with all client drivers, but only once per IOService instance. Some IOService objects may be reregistered when their state is changed.
gIOTerminatedNotification Delivered after an IOService object has been terminated, during its finalize stage. @param matching A matching dictionary to restrict notifications to only matching IOService objects. The dictionary will be released when the notification is removed, consuming the passed-in reference. @param handler A C function callback to deliver notifications. @param target An instance reference for the callback's use. @param ref A reference constant for the callback's use. @param priority A constant ordering all notifications of a each type. @result An instance of an IONotifier object that can be used to control or destroy the notification request. */ static IONotifier * addNotification( const OSSymbol * type, OSDictionary * matching, IOServiceNotificationHandler handler, void * target, void * ref = 0, SInt32 priority = 0 ) APPLE_KEXT_DEPRECATED; /*! @function addMatchingNotification @abstract Adds a persistant notification handler to be notified of IOService events. @discussion IOService will deliver notifications of changes in state of an IOService object to registered clients. The type of notification is specified by a symbol, for example gIOMatchedNotification or gIOTerminatedNotification, and notifications will only include IOService objects that match the supplied matching dictionary. Notifications are ordered by a priority set with addNotification. When the notification is installed, its handler will be called with each of any currently existing IOService objects that are in the correct state (eg. registered) and match the supplied matching dictionary, avoiding races between finding preexisting and new IOService events. The notification request is identified by an instance of an IONotifier object, through which it can be enabled, disabled, or removed. addMatchingNotification does not consume a reference on the matching dictionary when the notification is removed, unlike addNotification. @param type An OSSymbol identifying the type of notification and IOService state:
gIOPublishNotification Delivered when an IOService object is registered.
gIOFirstPublishNotification Delivered when an IOService object is registered, but only once per IOService instance. Some IOService objects may be reregistered when their state is changed.
gIOMatchedNotification Delivered when an IOService object has been matched with all client drivers, and they have been probed and started.
gIOFirstMatchNotification Delivered when an IOService object has been matched with all client drivers, but only once per IOService instance. Some IOService objects may be reregistered when their state is changed.
gIOTerminatedNotification Delivered after an IOService object has been terminated, during its finalize stage. @param matching A matching dictionary to restrict notifications to only matching IOService objects. The dictionary is retained while the notification is installed. (Differs from addNotification). @param handler A C function callback to deliver notifications. @param target An instance reference for the callback's use. @param ref A reference constant for the callback's use. @param priority A constant ordering all notifications of a each type. @result An instance of an IONotifier object that can be used to control or destroy the notification request. */ static IONotifier * addMatchingNotification( const OSSymbol * type, OSDictionary * matching, IOServiceMatchingNotificationHandler handler, void * target, void * ref = 0, SInt32 priority = 0 ); /*! @function waitForService @abstract Deprecated use waitForMatchingService(). Waits for a matching to service to be published. @discussion Provides a method of waiting for an IOService object matching the supplied matching dictionary to be registered and fully matched. @param matching The matching dictionary describing the desired IOService object. waitForService consumes one reference of the matching dictionary. @param timeout The maximum time to wait. @result A published IOService object matching the supplied dictionary. */ static IOService * waitForService( OSDictionary * matching, mach_timespec_t * timeout = 0); /*! @function waitForMatchingService @abstract Waits for a matching to service to be published. @discussion Provides a method of waiting for an IOService object matching the supplied matching dictionary to be registered and fully matched. @param matching The matching dictionary describing the desired IOService object. (Does not consume a reference of the matching dictionary - differs from waitForService() which does consume a reference on the matching dictionary.) @param timeout The maximum time to wait in nanoseconds. Default is to wait forever. @result A published IOService object matching the supplied dictionary. waitForMatchingService returns a reference to the IOService which should be released by the caller. (Differs from waitForService() which does not retain the returned object.) */ static IOService * waitForMatchingService( OSDictionary * matching, uint64_t timeout = UINT64_MAX); /*! @function getMatchingServices @abstract Finds the set of current published IOService objects matching a matching dictionary. @discussion Provides a method of finding the current set of published IOService objects matching the supplied matching dictionary. @param matching The matching dictionary describing the desired IOService objects. @result An instance of an iterator over a set of IOService objects. To be released by the caller. */ static OSIterator * getMatchingServices( OSDictionary * matching ); /*! @function copyMatchingService @abstract Finds one of the current published IOService objects matching a matching dictionary. @discussion Provides a method to find one member of the set of published IOService objects matching the supplied matching dictionary. @param matching The matching dictionary describing the desired IOService object. @result The IOService object or NULL. To be released by the caller. */ static IOService * copyMatchingService( OSDictionary * matching ); public: /* Helpers to make matching dictionaries for simple cases, * they add keys to an existing dictionary, or create one. */ /*! @function serviceMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify an IOService class match. @discussion A very common matching criteria for IOService object is based on its class. serviceMatching creates a matching dictionary that specifies any IOService object of a class, or its subclasses. The class is specified by name, and an existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param className The class name, as a const C string. Class matching is successful on IOService objects of this class or any subclass. @param table If zero, serviceMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * serviceMatching( const char * className, OSDictionary * table = 0 ); /*! @function serviceMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify an IOService class match. @discussion A very common matching criteria for IOService object is based on its class. serviceMatching creates a matching dictionary that specifies any IOService of a class, or its subclasses. The class is specified by name, and an existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param className The class name, as an OSString (which includes OSSymbol). Class matching is successful on IOService objects of this class or any subclass. @param table If zero, serviceMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * serviceMatching( const OSString * className, OSDictionary * table = 0 ); /*! @function nameMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify an IOService name match. @discussion A very common matching criteria for IOService object is based on its name. nameMatching creates a matching dictionary that specifies any IOService object which responds successfully to the @link //apple_ref/cpp/instm/IORegistryEntry/compareName/virtualbool/(OSString*,OSString**) IORegistryEntry::compareName@/link method. An existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param name The service's name, as a const C string. Name matching is successful on IOService objects that respond successfully to the IORegistryEntry::compareName method. @param table If zero, nameMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * nameMatching( const char * name, OSDictionary * table = 0 ); /*! @function nameMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify an IOService name match. @discussion A very common matching criteria for IOService object is based on its name. nameMatching creates a matching dictionary that specifies any IOService object which responds successfully to the @link //apple_ref/cpp/instm/IORegistryEntry/compareName/virtualbool/(OSString*,OSString**) IORegistryEntry::compareName@/link method. An existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param name The service's name, as an OSString (which includes OSSymbol). Name matching is successful on IOService objects that respond successfully to the IORegistryEntry::compareName method. @param table If zero, nameMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * nameMatching( const OSString* name, OSDictionary * table = 0 ); /*! @function resourceMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify a resource service match. @discussion IOService maintains a resource service IOResources that allows objects to be published and found globally in the I/O Kit based on a name, using the standard IOService matching and notification calls. @param name The resource name, as a const C string. Resource matching is successful when an object by that name has been published with the publishResource method. @param table If zero, resourceMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * resourceMatching( const char * name, OSDictionary * table = 0 ); /*! @function resourceMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify a resource service match. @discussion IOService maintains a resource service IOResources that allows objects to be published and found globally in the I/O Kit based on a name, using the standard IOService matching and notification calls. @param name The resource name, as an OSString (which includes OSSymbol). Resource matching is successful when an object by that name has been published with the publishResource method. @param table If zero, resourceMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * resourceMatching( const OSString * name, OSDictionary * table = 0 ); /*! @function propertyMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify an IOService phandle match. @discussion TODO A very common matching criteria for IOService is based on its name. nameMatching will create a matching dictionary that specifies any IOService which respond successfully to the IORegistryEntry method compareName. An existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param key The service's phandle, as a const UInt32. PHandle matching is successful on IOService objects that respond successfully to the IORegistryEntry method compareName. @param value The service's phandle, as a const UInt32. PHandle matching is successful on IOService's which respond successfully to the IORegistryEntry method compareName. @param table If zero, nameMatching will create a matching dictionary and return a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * propertyMatching( const OSSymbol * key, const OSObject * value, OSDictionary * table = 0 ); /*! @function registryEntryIDMatching @abstract Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify a IORegistryEntryID match. @discussion registryEntryIDMatching creates a matching dictionary that specifies the IOService object with the assigned registry entry ID (returned by IORegistryEntry::getRegistryEntryID()). An existing dictionary may be passed in, in which case the matching properties will be added to that dictionary rather than creating a new one. @param name The service's ID. Matching is successful on the IOService object that return that ID from the IORegistryEntry::getRegistryEntryID() method. @param table If zero, registryEntryIDMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary. @result The matching dictionary created, or passed in, is returned on success, or zero on failure. */ static OSDictionary * registryEntryIDMatching( uint64_t entryID, OSDictionary * table = 0 ); /*! @function addLocation @abstract Adds a location matching property to an existing dictionary. @discussion This function creates matching properties that specify the location of a IOService object, as an embedded matching dictionary. This matching will be successful on an IOService object that attached to an IOService object which matches this location matching dictionary. @param table The matching properties are added to the specified dictionary, which must be non-zero. @result The location matching dictionary created is returned on success, or zero on failure. */ static OSDictionary * addLocation( OSDictionary * table ); /* Helpers for matching dictionaries. */ /*! @function compareProperty @abstract Compares a property in a matching dictionary with an IOService object's property table. @discussion This is a helper function to aid in implementing @link matchPropertyTable matchPropertyTable@/link. If the property specified by key exists in the matching dictionary, it is compared with a property of the same name in the IOService object's property table. The comparison is performed with the isEqualTo method. If the property does not exist in the matching table, success is returned. If the property exists in the matching dictionary but not the IOService property table, failure is returned. @param matching The matching dictionary, which must be non-zero. @param key The dictionary key specifying the property to be compared, as a C string. @result true if the property does not exist in the matching table. If the property exists in the matching dictionary but not the IOService property table, failure is returned. Otherwise the result of calling the property from the matching dictionary's isEqualTo method with the IOService property as an argument is returned. */ virtual bool compareProperty( OSDictionary * matching, const char * key ); /*! @function compareProperty @abstract Compares a property in a matching dictionary with an IOService object's property table. @discussion This is a helper function to aid in implementing @link matchPropertyTable matchPropertyTable@/link. If the property specified by key exists in the matching dictionary, it is compared with a property of the same name in the IOService object's property table. The comparison is performed with the isEqualTo method. If the property does not exist in the matching table, success is returned. If the property exists in the matching dictionary but not the IOService property table, failure is returned. @param matching The matching dictionary, which must be non-zero. @param key The dictionary key specifying the property to be compared, as an OSString (which includes OSSymbol). @result true if the property does not exist in the matching table. If the property exists in the matching dictionary but not the IOService property table, failure is returned. Otherwise the result of calling the property from the matching dictionary's isEqualTo method with the IOService property as an argument is returned. */ virtual bool compareProperty( OSDictionary * matching, const OSString * key ); /*! @function compareProperties @abstract Compares a set of properties in a matching dictionary with an IOService object's property table. @discussion This is a helper function to aid in implementing @link matchPropertyTable matchPropertyTable@/link. A collection of dictionary keys specifies properties in a matching dictionary to be compared, with compareProperty, with an IOService object's property table, if compareProperty returns true for each key, success is returned; otherwise failure. @param matching The matching dictionary, which must be non-zero. @param keys A collection (eg. OSSet, OSArray, OSDictionary) which should contain OSStrings (or OSSymbols) that specify the property keys to be compared. @result Success if compareProperty returns true for each key in the collection; otherwise failure. */ virtual bool compareProperties( OSDictionary * matching, OSCollection * keys ); /* Client / provider accessors */ /*! @function attach @abstract Attaches an IOService client to a provider in the I/O Registry. @discussion This function called in an IOService client enters the client into the I/O Registry as a child of the provider in the service plane. The provider must be active or the attach will fail. Multiple attach calls to the same provider are no-ops and return success. A client may be attached to multiple providers. Entering an object into the I/O Registry retains both the client and provider until they are detached. @param provider The IOService object which will serve as this object's provider. @result false if the provider is inactive or on a resource failure; otherwise true. */ virtual bool attach( IOService * provider ); /*! @function detach @abstract Detaches an IOService client from a provider in the I/O Registry. @discussion This function called in an IOService client removes the client as a child of the provider in the service plane of the I/O Registry. If the provider is not a parent of the client this is a no-op, otherwise the I/O Registry releases both the client and provider. @param provider The IOService object to detach from. */ virtual void detach( IOService * provider ); /*! @function getProvider @abstract Returns an IOService object's primary provider. @discussion This function called in an IOService client will return the provider to which it was first attached. Because the majority of IOService objects have only one provider, this is a useful simplification and also supports caching of the provider when the I/O Registry is unchanged. @result The first provider of the client, or zero if the IOService object is not attached into the I/O Registry. The provider is retained while the client is attached, and should not be released by the caller. */ virtual IOService * getProvider( void ) const; /*! @function getWorkLoop @abstract Returns the current work loop or provider->getWorkLoop. @discussion This function returns a valid work loop that a client can use to add an IOCommandGate to. The intention is that an IOService client has data that needs to be protected but doesn't want to pay the cost of a dedicated thread. This data has to be accessed from a provider's call-out context as well. So to achieve both of these goals the client creates an IOCommandGate to lock access to his data but he registers it with the provider's work loop, i.e. the work loop which will make the completion call-outs. This avoids a potential deadlock because the work loop gate uses a recursive lock, which allows the same lock to be held multiple times by a single thread. @result A work loop, either the current work loop or it walks up the @link getProvider getProvider@/link chain calling getWorkLoop. Eventually it will reach a valid work loop-based driver or the root of the I/O tree, where it will return a system-wide work loop. Returns 0 if it fails to find (or create) a work loop.*/ virtual IOWorkLoop * getWorkLoop() const; /*! @function getProviderIterator @abstract Returns an iterator over an IOService object's providers. @discussion For those few IOService objects that obtain service from multiple providers, this method supplies an iterator over a client's providers. @result An iterator over the providers of the client, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, though they may no longer be attached during the iteration. */ virtual OSIterator * getProviderIterator( void ) const; /*! @function getOpenProviderIterator @abstract Returns an iterator over an client's providers that are currently opened by the client. @discussion For those few IOService objects that obtain service from multiple providers, this method supplies an iterator over a client's providers, locking each in turn with @link lockForArbitration lockForArbitration@/link and returning those that have been opened by the client. @result An iterator over the providers the client has open, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, and the current entry in the iteration is locked with lockForArbitration, protecting it from state changes. */ virtual OSIterator * getOpenProviderIterator( void ) const; /*! @function getClient @abstract Returns an IOService object's primary client. @discussion This function called in an IOService provider will return the first client to attach to it. For IOService objects which have only only one client, this may be a useful simplification. @result The first client of the provider, or zero if the IOService object is not attached into the I/O Registry. The client is retained while it is attached, and should not be released by the caller. */ virtual IOService * getClient( void ) const; /*! @function getClientIterator @abstract Returns an iterator over an IOService object's clients. @discussion For IOService objects that may have multiple clients, this method supplies an iterator over a provider's clients. @result An iterator over the clients of the provider, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, though they may no longer be attached during the iteration. */ virtual OSIterator * getClientIterator( void ) const; /*! @function getOpenClientIterator @abstract Returns an iterator over a provider's clients that currently have opened the provider. @discussion For IOService objects that may have multiple clients, this method supplies an iterator over a provider's clients, locking each in turn with @link lockForArbitration lockForArbitration@/link and returning those that have opened the provider. @result An iterator over the clients that have opened the provider, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, and the current entry in the iteration is locked with lockForArbitration, protecting it from state changes. */ virtual OSIterator * getOpenClientIterator( void ) const; /*! @function callPlatformFunction @abstract Calls the platform function with the given name. @discussion The platform expert or other drivers may implement various functions to control hardware features. callPlatformFunction allows any IOService object to access these functions. Normally callPlatformFunction is called on a service's provider. The provider services the request or passes it to its provider. The system's IOPlatformExpert subclass catches functions it knows about and redirects them into other parts of the service plane. If the IOPlatformExpert subclass cannot execute the function, the base class is called. The IOPlatformExpert base class attempts to find a service to execute the function by looking up the function name in an IOResources name space. A service may publish a service using publishResource(functionName, this). If no service can be found to execute the function an error is returned. @param functionName Name of the function to be called. When functionName is a C string, callPlatformFunction converts the C string to an OSSymbol and calls the OSSymbol version of callPlatformFunction. This process can block and should not be used from an interrupt context. @param waitForFunction If true, callPlatformFunction will not return until the function has been called. @result An IOReturn code; kIOReturnSuccess if the function was successfully executed, kIOReturnUnsupported if a service to execute the function could not be found. Other return codes may be returned by the function.*/ virtual IOReturn callPlatformFunction( const OSSymbol * functionName, bool waitForFunction, void *param1, void *param2, void *param3, void *param4 ); virtual IOReturn callPlatformFunction( const char * functionName, bool waitForFunction, void *param1, void *param2, void *param3, void *param4 ); /* Some accessors */ /*! @function getPlatform @abstract Returns a pointer to the platform expert instance for the computer. @discussion This method provides an accessor to the platform expert instance for the computer. @result A pointer to the IOPlatformExport instance. It should not be released by the caller. */ static IOPlatformExpert * getPlatform( void ); /*! @function getPMRootDomain @abstract Returns a pointer to the power management root domain instance for the computer. @discussion This method provides an accessor to the power management root domain instance for the computer. @result A pointer to the power management root domain instance. It should not be released by the caller. */ static class IOPMrootDomain * getPMRootDomain( void ); /*! @function getServiceRoot @abstract Returns a pointer to the root of the service plane. @discussion This method provides an accessor to the root of the service plane for the computer. @result A pointer to the IOService instance at the root of the service plane. It should not be released by the caller. */ static IOService * getServiceRoot( void ); /*! @function getResourceService @abstract Returns a pointer to the IOResources service. @discussion IOService maintains a resource service IOResources that allows objects to be published and found globally in the I/O Kit based on a name, using the standard IOService matching and notification calls. @result A pointer to the IOResources instance. It should not be released by the caller. */ static IOService * getResourceService( void ); /* Allocate resources for a matched service */ /*! @function getResources @abstract Allocates any needed resources for a published IOService object before clients attach. @discussion This method is called during the registration process for an IOService object if there are successful driver matches, before any clients attach. It allows for lazy allocation of resources to an IOService object when a matching driver is found. @result An IOReturn code; kIOReturnSuccess is necessary for the IOService object to be successfully used, otherwise the registration process for the object is halted. */ virtual IOReturn getResources( void ); /* Device memory accessors */ /*! @function getDeviceMemoryCount @abstract Returns a count of the physical memory ranges available for a device. @discussion This method returns the count of physical memory ranges, each represented by an IODeviceMemory instance, that have been allocated for a memory mapped device. @result An integer count of the number of ranges available. */ virtual IOItemCount getDeviceMemoryCount( void ); /*! @function getDeviceMemoryWithIndex @abstract Returns an instance of IODeviceMemory representing one of a device's memory mapped ranges. @discussion This method returns a pointer to an instance of IODeviceMemory for the physical memory range at the given index for a memory mapped device. @param index An index into the array of ranges assigned to the device. @result A pointer to an instance of IODeviceMemory, or zero if the index is beyond the count available. The IODeviceMemory is retained by the provider, so is valid while attached, or while any mappings to it exist. It should not be released by the caller. See also @link mapDeviceMemoryWithIndex mapDeviceMemoryWithIndex@/link, which creates a device memory mapping. */ virtual IODeviceMemory * getDeviceMemoryWithIndex( unsigned int index ); /*! @function mapDeviceMemoryWithIndex @abstract Maps a physical range of a device. @discussion This method creates a mapping for the IODeviceMemory at the given index, with IODeviceMemory::map(options). The mapping is represented by the returned instance of IOMemoryMap, which should not be released until the mapping is no longer required. @param index An index into the array of ranges assigned to the device. @result An instance of IOMemoryMap, or zero if the index is beyond the count available. The mapping should be released only when access to it is no longer required. */ virtual IOMemoryMap * mapDeviceMemoryWithIndex( unsigned int index, IOOptionBits options = 0 ); /*! @function getDeviceMemory @abstract Returns the array of IODeviceMemory objects representing a device's memory mapped ranges. @discussion This method returns an array of IODeviceMemory objects representing the physical memory ranges allocated to a memory mapped device. @result An OSArray of IODeviceMemory objects, or zero if none are available. The array is retained by the provider, so is valid while attached. */ virtual OSArray * getDeviceMemory( void ); /*! @function setDeviceMemory @abstract Sets the array of IODeviceMemory objects representing a device's memory mapped ranges. @discussion This method sets an array of IODeviceMemory objects representing the physical memory ranges allocated to a memory mapped device. @param array An OSArray of IODeviceMemory objects, or zero if none are available. The array will be retained by the object. */ virtual void setDeviceMemory( OSArray * array ); /* Interrupt accessors */ /*! @function registerInterrupt @abstract Registers a C function interrupt handler for a device supplying interrupts. @discussion This method installs a C function interrupt handler to be called at primary interrupt time for a device's interrupt. Only one handler may be installed per interrupt source. IOInterruptEventSource provides a work loop based abstraction for interrupt delivery that may be more appropriate for work loop based drivers. @param source The index of the interrupt source in the device. @param target An object instance to be passed to the interrupt handler. @param handler The C function to be called at primary interrupt time when the interrupt occurs. The handler should process the interrupt by clearing the interrupt, or by disabling the source. @param refCon A reference constant for the handler's use. @result An IOReturn code.
kIOReturnNoInterrupt is returned if the source is not valid; kIOReturnNoResources is returned if the interrupt already has an installed handler. */ virtual IOReturn registerInterrupt(int source, OSObject *target, IOInterruptAction handler, void *refCon = 0); /*! @function unregisterInterrupt @abstract Removes a C function interrupt handler for a device supplying hardware interrupts. @discussion This method removes a C function interrupt handler previously installed with @link registerInterrupt registerInterrupt@/link. @param source The index of the interrupt source in the device. @result An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid). */ virtual IOReturn unregisterInterrupt(int source); /*! @function getInterruptType @abstract Returns the type of interrupt used for a device supplying hardware interrupts. @param source The index of the interrupt source in the device. @param interruptType The interrupt type for the interrupt source will be stored here by getInterruptType.
kIOInterruptTypeEdge will be returned for edge-trigggered sources.
kIOInterruptTypeLevel will be returned for level-trigggered sources. @result An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid). */ virtual IOReturn getInterruptType(int source, int *interruptType); /*! @function enableInterrupt @abstract Enables a device interrupt. @discussion It is the caller's responsiblity to keep track of the enable state of the interrupt source. @param source The index of the interrupt source in the device. @result An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid). */ virtual IOReturn enableInterrupt(int source); /*! @function disableInterrupt @abstract Synchronously disables a device interrupt. @discussion If the interrupt routine is running, the call will block until the routine completes. It is the caller's responsiblity to keep track of the enable state of the interrupt source. @param source The index of the interrupt source in the device. @result An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid). */ virtual IOReturn disableInterrupt(int source); /*! @function causeInterrupt @abstract Causes a device interrupt to occur. @discussion Emulates a hardware interrupt, to be called from task level. @param source The index of the interrupt source in the device. @result An IOReturn code (kIOReturnNoInterrupt is returned if the source is not valid). */ virtual IOReturn causeInterrupt(int source); /*! @function requestProbe @abstract Requests that hardware be re-scanned for devices. @discussion For bus families that do not usually detect device addition or removal, this method represents an external request (eg. from a utility application) to rescan and publish or remove found devices. @param options Family defined options, not interpreted by IOService. @result An IOReturn code. */ virtual IOReturn requestProbe( IOOptionBits options ); /* Generic API for non-data-path upstream calls */ /*! @function message @abstract Receives a generic message delivered from an attached provider. @discussion A provider may deliver messages via the message method to its clients informing them of state changes, such as kIOMessageServiceIsTerminated or kIOMessageServiceIsSuspended. Certain messages are defined by the I/O Kit in IOMessage.h while others may be family dependent. This method is implemented in the client to receive messages. @param type A type defined in IOMessage.h or defined by the provider family. @param provider The provider from which the message originates. @param argument An argument defined by the provider family, not used by IOService. @result An IOReturn code defined by the message type. */ virtual IOReturn message( UInt32 type, IOService * provider, void * argument = 0 ); /*! @function messageClient @abstract Sends a generic message to an attached client. @discussion A provider may deliver messages via the @link message message@/link method to its clients informing them of state changes, such as kIOMessageServiceIsTerminated or kIOMessageServiceIsSuspended. Certain messages are defined by the I/O Kit in IOMessage.h while others may be family dependent. This method may be called in the provider to send a message to the specified client, which may be useful for overrides. @param messageType A type defined in IOMessage.h or defined by the provider family. @param client A client of the IOService to send the message. @param messageArgument An argument defined by the provider family, not used by IOService. @param argSize Specifies the size of messageArgument, in bytes. If argSize is non-zero, messageArgument is treated as a pointer to argSize bytes of data. If argSize is 0 (the default), messageArgument is treated as an ordinal and passed by value. @result The return code from the client message call. */ virtual IOReturn messageClient( UInt32 messageType, OSObject * client, void * messageArgument = 0, vm_size_t argSize = 0 ); /*! @function messageClients @abstract Sends a generic message to all attached clients. @discussion A provider may deliver messages via the @link message message@/link method to its clients informing them of state changes, such as kIOMessageServiceIsTerminated or kIOMessageServiceIsSuspended. Certain messages are defined by the I/O Kit in IOMessage.h while others may be family dependent. This method may be called in the provider to send a message to all the attached clients, via the @link messageClient messageClient@/link method. @param type A type defined in IOMessage.h or defined by the provider family. @param argument An argument defined by the provider family, not used by IOService. @param argSize Specifies the size of argument, in bytes. If argSize is non-zero, argument is treated as a pointer to argSize bytes of data. If argSize is 0 (the default), argument is treated as an ordinal and passed by value. @result Any non-kIOReturnSuccess return codes returned by the clients, or kIOReturnSuccess if all return kIOReturnSuccess. */ virtual IOReturn messageClients( UInt32 type, void * argument = 0, vm_size_t argSize = 0 ); virtual IONotifier * registerInterest( const OSSymbol * typeOfInterest, IOServiceInterestHandler handler, void * target, void * ref = 0 ); virtual void applyToProviders( IOServiceApplierFunction applier, void * context ); virtual void applyToClients( IOServiceApplierFunction applier, void * context ); virtual void applyToInterested( const OSSymbol * typeOfInterest, OSObjectApplierFunction applier, void * context ); virtual IOReturn acknowledgeNotification( IONotificationRef notification, IOOptionBits response ); /* User client create */ /*! @function newUserClient @abstract Creates a connection for a non kernel client. @discussion A non kernel client may request a connection be opened via the @link //apple_ref/c/func/IOServiceOpen IOServiceOpen@/link library function, which will call this method in an IOService object. The rules and capabilities of user level clients are family dependent, and use the functions of the IOUserClient class for support. IOService's implementation returns kIOReturnUnsupported, so any family supporting user clients must implement this method. @param owningTask The Mach task of the client thread in the process of opening the user client. Note that in Mac OS X, each process is based on a Mach task and one or more Mach threads. For more information on the composition of a Mach task and its relationship with Mach threads, see {@linkdoc //apple_ref/doc/uid/TP30000905-CH209-TPXREF103 "Tasks and Threads"}. @param securityID A token representing the access level for the task. @param type A constant specifying the type of connection to be created, specified by the caller of @link //apple_ref/c/func/IOServiceOpen IOServiceOpen@/link and interpreted only by the family. @param handler An instance of an IOUserClient object to represent the connection, which will be released when the connection is closed, or zero if the connection was not opened. @param properties A dictionary of additional properties for the connection. @result A return code to be passed back to the caller of IOServiceOpen. */ virtual IOReturn newUserClient( task_t owningTask, void * securityID, UInt32 type, OSDictionary * properties, IOUserClient ** handler ); virtual IOReturn newUserClient( task_t owningTask, void * securityID, UInt32 type, IOUserClient ** handler ); /* Return code utilities */ /*! @function stringFromReturn @abstract Supplies a programmer-friendly string from an IOReturn code. @discussion Strings are available for the standard return codes in IOReturn.h in IOService, while subclasses may implement this method to interpret family dependent return codes. @param rtn The IOReturn code. @result A pointer to a constant string, or zero if the return code is unknown. */ virtual const char * stringFromReturn( IOReturn rtn ); /*! @function errnoFromReturn @abstract Translates an IOReturn code to a BSD errno. @discussion BSD defines its own return codes for its functions in sys/errno.h, and I/O Kit families may need to supply compliant results in BSD shims. Results are available for the standard return codes in IOReturn.h in IOService, while subclasses may implement this method to interpret family dependent return codes. @param rtn The IOReturn code. @result The BSD errno or EIO if unknown. */ virtual int errnoFromReturn( IOReturn rtn ); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * end of IOService API * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* for IOInterruptController implementors */ int _numInterruptSources; IOInterruptSource *_interruptSources; /* overrides */ virtual bool serializeProperties( OSSerialize * s ) const override; void requireMaxBusStall(UInt32 ns); void requireMaxInterruptDelay(uint32_t ns); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * Internals * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * */ private: APPLE_KEXT_COMPATIBILITY_VIRTUAL bool checkResources( void ); APPLE_KEXT_COMPATIBILITY_VIRTUAL bool checkResource( OSObject * matching ); APPLE_KEXT_COMPATIBILITY_VIRTUAL void probeCandidates( OSOrderedSet * matches ); APPLE_KEXT_COMPATIBILITY_VIRTUAL bool startCandidate( IOService * candidate ); public: APPLE_KEXT_COMPATIBILITY_VIRTUAL IOService * getClientWithCategory( const OSSymbol * category ) APPLE_KEXT_DEPRECATED; // copyClientWithCategory is the public replacement private: APPLE_KEXT_COMPATIBILITY_VIRTUAL bool passiveMatch( OSDictionary * matching, bool changesOK = false); APPLE_KEXT_COMPATIBILITY_VIRTUAL void startMatching( IOOptionBits options = 0 ); APPLE_KEXT_COMPATIBILITY_VIRTUAL void doServiceMatch( IOOptionBits options ); APPLE_KEXT_COMPATIBILITY_VIRTUAL void doServiceTerminate( IOOptionBits options ); private: bool matchPassive(OSDictionary * table, uint32_t options); bool matchInternal(OSDictionary * table, uint32_t options, unsigned int * did); static bool instanceMatch(const OSObject * entry, void * context); static OSObject * copyExistingServices( OSDictionary * matching, IOOptionBits inState, IOOptionBits options = 0 ); static IONotifier * setNotification( const OSSymbol * type, OSDictionary * matching, IOServiceMatchingNotificationHandler handler, void * target, void * ref, SInt32 priority = 0 ); static IONotifier * doInstallNotification( const OSSymbol * type, OSDictionary * matching, IOServiceMatchingNotificationHandler handler, void * target, void * ref, SInt32 priority, OSIterator ** existing ); static bool syncNotificationHandler( void * target, void * ref, IOService * newService, IONotifier * notifier ); APPLE_KEXT_COMPATIBILITY_VIRTUAL void deliverNotification( const OSSymbol * type, IOOptionBits orNewState, IOOptionBits andNewState ); bool invokeNotifer( class _IOServiceNotifier * notify ); APPLE_KEXT_COMPATIBILITY_VIRTUAL void unregisterAllInterest( void ); APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn waitForState( UInt32 mask, UInt32 value, mach_timespec_t * timeout = 0 ); IOReturn waitForState( UInt32 mask, UInt32 value, uint64_t timeout ); UInt32 _adjustBusy( SInt32 delta ); bool terminatePhase1( IOOptionBits options = 0 ); void scheduleTerminatePhase2( IOOptionBits options = 0 ); void scheduleStop( IOService * provider ); void scheduleFinalize( void ); static void terminateThread( void * arg, wait_result_t unused ); static void terminateWorker( IOOptionBits options ); static void actionWillTerminate( IOService * victim, IOOptionBits options, OSArray * doPhase2List, void*, void * ); static void actionDidTerminate( IOService * victim, IOOptionBits options, void *, void *, void *); static void actionFinalize( IOService * victim, IOOptionBits options, void *, void *, void *); static void actionStop( IOService * client, IOService * provider, void *, void *, void *); APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn resolveInterrupt(IOService *nub, int source); APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn lookupInterrupt(int source, bool resolve, IOInterruptController **interruptController); /* power management */ public: /*! @function PMinit @abstract Initializes power management for a driver. @discussion PMinit allocates and initializes the power management instance variables, and it should be called before accessing those variables or calling the power management methods. This method should be called inside the driver's start routine and must be paired with a call to @link PMstop PMstop@/link. Most calls to PMinit are followed by calls to @link joinPMtree joinPMtree@/link and @link registerPowerDriver registerPowerDriver@/link. */ virtual void PMinit( void ); /*! @function PMstop @abstract Stop power managing the driver. @discussion Removes the driver from the power plane and stop its power management. This method is synchronous against any power management method invocations (e.g. setPowerState or setAggressiveness), so when this method returns it is guaranteed those power management methods will not be entered. Driver should not call any power management methods after this call. Calling PMstop cleans up for the three power management initialization calls: @link PMinit PMinit@/link, @link joinPMtree joinPMtree@/link, and @link registerPowerDriver registerPowerDriver@/link. */ virtual void PMstop( void ); /*! @function joinPMtree @abstract Joins the driver into the power plane of the I/O Registry. @discussion A driver uses this method to call its nub when initializing (usually in its start routine after calling @link PMinit PMinit@/link), to be attached into the power management hierarchy (i.e., the power plane). A driver usually calls this method on the driver for the device that provides it power (this is frequently the nub). Before this call returns, the caller will probably be called at @link setPowerParent setPowerParent@/link and @link setAggressiveness setAggressiveness@/link and possibly at @link addPowerChild addPowerChild@/link as it is added to the hierarchy. This method may be overridden by a nub subclass. @param driver The driver to be added to the power plane, usually this. */ virtual void joinPMtree( IOService * driver ); /*! @function registerPowerDriver @abstract Registers a set of power states that the driver supports. @discussion A driver defines its array of supported power states with power management in its power management initialization (its start routine). If successful, power management will call the driver to instruct it to change its power state through @link setPowerState setPowerState@/link. Most drivers do not need to override registerPowerDriver. A nub may override registerPowerDriver if it needs to arrange its children in the power plane differently than the default placement, but this is uncommon. @param controllingDriver A pointer to the calling driver, usually this. @param powerStates A driver-defined array of power states that the driver and device support. Power states are defined in pwr_mgt/IOPMpowerState.h. @param numberOfStates The number of power states in the array. @result IOPMNoErr. All errors are logged via kprintf. */ virtual IOReturn registerPowerDriver( IOService * controllingDriver, IOPMPowerState * powerStates, unsigned long numberOfStates ); /*! @function registerInterestedDriver @abstract Allows an IOService object to register interest in the changing power state of a power-managed IOService object. @discussion Call registerInterestedDriver on the IOService object you are interested in receiving power state messages from, and pass a pointer to the interested driver (this) as an argument. The interested driver is retained until the power interest is removed by calling deRegisterInterestedDriver. The interested driver should override @link powerStateWillChangeTo powerStateWillChangeTo@/link and @link powerStateDidChangeTo powerStateDidChangeTo@/link to receive these power change messages. Interested drivers must acknowledge power changes in powerStateWillChangeTo or powerStateDidChangeTo, either via return value or later calls to @link acknowledgePowerChange acknowledgePowerChange@/link. @param theDriver The driver of interest adds this pointer to the list of interested drivers. It informs drivers on this list before and after the power change. @result Flags describing the capability of the device in its current power state. If the current power state is not yet defined, zero is returned (this is the case when the driver is not yet in the power domain hierarchy or hasn't fully registered with power management yet). */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOPMPowerFlags registerInterestedDriver( IOService * theDriver ); /*! @function deRegisterInterestedDriver @abstract De-registers power state interest from a previous call to registerInterestedDriver. @discussion The retain from registerInterestedDriver is released. This method is synchronous against any powerStateWillChangeTo or powerStateDidChangeTo call targeting the interested driver, so when this method returns it is guaranteed those interest handlers will not be entered. Most drivers do not need to override deRegisterInterestedDriver. @param theDriver The interested driver previously passed into @link registerInterestedDriver registerInterestedDriver@/link. @result A return code that can be ignored by the caller. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn deRegisterInterestedDriver( IOService * theDriver ); /*! @function acknowledgePowerChange @abstract Acknowledges an in-progress power state change. @discussion When power management informs an interested object (via @link powerStateWillChangeTo powerStateWillChangeTo@/link or @link powerStateDidChangeTo powerStateDidChangeTo@/link), the object can return an immediate acknowledgement via a return code, or it may return an indication that it will acknowledge later by calling acknowledgePowerChange. Interested objects are those that have registered as interested drivers, as well as power plane children of the power changing driver. A driver that calls @link registerInterestedDriver registerInterestedDriver@/link must call acknowledgePowerChange, or use an immediate acknowledgement return from powerStateWillChangeTo or powerStateDidChangeTo. @param whichDriver A pointer to the calling driver. The called object tracks all interested parties to ensure that all have acknowledged the power state change. @result IOPMNoErr. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn acknowledgePowerChange( IOService * whichDriver ); /*! @function acknowledgeSetPowerState @abstract Acknowledges the belated completion of a driver's setPowerState power state change. @discussion After power management instructs a driver to change its state via @link setPowerState setPowerState@/link, that driver must acknowledge the change when its device has completed its transition. The acknowledgement may be immediate, via a return code from setPowerState, or delayed, via this call to acknowledgeSetPowerState. Any driver that does not return kIOPMAckImplied from its setPowerState implementation must later call acknowledgeSetPowerState. @result IOPMNoErr. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn acknowledgeSetPowerState( void ); /*! @function requestPowerDomainState @abstract Tells a driver to adjust its power state. @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual IOReturn requestPowerDomainState( IOPMPowerFlags desiredState, IOPowerConnection * whichChild, unsigned long specificationFlags ); /*! @function makeUsable @abstract Requests that a device become usable. @discussion This method is called when some client of a device (or the device's own driver) is asking for the device to become usable. Power management responds by telling the object upon which this method is called to change to its highest power state. makeUsable is implemented using @link changePowerStateToPriv changePowerStateToPriv@/link. Subsequent requests for lower power, such as from changePowerStateToPriv, will pre-empt this request. @result A return code that can be ignored by the caller. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn makeUsable( void ); /*! @function temporaryPowerClampOn @abstract A driver calls this method to hold itself in the highest power state until it has children. @discussion Use temporaryPowerClampOn to hold your driver in its highest power state while waiting for child devices to attach. After children have attached, the clamp is released and the device's power state is controlled by the children's requirements. @result A return code that can be ignored by the caller. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn temporaryPowerClampOn( void ); /*! @function changePowerStateTo @abstract Sets a driver's power state. @discussion This function is one of several that are used to set a driver's power state. In most circumstances, however, you should call @link changePowerStateToPriv changePowerStateToPriv@/link instead. Calls to changePowerStateTo, changePowerStateToPriv, and a driver's power children all affect the power state of a driver. For legacy design reasons, they have overlapping functionality. Although you should call changePowerStateToPriv to change your device's power state, you might need to call changePowerStateTo in the following circumstances:
  • If a driver will be using changePowerStateToPriv to change its power state, it should call changePowerStateTo(0) in its start routine to eliminate the influence changePowerStateTo has on power state calculations.
  • Call changePowerStateTo in conjunction with @link setIdleTimerPeriod setIdleTimerPeriod@/link and @link activityTickle activityTickle@/link to idle a driver into a low power state. For a driver with 3 power states, for example, changePowerStateTo(1) sets a minimum level of power state 1, such that the idle timer period may not set your device's power any lower than state 1.
@param ordinal The number of the desired power state in the power state array. @result A return code that can be ignored by the caller. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOReturn changePowerStateTo( unsigned long ordinal ); /*! @function currentCapability @abstract Finds out the capability of a device's current power state. @result A copy of the capabilityFlags field for the current power state in the power state array. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL IOPMPowerFlags currentCapability( void ); /*! @function currentPowerConsumption @abstract Finds out the current power consumption of a device. @discussion Most Mac OS X power managed drivers do not report their power consumption via the staticPower field. Thus this call will not accurately reflect power consumption for most drivers. @result A copy of the staticPower field for the current power state in the power state array. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL unsigned long currentPowerConsumption( void ); /*! @function activityTickle @abstract Informs power management when a power-managed device is in use, so that power management can track when it is idle and adjust its power state accordingly. @discussion The activityTickle method is provided for objects in the system (or for the driver itself) to tell a driver that its device is being used. The IOService superclass can manage idleness determination with a simple idle timer mechanism and this activityTickle call. To start this up, the driver calls its superclass's setIdleTimerPeriod. This starts a timer for the time interval specified in the call. When the timer expires, the superclass checks to see if there has been any activity since the last timer expiration. (It checks to see if activityTickle has been called). If there has been activity, it restarts the timer, and this process continues. When the timer expires, and there has been no device activity, the superclass lowers the device power state to the next lower state. This can continue until the device is in state zero. After the device has been powered down by at least one power state, a subsequent call to activityTickle causes the device to be switched to a higher state required for the activity. If the driver is managing the idleness determination totally on its own, the value of the type parameter should be kIOPMSubclassPolicy, and the driver should override the activityTickle method. The superclass IOService implementation of activityTickle does nothing with the kIOPMSubclassPolicy argument. @param type When type is kIOPMSubclassPolicy, activityTickle is not handled in IOService and should be intercepted by the subclass. When type is kIOPMSuperclassPolicy1, an activity flag is set and the device state is checked. If the device has been powered down, it is powered up again. @param stateNumber When type is kIOPMSuperclassPolicy1, stateNumber contains the desired power state ordinal for the activity. If the device is in a lower state, the superclass will switch it to this state. This is for devices that can handle some accesses in lower power states; the device is powered up only as far as it needs to be for the activity. @result When type is kIOPMSuperclassPolicy1, the superclass returns true if the device is currently in the state specified by stateNumber. If the device is in a lower state and must be powered up, the superclass returns false; in this case the superclass will initiate a power change to power the device up. */ virtual bool activityTickle( unsigned long type, unsigned long stateNumber = 0 ); /*! @function setAggressiveness @abstract Broadcasts an aggressiveness factor from the parent of a driver to the driver. @discussion Implement setAggressiveness to receive a notification when an "aggressiveness Aggressiveness factors are a loose set of power management variables that contain values for system sleep timeout, display sleep timeout, whether the system is on battery or AC, and other power management features. There are several aggressiveness factors that can be broadcast and a driver may take action on whichever factors apply to it. A driver that has joined the power plane via @link joinPMtree joinPMtree@/link will receive setAgressiveness calls when aggressiveness factors change. A driver may override this call if it needs to do something with the new factor (such as change its idle timeout). If overridden, the driver must call its superclass's setAgressiveness method in its own setAgressiveness implementation. Most drivers do not need to implement setAgressiveness. @param type The aggressiveness factor type, such as kPMMinutesToDim, kPMMinutesToSpinDown, kPMMinutesToSleep, and kPMPowerSource. (Aggressiveness factors are defined in pwr_mgt/IOPM.h.) @param newLevel The aggressiveness factor's new value. @result IOPMNoErr. */ virtual IOReturn setAggressiveness( unsigned long type, unsigned long newLevel ); /*! @function getAggressiveness @abstract Returns the current aggressiveness value for the given type. @param type The aggressiveness factor to query. @param currentLevel Upon successful return, contains the value of aggressiveness factor type. @result kIOReturnSuccess upon success; an I/O Kit error code otherwise. */ virtual IOReturn getAggressiveness( unsigned long type, unsigned long * currentLevel ); #ifndef __LP64__ /*! @function systemWake @abstract Tells every driver in the power plane that the system is waking up. @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual IOReturn systemWake( void ) APPLE_KEXT_DEPRECATED; /*! @function temperatureCriticalForZone @abstract Alerts a driver to a critical temperature in some thermal zone. @discussion This call is unused by power management. It is not intended to be called or overridden. */ virtual IOReturn temperatureCriticalForZone( IOService * whichZone ) APPLE_KEXT_DEPRECATED; /*! @function youAreRoot @abstract Informs power management which IOService object is the power plane root. @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual IOReturn youAreRoot( void ) APPLE_KEXT_DEPRECATED; /*! @function setPowerParent @abstract This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual IOReturn setPowerParent( IOPowerConnection * parent, bool stateKnown, IOPMPowerFlags currentState ) APPLE_KEXT_DEPRECATED; #endif /* !__LP64__ */ /*! @function addPowerChild @abstract Informs a driver that it has a new child. @discussion The Platform Expert uses this method to call a driver and introduce it to a new child. This call is handled internally by power management. It is not intended to be overridden or called by drivers. @param theChild A pointer to the child IOService object. */ virtual IOReturn addPowerChild( IOService * theChild ); /*! @function removePowerChild @abstract Informs a power managed driver that one of its power plane childen is disappearing. @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual IOReturn removePowerChild( IOPowerConnection * theChild ); #ifndef __LP64__ /*! @function command_received @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual void command_received( void *, void * , void * , void * ); #endif /*! @function start_PM_idle_timer @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ APPLE_KEXT_COMPATIBILITY_VIRTUAL void start_PM_idle_timer( void ); #ifndef __LP64__ /*! @function PM_idle_timer_expiration @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual void PM_idle_timer_expiration( void ) APPLE_KEXT_DEPRECATED; /*! @function PM_Clamp_Timer_Expired @discussion This call is handled internally by power management. It is not intended to be overridden or called by drivers. */ virtual void PM_Clamp_Timer_Expired( void ) APPLE_KEXT_DEPRECATED; #endif /*! @function setIdleTimerPeriod @abstract Sets or changes the idle timer period. @discussion A driver using the idleness determination provided by IOService calls its superclass with this method to set or change the idle timer period. See @link activityTickle activityTickle@/link for a description of this type of idleness determination. @param period The desired idle timer period in seconds. @result kIOReturnSuccess upon success; an I/O Kit error code otherwise. */ virtual IOReturn setIdleTimerPeriod( unsigned long ); #ifndef __LP64__ /*! @function getPMworkloop @abstract Returns a pointer to the system-wide power management work loop. @availability Deprecated in Mac OS X version 10.6. @discussion Most drivers should create their own work loops to synchronize their code; drivers should not run arbitrary code on the power management work loop. */ virtual IOWorkLoop * getPMworkloop( void ) APPLE_KEXT_DEPRECATED; #endif /*! @function getPowerState @abstract Determines a device's power state. @discussion A device's "current power state" is updated at the end of each power state transition (e.g. transition from state 1 to state 0, or state 0 to state 2). This transition includes the time spent powering on or off any power plane children. Thus, if a child calls getPowerState on its power parent during system wake from sleep, the call will return the index to the device's off state rather than its on state. @result The current power state's index into the device's power state array. */ UInt32 getPowerState( void ); /*! @function setPowerState @abstract Requests a power managed driver to change the power state of its device. @discussion A power managed driver must override setPowerState to take part in system power management. After a driver is registered with power management, the system uses setPowerState to power the device off and on for system sleep and wake. Calls to @link PMinit PMinit@/link and @link registerPowerDriver registerPowerDriver@/link enable power management to change a device's power state using setPowerState. setPowerState is called in a clean and separate thread context. @param powerStateOrdinal The number in the power state array of the state the driver is being instructed to switch to. @param whatDevice A pointer to the power management object which registered to manage power for this device. In most cases, whatDevice will be equal to your driver's own this pointer. @result The driver must return IOPMAckImplied if it has complied with the request when it returns. Otherwise if it has started the process of changing power state but not finished it, the driver should return a number of microseconds which is an upper limit of the time it will need to finish. Then, when it has completed the power switch, it should call @link acknowledgeSetPowerState acknowledgeSetPowerState@/link. */ virtual IOReturn setPowerState( unsigned long powerStateOrdinal, IOService * whatDevice ); #ifndef __LP64__ /*! @function clampPowerOn @abstract Deprecated. Do not use. */ virtual void clampPowerOn( unsigned long duration ); #endif /*! @function maxCapabilityForDomainState @abstract Determines a driver's highest power state possible for a given power domain state. @discussion This happens when the power domain is changing state and power management needs to determine which state the device is capable of in the new domain state. Most drivers do not need to implement this method, and can rely upon the default IOService implementation. The IOService implementation scans the power state array looking for the highest state whose inputPowerRequirement field exactly matches the value of the domainState parameter. If more intelligent determination is required, the driver itself should implement the method and override the superclass's implementation. @param domainState Flags that describe the character of "domain power"; they represent the outputPowerCharacter field of a state in the power domain's power state array. @result A state number. */ virtual unsigned long maxCapabilityForDomainState( IOPMPowerFlags domainState ); /*! @function initialPowerStateForDomainState @abstract Determines which power state a device is in, given the current power domain state. @discussion Power management calls this method once, when the driver is initializing power management. Most drivers do not need to implement this method, and can rely upon the default IOService implementation. The IOService implementation scans the power state array looking for the highest state whose inputPowerRequirement field exactly matches the value of the domainState parameter. If more intelligent determination is required, the power managed driver should implement the method and override the superclass's implementation. @param domainState Flags that describe the character of "domain power"; they represent the outputPowerCharacter field of a state in the power domain's power state array. @result A state number. */ virtual unsigned long initialPowerStateForDomainState( IOPMPowerFlags domainState ); /*! @function powerStateForDomainState @abstract Determines what power state the device would be in for a given power domain state. @discussion Power management calls a driver with this method to find out what power state the device would be in for a given power domain state. This happens when the power domain is changing state and power management needs to determine the effect of the change. Most drivers do not need to implement this method, and can rely upon the default IOService implementation. The IOService implementation scans the power state array looking for the highest state whose inputPowerRequirement field exactly matches the value of the domainState parameter. If more intelligent determination is required, the power managed driver should implement the method and override the superclass's implementation. @param domainState Flags that describe the character of "domain power"; they represent the outputPowerCharacter field of a state in the power domain's power state array. @result A state number. */ virtual unsigned long powerStateForDomainState( IOPMPowerFlags domainState ); /*! @function powerStateWillChangeTo @abstract Informs interested parties that a device is about to change its power state. @discussion Power management informs interested parties that a device is about to change to a different power state. Interested parties are those that have registered for this notification via @link registerInterestedDriver registerInterestedDriver@/link. If you have called registerInterestedDriver on a power managed driver, you must implement powerStateWillChangeTo and @link powerStateDidChangeTo powerStateDidChangeTo@/link to receive the notifications. powerStateWillChangeTo is called in a clean and separate thread context. powerStateWillChangeTo is called before a power state transition takes place; powerStateDidChangeTo is called after the transition has completed. @param capabilities Flags that describe the capability of the device in the new power state (they come from the capabilityFlags field of the new state in the power state array). @param stateNumber The number of the state in the state array that the device is switching to. @param whatDevice A pointer to the driver that is changing. It can be used by a driver that is receiving power state change notifications for multiple devices to distinguish between them. @result The driver returns IOPMAckImplied if it has prepared for the power change when it returns. If it has started preparing but not finished, it should return a number of microseconds which is an upper limit of the time it will need to finish preparing. Then, when it has completed its preparations, it should call @link acknowledgePowerChange acknowledgePowerChange@/link. */ virtual IOReturn powerStateWillChangeTo( IOPMPowerFlags capabilities, unsigned long stateNumber, IOService * whatDevice ); /*! @function powerStateDidChangeTo @abstract Informs interested parties that a device has changed to a different power state. @discussion Power management informs interested parties that a device has changed to a different power state. Interested parties are those that have registered for this notification via @link registerInterestedDriver registerInterestedDriver@/link. If you have called registerInterestedDriver on a power managed driver, you must implemnt @link powerStateWillChangeTo powerStateWillChangeTo@/link and powerStateDidChangeTo to receive the notifications. powerStateDidChangeTo is called in a clean and separate thread context. powerStateWillChangeTo is called before a power state transition takes place; powerStateDidChangeTo is called after the transition has completed. @param capabilities Flags that describe the capability of the device in the new power state (they come from the capabilityFlags field of the new state in the power state array). @param stateNumber The number of the state in the state array that the device is switching to. @param whatDevice A pointer to the driver that is changing. It can be used by a driver that is receiving power state change notifications for multiple devices to distinguish between them. @result The driver returns IOPMAckImplied if it has prepared for the power change when it returns. If it has started preparing but not finished, it should return a number of microseconds which is an upper limit of the time it will need to finish preparing. Then, when it has completed its preparations, it should call @link acknowledgePowerChange acknowledgePowerChange@/link. */ virtual IOReturn powerStateDidChangeTo( IOPMPowerFlags capabilities, unsigned long stateNumber, IOService * whatDevice ); #ifndef __LP64__ /*! @function didYouWakeSystem @abstract Asks a driver if its device is the one that just woke the system from sleep. @availability Deprecated in Mac OS X version 10.6. @discussion Power management calls a power managed driver with this method to ask if its device is the one that just woke the system from sleep. If a device is capable of waking the system from sleep, its driver should implement didYouWakeSystem and return true if its device was responsible for waking the system. @result true if the driver's device woke the system and false otherwise. */ virtual bool didYouWakeSystem( void ) APPLE_KEXT_DEPRECATED; /*! @function newTemperature @abstract Tells a power managed driver that the temperature in the thermal zone has changed. @discussion This call is unused by power management. It is not intended to be called or overridden. */ virtual IOReturn newTemperature( long currentTemp, IOService * whichZone ) APPLE_KEXT_DEPRECATED; #endif virtual bool askChangeDown( unsigned long ); virtual bool tellChangeDown( unsigned long ); virtual void tellNoChangeDown ( unsigned long ); virtual void tellChangeUp( unsigned long ); virtual IOReturn allowPowerChange( unsigned long refcon ); virtual IOReturn cancelPowerChange( unsigned long refcon ); protected: /*! @function changePowerStateToPriv @abstract Tells a driver's superclass to change the power state of its device. @discussion A driver uses this method to tell its superclass to change the power state of the device. This is the recommended way to change the power state of a device. Three things affect driver power state: @link changePowerStateTo changePowerStateTo@/link, changePowerStateToPriv, and the desires of the driver's power plane children. Power management puts the device into the maximum state governed by those three entities. Drivers may eliminate the influence of the changePowerStateTo method on power state one of two ways. See @link powerOverrideOnPriv powerOverrideOnPriv@/link to ignore the method's influence, or call changePowerStateTo(0) in the driver's start routine to remove the changePowerStateTo method's power request. @param ordinal The number of the desired power state in the power state array. @result A return code that can be ignored by the caller. */ IOReturn changePowerStateToPriv( unsigned long ordinal ); /*! @function powerOverrideOnPriv @abstract Allows a driver to ignore its children's power management requests and only use changePowerStateToPriv to define its own power state. @discussion Power management normally keeps a device at the highest state required by its requests via @link changePowerStateTo changePowerStateTo@/link, @link changePowerStateToPriv changePowerStateToPriv@/link, and its children. However, a driver may ensure a lower power state than otherwise required by itself and its children using powerOverrideOnPriv. When the override is on, power management keeps the device's power state in the state specified by changePowerStateToPriv. Turning on the override will initiate a power change if the driver's changePowerStateToPriv desired power state is different from the maximum of the changePowerStateTo desired power state and the children's desires. @result A return code that can be ignored by the caller. */ IOReturn powerOverrideOnPriv( void ); /*! @function powerOverrideOffPriv @abstract Allows a driver to disable a power override. @discussion When a driver has enabled an override via @link powerOverrideOnPriv powerOverrideOnPriv@/link, it can disable it again by calling this method in its superclass. Disabling the override reverts to the default algorithm for determining a device's power state. The superclass will now keep the device at the highest state required by changePowerStateTo, changePowerStateToPriv, and its children. Turning off the override will initiate a power change if the driver's desired power state is different from the maximum of the power managed driver's desire and the children's desires. @result A return code that can be ignored by the caller. */ IOReturn powerOverrideOffPriv( void ); /*! @function powerChangeDone @abstract Tells a driver when a power state change is complete. @discussion Power management uses this method to inform a driver when a power change is completely done, when all interested parties have acknowledged the @link powerStateDidChangeTo powerStateDidChangeTo@/link call. The default implementation of this method is null; the method is meant to be overridden by subclassed power managed drivers. A driver should use this method to find out if a power change it initiated is complete. @param stateNumber The number of the state in the state array that the device has switched from. */ virtual void powerChangeDone( unsigned long stateNumber ); }; #endif /* ! _IOKIT_IOSERVICE_H */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/plugin_start.cpp ================================================ // // plugin_start.cpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #include #include #include #ifndef LILU_CUSTOM_KMOD_INIT bool ADDPR(startSuccess) = false; #else // Workaround custom kmod code and enable by default bool ADDPR(startSuccess) = true; #endif bool ADDPR(debugEnabled) = false; uint32_t ADDPR(debugPrintDelay) = 0; #if !defined(LILU_CUSTOM_KMOD_INIT) || !defined(LILU_CUSTOM_IOKIT_INIT) static const char kextVersion[] { #ifdef DEBUG 'D', 'B', 'G', '-', #else 'R', 'E', 'L', '-', #endif xStringify(MODULE_VERSION)[0], xStringify(MODULE_VERSION)[2], xStringify(MODULE_VERSION)[4], '-', getBuildYear<0>(), getBuildYear<1>(), getBuildYear<2>(), getBuildYear<3>(), '-', getBuildMonth<0>(), getBuildMonth<1>(), '-', getBuildDay<0>(), getBuildDay<1>(), '\0' }; #endif #ifndef LILU_CUSTOM_IOKIT_INIT OSDefineMetaClassAndStructors(PRODUCT_NAME, IOService) PRODUCT_NAME *ADDPR(selfInstance) = nullptr; IOService *PRODUCT_NAME::probe(IOService *provider, SInt32 *score) { ADDPR(selfInstance) = this; setProperty("VersionInfo", kextVersion); auto service = IOService::probe(provider, score); return ADDPR(startSuccess) ? service : nullptr; } bool PRODUCT_NAME::start(IOService *provider) { ADDPR(selfInstance) = this; if (!IOService::start(provider)) { SYSLOG("init", "failed to start the parent"); return false; } return ADDPR(startSuccess); } void PRODUCT_NAME::stop(IOService *provider) { ADDPR(selfInstance) = nullptr; IOService::stop(provider); } #endif /* LILU_CUSTOM_IOKIT_INIT */ #ifndef LILU_CUSTOM_KMOD_INIT EXPORT extern "C" kern_return_t ADDPR(kern_start)(kmod_info_t *, void *) { // This is an ugly hack necessary on some systems where buffering kills most of debug output. PE_parse_boot_argn("liludelay", &ADDPR(debugPrintDelay), sizeof(ADDPR(debugPrintDelay))); auto error = lilu.requestAccess(); if (error == LiluAPI::Error::NoError) { error = lilu.shouldLoad(ADDPR(config).product, ADDPR(config).version, ADDPR(config).runmode, ADDPR(config).disableArg, ADDPR(config).disableArgNum, ADDPR(config).debugArg, ADDPR(config).debugArgNum, ADDPR(config).betaArg, ADDPR(config).betaArgNum, ADDPR(config).minKernel, ADDPR(config).maxKernel, ADDPR(debugEnabled)); if (error == LiluAPI::Error::NoError) { DBGLOG("init", "%s bootstrap %s", xStringify(PRODUCT_NAME), kextVersion); (void)kextVersion; ADDPR(startSuccess) = true; ADDPR(config).pluginStart(); } else { SYSLOG("init", "parent said we should not continue %d", error); } lilu.releaseAccess(); } else { SYSLOG("init", "failed to call parent %d", error); } // Report success but actually do not start and let I/O Kit unload us. // This works better and increases boot speed in some cases. return KERN_SUCCESS; } EXPORT extern "C" kern_return_t ADDPR(kern_stop)(kmod_info_t *, void *) { // It is not safe to unload Lilu plugins unless they were disabled! return ADDPR(startSuccess) ? KERN_FAILURE : KERN_SUCCESS; } #endif /* LILU_CUSTOM_KMOD_INIT */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/security/_label.h ================================================ /* * Copyright (c) 2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /*- * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. * Copyright (c) 2005 SPARTA, Inc. * All rights reserved. * * This software was developed by Robert Watson for the TrustedBSD Project. * * This software was developed for the FreeBSD Project in part by Network * Associates Laboratories, the Security Research Division of Network * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), * as part of the DARPA CHATS research program. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/sys/_label.h,v 1.4 2003/05/08 19:49:42 rwatson Exp $ */ #ifndef _SECURITY_LABEL_H_ #define _SECURITY_LABEL_H_ /* * XXXMAC: This shouldn't be exported to userland, but is because of ucred.h * and various other messes. */ #if CONFIG_EMBEDDED #define MAC_MAX_SLOTS 3 #else #define MAC_MAX_SLOTS 7 #endif #define MAC_FLAG_INITIALIZED 0x0000001 /* Is initialized for use. */ struct label { int l_flags; union { void *l_ptr; long l_long; } l_perpolicy[MAC_MAX_SLOTS]; }; #endif /* !_SECURITY_LABEL_H_ */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/security/mac_framework.h ================================================ /* * Copyright (c) 2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /*- * Copyright (c) 1999-2002 Robert N. M. Watson * Copyright (c) 2001-2005 Networks Associates Technology, Inc. * Copyright (c) 2005-2007 SPARTA, Inc. * All rights reserved. * * This software was developed by Robert Watson for the TrustedBSD Project. * * This software was developed for the FreeBSD Project in part by Network * Associates Laboratories, the Security Research Division of Network * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), * as part of the DARPA CHATS research program. * * This software was enhanced by SPARTA ISSO under SPAWAR contract * N66001-04-C-6019 ("SEFOS"). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/sys/mac.h,v 1.40 2003/04/18 19:57:37 rwatson Exp $ * */ /* * Kernel interface for Mandatory Access Control -- how kernel services * interact with the TrustedBSD MAC Framework. */ #ifndef _SECURITY_MAC_FRAMEWORK_H_ #define _SECURITY_MAC_FRAMEWORK_H_ //#warning "MAC policy is not KPI, see Technical Q&A QA1574, this header will be removed in next version" #ifdef __cplusplus extern "C" { #endif struct attrlist; struct auditinfo; struct bpf_d; struct componentname; struct cs_blob; struct devnode; struct exception_action; struct flock; struct fdescnode; struct fileglob; struct fileproc; struct ifnet; struct ifreq; struct image_params; struct inpcb; struct ipc_port; struct ipq; struct knote; struct m_tag; struct mac; struct mac_module_data; struct mbuf; struct msg; struct msqid_kernel; struct mount; struct pipe; struct proc; struct pseminfo; struct pshminfo; struct semid_kernel; struct shmid_kernel; struct sockaddr; struct sockopt; struct socket; struct task; struct thread; struct timespec; struct tty; struct ucred; struct uio; struct uthread; struct vfs_attr; struct vfs_context; struct vnode; struct vnode_attr; struct vop_setlabel_args; #include #include #if CONFIG_MACF #ifndef __IOKIT_PORTS_DEFINED__ #define __IOKIT_PORTS_DEFINED__ #ifdef __cplusplus class OSObject; typedef OSObject *io_object_t; #else struct OSObject; typedef struct OSObject *io_object_t; #endif #endif /* __IOKIT_PORTS_DEFINED__ */ /*@ macros */ #define VNODE_LABEL_CREATE 1 /*@ === */ int mac_audit_check_postselect(kauth_cred_t cred, unsigned short syscode, void *args, int error, int retval, int mac_forced); int mac_audit_check_preselect(kauth_cred_t cred, unsigned short syscode, void *args); int mac_bpfdesc_check_receive(struct bpf_d *bpf_d, struct ifnet *ifp); void mac_bpfdesc_label_destroy(struct bpf_d *bpf_d); void mac_bpfdesc_label_init(struct bpf_d *bpf_d); void mac_bpfdesc_label_associate(kauth_cred_t cred, struct bpf_d *bpf_d); int mac_cred_check_label_update(kauth_cred_t cred, struct label *newlabel); int mac_cred_check_label_update_execve(vfs_context_t ctx, struct vnode *vp, off_t offset, struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execlabel, proc_t proc, void *macextensions); int mac_cred_check_visible(kauth_cred_t u1, kauth_cred_t u2); struct label *mac_cred_label_alloc(void); void mac_cred_label_associate(kauth_cred_t cred_parent, kauth_cred_t cred_child); void mac_cred_label_associate_fork(kauth_cred_t cred, proc_t child); void mac_cred_label_associate_kernel(kauth_cred_t cred); void mac_cred_label_associate_user(kauth_cred_t cred); void mac_cred_label_destroy(kauth_cred_t cred); int mac_cred_label_externalize_audit(proc_t p, struct mac *mac); void mac_cred_label_free(struct label *label); void mac_cred_label_init(kauth_cred_t cred); int mac_cred_label_compare(struct label *a, struct label *b); void mac_cred_label_update(kauth_cred_t cred, struct label *newlabel); void mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t newcred, struct vnode *vp, off_t offset, struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execlabel, u_int *csflags, void *macextensions, int *disjoint, int *labelupdateerror); void mac_devfs_label_associate_device(dev_t dev, struct devnode *de, const char *fullpath); void mac_devfs_label_associate_directory(const char *dirname, int dirnamelen, struct devnode *de, const char *fullpath); void mac_devfs_label_copy(struct label *, struct label *label); void mac_devfs_label_destroy(struct devnode *de); void mac_devfs_label_init(struct devnode *de); void mac_devfs_label_update(struct mount *mp, struct devnode *de, struct vnode *vp); int mac_execve_enter(user_addr_t mac_p, struct image_params *imgp); int mac_file_check_change_offset(kauth_cred_t cred, struct fileglob *fg); int mac_file_check_create(kauth_cred_t cred); int mac_file_check_dup(kauth_cred_t cred, struct fileglob *fg, int newfd); int mac_file_check_fcntl(kauth_cred_t cred, struct fileglob *fg, int cmd, user_long_t arg); int mac_file_check_get(kauth_cred_t cred, struct fileglob *fg, char *elements, int len); int mac_file_check_get_offset(kauth_cred_t cred, struct fileglob *fg); int mac_file_check_inherit(kauth_cred_t cred, struct fileglob *fg); int mac_file_check_ioctl(kauth_cred_t cred, struct fileglob *fg, unsigned int cmd); int mac_file_check_lock(kauth_cred_t cred, struct fileglob *fg, int op, struct flock *fl); int mac_file_check_library_validation(struct proc *proc, struct fileglob *fg, off_t slice_offset, user_long_t error_message, size_t error_message_size); int mac_file_check_mmap(kauth_cred_t cred, struct fileglob *fg, int prot, int flags, uint64_t file_pos, int *maxprot); void mac_file_check_mmap_downgrade(kauth_cred_t cred, struct fileglob *fg, int *prot); int mac_file_check_receive(kauth_cred_t cred, struct fileglob *fg); int mac_file_check_set(kauth_cred_t cred, struct fileglob *fg, char *bufp, int buflen); void mac_file_label_associate(kauth_cred_t cred, struct fileglob *fg); void mac_file_label_destroy(struct fileglob *fg); void mac_file_label_init(struct fileglob *fg); int mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *mbuf, int family, int type); void mac_ifnet_label_associate(struct ifnet *ifp); void mac_ifnet_label_destroy(struct ifnet *ifp); int mac_ifnet_label_get(kauth_cred_t cred, struct ifreq *ifr, struct ifnet *ifp); void mac_ifnet_label_init(struct ifnet *ifp); void mac_ifnet_label_recycle(struct ifnet *ifp); int mac_ifnet_label_set(kauth_cred_t cred, struct ifreq *ifr, struct ifnet *ifp); int mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *mbuf, int family, int type); void mac_inpcb_label_associate(struct socket *so, struct inpcb *inp); void mac_inpcb_label_destroy(struct inpcb *inp); int mac_inpcb_label_init(struct inpcb *inp, int flag); void mac_inpcb_label_recycle(struct inpcb *inp); void mac_inpcb_label_update(struct socket *so); int mac_iokit_check_device(char *devtype, struct mac_module_data *mdata); int mac_iokit_check_open(kauth_cred_t cred, io_object_t user_client, unsigned int user_client_type); int mac_iokit_check_set_properties(kauth_cred_t cred, io_object_t registry_entry, io_object_t properties); int mac_iokit_check_filter_properties(kauth_cred_t cred, io_object_t registry_entry); int mac_iokit_check_get_property(kauth_cred_t cred, io_object_t registry_entry, const char *name); int mac_iokit_check_hid_control(kauth_cred_t cred); int mac_iokit_check_nvram_delete(kauth_cred_t cred, const char *name); int mac_iokit_check_nvram_get(kauth_cred_t cred, const char *name); int mac_iokit_check_nvram_set(kauth_cred_t cred, const char *name, io_object_t value); void mac_ipq_label_associate(struct mbuf *fragment, struct ipq *ipq); int mac_ipq_label_compare(struct mbuf *fragment, struct ipq *ipq); void mac_ipq_label_destroy(struct ipq *ipq); int mac_ipq_label_init(struct ipq *ipq, int flag); void mac_ipq_label_update(struct mbuf *fragment, struct ipq *ipq); void mac_mbuf_label_associate_bpfdesc(struct bpf_d *bpf_d, struct mbuf *m); void mac_mbuf_label_associate_ifnet(struct ifnet *ifp, struct mbuf *m); void mac_mbuf_label_associate_inpcb(struct inpcb *inp, struct mbuf *m); void mac_mbuf_label_associate_ipq(struct ipq *ipq, struct mbuf *mbuf); void mac_mbuf_label_associate_linklayer(struct ifnet *ifp, struct mbuf *m); void mac_mbuf_label_associate_multicast_encap(struct mbuf *oldmbuf, struct ifnet *ifp, struct mbuf *newmbuf); void mac_mbuf_label_associate_netlayer(struct mbuf *oldmbuf, struct mbuf *newmbuf); void mac_mbuf_label_associate_socket(struct socket *so, struct mbuf *m); void mac_mbuf_label_copy(struct mbuf *m_from, struct mbuf *m_to); void mac_mbuf_label_destroy(struct mbuf *m); int mac_mbuf_label_init(struct mbuf *m, int flag); void mac_mbuf_tag_copy(struct m_tag *m, struct m_tag *mtag); void mac_mbuf_tag_destroy(struct m_tag *mtag); int mac_mbuf_tag_init(struct m_tag *, int how); int mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp, unsigned int cmd); int mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa); int mac_mount_check_label_update(vfs_context_t ctx, struct mount *mp); int mac_mount_check_mount(vfs_context_t ctx, struct vnode *vp, struct componentname *cnp, const char *vfc_name); int mac_mount_check_snapshot_create(vfs_context_t ctx, struct mount *mp, const char *name); int mac_mount_check_snapshot_delete(vfs_context_t ctx, struct mount *mp, const char *name); int mac_mount_check_snapshot_revert(vfs_context_t ctx, struct mount *mp, const char *name); int mac_mount_check_remount(vfs_context_t ctx, struct mount *mp); int mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa); int mac_mount_check_stat(vfs_context_t ctx, struct mount *mp); int mac_mount_check_umount(vfs_context_t ctx, struct mount *mp); void mac_mount_label_associate(vfs_context_t ctx, struct mount *mp); void mac_mount_label_destroy(struct mount *mp); int mac_mount_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen); int mac_mount_label_get(struct mount *mp, user_addr_t mac_p); void mac_mount_label_init(struct mount *); int mac_mount_label_internalize(struct label *, char *string); void mac_netinet_fragment(struct mbuf *datagram, struct mbuf *fragment); void mac_netinet_icmp_reply(struct mbuf *m); void mac_netinet_tcp_reply(struct mbuf *m); int mac_pipe_check_ioctl(kauth_cred_t cred, struct pipe *cpipe, unsigned int cmd); int mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn, struct pipe *cpipe); int mac_pipe_check_read(kauth_cred_t cred, struct pipe *cpipe); int mac_pipe_check_select(kauth_cred_t cred, struct pipe *cpipe, int which); int mac_pipe_check_stat(kauth_cred_t cred, struct pipe *cpipe); int mac_pipe_check_write(kauth_cred_t cred, struct pipe *cpipe); struct label *mac_pipe_label_alloc(void); void mac_pipe_label_associate(kauth_cred_t cred, struct pipe *cpipe); void mac_pipe_label_copy(struct label *src, struct label *dest); void mac_pipe_label_destroy(struct pipe *cpipe); void mac_pipe_label_free(struct label *label); void mac_pipe_label_init(struct pipe *cpipe); int mac_pipe_label_update(kauth_cred_t cred, struct pipe *cpipe, struct label *label); void mac_policy_initbsd(void); int mac_posixsem_check_create(kauth_cred_t cred, const char *name); int mac_posixsem_check_open(kauth_cred_t cred, struct pseminfo *psem); int mac_posixsem_check_post(kauth_cred_t cred, struct pseminfo *psem); int mac_posixsem_check_unlink(kauth_cred_t cred, struct pseminfo *psem, const char *name); int mac_posixsem_check_wait(kauth_cred_t cred, struct pseminfo *psem); void mac_posixsem_vnode_label_associate(kauth_cred_t cred, struct pseminfo *psem, struct label *plabel, vnode_t vp, struct label *vlabel); void mac_posixsem_label_associate(kauth_cred_t cred, struct pseminfo *psem, const char *name); void mac_posixsem_label_destroy(struct pseminfo *psem); void mac_posixsem_label_init(struct pseminfo *psem); int mac_posixshm_check_create(kauth_cred_t cred, const char *name); int mac_posixshm_check_mmap(kauth_cred_t cred, struct pshminfo *pshm, int prot, int flags); int mac_posixshm_check_open(kauth_cred_t cred, struct pshminfo *pshm, int fflags); int mac_posixshm_check_stat(kauth_cred_t cred, struct pshminfo *pshm); int mac_posixshm_check_truncate(kauth_cred_t cred, struct pshminfo *pshm, off_t s); int mac_posixshm_check_unlink(kauth_cred_t cred, struct pshminfo *pshm, const char *name); void mac_posixshm_vnode_label_associate(kauth_cred_t cred, struct pshminfo *pshm, struct label *plabel, vnode_t vp, struct label *vlabel); void mac_posixshm_label_associate(kauth_cred_t cred, struct pshminfo *pshm, const char *name); void mac_posixshm_label_destroy(struct pshminfo *pshm); void mac_posixshm_label_init(struct pshminfo *pshm); int mac_priv_check(kauth_cred_t cred, int priv); int mac_priv_grant(kauth_cred_t cred, int priv); int mac_proc_check_debug(proc_t proc1, proc_t proc2); int mac_proc_check_cpumon(proc_t curp); int mac_proc_check_proc_info(proc_t curp, proc_t target, int callnum, int flavor); int mac_proc_check_get_cs_info(proc_t curp, proc_t target, unsigned int op); int mac_proc_check_set_cs_info(proc_t curp, proc_t target, unsigned int op); int mac_proc_check_fork(proc_t proc); int mac_proc_check_suspend_resume(proc_t proc, int sr); int mac_proc_check_get_task_name(kauth_cred_t cred, struct proc *p); int mac_proc_check_get_task(kauth_cred_t cred, struct proc *p); int mac_proc_check_expose_task(kauth_cred_t cred, struct proc *p); int mac_proc_check_inherit_ipc_ports(struct proc *p, struct vnode *cur_vp, off_t cur_offset, struct vnode *img_vp, off_t img_offset, struct vnode *scriptvp); int mac_proc_check_getaudit(proc_t proc); int mac_proc_check_getauid(proc_t proc); int mac_proc_check_getlcid(proc_t proc1, proc_t proc2, pid_t pid); int mac_proc_check_ledger(proc_t curp, proc_t target, int op); int mac_proc_check_map_anon(proc_t proc, user_addr_t u_addr, user_size_t u_size, int prot, int flags, int *maxprot); int mac_proc_check_mprotect(proc_t proc, user_addr_t addr, user_size_t size, int prot); int mac_proc_check_run_cs_invalid(proc_t proc); int mac_proc_check_sched(proc_t proc, proc_t proc2); int mac_proc_check_setaudit(proc_t proc, struct auditinfo_addr *ai); int mac_proc_check_setauid(proc_t proc, uid_t auid); int mac_proc_check_setlcid(proc_t proc1, proc_t proc2, pid_t pid1, pid_t pid2); int mac_proc_check_signal(proc_t proc1, proc_t proc2, int signum); int mac_proc_check_wait(proc_t proc1, proc_t proc2); void mac_proc_set_enforce(proc_t p, int enforce_flags); int mac_setsockopt_label(kauth_cred_t cred, struct socket *so, struct mac *extmac); int mac_socket_check_accept(kauth_cred_t cred, struct socket *so); int mac_socket_check_accepted(kauth_cred_t cred, struct socket *so); int mac_socket_check_bind(kauth_cred_t cred, struct socket *so, struct sockaddr *addr); int mac_socket_check_connect(kauth_cred_t cred, struct socket *so, struct sockaddr *addr); int mac_socket_check_create(kauth_cred_t cred, int domain, int type, int protocol); int mac_socket_check_deliver(struct socket *so, struct mbuf *m); int mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn, struct socket *so); int mac_socket_check_listen(kauth_cred_t cred, struct socket *so); int mac_socket_check_receive(kauth_cred_t cred, struct socket *so); int mac_socket_check_received(kauth_cred_t cred, struct socket *so, struct sockaddr *saddr); int mac_socket_check_select(kauth_cred_t cred, struct socket *so, int which); int mac_socket_check_send(kauth_cred_t cred, struct socket *so, struct sockaddr *addr); int mac_socket_check_getsockopt(kauth_cred_t cred, struct socket *so, struct sockopt *sopt); int mac_socket_check_setsockopt(kauth_cred_t cred, struct socket *so, struct sockopt *sopt); int mac_socket_check_stat(kauth_cred_t cred, struct socket *so); void mac_socket_label_associate(kauth_cred_t cred, struct socket *so); void mac_socket_label_associate_accept(struct socket *oldsocket, struct socket *newsocket); void mac_socket_label_copy(struct label *from, struct label *to); void mac_socket_label_destroy(struct socket *); int mac_socket_label_get(kauth_cred_t cred, struct socket *so, struct mac *extmac); int mac_socket_label_init(struct socket *, int waitok); void mac_socketpeer_label_associate_mbuf(struct mbuf *m, struct socket *so); void mac_socketpeer_label_associate_socket(struct socket *peersocket, struct socket *socket_to_modify); int mac_socketpeer_label_get(kauth_cred_t cred, struct socket *so, struct mac *extmac); int mac_system_check_acct(kauth_cred_t cred, struct vnode *vp); int mac_system_check_audit(kauth_cred_t cred, void *record, int length); int mac_system_check_auditctl(kauth_cred_t cred, struct vnode *vp); int mac_system_check_auditon(kauth_cred_t cred, int cmd); int mac_system_check_chud(kauth_cred_t cred); int mac_system_check_host_priv(kauth_cred_t cred); int mac_system_check_info(kauth_cred_t, const char *info_type); int mac_system_check_nfsd(kauth_cred_t cred); int mac_system_check_reboot(kauth_cred_t cred, int howto); int mac_system_check_settime(kauth_cred_t cred); int mac_system_check_swapoff(kauth_cred_t cred, struct vnode *vp); int mac_system_check_swapon(kauth_cred_t cred, struct vnode *vp); int mac_system_check_sysctlbyname(kauth_cred_t cred, const char *namestring, int *name, u_int namelen, user_addr_t oldctl, size_t oldlen, user_addr_t newctl, size_t newlen); int mac_system_check_kas_info(kauth_cred_t cred, int selector); void mac_sysvmsg_label_associate(kauth_cred_t cred, struct msqid_kernel *msqptr, struct msg *msgptr); void mac_sysvmsg_label_init(struct msg *msgptr); void mac_sysvmsg_label_recycle(struct msg *msgptr); int mac_sysvmsq_check_enqueue(kauth_cred_t cred, struct msg *msgptr, struct msqid_kernel *msqptr); int mac_sysvmsq_check_msgrcv(kauth_cred_t cred, struct msg *msgptr); int mac_sysvmsq_check_msgrmid(kauth_cred_t cred, struct msg *msgptr); int mac_sysvmsq_check_msqctl(kauth_cred_t cred, struct msqid_kernel *msqptr, int cmd); int mac_sysvmsq_check_msqget(kauth_cred_t cred, struct msqid_kernel *msqptr); int mac_sysvmsq_check_msqrcv(kauth_cred_t cred, struct msqid_kernel *msqptr); int mac_sysvmsq_check_msqsnd(kauth_cred_t cred, struct msqid_kernel *msqptr); void mac_sysvmsq_label_associate(kauth_cred_t cred, struct msqid_kernel *msqptr); void mac_sysvmsq_label_init(struct msqid_kernel *msqptr); void mac_sysvmsq_label_recycle(struct msqid_kernel *msqptr); int mac_sysvsem_check_semctl(kauth_cred_t cred, struct semid_kernel *semakptr, int cmd); int mac_sysvsem_check_semget(kauth_cred_t cred, struct semid_kernel *semakptr); int mac_sysvsem_check_semop(kauth_cred_t cred, struct semid_kernel *semakptr, size_t accesstype); void mac_sysvsem_label_associate(kauth_cred_t cred, struct semid_kernel *semakptr); void mac_sysvsem_label_destroy(struct semid_kernel *semakptr); void mac_sysvsem_label_init(struct semid_kernel *semakptr); void mac_sysvsem_label_recycle(struct semid_kernel *semakptr); int mac_sysvshm_check_shmat(kauth_cred_t cred, struct shmid_kernel *shmsegptr, int shmflg); int mac_sysvshm_check_shmctl(kauth_cred_t cred, struct shmid_kernel *shmsegptr, int cmd); int mac_sysvshm_check_shmdt(kauth_cred_t cred, struct shmid_kernel *shmsegptr); int mac_sysvshm_check_shmget(kauth_cred_t cred, struct shmid_kernel *shmsegptr, int shmflg); void mac_sysvshm_label_associate(kauth_cred_t cred, struct shmid_kernel *shmsegptr); void mac_sysvshm_label_destroy(struct shmid_kernel *shmsegptr); void mac_sysvshm_label_init(struct shmid_kernel* shmsegptr); void mac_sysvshm_label_recycle(struct shmid_kernel *shmsegptr); int mac_vnode_check_access(vfs_context_t ctx, struct vnode *vp, int acc_mode); int mac_vnode_check_chdir(vfs_context_t ctx, struct vnode *dvp); int mac_vnode_check_chroot(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp); int mac_vnode_check_clone(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp); int mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp, struct vnode_attr *vap); int mac_vnode_check_deleteextattr(vfs_context_t ctx, struct vnode *vp, const char *name); int mac_vnode_check_exchangedata(vfs_context_t ctx, struct vnode *v1, struct vnode *v2); int mac_vnode_check_exec(vfs_context_t ctx, struct vnode *vp, struct image_params *imgp); int mac_vnode_check_fsgetpath(vfs_context_t ctx, struct vnode *vp); int mac_vnode_check_getattr(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp, struct vnode_attr *va); int mac_vnode_check_getattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist); int mac_vnode_check_getextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio); int mac_vnode_check_ioctl(vfs_context_t ctx, struct vnode *vp, unsigned int cmd); int mac_vnode_check_kqfilter(vfs_context_t ctx, kauth_cred_t file_cred, struct knote *kn, struct vnode *vp); int mac_vnode_check_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel); int mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp); int mac_vnode_check_listextattr(vfs_context_t ctx, struct vnode *vp); int mac_vnode_check_lookup(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp); int mac_vnode_check_open(vfs_context_t ctx, struct vnode *vp, int acc_mode); int mac_vnode_check_read(vfs_context_t ctx, kauth_cred_t file_cred, struct vnode *vp); int mac_vnode_check_readdir(vfs_context_t ctx, struct vnode *vp); int mac_vnode_check_readlink(vfs_context_t ctx, struct vnode *vp); int mac_vnode_check_rename(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp); int mac_vnode_check_revoke(vfs_context_t ctx, struct vnode *vp); int mac_vnode_check_searchfs(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist); int mac_vnode_check_select(vfs_context_t ctx, struct vnode *vp, int which); int mac_vnode_check_setacl(vfs_context_t ctx, struct vnode *vp, struct kauth_acl *acl); int mac_vnode_check_setattrlist(vfs_context_t ctxd, struct vnode *vp, struct attrlist *alist); int mac_vnode_check_setextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio); int mac_vnode_check_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags); int mac_vnode_check_setmode(vfs_context_t ctx, struct vnode *vp, mode_t mode); int mac_vnode_check_setowner(vfs_context_t ctx, struct vnode *vp, uid_t uid, gid_t gid); int mac_vnode_check_setutimes(vfs_context_t ctx, struct vnode *vp, struct timespec atime, struct timespec mtime); int mac_vnode_check_signature(struct vnode *vp, struct cs_blob *cs_blob, struct image_params *imgp, unsigned int *cs_flags, int flags); int mac_vnode_check_stat(vfs_context_t ctx, kauth_cred_t file_cred, struct vnode *vp); int mac_vnode_check_truncate(vfs_context_t ctx, kauth_cred_t file_cred, struct vnode *vp); int mac_vnode_check_uipc_bind(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp, struct vnode_attr *vap); int mac_vnode_check_uipc_connect(vfs_context_t ctx, struct vnode *vp, struct socket *so); int mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp); int mac_vnode_check_write(vfs_context_t ctx, kauth_cred_t file_cred, struct vnode *vp); struct label *mac_vnode_label_alloc(void); int mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx); void mac_vnode_label_associate_devfs(struct mount *mp, struct devnode *de, struct vnode *vp); int mac_vnode_label_associate_extattr(struct mount *mp, struct vnode *vp); int mac_vnode_label_associate_fdesc(struct mount *mp, struct fdescnode *fnp, struct vnode *vp, vfs_context_t ctx); void mac_vnode_label_associate_singlelabel(struct mount *mp, struct vnode *vp); void mac_vnode_label_copy(struct label *l1, struct label *l2); void mac_vnode_label_destroy(struct vnode *vp); int mac_vnode_label_externalize_audit(struct vnode *vp, struct mac *mac); void mac_vnode_label_free(struct label *label); void mac_vnode_label_init(struct vnode *vp); int mac_vnode_label_init_needed(struct vnode *vp); void mac_vnode_label_recycle(struct vnode *vp); void mac_vnode_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel); void mac_vnode_label_update_extattr(struct mount *mp, struct vnode *vp, const char *name); int mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp); void mac_vnode_notify_deleteextattr(vfs_context_t ctx, struct vnode *vp, const char *name); void mac_vnode_notify_link(vfs_context_t ctx, struct vnode *vp, struct vnode *dvp, struct componentname *cnp); void mac_vnode_notify_open(vfs_context_t ctx, struct vnode *vp, int acc_flags); void mac_vnode_notify_rename(vfs_context_t ctx, struct vnode *vp, struct vnode *dvp, struct componentname *cnp); void mac_vnode_notify_setacl(vfs_context_t ctx, struct vnode *vp, struct kauth_acl *acl); void mac_vnode_notify_setattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist); void mac_vnode_notify_setextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio); void mac_vnode_notify_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags); void mac_vnode_notify_setmode(vfs_context_t ctx, struct vnode *vp, mode_t mode); void mac_vnode_notify_setowner(vfs_context_t ctx, struct vnode *vp, uid_t uid, gid_t gid); void mac_vnode_notify_setutimes(vfs_context_t ctx, struct vnode *vp, struct timespec atime, struct timespec mtime); void mac_vnode_notify_truncate(vfs_context_t ctx, kauth_cred_t file_cred, struct vnode *vp); int mac_vnode_find_sigs(struct proc *p, struct vnode *vp, off_t offsetInMacho); int vnode_label(struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int flags, vfs_context_t ctx); void vnode_relabel(struct vnode *vp); void mac_pty_notify_grant(proc_t p, struct tty *tp, dev_t dev, struct label *label); void mac_pty_notify_close(proc_t p, struct tty *tp, dev_t dev, struct label *label); int mac_kext_check_load(kauth_cred_t cred, const char *identifier); int mac_kext_check_unload(kauth_cred_t cred, const char *identifier); int mac_kext_check_query(kauth_cred_t cred); void psem_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx); void pshm_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx); #if CONFIG_MACF_NET struct label *mac_bpfdesc_label_get(struct bpf_d *d); void mac_bpfdesc_label_set(struct bpf_d *d, struct label *label); #endif #endif /* CONFIG_MACF */ #ifdef __cplusplus } #endif #endif /* !_SECURITY_MAC_FRAMEWORK_H_ */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/security/mac_policy.h ================================================ /* * Copyright (c) 2007-2016 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /*- * Copyright (c) 1999-2002 Robert N. M. Watson * Copyright (c) 2001-2005 Networks Associates Technology, Inc. * Copyright (c) 2005-2007 SPARTA, Inc. * All rights reserved. * * This software was developed by Robert Watson for the TrustedBSD Project. * * This software was developed for the FreeBSD Project in part by Network * Associates Laboratories, the Security Research Division of Network * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), * as part of the DARPA CHATS research program. * * This software was enhanced by SPARTA ISSO under SPAWAR contract * N66001-04-C-6019 ("SEFOS"). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/sys/mac_policy.h,v 1.39 2003/04/18 19:57:37 rwatson Exp $ */ /** @file mac_policy.h @brief Kernel Interfaces for MAC policy modules This header defines the list of operations that are defined by the TrustedBSD MAC Framwork on Darwin. MAC Policy modules register with the framework to declare interest in a specific set of operations. If interest in an entry point is not declared, then the policy will be ignored when the Framework evaluates that entry point. */ #ifndef _SECURITY_MAC_POLICY_H_ #define _SECURITY_MAC_POLICY_H_ //#warning "MAC policy is not KPI, see Technical Q&A QA1574, this header will be removed in next version" #ifdef __cplusplus extern "C" { #endif #include struct attrlist; struct auditinfo; struct bpf_d; struct cs_blob; struct devnode; struct exception_action; struct fileglob; struct ifnet; struct inpcb; struct ipq; struct label; struct mac_module_data; struct mac_policy_conf; struct mbuf; struct mount; struct msg; struct msqid_kernel; struct pipe; struct pseminfo; struct pshminfo; struct sbuf; struct semid_kernel; struct shmid_kernel; struct socket; struct sockopt; struct task; struct thread; struct tty; struct ucred; struct vfs_attr; struct vnode; /** @struct dummy */ #ifndef _KAUTH_CRED_T #define _KAUTH_CRED_T typedef struct ucred *kauth_cred_t; #endif /* !_KAUTH_CRED_T */ #ifndef __IOKIT_PORTS_DEFINED__ #define __IOKIT_PORTS_DEFINED__ #ifdef __cplusplus class OSObject; typedef OSObject *io_object_t; #else struct OSObject; typedef struct OSObject *io_object_t; #endif #endif /* __IOKIT_PORTS_DEFINED__ */ /*- * MAC entry points are generally named using the following template: * * mpo__() * * or: * * mpo__check_() * * Entry points are sorted by object type. * * It may be desirable also to consider some subsystems as "objects", such * as system, iokit, etc. */ /** @name Entry Points for Label Management These are the entry points corresponding to the life cycle events for kernel objects, such as initialization, creation, and destruction. Most policies (that use labels) will initialize labels by allocating space for policy-specific data. In most cases, it is permitted to sleep during label initialization operations; it will be noted when it is not permitted. Initialization usually will not require doing more than allocating a generic label for the given object. What follows initialization is creation, where a label is made specific to the object it is associated with. Destruction occurs when the label is no longer needed, such as when the corresponding object is destroyed. All necessary cleanup should be performed in label destroy operations. Where possible, the label entry points have identical parameters. If the policy module does not require structure-specific label information, the same function may be registered in the policy operation vector. Many policies will implement two such generic allocation calls: one to handle sleepable requests, and one to handle potentially non-sleepable requests. */ /** @brief Audit event postselection @param cred Subject credential @param syscode Syscall number @param args Syscall arguments @param error Syscall errno @param retval Syscall return value This is the MAC Framework audit postselect, which is called before exiting a syscall to determine if an audit event should be committed. A return value of MAC_AUDIT_NO forces the audit record to be suppressed. Any other return value results in the audit record being committed. @warning The suppression behavior will probably go away in Apple's future version of the audit implementation. @return Return MAC_AUDIT_NO to force suppression of the audit record. Any other value results in the audit record being committed. */ typedef int mpo_audit_check_postselect_t( kauth_cred_t cred, unsigned short syscode, void *args, int error, int retval ); /** @brief Audit event preselection @param cred Subject credential @param syscode Syscall number @param args Syscall arguments This is the MAC Framework audit preselect, which is called before a syscall is entered to determine if an audit event should be created. If the MAC policy forces the syscall to be audited, MAC_AUDIT_YES should be returned. A return value of MAC_AUDIT_NO causes the audit record to be suppressed. Returning MAC_POLICY_DEFAULT indicates that the policy wants to defer to the system's existing preselection mechanism. When policies return different preferences, the Framework decides what action to take based on the following policy. If any policy returns MAC_AUDIT_YES, then create an audit record, else if any policy returns MAC_AUDIT_NO, then suppress the creations of an audit record, else defer to the system's existing preselection mechanism. @warning The audit implementation in Apple's current version is incomplete, so the MAC policies have priority over the system's existing mechanisms. This will probably change in the future version where the audit implementation is more complete. @return Return MAC_AUDIT_YES to force auditing of the syscall, MAC_AUDIT_NO to force no auditing of the syscall, MAC_AUDIT_DEFAULT to allow auditing mechanisms to determine if the syscall is audited. */ typedef int mpo_audit_check_preselect_t( kauth_cred_t cred, unsigned short syscode, void *args ); /** @brief Initialize BPF descriptor label @param label New label to initialize Initialize the label for a newly instantiated BPF descriptor. Sleeping is permitted. */ typedef void mpo_bpfdesc_label_init_t( struct label *label ); /** @brief Destroy BPF descriptor label @param label The label to be destroyed Destroy a BPF descriptor label. Since the BPF descriptor is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_bpfdesc_label_destroy_t( struct label *label ); /** @brief Associate a BPF descriptor with a label @param cred User credential creating the BPF descriptor @param bpf_d The BPF descriptor @param bpflabel The new label Set the label on a newly created BPF descriptor from the passed subject credential. This call will be made when a BPF device node is opened by a process with the passed subject credential. */ typedef void mpo_bpfdesc_label_associate_t( kauth_cred_t cred, struct bpf_d *bpf_d, struct label *bpflabel ); /** @brief Check whether BPF can read from a network interface @param bpf_d Subject; the BPF descriptor @param bpflabel Policy label for bpf_d @param ifp Object; the network interface @param ifnetlabel Policy label for ifp Determine whether the MAC framework should permit datagrams from the passed network interface to be delivered to the buffers of the passed BPF descriptor. Return (0) for success, or an errno value for failure. Suggested failure: EACCES for label mismatches, EPERM for lack of privilege. */ typedef int mpo_bpfdesc_check_receive_t( struct bpf_d *bpf_d, struct label *bpflabel, struct ifnet *ifp, struct label *ifnetlabel ); /** @brief Indicate desire to change the process label at exec time @param old Existing subject credential @param vp File being executed @param offset Offset of binary within file being executed @param scriptvp Script being executed by interpreter, if any. @param vnodelabel Label corresponding to vp @param scriptvnodelabel Script vnode label @param execlabel Userspace provided execution label @param p Object process @param macpolicyattr MAC policy-specific spawn attribute data @param macpolicyattrlen Length of policy-specific spawn attribute data @see mac_execve @see mpo_cred_label_update_execve_t @see mpo_vnode_check_exec_t Indicate whether this policy intends to update the label of a newly created credential from the existing subject credential (old). This call occurs when a process executes the passed vnode. If a policy returns success from this entry point, the mpo_cred_label_update_execve entry point will later be called with the same parameters. Access has already been checked via the mpo_vnode_check_exec entry point, this entry point is necessary to preserve kernel locking constraints during program execution. The supplied vnode and vnodelabel correspond with the file actually being executed; in the case that the file is interpreted (for example, a script), the label of the original exec-time vnode has been preserved in scriptvnodelabel. The final label, execlabel, corresponds to a label supplied by a user space application through the use of the mac_execve system call. The vnode lock is held during this operation. No changes should be made to the old credential structure. @warning Even if a policy returns 0, it should behave correctly in the presence of an invocation of mpo_cred_label_update_execve, as that call may happen as a result of another policy requesting a transition. @return Non-zero if a transition is required, 0 otherwise. */ typedef int mpo_cred_check_label_update_execve_t( kauth_cred_t old, struct vnode *vp, off_t offset, struct vnode *scriptvp, struct label *vnodelabel, struct label *scriptvnodelabel, struct label *execlabel, struct proc *p, void *macpolicyattr, size_t macpolicyattrlen ); /** @brief Access control check for relabelling processes @param cred Subject credential @param newlabel New label to apply to the user credential @see mpo_cred_label_update_t @see mac_set_proc Determine whether the subject identified by the credential can relabel itself to the supplied new label (newlabel). This access control check is called when the mac_set_proc system call is invoked. A user space application will supply a new value, the value will be internalized and provided in newlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_cred_check_label_update_t( kauth_cred_t cred, struct label *newlabel ); /** @brief Access control check for visibility of other subjects @param u1 Subject credential @param u2 Object credential Determine whether the subject identified by the credential u1 can "see" other subjects with the passed subject credential u2. This call may be made in a number of situations, including inter-process status sysctls used by ps, and in procfs lookups. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to hide visibility. */ typedef int mpo_cred_check_visible_t( kauth_cred_t u1, kauth_cred_t u2 ); /** @brief Associate a credential with a new process at fork @param cred credential to inherited by new process @param proc the new process Allow a process to associate the credential with a new process for reference countng purposes. NOTE: the credential can be dis-associated in ways other than exit - so this strategy is flawed - should just catch label destroy callback. */ typedef void mpo_cred_label_associate_fork_t( kauth_cred_t cred, proc_t proc ); /** @brief Create the first process @param cred Subject credential to be labeled Create the subject credential of process 0, the parent of all BSD kernel processes. Policies should update the label in the previously initialized credential structure. */ typedef void mpo_cred_label_associate_kernel_t( kauth_cred_t cred ); /** @brief Create a credential label @param parent_cred Parent credential @param child_cred Child credential Set the label of a newly created credential, most likely using the information in the supplied parent credential. @warning This call is made when crcopy or crdup is invoked on a newly created struct ucred, and should not be confused with a process fork or creation event. */ typedef void mpo_cred_label_associate_t( kauth_cred_t parent_cred, kauth_cred_t child_cred ); /** @brief Create the first process @param cred Subject credential to be labeled Create the subject credential of process 1, the parent of all BSD user processes. Policies should update the label in the previously initialized credential structure. This is the 'init' process. */ typedef void mpo_cred_label_associate_user_t( kauth_cred_t cred ); /** @brief Destroy credential label @param label The label to be destroyed Destroy a user credential label. Since the user credential is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_cred_label_destroy_t( struct label *label ); /** @brief Externalize a user credential label for auditing @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on a user credential for inclusion in an audit record. An externalized label consists of a text representation of the label contents that will be added to the audit record as part of a text token. Policy-agnostic user space tools will display this externalized version. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_cred_label_externalize_audit_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Externalize a user credential label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on a user credential. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will display this externalized version. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_cred_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize user credential label @param label New label to initialize Initialize the label for a newly instantiated user credential. Sleeping is permitted. */ typedef void mpo_cred_label_init_t( struct label *label ); /** @brief Internalize a user credential label @param label Label to be internalized @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce a user credential label from an external representation. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will forward text version to the kernel for processing by individual policy modules. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, Otherwise, return non-zero if an error occurs while internalizing the label data. */ typedef int mpo_cred_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Update credential at exec time @param old_cred Existing subject credential @param new_cred New subject credential to be labeled @param p Object process. @param vp File being executed @param offset Offset of binary within file being executed @param scriptvp Script being executed by interpreter, if any. @param vnodelabel Label corresponding to vp @param scriptvnodelabel Script vnode label @param execlabel Userspace provided execution label @param csflags Code signing flags to be set after exec @param macpolicyattr MAC policy-specific spawn attribute data. @param macpolicyattrlen Length of policy-specific spawn attribute data. @see mac_execve @see mpo_cred_check_label_update_execve_t @see mpo_vnode_check_exec_t Update the label of a newly created credential (new) from the existing subject credential (old). This call occurs when a process executes the passed vnode and one of the loaded policy modules has returned success from the mpo_cred_check_label_update_execve entry point. Access has already been checked via the mpo_vnode_check_exec entry point, this entry point is only used to update any policy state. The supplied vnode and vnodelabel correspond with the file actually being executed; in the case that the file is interpreted (for example, a script), the label of the original exec-time vnode has been preserved in scriptvnodelabel. The final label, execlabel, corresponds to a label supplied by a user space application through the use of the mac_execve system call. If non-NULL, the value pointed to by disjointp will be set to 0 to indicate that the old and new credentials are not disjoint, or 1 to indicate that they are. The vnode lock is held during this operation. No changes should be made to the old credential structure. @return 0 on success, Otherwise, return non-zero if update results in termination of child. */ typedef int mpo_cred_label_update_execve_t( kauth_cred_t old_cred, kauth_cred_t new_cred, struct proc *p, struct vnode *vp, off_t offset, struct vnode *scriptvp, struct label *vnodelabel, struct label *scriptvnodelabel, struct label *execlabel, u_int *csflags, void *macpolicyattr, size_t macpolicyattrlen, int *disjointp ); /** @brief Update a credential label @param cred The existing credential @param newlabel A new label to apply to the credential @see mpo_cred_check_label_update_t @see mac_set_proc Update the label on a user credential, using the supplied new label. This is called as a result of a process relabel operation. Access control was already confirmed by mpo_cred_check_label_update. */ typedef void mpo_cred_label_update_t( kauth_cred_t cred, struct label *newlabel ); /** @brief Create a new devfs device @param dev Major and minor numbers of special file @param de "inode" of new device file @param label Destination label @param fullpath Path relative to mount (e.g. /dev) of new device file This entry point labels a new devfs device. The label will likely be based on the path to the device, or the major and minor numbers. The policy should store an appropriate label into 'label'. */ typedef void mpo_devfs_label_associate_device_t( dev_t dev, struct devnode *de, struct label *label, const char *fullpath ); /** @brief Create a new devfs directory @param dirname Name of new directory @param dirnamelen Length of 'dirname' @param de "inode" of new directory @param label Destination label @param fullpath Path relative to mount (e.g. /dev) of new directory This entry point labels a new devfs directory. The label will likely be based on the path of the new directory. The policy should store an appropriate label into 'label'. The devfs root directory is labelled in this way. */ typedef void mpo_devfs_label_associate_directory_t( const char *dirname, int dirnamelen, struct devnode *de, struct label *label, const char *fullpath ); /** @brief Copy a devfs label @param src Source devfs label @param dest Destination devfs label Copy the label information from src to dest. The devfs file system often duplicates (splits) existing device nodes rather than creating new ones. */ typedef void mpo_devfs_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy devfs label @param label The label to be destroyed Destroy a devfs entry label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_devfs_label_destroy_t( struct label *label ); /** @brief Initialize devfs label @param label New label to initialize Initialize the label for a newly instantiated devfs entry. Sleeping is permitted. */ typedef void mpo_devfs_label_init_t( struct label *label ); /** @brief Update a devfs label after relabelling its vnode @param mp Devfs mount point @param de Affected devfs directory entry @param delabel Label of devfs directory entry @param vp Vnode associated with de @param vnodelabel New label of vnode Update a devfs label when its vnode is manually relabelled, for example with setfmac(1). Typically, this will simply copy the vnode label into the devfs label. */ typedef void mpo_devfs_label_update_t( struct mount *mp, struct devnode *de, struct label *delabel, struct vnode *vp, struct label *vnodelabel ); /** @brief Access control for sending an exception to an exception action @param crashlabel The crashing process's label @param action Exception action @param exclabel Policy label for exception action Determine whether the the exception message caused by the victim process can be sent to the exception action. @return Return 0 if the message can be sent, otherwise an appropriate value for errno should be returned. */ typedef int mpo_exc_action_check_exception_send_t( struct label *crashlabel, struct exception_action *action, struct label *exclabel ); /** @brief Create an exception action label @param action Exception action to label @param exclabel Policy label to be filled in for exception action Set the label on an exception action. */ typedef void mpo_exc_action_label_associate_t( struct exception_action *action, struct label *exclabel ); /** @brief Copy an exception action label @param src Source exception action label @param dest Destination exception action label Copy the label information from src to dest. Exception actions are often inherited, e.g. from parent to child. In that case, the labels are copied instead of created fresh. */ typedef void mpo_exc_action_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy exception action label @param label The label to be destroyed Destroy the label on an exception action. In this entry point, a policy module should free any internal storage associated with label so that it may be destroyed. */ typedef void mpo_exc_action_label_destroy_t( struct label *label ); /** @brief Initialize exception action label @param label New label to initialize Initialize a label for an exception action. */ typedef int mpo_exc_action_label_init_t( struct label *label ); /** @brief Update the label on an exception action @param p Process to update the label from @param exclabel Policy label to be updated for exception action Update the credentials of an exception action with the given task. */ typedef void mpo_exc_action_label_update_t( struct proc *p, struct label *exclabel ); /** @brief Access control for changing the offset of a file descriptor @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg Determine whether the subject identified by the credential can change the offset of the file represented by fg. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_change_offset_t( kauth_cred_t cred, struct fileglob *fg, struct label *label ); /** @brief Access control for creating a file descriptor @param cred Subject credential Determine whether the subject identified by the credential can allocate a new file descriptor. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_create_t( kauth_cred_t cred ); /** @brief Access control for duplicating a file descriptor @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg @param newfd New file descriptor number Determine whether the subject identified by the credential can duplicate the fileglob structure represented by fg and as file descriptor number newfd. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_dup_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, int newfd ); /** @brief Access control check for fcntl @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg @param cmd Control operation to be performed; see fcntl(2) @param arg fcnt arguments; see fcntl(2) Determine whether the subject identified by the credential can perform the file control operation indicated by cmd. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_fcntl_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, int cmd, user_long_t arg ); /** @brief Access control check for mac_get_fd @param cred Subject credential @param fg Fileglob structure @param elements Element buffer @param len Length of buffer Determine whether the subject identified by the credential should be allowed to get an externalized version of the label on the object indicated by fd. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_get_t( kauth_cred_t cred, struct fileglob *fg, char *elements, int len ); /** @brief Access control for getting the offset of a file descriptor @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg Determine whether the subject identified by the credential can get the offset of the file represented by fg. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_get_offset_t( kauth_cred_t cred, struct fileglob *fg, struct label *label ); /** @brief Access control for inheriting a file descriptor @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg Determine whether the subject identified by the credential can inherit the fileglob structure represented by fg. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_inherit_t( kauth_cred_t cred, struct fileglob *fg, struct label *label ); /** @brief Access control check for file ioctl @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg @param cmd The ioctl command; see ioctl(2) Determine whether the subject identified by the credential can perform the ioctl operation indicated by cmd. @warning Since ioctl data is opaque from the standpoint of the MAC framework, policies must exercise extreme care when implementing access control checks. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_ioctl_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, unsigned int cmd ); /** @brief Access control check for file locking @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg @param op The lock operation (F_GETLK, F_SETLK, F_UNLK) @param fl The flock structure Determine whether the subject identified by the credential can perform the lock operation indicated by op and fl on the file represented by fg. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_lock_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, int op, struct flock *fl ); /** @brief Check with library validation if a macho slice is allowed to be combined into a proc. @param p Subject process @param fg Fileglob structure @param slice_offset offset of the code slice @param error_message error message returned to user-space in case of error (userspace pointer) @param error_message_size error message size Its a little odd that the MAC/kext writes into userspace since this implies there is only one MAC module that implements this, however the alterantive is to allocate memory in xnu, on the hope that the MAC module will use it, or allocated in the MAC module and then free it in xnu. Either of these are very appeling, so lets go with the slightly more hacky way. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_library_validation_t( struct proc *p, struct fileglob *fg, off_t slice_offset, user_long_t error_message, size_t error_message_size ); /** @brief Access control check for mapping a file @param cred Subject credential @param fg fileglob representing file to map @param label Policy label associated with vp @param prot mmap protections; see mmap(2) @param flags Type of mapped object; see mmap(2) @param maxprot Maximum rights Determine whether the subject identified by the credential should be allowed to map the file represented by fg with the protections specified in prot. The maxprot field holds the maximum permissions on the new mapping, a combination of VM_PROT_READ, VM_PROT_WRITE, and VM_PROT_EXECUTE. To avoid overriding prior access control checks, a policy should only remove flags from maxprot. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_file_check_mmap_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, int prot, int flags, uint64_t file_pos, int *maxprot ); /** @brief Downgrade the mmap protections @param cred Subject credential @param fg file to map @param label Policy label associated with vp @param prot mmap protections to be downgraded Downgrade the mmap protections based on the subject and object labels. */ typedef void mpo_file_check_mmap_downgrade_t( kauth_cred_t cred, struct fileglob *fg, struct label *label, int *prot ); /** @brief Access control for receiving a file descriptor @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg Determine whether the subject identified by the credential can receive the fileglob structure represented by fg. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_receive_t( kauth_cred_t cred, struct fileglob *fg, struct label *label ); /** @brief Access control check for mac_set_fd @param cred Subject credential @param fg Fileglob structure @param elements Elements buffer @param len Length of elements buffer Determine whether the subject identified by the credential can perform the mac_set_fd operation. The mac_set_fd operation is used to associate a MAC label with a file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_file_check_set_t( kauth_cred_t cred, struct fileglob *fg, char *elements, int len ); /** @brief Create file label @param cred Subject credential @param fg Fileglob structure @param label Policy label for fg */ typedef void mpo_file_label_associate_t( kauth_cred_t cred, struct fileglob *fg, struct label *label ); /** @brief Destroy file label @param label The label to be destroyed Destroy the label on a file descriptor. In this entry point, a policy module should free any internal storage associated with label so that it may be destroyed. */ typedef void mpo_file_label_destroy_t( struct label *label ); /** @brief Initialize file label @param label New label to initialize */ typedef void mpo_file_label_init_t( struct label *label ); /** @brief Access control check for relabeling network interfaces @param cred Subject credential @param ifp network interface being relabeled @param ifnetlabel Current label of the network interfaces @param newlabel New label to apply to the network interfaces @see mpo_ifnet_label_update_t Determine whether the subject identified by the credential can relabel the network interface represented by ifp to the supplied new label (newlabel). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_ifnet_check_label_update_t( kauth_cred_t cred, struct ifnet *ifp, struct label *ifnetlabel, struct label *newlabel ); /** @brief Access control check for relabeling network interfaces @param ifp Network interface mbuf will be transmitted through @param ifnetlabel Label of the network interfaces @param m The mbuf to be transmitted @param mbuflabel Label of the mbuf to be transmitted @param family Address Family, AF_* @param type Type of socket, SOCK_{STREAM,DGRAM,RAW} Determine whether the mbuf with label mbuflabel may be transmitted through the network interface represented by ifp that has the label ifnetlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_ifnet_check_transmit_t( struct ifnet *ifp, struct label *ifnetlabel, struct mbuf *m, struct label *mbuflabel, int family, int type ); /** @brief Create a network interface label @param ifp Network interface labeled @param ifnetlabel Label for the network interface Set the label of a newly created network interface, most likely using the information in the supplied network interface struct. */ typedef void mpo_ifnet_label_associate_t( struct ifnet *ifp, struct label *ifnetlabel ); /** @brief Copy an ifnet label @param src Source ifnet label @param dest Destination ifnet label Copy the label information from src to dest. */ typedef void mpo_ifnet_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy ifnet label @param label The label to be destroyed Destroy the label on an ifnet label. In this entry point, a policy module should free any internal storage associated with label so that it may be destroyed. */ typedef void mpo_ifnet_label_destroy_t( struct label *label ); /** @brief Externalize an ifnet label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on an interface. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will display this externalized version. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_ifnet_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize ifnet label @param label New label to initialize */ typedef void mpo_ifnet_label_init_t( struct label *label ); /** @brief Internalize an interface label @param label Label to be internalized @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce an interface label from an external representation. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will forward text version to the kernel for processing by individual policy modules. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, Otherwise, return non-zero if an error occurs while internalizing the label data. */ typedef int mpo_ifnet_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Recycle up a network interface label @param label The label to be recycled Recycle a network interface label. Darwin caches the struct ifnet of detached ifnets in a "free pool". Before ifnets are returned to the "free pool", policies can cleanup or overwrite any information present in the label. */ typedef void mpo_ifnet_label_recycle_t( struct label *label ); /** @brief Update a network interface label @param cred Subject credential @param ifp The network interface to be relabeled @param ifnetlabel The current label of the network interface @param newlabel A new label to apply to the network interface @see mpo_ifnet_check_label_update_t Update the label on a network interface, using the supplied new label. */ typedef void mpo_ifnet_label_update_t( kauth_cred_t cred, struct ifnet *ifp, struct label *ifnetlabel, struct label *newlabel ); /** @brief Access control check for delivering a packet to a socket @param inp inpcb the socket is associated with @param inplabel Label of the inpcb @param m The mbuf being received @param mbuflabel Label of the mbuf being received @param family Address family, AF_* @param type Type of socket, SOCK_{STREAM,DGRAM,RAW} Determine whether the mbuf with label mbuflabel may be received by the socket associated with inpcb that has the label inplabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_inpcb_check_deliver_t( struct inpcb *inp, struct label *inplabel, struct mbuf *m, struct label *mbuflabel, int family, int type ); /** @brief Create an inpcb label @param so Socket containing the inpcb to be labeled @param solabel Label of the socket @param inp inpcb to be labeled @param inplabel Label for the inpcb Set the label of a newly created inpcb, most likely using the information in the socket and/or socket label. */ typedef void mpo_inpcb_label_associate_t( struct socket *so, struct label *solabel, struct inpcb *inp, struct label *inplabel ); /** @brief Destroy inpcb label @param label The label to be destroyed Destroy the label on an inpcb label. In this entry point, a policy module should free any internal storage associated with label so that it may be destroyed. */ typedef void mpo_inpcb_label_destroy_t( struct label *label ); /** @brief Initialize inpcb label @param label New label to initialize @param flag M_WAITOK or M_NOWAIT */ typedef int mpo_inpcb_label_init_t( struct label *label, int flag ); /** @brief Recycle up an inpcb label @param label The label to be recycled Recycle an inpcb label. Darwin allocates the inpcb as part of the socket structure in some cases. For this case we must recycle rather than destroy the inpcb as it will be reused later. */ typedef void mpo_inpcb_label_recycle_t( struct label *label ); /** @brief Update an inpcb label from a socket label @param so Socket containing the inpcb to be relabeled @param solabel New label of the socket @param inp inpcb to be labeled @param inplabel Label for the inpcb Set the label of a newly created inpcb due to a change in the underlying socket label. */ typedef void mpo_inpcb_label_update_t( struct socket *so, struct label *solabel, struct inpcb *inp, struct label *inplabel ); /** @brief Device hardware access control @param devtype Type of device connected This is the MAC Framework device access control, which is called by the I/O Kit when a new device is connected to the system to determine whether that device should be trusted. A list of properties associated with the device is passed as an XML-formatted string. The routine should examine these properties to determine the trustworthiness of the device. A return value of EPERM forces the device to be claimed by a special device driver that will prevent its operation. @warning This is an experimental interface and may change in the future. @return Return EPERM to indicate that the device is untrusted and should not be allowed to operate. Return zero to indicate that the device is trusted and should be allowed to operate normally. */ typedef int mpo_iokit_check_device_t( char *devtype, struct mac_module_data *mdata ); /** @brief Access control check for opening an I/O Kit device @param cred Subject credential @param user_client User client instance @param user_client_type User client type Determine whether the subject identified by the credential can open an I/O Kit device at the passed path of the passed user client class and type. @return Return 0 if access is granted, or an appropriate value for errno should be returned. */ typedef int mpo_iokit_check_open_t( kauth_cred_t cred, io_object_t user_client, unsigned int user_client_type ); /** @brief Access control check for setting I/O Kit device properties @param cred Subject credential @param entry Target device @param properties Property list Determine whether the subject identified by the credential can set properties on an I/O Kit device. @return Return 0 if access is granted, or an appropriate value for errno should be returned. */ typedef int mpo_iokit_check_set_properties_t( kauth_cred_t cred, io_object_t entry, io_object_t properties ); /** @brief Indicate desire to filter I/O Kit devices properties @param cred Subject credential @param entry Target device @see mpo_iokit_check_get_property_t Indicate whether this policy may restrict the subject credential from reading properties of the target device. If a policy returns success from this entry point, the mpo_iokit_check_get_property entry point will later be called for each property that the subject credential tries to read from the target device. This entry point is primarilly to optimize bulk property reads by skipping calls to the mpo_iokit_check_get_property entry point for credentials / devices no MAC policy is interested in. @warning Even if a policy returns 0, it should behave correctly in the presence of an invocation of mpo_iokit_check_get_property, as that call may happen as a result of another policy requesting a transition. @return Non-zero if a transition is required, 0 otherwise. */ typedef int mpo_iokit_check_filter_properties_t( kauth_cred_t cred, io_object_t entry ); /** @brief Access control check for getting I/O Kit device properties @param cred Subject credential @param entry Target device @param name Property name Determine whether the subject identified by the credential can get properties on an I/O Kit device. @return Return 0 if access is granted, or an appropriate value for errno. */ typedef int mpo_iokit_check_get_property_t( kauth_cred_t cred, io_object_t entry, const char *name ); /** @brief Access control check for software HID control @param cred Subject credential Determine whether the subject identified by the credential can control the HID (Human Interface Device) subsystem, such as to post synthetic keypresses, pointer movement and clicks. @return Return 0 if access is granted, or an appropriate value for errno. */ typedef int mpo_iokit_check_hid_control_t( kauth_cred_t cred ); /** @brief Create an IP reassembly queue label @param fragment First received IP fragment @param fragmentlabel Policy label for fragment @param ipq IP reassembly queue to be labeled @param ipqlabel Policy label to be filled in for ipq Set the label on a newly created IP reassembly queue from the mbuf header of the first received fragment. */ typedef void mpo_ipq_label_associate_t( struct mbuf *fragment, struct label *fragmentlabel, struct ipq *ipq, struct label *ipqlabel ); /** @brief Compare an mbuf header label to an ipq label @param fragment IP datagram fragment @param fragmentlabel Policy label for fragment @param ipq IP fragment reassembly queue @param ipqlabel Policy label for ipq Compare the label of the mbuf header containing an IP datagram (fragment) fragment with the label of the passed IP fragment reassembly queue (ipq). Return (1) for a successful match, or (0) for no match. This call is made when the IP stack attempts to find an existing fragment reassembly queue for a newly received fragment; if this fails, a new fragment reassembly queue may be instantiated for the fragment. Policies may use this entry point to prevent the reassembly of otherwise matching IP fragments if policy does not permit them to be reassembled based on the label or other information. */ typedef int mpo_ipq_label_compare_t( struct mbuf *fragment, struct label *fragmentlabel, struct ipq *ipq, struct label *ipqlabel ); /** @brief Destroy IP reassembly queue label @param label The label to be destroyed Destroy the label on an IP fragment queue. In this entry point, a policy module should free any internal storage associated with label so that it may be destroyed. */ typedef void mpo_ipq_label_destroy_t( struct label *label ); /** @brief Initialize IP reassembly queue label @param label New label to initialize @param flag M_WAITOK or M_NOWAIT Initialize the label on a newly instantiated IP fragment reassembly queue. The flag field may be one of M_WAITOK and M_NOWAIT, and should be employed to avoid performing a sleeping malloc(9) during this initialization call. IP fragment reassembly queue allocation frequently occurs in performance sensitive environments, and the implementation should be careful to avoid sleeping or long-lived operations. This entry point is permitted to fail resulting in the failure to allocate the IP fragment reassembly queue. */ typedef int mpo_ipq_label_init_t( struct label *label, int flag ); /** @brief Update the label on an IP fragment reassembly queue @param fragment IP fragment @param fragmentlabel Policy label for fragment @param ipq IP fragment reassembly queue @param ipqlabel Policy label to be updated for ipq Update the label on an IP fragment reassembly queue (ipq) based on the acceptance of the passed IP fragment mbuf header (fragment). */ typedef void mpo_ipq_label_update_t( struct mbuf *fragment, struct label *fragmentlabel, struct ipq *ipq, struct label *ipqlabel ); /** @brief Assign a label to a new mbuf @param bpf_d BPF descriptor @param b_label Policy label for bpf_d @param m Object; mbuf @param m_label Policy label to fill in for m Set the label on the mbuf header of a newly created datagram generated using the passed BPF descriptor. This call is made when a write is performed to the BPF device associated with the passed BPF descriptor. */ typedef void mpo_mbuf_label_associate_bpfdesc_t( struct bpf_d *bpf_d, struct label *b_label, struct mbuf *m, struct label *m_label ); /** @brief Assign a label to a new mbuf @param ifp Interface descriptor @param i_label Existing label of ifp @param m Object; mbuf @param m_label Policy label to fill in for m Label an mbuf based on the interface from which it was received. */ typedef void mpo_mbuf_label_associate_ifnet_t( struct ifnet *ifp, struct label *i_label, struct mbuf *m, struct label *m_label ); /** @brief Assign a label to a new mbuf @param inp inpcb structure @param i_label Existing label of inp @param m Object; mbuf @param m_label Policy label to fill in for m Label an mbuf based on the inpcb from which it was derived. */ typedef void mpo_mbuf_label_associate_inpcb_t( struct inpcb *inp, struct label *i_label, struct mbuf *m, struct label *m_label ); /** @brief Set the label on a newly reassembled IP datagram @param ipq IP fragment reassembly queue @param ipqlabel Policy label for ipq @param mbuf IP datagram to be labeled @param mbuflabel Policy label to be filled in for mbuf Set the label on a newly reassembled IP datagram (mbuf) from the IP fragment reassembly queue (ipq) from which it was generated. */ typedef void mpo_mbuf_label_associate_ipq_t( struct ipq *ipq, struct label *ipqlabel, struct mbuf *mbuf, struct label *mbuflabel ); /** @brief Assign a label to a new mbuf @param ifp Subject; network interface @param i_label Existing label of ifp @param m Object; mbuf @param m_label Policy label to fill in for m Set the label on the mbuf header of a newly created datagram generated for the purposes of a link layer response for the passed interface. This call may be made in a number of situations, including for ARP or ND6 responses in the IPv4 and IPv6 stacks. */ typedef void mpo_mbuf_label_associate_linklayer_t( struct ifnet *ifp, struct label *i_label, struct mbuf *m, struct label *m_label ); /** @brief Assign a label to a new mbuf @param oldmbuf mbuf headerder for existing datagram for existing datagram @param oldmbuflabel Policy label for oldmbuf @param ifp Network interface @param ifplabel Policy label for ifp @param newmbuf mbuf header to be labeled for new datagram @param newmbuflabel Policy label for newmbuf Set the label on the mbuf header of a newly created datagram generated from the existing passed datagram when it is processed by the passed multicast encapsulation interface. This call is made when an mbuf is to be delivered using the virtual interface. */ typedef void mpo_mbuf_label_associate_multicast_encap_t( struct mbuf *oldmbuf, struct label *oldmbuflabel, struct ifnet *ifp, struct label *ifplabel, struct mbuf *newmbuf, struct label *newmbuflabel ); /** @brief Assign a label to a new mbuf @param oldmbuf Received datagram @param oldmbuflabel Policy label for oldmbuf @param newmbuf Newly created datagram @param newmbuflabel Policy label for newmbuf Set the label on the mbuf header of a newly created datagram generated by the IP stack in response to an existing received datagram (oldmbuf). This call may be made in a number of situations, including when responding to ICMP request datagrams. */ typedef void mpo_mbuf_label_associate_netlayer_t( struct mbuf *oldmbuf, struct label *oldmbuflabel, struct mbuf *newmbuf, struct label *newmbuflabel ); /** @brief Assign a label to a new mbuf @param so Socket to label @param so_label Policy label for socket @param m Object; mbuf @param m_label Policy label to fill in for m An mbuf structure is used to store network traffic in transit. When an application sends data to a socket or a pipe, it is wrapped in an mbuf first. This function sets the label on a newly created mbuf header based on the socket sending the data. The contents of the label should be suitable for performing an access check on the receiving side of the communication. Only labeled MBUFs will be presented to the policy via this entrypoint. */ typedef void mpo_mbuf_label_associate_socket_t( socket_t so, struct label *so_label, struct mbuf *m, struct label *m_label ); /** @brief Copy a mbuf label @param src Source label @param dest Destination label Copy the mbuf label information in src into dest. Only called when both source and destination mbufs have labels. */ typedef void mpo_mbuf_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy mbuf label @param label The label to be destroyed Destroy a mbuf label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_mbuf_label_destroy_t( struct label *label ); /** @brief Initialize mbuf label @param label New label to initialize @param flag Malloc flags Initialize the label for a newly instantiated mbuf. @warning Since it is possible for the flags to be set to M_NOWAIT, the malloc operation may fail. @return On success, 0, otherwise, an appropriate errno return value. */ typedef int mpo_mbuf_label_init_t( struct label *label, int flag ); /** @brief Access control check for fsctl @param cred Subject credential @param mp The mount point @param label Label associated with the mount point @param cmd Filesystem-dependent request code; see fsctl(2) Determine whether the subject identified by the credential can perform the volume operation indicated by com. @warning The fsctl() system call is directly analogous to ioctl(); since the associated data is opaque from the standpoint of the MAC framework and since these operations can affect many aspects of system operation, policies must exercise extreme care when implementing access control checks. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_fsctl_t( kauth_cred_t cred, struct mount *mp, struct label *label, unsigned int cmd ); /** @brief Access control check for the retrieval of file system attributes @param cred Subject credential @param mp The mount structure of the file system @param vfa The attributes requested This entry point determines whether given subject can get information about the given file system. This check happens during statfs() syscalls, but is also used by other parts within the kernel such as the audit system. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. @note Policies may change the contents of vfa to alter the list of file system attributes returned. */ typedef int mpo_mount_check_getattr_t( kauth_cred_t cred, struct mount *mp, struct label *mp_label, struct vfs_attr *vfa ); /** @brief Access control check for mount point relabeling @param cred Subject credential @param mp Object file system mount point @param mntlabel Policy label for fle system mount point Determine whether the subject identified by the credential can relabel the mount point. This call is made when a file system mount is updated. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_mount_check_label_update_t( kauth_cred_t cred, struct mount *mp, struct label *mntlabel ); /** @brief Access control check for mounting a file system @param cred Subject credential @param vp Vnode that is to be the mount point @param vlabel Label associated with the vnode @param cnp Component name for vp @param vfc_name Filesystem type name Determine whether the subject identified by the credential can perform the mount operation on the target vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_mount_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, struct componentname *cnp, const char *vfc_name ); /** @brief Access control check for fs_snapshot_create @param cred Subject credential @mp Filesystem mount point to create snapshot of @name Name of snapshot to create Determine whether the subject identified by the credential can create a snapshot of the filesystem at the given mount point. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_snapshot_create_t( kauth_cred_t cred, struct mount *mp, const char *name ); /** @brief Access control check for fs_snapshot_delete @param cred Subject credential @mp Filesystem mount point to delete snapshot of @name Name of snapshot to delete Determine whether the subject identified by the credential can delete the named snapshot from the filesystem at the given mount point. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_snapshot_delete_t( kauth_cred_t cred, struct mount *mp, const char *name ); /** @brief Access control check for fs_snapshot_revert @param cred Subject credential @mp Filesystem mount point to revert to snapshot @name Name of snapshot to revert to Determine whether the subject identified by the credential can revert the filesystem at the given mount point to the named snapshot. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_snapshot_revert_t( kauth_cred_t cred, struct mount *mp, const char *name ); /** @brief Access control check remounting a filesystem @param cred Subject credential @param mp The mount point @param mlabel Label currently associated with the mount point Determine whether the subject identified by the credential can perform the remount operation on the target vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_remount_t( kauth_cred_t cred, struct mount *mp, struct label *mlabel ); /** @brief Access control check for the settting of file system attributes @param cred Subject credential @param mp The mount structure of the file system @param vfa The attributes requested This entry point determines whether given subject can set information about the given file system, for example the volume name. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_setattr_t( kauth_cred_t cred, struct mount *mp, struct label *mp_label, struct vfs_attr *vfa ); /** @brief Access control check for file system statistics @param cred Subject credential @param mp Object file system mount @param mntlabel Policy label for mp Determine whether the subject identified by the credential can see the results of a statfs performed on the file system. This call may be made in a number of situations, including during invocations of statfs(2) and related calls, as well as to determine what file systems to exclude from listings of file systems, such as when getfsstat(2) is invoked. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_mount_check_stat_t( kauth_cred_t cred, struct mount *mp, struct label *mntlabel ); /** @brief Access control check for unmounting a filesystem @param cred Subject credential @param mp The mount point @param mlabel Label associated with the mount point Determine whether the subject identified by the credential can perform the unmount operation on the target vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_mount_check_umount_t( kauth_cred_t cred, struct mount *mp, struct label *mlabel ); /** @brief Create mount labels @param cred Subject credential @param mp Mount point of file system being mounted @param mntlabel Label to associate with the new mount point @see mpo_mount_label_init_t Fill out the labels on the mount point being created by the supplied user credential. This call is made when file systems are first mounted. */ typedef void mpo_mount_label_associate_t( kauth_cred_t cred, struct mount *mp, struct label *mntlabel ); /** @brief Destroy mount label @param label The label to be destroyed Destroy a file system mount label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_mount_label_destroy_t( struct label *label ); /** @brief Externalize a mount point label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the mount point label. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will display this externalized version. The policy's externalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_mount_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize mount point label @param label New label to initialize Initialize the label for a newly instantiated mount structure. This label is typically used to store a default label in the case that the file system has been mounted singlelabel. Since some file systems do not support persistent labels (extended attributes) or are read-only (such as CD-ROMs), it is often necessary to store a default label separately from the label of the mount point itself. Sleeping is permitted. */ typedef void mpo_mount_label_init_t( struct label *label ); /** @brief Internalize a mount point label @param label Label to be internalized @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce a mount point file system label from an external representation. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will forward text version to the kernel for processing by individual policy modules. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, Otherwise, return non-zero if an error occurs while internalizing the label data. */ typedef int mpo_mount_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Set the label on an IPv4 datagram fragment @param datagram Datagram being fragmented @param datagramlabel Policy label for datagram @param fragment New fragment @param fragmentlabel Policy label for fragment Called when an IPv4 datagram is fragmented into several smaller datagrams. Policies implementing mbuf labels will typically copy the label from the source datagram to the new fragment. */ typedef void mpo_netinet_fragment_t( struct mbuf *datagram, struct label *datagramlabel, struct mbuf *fragment, struct label *fragmentlabel ); /** @brief Set the label on an ICMP reply @param m mbuf containing the ICMP reply @param mlabel Policy label for m A policy may wish to update the label of an mbuf that refers to an ICMP packet being sent in response to an IP packet. This may be called in response to a bad packet or an ICMP request. */ typedef void mpo_netinet_icmp_reply_t( struct mbuf *m, struct label *mlabel ); /** @brief Set the label on a TCP reply @param m mbuf containing the TCP reply @param mlabel Policy label for m Called for outgoing TCP packets not associated with an actual socket. */ typedef void mpo_netinet_tcp_reply_t( struct mbuf *m, struct label *mlabel ); /** @brief Access control check for pipe ioctl @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The label on the pipe @param cmd The ioctl command; see ioctl(2) Determine whether the subject identified by the credential can perform the ioctl operation indicated by cmd. @warning Since ioctl data is opaque from the standpoint of the MAC framework, policies must exercise extreme care when implementing access control checks. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_ioctl_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel, unsigned int cmd ); /** @brief Access control check for pipe kqfilter @param cred Subject credential @param kn Object knote @param cpipe Object to be accessed @param pipelabel Policy label for the pipe Determine whether the subject identified by the credential can receive the knote on the passed pipe. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_kqfilter_t( kauth_cred_t cred, struct knote *kn, struct pipe *cpipe, struct label *pipelabel ); /** @brief Access control check for pipe relabel @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The current label on the pipe @param newlabel The new label to be used Determine whether the subject identified by the credential can perform a relabel operation on the passed pipe. The cred object holds the credentials of the subject performing the operation. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_label_update_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel, struct label *newlabel ); /** @brief Access control check for pipe read @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The label on the pipe Determine whether the subject identified by the credential can perform a read operation on the passed pipe. The cred object holds the credentials of the subject performing the operation. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_read_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel ); /** @brief Access control check for pipe select @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The label on the pipe @param which The operation selected on: FREAD or FWRITE Determine whether the subject identified by the credential can perform a select operation on the passed pipe. The cred object holds the credentials of the subject performing the operation. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_select_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel, int which ); /** @brief Access control check for pipe stat @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The label on the pipe Determine whether the subject identified by the credential can perform a stat operation on the passed pipe. The cred object holds the credentials of the subject performing the operation. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_stat_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel ); /** @brief Access control check for pipe write @param cred Subject credential @param cpipe Object to be accessed @param pipelabel The label on the pipe Determine whether the subject identified by the credential can perform a write operation on the passed pipe. The cred object holds the credentials of the subject performing the operation. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_pipe_check_write_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel ); /** @brief Create a pipe label @param cred Subject credential @param cpipe object to be labeled @param pipelabel Label for the pipe object Create a label for the pipe object being created by the supplied user credential. This call is made when the pipe is being created XXXPIPE(for one or both sides of the pipe?). */ typedef void mpo_pipe_label_associate_t( kauth_cred_t cred, struct pipe *cpipe, struct label *pipelabel ); /** @brief Copy a pipe label @param src Source pipe label @param dest Destination pipe label Copy the pipe label associated with src to dest. XXXPIPE Describe when this is used: most likely during pipe creation to copy from rpipe to wpipe. */ typedef void mpo_pipe_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy pipe label @param label The label to be destroyed Destroy a pipe label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_pipe_label_destroy_t( struct label *label ); /** @brief Externalize a pipe label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on a pipe. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will display this externalized version. The policy's externalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_pipe_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize pipe label @param label New label to initialize Initialize label storage for use with a newly instantiated pipe object. Sleeping is permitted. */ typedef void mpo_pipe_label_init_t( struct label *label ); /** @brief Internalize a pipe label @param label Label to be internalized @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce a pipe label from an external representation. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will forward text version to the kernel for processing by individual policy modules. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, Otherwise, return non-zero if an error occurs while internalizing the label data. */ typedef int mpo_pipe_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Update a pipe label @param cred Subject credential @param cpipe Object to be labeled @param oldlabel Existing pipe label @param newlabel New label to replace existing label @see mpo_pipe_check_label_update_t The subject identified by the credential has previously requested and was authorized to relabel the pipe; this entry point allows policies to perform the actual relabel operation. Policies should update oldlabel using the label stored in the newlabel parameter. */ typedef void mpo_pipe_label_update_t( kauth_cred_t cred, struct pipe *cpipe, struct label *oldlabel, struct label *newlabel ); /** @brief Policy unload event @param mpc MAC policy configuration This is the MAC Framework policy unload event. This entry point will only be called if the module's policy configuration allows unload (if the MPC_LOADTIME_FLAG_UNLOADOK is set). Most security policies won't want to be unloaded; they should set their flags to prevent this entry point from being called. @warning During this call, the mac policy list mutex is held, so sleep operations cannot be performed, and calls out to other kernel subsystems must be made with caution. @see MPC_LOADTIME_FLAG_UNLOADOK */ typedef void mpo_policy_destroy_t( struct mac_policy_conf *mpc ); /** @brief Policy initialization event @param mpc MAC policy configuration @see mac_policy_register @see mpo_policy_initbsd_t This is the MAC Framework policy initialization event. This entry point is called during mac_policy_register, when the policy module is first registered with the MAC Framework. This is often done very early in the boot process, after the kernel Mach subsystem has been initialized, but prior to the BSD subsystem being initialized. Since the kernel BSD services are not yet available, it is possible that some initialization must occur later, possibly in the mpo_policy_initbsd_t policy entry point, such as registering BSD system controls (sysctls). Policy modules loaded at boot time will be registered and initialized before labeled Mach objects are created. @warning During this call, the mac policy list mutex is held, so sleep operations cannot be performed, and calls out to other kernel subsystems must be made with caution. */ typedef void mpo_policy_init_t( struct mac_policy_conf *mpc ); /** @brief Policy BSD initialization event @param mpc MAC policy configuration @see mpo_policy_init_t This entry point is called after the kernel BSD subsystem has been initialized. By this point, the module should already be loaded, registered, and initialized. Since policy modules are initialized before kernel BSD services are available, this second initialization phase is necessary. At this point, BSD services (memory management, synchronization primitives, vfs, etc.) are available, but the first process has not yet been created. Mach-related objects and tasks will already be fully initialized and may be in use--policies requiring ubiquitous labeling may also want to implement mpo_policy_init_t. @warning During this call, the mac policy list mutex is held, so sleep operations cannot be performed, and calls out to other kernel subsystems must be made with caution. */ typedef void mpo_policy_initbsd_t( struct mac_policy_conf *mpc ); /** @brief Policy extension service @param p Calling process @param call Policy-specific syscall number @param arg Pointer to syscall arguments This entry point provides a policy-multiplexed system call so that policies may provide additional services to user processes without registering specific system calls. The policy name provided during registration is used to demux calls from userland, and the arguments will be forwarded to this entry point. When implementing new services, security modules should be sure to invoke appropriate access control checks from the MAC framework as needed. For example, if a policy implements an augmented signal functionality, it should call the necessary signal access control checks to invoke the MAC framework and other registered policies. @warning Since the format and contents of the policy-specific arguments are unknown to the MAC Framework, modules must perform the required copyin() of the syscall data on their own. No policy mediation is performed, so policies must perform any necessary access control checks themselves. If multiple policies are loaded, they will currently be unable to mediate calls to other policies. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_policy_syscall_t( struct proc *p, int call, user_addr_t arg ); /** @brief Access control check for POSIX semaphore create @param cred Subject credential @param name String name of the semaphore Determine whether the subject identified by the credential can create a POSIX semaphore specified by name. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixsem_check_create_t( kauth_cred_t cred, const char *name ); /** @brief Access control check for POSIX semaphore open @param cred Subject credential @param ps Pointer to semaphore information structure @param semlabel Label associated with the semaphore Determine whether the subject identified by the credential can open the named POSIX semaphore with label semlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixsem_check_open_t( kauth_cred_t cred, struct pseminfo *ps, struct label *semlabel ); /** @brief Access control check for POSIX semaphore post @param cred Subject credential @param ps Pointer to semaphore information structure @param semlabel Label associated with the semaphore Determine whether the subject identified by the credential can unlock the named POSIX semaphore with label semlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixsem_check_post_t( kauth_cred_t cred, struct pseminfo *ps, struct label *semlabel ); /** @brief Access control check for POSIX semaphore unlink @param cred Subject credential @param ps Pointer to semaphore information structure @param semlabel Label associated with the semaphore @param name String name of the semaphore Determine whether the subject identified by the credential can remove the named POSIX semaphore with label semlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixsem_check_unlink_t( kauth_cred_t cred, struct pseminfo *ps, struct label *semlabel, const char *name ); /** @brief Access control check for POSIX semaphore wait @param cred Subject credential @param ps Pointer to semaphore information structure @param semlabel Label associated with the semaphore Determine whether the subject identified by the credential can lock the named POSIX semaphore with label semlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixsem_check_wait_t( kauth_cred_t cred, struct pseminfo *ps, struct label *semlabel ); /** @brief Create a POSIX semaphore label @param cred Subject credential @param ps Pointer to semaphore information structure @param semlabel Label to associate with the new semaphore @param name String name of the semaphore Label a new POSIX semaphore. The label was previously initialized and associated with the semaphore. At this time, an appropriate initial label value should be assigned to the object and stored in semalabel. */ typedef void mpo_posixsem_label_associate_t( kauth_cred_t cred, struct pseminfo *ps, struct label *semlabel, const char *name ); /** @brief Destroy POSIX semaphore label @param label The label to be destroyed Destroy a POSIX semaphore label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_posixsem_label_destroy_t( struct label *label ); /** @brief Initialize POSIX semaphore label @param label New label to initialize Initialize the label for a newly instantiated POSIX semaphore. Sleeping is permitted. */ typedef void mpo_posixsem_label_init_t( struct label *label ); /** @brief Access control check for POSIX shared memory region create @param cred Subject credential @param name String name of the shared memory region Determine whether the subject identified by the credential can create the POSIX shared memory region referenced by name. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_create_t( kauth_cred_t cred, const char *name ); /** @brief Access control check for mapping POSIX shared memory @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label associated with the shared memory region @param prot mmap protections; see mmap(2) @param flags shmat flags; see shmat(2) Determine whether the subject identified by the credential can map the POSIX shared memory segment associated with shmlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_mmap_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel, int prot, int flags ); /** @brief Access control check for POSIX shared memory region open @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label associated with the shared memory region @param fflags shm_open(2) open flags ('fflags' encoded) Determine whether the subject identified by the credential can open the POSIX shared memory region. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_open_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel, int fflags ); /** @brief Access control check for POSIX shared memory stat @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label associated with the shared memory region Determine whether the subject identified by the credential can obtain status for the POSIX shared memory segment associated with shmlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_stat_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel ); /** @brief Access control check for POSIX shared memory truncate @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label associated with the shared memory region @param len Length to truncate or extend shared memory segment Determine whether the subject identified by the credential can truncate or extend (to len) the POSIX shared memory segment associated with shmlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_truncate_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel, off_t len ); /** @brief Access control check for POSIX shared memory unlink @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label associated with the shared memory region @param name String name of the shared memory region Determine whether the subject identified by the credential can delete the POSIX shared memory segment associated with shmlabel. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_posixshm_check_unlink_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel, const char *name ); /** @brief Create a POSIX shared memory region label @param cred Subject credential @param ps Pointer to shared memory information structure @param shmlabel Label to associate with the new shared memory region @param name String name of the shared memory region Label a new POSIX shared memory region. The label was previously initialized and associated with the shared memory region. At this time, an appropriate initial label value should be assigned to the object and stored in shmlabel. */ typedef void mpo_posixshm_label_associate_t( kauth_cred_t cred, struct pshminfo *ps, struct label *shmlabel, const char *name ); /** @brief Destroy POSIX shared memory label @param label The label to be destroyed Destroy a POSIX shared memory region label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_posixshm_label_destroy_t( struct label *label ); /** @brief Initialize POSIX Shared Memory region label @param label New label to initialize Initialize the label for newly a instantiated POSIX Shared Memory region. Sleeping is permitted. */ typedef void mpo_posixshm_label_init_t( struct label *label ); /** @brief Access control check for privileged operations @param cred Subject credential @param priv Requested privilege (see sys/priv.h) Determine whether the subject identified by the credential can perform a privileged operation. Privileged operations are allowed if the cred is the superuser or any policy returns zero for mpo_priv_grant, unless any policy returns nonzero for mpo_priv_check. @return Return 0 if access is granted, otherwise EPERM should be returned. */ typedef int mpo_priv_check_t( kauth_cred_t cred, int priv ); /** @brief Grant regular users the ability to perform privileged operations @param cred Subject credential @param priv Requested privilege (see sys/priv.h) Determine whether the subject identified by the credential should be allowed to perform a privileged operation that in the absense of any MAC policy it would not be able to perform. Privileged operations are allowed if the cred is the superuser or any policy returns zero for mpo_priv_grant, unless any policy returns nonzero for mpo_priv_check. Unlike other MAC hooks which can only reduce the privilege of a credential, this hook raises the privilege of a credential when it returns 0. Extreme care must be taken when implementing this hook to avoid undermining the security of the system. @return Return 0 if additional privilege is granted, otherwise EPERM should be returned. */ typedef int mpo_priv_grant_t( kauth_cred_t cred, int priv ); /** @brief Access control check for debugging process @param cred Subject credential @param proc Object process Determine whether the subject identified by the credential can debug the passed process. This call may be made in a number of situations, including use of the ptrace(2) and ktrace(2) APIs, as well as for some types of procfs operations. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to hide visibility of the target. */ typedef int mpo_proc_check_debug_t( kauth_cred_t cred, struct proc *proc ); /** @brief Access control over fork @param cred Subject credential @param proc Subject process trying to fork Determine whether the subject identified is allowed to fork. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_fork_t( kauth_cred_t cred, struct proc *proc ); /** @brief Access control check for setting host special ports. @param cred Subject credential @param id The host special port to set @param port The new value to set for the special port @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_set_host_special_port_t( kauth_cred_t cred, int id, struct ipc_port *port ); /** @brief Access control check for setting host exception ports. @param cred Subject credential @param exception Exception port to set @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_set_host_exception_port_t( kauth_cred_t cred, unsigned int exception ); /** @brief Access control over pid_suspend and pid_resume @param cred Subject credential @param proc Subject process trying to run pid_suspend or pid_resume @param sr Call is suspend (0) or resume (1) Determine whether the subject identified is allowed to suspend or resume other processes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_suspend_resume_t( kauth_cred_t cred, struct proc *proc, int sr ); /** @brief Access control check for retrieving audit information @param cred Subject credential Determine whether the subject identified by the credential can get audit information such as the audit user ID, the preselection mask, the terminal ID and the audit session ID, using the getaudit() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_getaudit_t( kauth_cred_t cred ); /** @brief Access control check for retrieving audit user ID @param cred Subject credential Determine whether the subject identified by the credential can get the user identity being used by the auditing system, using the getauid() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_getauid_t( kauth_cred_t cred ); /** @brief Access control check for retrieving Login Context ID @param p0 Calling process @param p Effected process @param pid syscall PID argument Determine if getlcid(2) system call is permitted. Information returned by this system call is similar to that returned via process listings etc. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_getlcid_t( struct proc *p0, struct proc *p, pid_t pid ); /** @brief Access control check for retrieving ledger information @param cred Subject credential @param target Object process @param op ledger operation Determine if ledger(2) system call is permitted. Information returned by this system call is similar to that returned via process listings etc. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_ledger_t( kauth_cred_t cred, struct proc *target, int op ); /** @brief Access control check for escaping default CPU usage monitor parameters. @param cred Subject credential Determine if a credential has permission to program CPU usage monitor parameters that are less restrictive than the global system-wide defaults. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_cpumon_t( kauth_cred_t cred ); /** @brief Access control check for retrieving process information. @param cred Subject credential @param target Target process (may be null, may be zombie) Determine if a credential has permission to access process information as defined by call number and flavor on target process @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_proc_info_t( kauth_cred_t cred, struct proc *target, int callnum, int flavor ); /** @brief Access control check for retrieving code signing information. @param cred Subject credential @param target Target process @param op Code signing operation being performed Determine whether the subject identified by the credential should be allowed to get code signing information about the target process. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_get_cs_info_t( kauth_cred_t cred, struct proc *target, unsigned int op ); /** @brief Access control check for setting code signing information. @param cred Subject credential @param target Target process @param op Code signing operation being performed. Determine whether the subject identified by the credential should be allowed to set code signing information about the target process. @return Return 0 if permission is granted, otherwise an appropriate value of errno should be returned. */ typedef int mpo_proc_check_set_cs_info_t( kauth_cred_t cred, struct proc *target, unsigned int op ); /** @brief Access control check for mmap MAP_ANON @param proc User process requesting the memory @param cred Subject credential @param u_addr Start address of the memory range @param u_size Length address of the memory range @param prot mmap protections; see mmap(2) @param flags Type of mapped object; see mmap(2) @param maxprot Maximum rights Determine whether the subject identified by the credential should be allowed to obtain anonymous memory using the specified flags and protections on the new mapping. MAP_ANON will always be present in the flags. Certain combinations of flags with a non-NULL addr may cause a mapping to be rejected before this hook is called. The maxprot field holds the maximum permissions on the new mapping, a combination of VM_PROT_READ, VM_PROT_WRITE and VM_PROT_EXECUTE. To avoid overriding prior access control checks, a policy should only remove flags from maxprot. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_proc_check_map_anon_t( struct proc *proc, kauth_cred_t cred, user_addr_t u_addr, user_size_t u_size, int prot, int flags, int *maxprot ); /** @brief Access control check for setting memory protections @param cred Subject credential @param proc User process requesting the change @param addr Start address of the memory range @param size Length address of the memory range @param prot Memory protections, see mmap(2) Determine whether the subject identified by the credential should be allowed to set the specified memory protections on memory mapped in the process proc. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_mprotect_t( kauth_cred_t cred, struct proc *proc, user_addr_t addr, user_size_t size, int prot ); /** @brief Access control check for changing scheduling parameters @param cred Subject credential @param proc Object process Determine whether the subject identified by the credential can change the scheduling parameters of the passed process. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to limit visibility. */ typedef int mpo_proc_check_sched_t( kauth_cred_t cred, struct proc *proc ); /** @brief Access control check for setting audit information @param cred Subject credential @param ai Audit information Determine whether the subject identified by the credential can set audit information such as the the preselection mask, the terminal ID and the audit session ID, using the setaudit() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_setaudit_t( kauth_cred_t cred, struct auditinfo_addr *ai ); /** @brief Access control check for setting audit user ID @param cred Subject credential @param auid Audit user ID Determine whether the subject identified by the credential can set the user identity used by the auditing system, using the setauid() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_setauid_t( kauth_cred_t cred, uid_t auid ); /** @brief Access control check for setting the Login Context @param p0 Calling process @param p Effected process @param pid syscall PID argument @param lcid syscall LCID argument Determine if setlcid(2) system call is permitted. See xnu/bsd/kern/kern_prot.c:setlcid() implementation for example of decoding syscall arguments to determine action desired by caller. Five distinct actions are possible: CREATE JOIN LEAVE ADOPT ORPHAN @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_setlcid_t( struct proc *p0, struct proc *p, pid_t pid, pid_t lcid ); /** @brief Access control check for delivering signal @param cred Subject credential @param proc Object process @param signum Signal number; see kill(2) Determine whether the subject identified by the credential can deliver the passed signal to the passed process. @warning Programs typically expect to be able to send and receive signals as part or their normal process lifecycle; caution should be exercised when implementing access controls over signal events. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to limit visibility. */ typedef int mpo_proc_check_signal_t( kauth_cred_t cred, struct proc *proc, int signum ); /** @brief Access control check for wait @param cred Subject credential @param proc Object process Determine whether the subject identified by the credential can wait for process termination. @warning Caution should be exercised when implementing access controls for wait, since programs often wait for child processes to exit. Failure to be notified of a child process terminating may cause the parent process to hang, or may produce zombie processes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_wait_t( kauth_cred_t cred, struct proc *proc ); /** @brief Destroy process label @param label The label to be destroyed Destroy a process label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_proc_label_destroy_t( struct label *label ); /** @brief Initialize process label @param label New label to initialize @see mpo_cred_label_init_t Initialize the label for a newly instantiated BSD process structure. Normally, security policies will store the process label in the user credential rather than here in the process structure. However, there are some floating label policies that may need to temporarily store a label in the process structure until it is safe to update the user credential label. Sleeping is permitted. */ typedef void mpo_proc_label_init_t( struct label *label ); /** @brief Access control check for socket accept @param cred Subject credential @param so Object socket @param socklabel Policy label for socket Determine whether the subject identified by the credential can accept() a new connection on the socket from the host specified by addr. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_accept_t( kauth_cred_t cred, socket_t so, struct label *socklabel ); /** @brief Access control check for a pending socket accept @param cred Subject credential @param so Object socket @param socklabel Policy label for socket @param addr Address of the listening socket (coming soon) Determine whether the subject identified by the credential can accept() a pending connection on the socket from the host specified by addr. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_accepted_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockaddr *addr ); /** @brief Access control check for socket bind @param cred Subject credential @param so Object socket @param socklabel Policy label for socket @param addr Name to assign to the socket Determine whether the subject identified by the credential can bind() the name (addr) to the socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_bind_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockaddr *addr ); /** @brief Access control check for socket connect @param cred Subject credential @param so Object socket @param socklabel Policy label for socket @param addr Name to assign to the socket Determine whether the subject identified by the credential can connect() the passed socket to the remote host specified by addr. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_connect_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockaddr *addr ); /** @brief Access control check for socket() system call. @param cred Subject credential @param domain communication domain @param type socket type @param protocol socket protocol Determine whether the subject identified by the credential can make the socket() call. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_create_t( kauth_cred_t cred, int domain, int type, int protocol ); /** @brief Access control check for delivering data to a user's receieve queue @param so The socket data is being delivered to @param so_label The label of so @param m The mbuf whose data will be deposited into the receive queue @param m_label The label of the sender of the data. A socket has a queue for receiving incoming data. When a packet arrives on the wire, it eventually gets deposited into this queue, which the owner of the socket drains when they read from the socket's file descriptor. This function determines whether the socket can receive data from the sender specified by m_label. @warning There is an outstanding design issue surrounding the placement of this function. The check must be placed either before or after the TCP sequence and ACK counters are updated. Placing the check before the counters are updated causes the incoming packet to be resent by the remote if the check rejects it. Placing the check after the counters are updated results in a completely silent drop. As far as each TCP stack is concerned the packet was received, however, the data will not be in the socket's receive queue. Another consideration is that the current design requires using the "failed label" occasionally. In that case, on rejection, we want the remote TCP to resend the data. Because of this, we chose to place this check before the counters are updated, so rejected packets will be resent by the remote host. If a policy keeps rejecting the same packet, eventually the connection will be dropped. Policies have several options if this design causes problems. For example, one options is to sanitize the mbuf such that it is acceptable, then accept it. That may require negotiation between policies as the Framework will not know to re-check the packet. The policy must handle NULL MBUF labels. This will likely be the case for non-local TCP sockets for example. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_deliver_t( socket_t so, struct label *so_label, struct mbuf *m, struct label *m_label ); /** @brief Access control check for socket kqfilter @param cred Subject credential @param kn Object knote @param so Object socket @param socklabel Policy label for socket Determine whether the subject identified by the credential can receive the knote on the passed socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_kqfilter_t( kauth_cred_t cred, struct knote *kn, socket_t so, struct label *socklabel ); /** @brief Access control check for socket relabel @param cred Subject credential @param so Object socket @param so_label The current label of so @param newlabel The label to be assigned to so Determine whether the subject identified by the credential can change the label on the socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_label_update_t( kauth_cred_t cred, socket_t so, struct label *so_label, struct label *newlabel ); /** @brief Access control check for socket listen @param cred Subject credential @param so Object socket @param socklabel Policy label for socket Determine whether the subject identified by the credential can listen() on the passed socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_listen_t( kauth_cred_t cred, socket_t so, struct label *socklabel ); /** @brief Access control check for socket receive @param cred Subject credential @param so Object socket @param socklabel Policy label for socket Determine whether the subject identified by the credential can receive data from the socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_receive_t( kauth_cred_t cred, socket_t so, struct label *socklabel ); /** @brief Access control check for socket receive @param cred Subject credential @param sock Object socket @param socklabel Policy label for socket @param saddr Name of the remote socket Determine whether the subject identified by the credential can receive data from the remote host specified by addr. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_received_t( kauth_cred_t cred, struct socket *sock, struct label *socklabel, struct sockaddr *saddr ); /** @brief Access control check for socket select @param cred Subject credential @param so Object socket @param socklabel Policy label for socket @param which The operation selected on: FREAD or FWRITE Determine whether the subject identified by the credential can use the socket in a call to select(). @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_select_t( kauth_cred_t cred, socket_t so, struct label *socklabel, int which ); /** @brief Access control check for socket send @param cred Subject credential @param so Object socket @param socklabel Policy label for socket @param addr Address being sent to Determine whether the subject identified by the credential can send data to the socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_send_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockaddr *addr ); /** @brief Access control check for retrieving socket status @param cred Subject credential @param so Object socket @param socklabel Policy label for so Determine whether the subject identified by the credential can execute the stat() system call on the given socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_stat_t( kauth_cred_t cred, socket_t so, struct label *socklabel ); /** @brief Access control check for setting socket options @param cred Subject credential @param so Object socket @param socklabel Policy label for so @param sopt The options being set Determine whether the subject identified by the credential can execute the setsockopt system call on the given socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_setsockopt_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockopt *sopt ); /** @brief Access control check for getting socket options @param cred Subject credential @param so Object socket @param socklabel Policy label for so @param sopt The options to get Determine whether the subject identified by the credential can execute the getsockopt system call on the given socket. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_socket_check_getsockopt_t( kauth_cred_t cred, socket_t so, struct label *socklabel, struct sockopt *sopt ); /** @brief Label a socket @param oldsock Listening socket @param oldlabel Policy label associated with oldsock @param newsock New socket @param newlabel Policy label associated with newsock A new socket is created when a connection is accept(2)ed. This function labels the new socket based on the existing listen(2)ing socket. */ typedef void mpo_socket_label_associate_accept_t( socket_t oldsock, struct label *oldlabel, socket_t newsock, struct label *newlabel ); /** @brief Assign a label to a new socket @param cred Credential of the owning process @param so The socket being labeled @param solabel The label @warning cred can be NULL Set the label on a newly created socket from the passed subject credential. This call is made when a socket is created. The credentials may be null if the socket is being created by the kernel. */ typedef void mpo_socket_label_associate_t( kauth_cred_t cred, socket_t so, struct label *solabel ); /** @brief Copy a socket label @param src Source label @param dest Destination label Copy the socket label information in src into dest. */ typedef void mpo_socket_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy socket label @param label The label to be destroyed Destroy a socket label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_socket_label_destroy_t( struct label *label ); /** @brief Externalize a socket label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of label Produce an externalized socket label based on the label structure passed. An externalized label consists of a text representation of the label contents that can be used with userland applications and read by the user. If element_name does not match a namespace managed by the policy, simply return 0. Only return nonzero if an error occurs while externalizing the label data. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_socket_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize socket label @param label New label to initialize @param waitok Malloc flags Initialize the label of a newly instantiated socket. The waitok field may be one of M_WAITOK and M_NOWAIT, and should be employed to avoid performing a sleeping malloc(9) during this initialization call. It it not always safe to sleep during this entry point. @warning Since it is possible for the waitok flags to be set to M_NOWAIT, the malloc operation may fail. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_socket_label_init_t( struct label *label, int waitok ); /** @brief Internalize a socket label @param label Label to be filled in @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce an internal socket label structure based on externalized label data in text format. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_socket_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Relabel socket @param cred Subject credential @param so Object; socket @param so_label Current label of the socket @param newlabel The label to be assigned to so The subject identified by the credential has previously requested and was authorized to relabel the socket; this entry point allows policies to perform the actual label update operation. @warning XXX This entry point will likely change in future versions. */ typedef void mpo_socket_label_update_t( kauth_cred_t cred, socket_t so, struct label *so_label, struct label *newlabel ); /** @brief Set the peer label on a socket from mbuf @param m Mbuf chain received on socket so @param m_label Label for m @param so Current label for the socket @param so_label Policy label to be filled out for the socket Set the peer label of a socket based on the label of the sender of the mbuf. This is called for every TCP/IP packet received. The first call for a given socket operates on a newly initialized label, and subsequent calls operate on existing label data. @warning Because this can affect performance significantly, it has different sematics than other 'set' operations. Typically, 'set' operations operate on newly initialzed labels and policies do not need to worry about clobbering existing values. In this case, it is too inefficient to initialize and destroy a label every time data is received for the socket. Instead, it is up to the policies to determine how to replace the label data. Most policies should be able to replace the data inline. */ typedef void mpo_socketpeer_label_associate_mbuf_t( struct mbuf *m, struct label *m_label, socket_t so, struct label *so_label ); /** @brief Set the peer label on a socket from socket @param source Local socket @param sourcelabel Policy label for source @param target Peer socket @param targetlabel Policy label to fill in for target Set the peer label on a stream UNIX domain socket from the passed remote socket endpoint. This call will be made when the socket pair is connected, and will be made for both endpoints. Note that this call is only made on connection; it is currently not updated during communication. */ typedef void mpo_socketpeer_label_associate_socket_t( socket_t source, struct label *sourcelabel, socket_t target, struct label *targetlabel ); /** @brief Destroy socket peer label @param label The peer label to be destroyed Destroy a socket peer label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_socketpeer_label_destroy_t( struct label *label ); /** @brief Externalize a socket peer label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of label Produce an externalized socket peer label based on the label structure passed. An externalized label consists of a text representation of the label contents that can be used with userland applications and read by the user. If element_name does not match a namespace managed by the policy, simply return 0. Only return nonzero if an error occurs while externalizing the label data. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_socketpeer_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize socket peer label @param label New label to initialize @param waitok Malloc flags Initialize the peer label of a newly instantiated socket. The waitok field may be one of M_WAITOK and M_NOWAIT, and should be employed to avoid performing a sleeping malloc(9) during this initialization call. It it not always safe to sleep during this entry point. @warning Since it is possible for the waitok flags to be set to M_NOWAIT, the malloc operation may fail. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_socketpeer_label_init_t( struct label *label, int waitok ); /** @brief Access control check for enabling accounting @param cred Subject credential @param vp Accounting file @param vlabel Label associated with vp Determine whether the subject should be allowed to enable accounting, based on its label and the label of the accounting log file. See acct(5) for more information. As accounting is disabled by passing NULL to the acct(2) system call, the policy should be prepared for both 'vp' and 'vlabel' to be NULL. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_acct_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel ); /** @brief Access control check for audit @param cred Subject credential @param record Audit record @param length Audit record length Determine whether the subject identified by the credential can submit an audit record for inclusion in the audit log via the audit() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_audit_t( kauth_cred_t cred, void *record, int length ); /** @brief Access control check for controlling audit @param cred Subject credential @param vp Audit file @param vl Label associated with vp Determine whether the subject should be allowed to enable auditing using the auditctl() system call, based on its label and the label of the proposed audit file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_auditctl_t( kauth_cred_t cred, struct vnode *vp, struct label *vl ); /** @brief Access control check for manipulating auditing @param cred Subject credential @param cmd Audit control command Determine whether the subject identified by the credential can perform the audit subsystem control operation cmd via the auditon() system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_auditon_t( kauth_cred_t cred, int cmd ); /** @brief Access control check for using CHUD facilities @param cred Subject credential Determine whether the subject identified by the credential can perform performance-related tasks using the CHUD system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_chud_t( kauth_cred_t cred ); /** @brief Access control check for obtaining the host control port @param cred Subject credential Determine whether the subject identified by the credential can obtain the host control port. @return Return 0 if access is granted, or non-zero otherwise. */ typedef int mpo_system_check_host_priv_t( kauth_cred_t cred ); /** @brief Access control check for obtaining system information @param cred Subject credential @param info_type A description of the information requested Determine whether the subject identified by the credential should be allowed to obtain information about the system. This is a generic hook that can be used in a variety of situations where information is being returned that might be considered sensitive. Rather than adding a new MAC hook for every such interface, this hook can be called with a string identifying the type of information requested. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_info_t( kauth_cred_t cred, const char *info_type ); /** @brief Access control check for calling NFS services @param cred Subject credential Determine whether the subject identified by the credential should be allowed to call nfssrv(2). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_nfsd_t( kauth_cred_t cred ); /** @brief Access control check for reboot @param cred Subject credential @param howto howto parameter from reboot(2) Determine whether the subject identified by the credential should be allowed to reboot the system in the specified manner. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_reboot_t( kauth_cred_t cred, int howto ); /** @brief Access control check for setting system clock @param cred Subject credential Determine whether the subject identified by the credential should be allowed to set the system clock. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_settime_t( kauth_cred_t cred ); /** @brief Access control check for removing swap devices @param cred Subject credential @param vp Swap device @param label Label associated with vp Determine whether the subject identified by the credential should be allowed to remove vp as a swap device. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_swapoff_t( kauth_cred_t cred, struct vnode *vp, struct label *label ); /** @brief Access control check for adding swap devices @param cred Subject credential @param vp Swap device @param label Label associated with vp Determine whether the subject identified by the credential should be allowed to add vp as a swap device. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_swapon_t( kauth_cred_t cred, struct vnode *vp, struct label *label ); /** @brief Access control check for sysctl @param cred Subject credential @param namestring String representation of sysctl name. @param name Integer name; see sysctl(3) @param namelen Length of name array of integers; see sysctl(3) @param old 0 or address where to store old value; see sysctl(3) @param oldlen Length of old buffer; see sysctl(3) @param newvalue 0 or address of new value; see sysctl(3) @param newlen Length of new buffer; see sysctl(3) Determine whether the subject identified by the credential should be allowed to make the specified sysctl(3) transaction. The sysctl(3) call specifies that if the old value is not desired, oldp and oldlenp should be set to NULL. Likewise, if a new value is not to be set, newp should be set to NULL and newlen set to 0. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_sysctlbyname_t( kauth_cred_t cred, const char *namestring, int *name, u_int namelen, user_addr_t old, /* NULLOK */ size_t oldlen, user_addr_t newvalue, /* NULLOK */ size_t newlen ); /** @brief Access control check for kas_info @param cred Subject credential @param selector Category of information to return. See kas_info.h Determine whether the subject identified by the credential can perform introspection of the kernel address space layout for debugging/performance analysis. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_system_check_kas_info_t( kauth_cred_t cred, int selector ); /** @brief Create a System V message label @param cred Subject credential @param msqptr The message queue the message will be placed in @param msqlabel The label of the message queue @param msgptr The message @param msglabel The label of the message Label the message as its placed in the message queue. */ typedef void mpo_sysvmsg_label_associate_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel, struct msg *msgptr, struct label *msglabel ); /** @brief Destroy System V message label @param label The label to be destroyed Destroy a System V message label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_sysvmsg_label_destroy_t( struct label *label ); /** @brief Initialize System V message label @param label New label to initialize Initialize the label for a newly instantiated System V message. */ typedef void mpo_sysvmsg_label_init_t( struct label *label ); /** @brief Clean up a System V message label @param label The label to be destroyed Clean up a System V message label. Darwin pre-allocates messages at system boot time and re-uses them rather than allocating new ones. Before messages are returned to the "free pool", policies can cleanup or overwrite any information present in the label. */ typedef void mpo_sysvmsg_label_recycle_t( struct label *label ); /** @brief Access control check for System V message enqueuing @param cred Subject credential @param msgptr The message @param msglabel The message's label @param msqptr The message queue @param msqlabel The message queue's label Determine whether the subject identified by the credential can add the given message to the given message queue. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_enqueue_t( kauth_cred_t cred, struct msg *msgptr, struct label *msglabel, struct msqid_kernel *msqptr, struct label *msqlabel ); /** @brief Access control check for System V message reception @param cred The credential of the intended recipient @param msgptr The message @param msglabel The message's label Determine whether the subject identified by the credential can receive the given message. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msgrcv_t( kauth_cred_t cred, struct msg *msgptr, struct label *msglabel ); /** @brief Access control check for System V message queue removal @param cred The credential of the caller @param msgptr The message @param msglabel The message's label System V message queues are removed using the msgctl() system call. The system will iterate over each messsage in the queue, calling this function for each, to determine whether the caller has the appropriate credentials. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msgrmid_t( kauth_cred_t cred, struct msg *msgptr, struct label *msglabel ); /** @brief Access control check for msgctl() @param cred The credential of the caller @param msqptr The message queue @param msqlabel The message queue's label This access check is performed to validate calls to msgctl(). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msqctl_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel, int cmd ); /** @brief Access control check to get a System V message queue @param cred The credential of the caller @param msqptr The message queue requested @param msqlabel The message queue's label On a call to msgget(), if the queue requested already exists, and it is a public queue, this check will be performed before the queue's ID is returned to the user. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msqget_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel ); /** @brief Access control check to receive a System V message from the given queue @param cred The credential of the caller @param msqptr The message queue to receive from @param msqlabel The message queue's label On a call to msgrcv(), this check is performed to determine whether the caller has receive rights on the given queue. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msqrcv_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel ); /** @brief Access control check to send a System V message to the given queue @param cred The credential of the caller @param msqptr The message queue to send to @param msqlabel The message queue's label On a call to msgsnd(), this check is performed to determine whether the caller has send rights on the given queue. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvmsq_check_msqsnd_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel ); /** @brief Create a System V message queue label @param cred Subject credential @param msqptr The message queue @param msqlabel The label of the message queue */ typedef void mpo_sysvmsq_label_associate_t( kauth_cred_t cred, struct msqid_kernel *msqptr, struct label *msqlabel ); /** @brief Destroy System V message queue label @param label The label to be destroyed Destroy a System V message queue label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_sysvmsq_label_destroy_t( struct label *label ); /** @brief Initialize System V message queue label @param label New label to initialize Initialize the label for a newly instantiated System V message queue. */ typedef void mpo_sysvmsq_label_init_t( struct label *label ); /** @brief Clean up a System V message queue label @param label The label to be destroyed Clean up a System V message queue label. Darwin pre-allocates message queues at system boot time and re-uses them rather than allocating new ones. Before message queues are returned to the "free pool", policies can cleanup or overwrite any information present in the label. */ typedef void mpo_sysvmsq_label_recycle_t( struct label *label ); /** @brief Access control check for System V semaphore control operation @param cred Subject credential @param semakptr Pointer to semaphore identifier @param semaklabel Label associated with semaphore @param cmd Control operation to be performed; see semctl(2) Determine whether the subject identified by the credential can perform the operation indicated by cmd on the System V semaphore semakptr. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvsem_check_semctl_t( kauth_cred_t cred, struct semid_kernel *semakptr, struct label *semaklabel, int cmd ); /** @brief Access control check for obtaining a System V semaphore @param cred Subject credential @param semakptr Pointer to semaphore identifier @param semaklabel Label to associate with the semaphore Determine whether the subject identified by the credential can obtain a System V semaphore. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvsem_check_semget_t( kauth_cred_t cred, struct semid_kernel *semakptr, struct label *semaklabel ); /** @brief Access control check for System V semaphore operations @param cred Subject credential @param semakptr Pointer to semaphore identifier @param semaklabel Label associated with the semaphore @param accesstype Flags to indicate access (read and/or write) Determine whether the subject identified by the credential can perform the operations on the System V semaphore indicated by semakptr. The accesstype flags hold the maximum set of permissions from the sem_op array passed to the semop system call. It may contain SEM_R for read-only operations or SEM_A for read/write operations. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvsem_check_semop_t( kauth_cred_t cred, struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype ); /** @brief Create a System V semaphore label @param cred Subject credential @param semakptr The semaphore being created @param semalabel Label to associate with the new semaphore Label a new System V semaphore. The label was previously initialized and associated with the semaphore. At this time, an appropriate initial label value should be assigned to the object and stored in semalabel. */ typedef void mpo_sysvsem_label_associate_t( kauth_cred_t cred, struct semid_kernel *semakptr, struct label *semalabel ); /** @brief Destroy System V semaphore label @param label The label to be destroyed Destroy a System V semaphore label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_sysvsem_label_destroy_t( struct label *label ); /** @brief Initialize System V semaphore label @param label New label to initialize Initialize the label for a newly instantiated System V semaphore. Sleeping is permitted. */ typedef void mpo_sysvsem_label_init_t( struct label *label ); /** @brief Clean up a System V semaphore label @param label The label to be cleaned Clean up a System V semaphore label. Darwin pre-allocates semaphores at system boot time and re-uses them rather than allocating new ones. Before semaphores are returned to the "free pool", policies can cleanup or overwrite any information present in the label. */ typedef void mpo_sysvsem_label_recycle_t( struct label *label ); /** @brief Access control check for mapping System V shared memory @param cred Subject credential @param shmsegptr Pointer to shared memory segment identifier @param shmseglabel Label associated with the shared memory segment @param shmflg shmat flags; see shmat(2) Determine whether the subject identified by the credential can map the System V shared memory segment associated with shmsegptr. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvshm_check_shmat_t( kauth_cred_t cred, struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg ); /** @brief Access control check for System V shared memory control operation @param cred Subject credential @param shmsegptr Pointer to shared memory segment identifier @param shmseglabel Label associated with the shared memory segment @param cmd Control operation to be performed; see shmctl(2) Determine whether the subject identified by the credential can perform the operation indicated by cmd on the System V shared memory segment shmsegptr. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvshm_check_shmctl_t( kauth_cred_t cred, struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd ); /** @brief Access control check for unmapping System V shared memory @param cred Subject credential @param shmsegptr Pointer to shared memory segment identifier @param shmseglabel Label associated with the shared memory segment Determine whether the subject identified by the credential can unmap the System V shared memory segment associated with shmsegptr. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvshm_check_shmdt_t( kauth_cred_t cred, struct shmid_kernel *shmsegptr, struct label *shmseglabel ); /** @brief Access control check obtaining System V shared memory identifier @param cred Subject credential @param shmsegptr Pointer to shared memory segment identifier @param shmseglabel Label associated with the shared memory segment @param shmflg shmget flags; see shmget(2) Determine whether the subject identified by the credential can get the System V shared memory segment address. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_sysvshm_check_shmget_t( kauth_cred_t cred, struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg ); /** @brief Create a System V shared memory region label @param cred Subject credential @param shmsegptr The shared memory region being created @param shmlabel Label to associate with the new shared memory region Label a new System V shared memory region. The label was previously initialized and associated with the shared memory region. At this time, an appropriate initial label value should be assigned to the object and stored in shmlabel. */ typedef void mpo_sysvshm_label_associate_t( kauth_cred_t cred, struct shmid_kernel *shmsegptr, struct label *shmlabel ); /** @brief Destroy System V shared memory label @param label The label to be destroyed Destroy a System V shared memory region label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_sysvshm_label_destroy_t( struct label *label ); /** @brief Initialize System V Shared Memory region label @param label New label to initialize Initialize the label for a newly instantiated System V Shared Memory region. Sleeping is permitted. */ typedef void mpo_sysvshm_label_init_t( struct label *label ); /** @brief Clean up a System V Share Memory Region label @param shmlabel The label to be cleaned Clean up a System V Shared Memory Region label. Darwin pre-allocates these objects at system boot time and re-uses them rather than allocating new ones. Before the memory regions are returned to the "free pool", policies can cleanup or overwrite any information present in the label. */ typedef void mpo_sysvshm_label_recycle_t( struct label *shmlabel ); /** @brief Access control check for getting a process's task name @param cred Subject credential @param p Object process Determine whether the subject identified by the credential can get the passed process's task name port. This call is used by the task_name_for_pid(2) API. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to hide visibility of the target. */ typedef int mpo_proc_check_get_task_name_t( kauth_cred_t cred, struct proc *p ); /** @brief Access control check for getting a process's task port @param cred Subject credential @param p Object process Determine whether the subject identified by the credential can get the passed process's task control port. This call is used by the task_for_pid(2) API. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to hide visibility of the target. */ typedef int mpo_proc_check_get_task_t( kauth_cred_t cred, struct proc *p ); /** @brief Access control check for exposing a process's task port @param cred Subject credential @param p Object process Determine whether the subject identified by the credential can expose the passed process's task control port. This call is used by the accessor APIs like processor_set_tasks() and processor_set_threads(). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch, EPERM for lack of privilege, or ESRCH to hide visibility of the target. */ typedef int mpo_proc_check_expose_task_t( kauth_cred_t cred, struct proc *p ); /** @brief Check whether task's IPC may inherit across process exec @param p current process instance @param cur_vp vnode pointer to current instance @param cur_offset offset of binary of currently executing image @param img_vp vnode pointer to to be exec'ed image @param img_offset offset into file which is selected for execution @param scriptvp vnode pointer of script file if any. @return Return 0 if access is granted. EPERM if parent does not have any entitlements. EACCESS if mismatch in entitlements */ typedef int mpo_proc_check_inherit_ipc_ports_t( struct proc *p, struct vnode *cur_vp, off_t cur_offset, struct vnode *img_vp, off_t img_offset, struct vnode *scriptvp ); /** @brief Privilege check for a process to run invalid @param p Object process Determine whether the process may execute even though the system determined that it is untrusted (eg unidentified / modified code). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_proc_check_run_cs_invalid_t( struct proc *p ); /** @brief Perform MAC-related events when a thread returns to user space @param thread Mach (not BSD) thread that is returning This entry point permits policy modules to perform MAC-related events when a thread returns to user space, via a system call return or trap return. */ typedef void mpo_thread_userret_t( struct thread *thread ); /** @brief Check vnode access @param cred Subject credential @param vp Object vnode @param label Label for vp @param acc_mode access(2) flags Determine how invocations of access(2) and related calls by the subject identified by the credential should return when performed on the passed vnode using the passed access flags. This should generally be implemented using the same semantics used in mpo_vnode_check_open. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_access_t( kauth_cred_t cred, struct vnode *vp, struct label *label, int acc_mode ); /** @brief Access control check for changing working directory @param cred Subject credential @param dvp Object; vnode to chdir(2) into @param dlabel Policy label for dvp Determine whether the subject identified by the credential can change the process working directory to the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_chdir_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel ); /** @brief Access control check for changing root directory @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label associated with dvp @param cnp Component name for dvp Determine whether the subject identified by the credential should be allowed to chroot(2) into the specified directory (dvp). @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_vnode_check_chroot_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp ); /** @brief Access control check for creating clone @param cred Subject credential @param dvp Vnode of directory to create the clone in @param dlabel Policy label associated with dvp @param vp Vnode of the file to clone from @param label Policy label associated with vp @param cnp Component name for the clone being created Determine whether the subject identified by the credential should be allowed to create a clone of the vnode vp with the name specified by cnp. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_clone_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *label, struct componentname *cnp ); /** @brief Access control check for creating vnode @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label for dvp @param cnp Component name for dvp @param vap vnode attributes for vap Determine whether the subject identified by the credential can create a vnode with the passed parent directory, passed name information, and passed attribute information. This call may be made in a number of situations, including as a result of calls to open(2) with O_CREAT, mknod(2), mkfifo(2), and others. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_create_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp, struct vnode_attr *vap ); /** @brief Access control check for deleting extended attribute @param cred Subject credential @param vp Object vnode @param vlabel Label associated with vp @param name Extended attribute name Determine whether the subject identified by the credential can delete the extended attribute from the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_deleteextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, const char *name ); /** @brief Access control check for exchanging file data @param cred Subject credential @param v1 vnode 1 to swap @param vl1 Policy label for v1 @param v2 vnode 2 to swap @param vl2 Policy label for v2 Determine whether the subject identified by the credential can swap the data in the two supplied vnodes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_exchangedata_t( kauth_cred_t cred, struct vnode *v1, struct label *vl1, struct vnode *v2, struct label *vl2 ); /** @brief Access control check for executing the vnode @param cred Subject credential @param vp Object vnode to execute @param scriptvp Script being executed by interpreter, if any. @param vnodelabel Label corresponding to vp @param scriptlabel Script vnode label @param execlabel Userspace provided execution label @param cnp Component name for file being executed @param macpolicyattr MAC policy-specific spawn attribute data. @param macpolicyattrlen Length of policy-specific spawn attribute data. Determine whether the subject identified by the credential can execute the passed vnode. Determination of execute privilege is made separately from decisions about any process label transitioning event. The final label, execlabel, corresponds to a label supplied by a user space application through the use of the mac_execve system call. This label will be NULL if the user application uses the the vendor execve(2) call instead of the MAC Framework mac_execve() call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_exec_t( kauth_cred_t cred, struct vnode *vp, struct vnode *scriptvp, struct label *vnodelabel, struct label *scriptlabel, struct label *execlabel, /* NULLOK */ struct componentname *cnp, u_int *csflags, void *macpolicyattr, size_t macpolicyattrlen ); /** @brief Access control check for fsgetpath @param cred Subject credential @param vp Vnode for which a path will be returned @param label Label associated with the vnode Determine whether the subject identified by the credential can get the path of the given vnode with fsgetpath. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_fsgetpath_t( kauth_cred_t cred, struct vnode *vp, struct label *label ); /** @brief Access control check for retrieving file attributes @param active_cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param vlabel Policy label for vp @param va Vnode attributes to retrieve Determine whether the subject identified by the credential can get information about the passed vnode. The active_cred hold the credentials of the subject performing the operation, and file_cred holds the credentials of the subject that originally opened the file. This check happens during stat(), lstat(), fstat(), and getattrlist() syscalls. See for definitions of the attributes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. @note Policies may change the contents of va to alter the list of file attributes returned. */ typedef int mpo_vnode_check_getattr_t( kauth_cred_t active_cred, kauth_cred_t file_cred, /* NULLOK */ struct vnode *vp, struct label *vlabel, struct vnode_attr *va ); /** @brief Access control check for retrieving file attributes @param cred Subject credential @param vp Object vnode @param vlabel Policy label for vp @param alist List of attributes to retrieve Determine whether the subject identified by the credential can read various attributes of the specified vnode, or the filesystem or volume on which that vnode resides. See for definitions of the attributes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. Access control covers all attributes requested with this call; the security policy is not permitted to change the set of attributes requested. */ typedef int mpo_vnode_check_getattrlist_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, struct attrlist *alist ); /** @brief Access control check for retrieving an extended attribute @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param name Extended attribute name @param uio I/O structure pointer Determine whether the subject identified by the credential can retrieve the extended attribute from the passed vnode. The uio parameter will be NULL when the getxattr(2) call has been made with a NULL data value; this is done to request the size of the data only. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_getextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *label, /* NULLOK */ const char *name, struct uio *uio /* NULLOK */ ); /** @brief Access control check for ioctl @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param cmd Device-dependent request code; see ioctl(2) Determine whether the subject identified by the credential can perform the ioctl operation indicated by com. @warning Since ioctl data is opaque from the standpoint of the MAC framework, and since ioctls can affect many aspects of system operation, policies must exercise extreme care when implementing access control checks. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_ioctl_t( kauth_cred_t cred, struct vnode *vp, struct label *label, unsigned int cmd ); /** @brief Access control check for vnode kqfilter @param active_cred Subject credential @param kn Object knote @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can receive the knote on the passed vnode. @return Return 0 if access if granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_kqfilter_t( kauth_cred_t active_cred, kauth_cred_t file_cred, /* NULLOK */ struct knote *kn, struct vnode *vp, struct label *label ); /** @brief Access control check for relabel @param cred Subject credential @param vp Object vnode @param vnodelabel Existing policy label for vp @param newlabel Policy label update to later be applied to vp @see mpo_relable_vnode_t Determine whether the subject identified by the credential can relabel the passed vnode to the passed label update. If all policies permit the label change, the actual relabel entry point (mpo_vnode_label_update) will follow. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_label_update_t( struct ucred *cred, struct vnode *vp, struct label *vnodelabel, struct label *newlabel ); /** @brief Access control check for creating link @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label associated with dvp @param vp Link destination vnode @param label Policy label associated with vp @param cnp Component name for the link being created Determine whether the subject identified by the credential should be allowed to create a link to the vnode vp with the name specified by cnp. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_link_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *label, struct componentname *cnp ); /** @brief Access control check for listing extended attributes @param cred Subject credential @param vp Object vnode @param vlabel Policy label associated with vp Determine whether the subject identified by the credential can retrieve a list of named extended attributes from a vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_listextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel ); /** @brief Access control check for lookup @param cred Subject credential @param dvp Object vnode @param dlabel Policy label for dvp @param cnp Component name being looked up Determine whether the subject identified by the credential can perform a lookup in the passed directory vnode for the passed name (cnp). @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_lookup_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp ); /** @brief Access control check for open @param cred Subject credential @param vp Object vnode @param label Policy label associated with vp @param acc_mode open(2) access mode Determine whether the subject identified by the credential can perform an open operation on the passed vnode with the passed access mode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_open_t( kauth_cred_t cred, struct vnode *vp, struct label *label, int acc_mode ); /** @brief Access control check for read @param active_cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can perform a read operation on the passed vnode. The active_cred hold the credentials of the subject performing the operation, and file_cred holds the credentials of the subject that originally opened the file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_read_t( kauth_cred_t active_cred, /* SUBJECT */ kauth_cred_t file_cred, /* NULLOK */ struct vnode *vp, /* OBJECT */ struct label *label /* LABEL */ ); /** @brief Access control check for read directory @param cred Subject credential @param dvp Object directory vnode @param dlabel Policy label for dvp Determine whether the subject identified by the credential can perform a readdir operation on the passed directory vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_readdir_t( kauth_cred_t cred, /* SUBJECT */ struct vnode *dvp, /* OBJECT */ struct label *dlabel /* LABEL */ ); /** @brief Access control check for read link @param cred Subject credential @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can perform a readlink operation on the passed symlink vnode. This call can be made in a number of situations, including an explicit readlink call by the user process, or as a result of an implicit readlink during a name lookup by the process. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_readlink_t( kauth_cred_t cred, struct vnode *vp, struct label *label ); /** @brief Access control check for rename @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label associated with dvp @param vp vnode to be renamed @param label Policy label associated with vp @param cnp Component name for vp @param tdvp Destination directory vnode @param tdlabel Policy label associated with tdvp @param tvp Overwritten vnode @param tlabel Policy label associated with tvp @param tcnp Destination component name Determine whether the subject identified by the credential should be allowed to rename the vnode vp to something else. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_rename_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *label, struct componentname *cnp, struct vnode *tdvp, struct label *tdlabel, struct vnode *tvp, struct label *tlabel, struct componentname *tcnp ); /** @brief Access control check for rename from @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label associated with dvp @param vp vnode to be renamed @param label Policy label associated with vp @param cnp Component name for vp @see mpo_vnode_check_rename_t @see mpo_vnode_check_rename_to_t Determine whether the subject identified by the credential should be allowed to rename the vnode vp to something else. Due to VFS locking constraints (to make sure proper vnode locks are held during this entry point), the vnode relabel checks had to be split into two parts: relabel_from and relabel to. This hook is deprecated, mpo_vnode_check_rename_t should be used instead. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_rename_from_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *label, struct componentname *cnp ); /** @brief Access control check for rename to @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label associated with dvp @param vp Overwritten vnode @param label Policy label associated with vp @param samedir Boolean; 1 if the source and destination directories are the same @param cnp Destination component name @see mpo_vnode_check_rename_t @see mpo_vnode_check_rename_from_t Determine whether the subject identified by the credential should be allowed to rename to the vnode vp, into the directory dvp, or to the name represented by cnp. If there is no existing file to overwrite, vp and label will be NULL. Due to VFS locking constraints (to make sure proper vnode locks are held during this entry point), the vnode relabel checks had to be split into two parts: relabel_from and relabel to. This hook is deprecated, mpo_vnode_check_rename_t should be used instead. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_rename_to_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, /* NULLOK */ struct label *label, /* NULLOK */ int samedir, struct componentname *cnp ); /** @brief Access control check for revoke @param cred Subject credential @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can revoke access to the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_revoke_t( kauth_cred_t cred, struct vnode *vp, struct label *label ); /** @brief Access control check for searchfs @param cred Subject credential @param vp Object vnode @param vlabel Policy label for vp @param alist List of attributes used as search criteria Determine whether the subject identified by the credential can search the vnode using the searchfs system call. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_searchfs_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, struct attrlist *alist ); /** @brief Access control check for select @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param which The operation selected on: FREAD or FWRITE Determine whether the subject identified by the credential can select the vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_select_t( kauth_cred_t cred, struct vnode *vp, struct label *label, int which ); /** @brief Access control check for setting ACL @param cred Subject credential @param vp Object node @param label Policy label for vp @param acl ACL structure pointer Determine whether the subject identified by the credential can set an ACL on the specified vnode. The ACL pointer will be NULL when removing an ACL. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setacl_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct kauth_acl *acl ); /** @brief Access control check for setting file attributes @param cred Subject credential @param vp Object vnode @param vlabel Policy label for vp @param alist List of attributes to set Determine whether the subject identified by the credential can set various attributes of the specified vnode, or the filesystem or volume on which that vnode resides. See for definitions of the attributes. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. Access control covers all attributes requested with this call. */ typedef int mpo_vnode_check_setattrlist_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, struct attrlist *alist ); /** @brief Access control check for setting extended attribute @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param name Extended attribute name @param uio I/O structure pointer Determine whether the subject identified by the credential can set the extended attribute of passed name and passed namespace on the passed vnode. Policies implementing security labels backed into extended attributes may want to provide additional protections for those attributes. Additionally, policies should avoid making decisions based on the data referenced from uio, as there is a potential race condition between this check and the actual operation. The uio may also be NULL if a delete operation is being performed. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *label, const char *name, struct uio *uio ); /** @brief Access control check for setting flags @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param flags File flags; see chflags(2) Determine whether the subject identified by the credential can set the passed flags on the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setflags_t( kauth_cred_t cred, struct vnode *vp, struct label *label, u_long flags ); /** @brief Access control check for setting mode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param mode File mode; see chmod(2) Determine whether the subject identified by the credential can set the passed mode on the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setmode_t( kauth_cred_t cred, struct vnode *vp, struct label *label, mode_t mode ); /** @brief Access control check for setting uid and gid @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param uid User ID @param gid Group ID Determine whether the subject identified by the credential can set the passed uid and passed gid as file uid and file gid on the passed vnode. The IDs may be set to (-1) to request no update. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setowner_t( kauth_cred_t cred, struct vnode *vp, struct label *label, uid_t uid, gid_t gid ); /** @brief Access control check for setting timestamps @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param atime Access time; see utimes(2) @param mtime Modification time; see utimes(2) Determine whether the subject identified by the credential can set the passed access timestamps on the passed vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_setutimes_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct timespec atime, struct timespec mtime ); /** @brief Access control check after determining the code directory hash @param vp vnode vnode to combine into proc @param label label associated with the vnode @param cs_blob the code signature to check @param cs_flags update code signing flags if needed @param flags operational flag to mpo_vnode_check_signature @param fatal_failure_desc description of fatal failure @param fatal_failure_desc_len failure description len, failure is fatal if non-0 @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. */ typedef int mpo_vnode_check_signature_t( struct vnode *vp, struct label *label, struct cs_blob *cs_blob, unsigned int *cs_flags, int flags, char **fatal_failure_desc, size_t *fatal_failure_desc_len ); /** @brief Access control check for stat @param active_cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can stat the passed vnode. See stat(2) for more information. The active_cred hold the credentials of the subject performing the operation, and file_cred holds the credentials of the subject that originally opened the file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_stat_t( struct ucred *active_cred, struct ucred *file_cred, /* NULLOK */ struct vnode *vp, struct label *label ); /** @brief Access control check for truncate/ftruncate @param active_cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can perform a truncate operation on the passed vnode. The active_cred hold the credentials of the subject performing the operation, and file_cred holds the credentials of the subject that originally opened the file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_truncate_t( kauth_cred_t active_cred, kauth_cred_t file_cred, /* NULLOK */ struct vnode *vp, struct label *label ); /** @brief Access control check for binding UNIX domain socket @param cred Subject credential @param dvp Directory vnode @param dlabel Policy label for dvp @param cnp Component name for dvp @param vap vnode attributes for vap Determine whether the subject identified by the credential can perform a bind operation on a UNIX domain socket with the passed parent directory, passed name information, and passed attribute information. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_uipc_bind_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp, struct vnode_attr *vap ); /** @brief Access control check for connecting UNIX domain socket @param cred Subject credential @param vp Object vnode @param label Policy label associated with vp @param so Socket Determine whether the subject identified by the credential can perform a connect operation on the passed UNIX domain socket vnode. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_uipc_connect_t( kauth_cred_t cred, struct vnode *vp, struct label *label, socket_t so ); /** @brief Access control check for deleting vnode @param cred Subject credential @param dvp Parent directory vnode @param dlabel Policy label for dvp @param vp Object vnode to delete @param label Policy label for vp @param cnp Component name for vp @see mpo_check_rename_to_t Determine whether the subject identified by the credential can delete a vnode from the passed parent directory and passed name information. This call may be made in a number of situations, including as a results of calls to unlink(2) and rmdir(2). Policies implementing this entry point should also implement mpo_check_rename_to to authorize deletion of objects as a result of being the target of a rename. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_unlink_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *label, struct componentname *cnp ); /** @brief Access control check for write @param active_cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param label Policy label for vp Determine whether the subject identified by the credential can perform a write operation on the passed vnode. The active_cred hold the credentials of the subject performing the operation, and file_cred holds the credentials of the subject that originally opened the file. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EACCES for label mismatch or EPERM for lack of privilege. */ typedef int mpo_vnode_check_write_t( kauth_cred_t active_cred, kauth_cred_t file_cred, /* NULLOK */ struct vnode *vp, struct label *label ); /** @brief Associate a vnode with a devfs entry @param mp Devfs mount point @param mntlabel Devfs mount point label @param de Devfs directory entry @param delabel Label associated with de @param vp vnode associated with de @param vlabel Label associated with vp Fill in the label (vlabel) for a newly created devfs vnode. The label is typically derived from the label on the devfs directory entry or the label on the filesystem, supplied as parameters. */ typedef void mpo_vnode_label_associate_devfs_t( struct mount *mp, struct label *mntlabel, struct devnode *de, struct label *delabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a label with a vnode @param mp File system mount point @param mntlabel File system mount point label @param vp Vnode to label @param vlabel Label associated with vp Attempt to retrieve label information for the vnode, vp, from the file system extended attribute store. The label should be stored in the supplied vlabel parameter. If a policy cannot retrieve an extended attribute, sometimes it is acceptible to fallback to using the mntlabel. If the policy requires vnodes to have a valid label elsewhere it MUST NOT return other than temporary errors, and must always provide a valid label of some sort. Returning an error will cause vnode labeling to be retried at a later access. Failure to handle policy centric errors internally (corrupt labels etc.) will result in inaccessible files. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. */ typedef int mpo_vnode_label_associate_extattr_t( struct mount *mp, struct label *mntlabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a file label with a vnode @param cred User credential @param mp Fdesc mount point @param mntlabel Fdesc mount point label @param fg Fileglob structure @param label Policy label for fg @param vp Vnode to label @param vlabel Label associated with vp Associate label information for the vnode, vp, with the label of the open file descriptor described by fg. The label should be stored in the supplied vlabel parameter. */ typedef void mpo_vnode_label_associate_file_t( struct ucred *cred, struct mount *mp, struct label *mntlabel, struct fileglob *fg, struct label *label, struct vnode *vp, struct label *vlabel ); /** @brief Associate a pipe label with a vnode @param cred User credential for the process that opened the pipe @param cpipe Pipe structure @param pipelabel Label associated with pipe @param vp Vnode to label @param vlabel Label associated with vp Associate label information for the vnode, vp, with the label of the pipe described by the pipe structure cpipe. The label should be stored in the supplied vlabel parameter. */ typedef void mpo_vnode_label_associate_pipe_t( struct ucred *cred, struct pipe *cpipe, struct label *pipelabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a POSIX semaphore label with a vnode @param cred User credential for the process that create psem @param psem POSIX semaphore structure @param psemlabel Label associated with psem @param vp Vnode to label @param vlabel Label associated with vp Associate label information for the vnode, vp, with the label of the POSIX semaphore described by psem. The label should be stored in the supplied vlabel parameter. */ typedef void mpo_vnode_label_associate_posixsem_t( struct ucred *cred, struct pseminfo *psem, struct label *psemlabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a POSIX shared memory label with a vnode @param cred User credential for the process that created pshm @param pshm POSIX shared memory structure @param pshmlabel Label associated with pshm @param vp Vnode to label @param vlabel Label associated with vp Associate label information for the vnode, vp, with the label of the POSIX shared memory region described by pshm. The label should be stored in the supplied vlabel parameter. */ typedef void mpo_vnode_label_associate_posixshm_t( struct ucred *cred, struct pshminfo *pshm, struct label *pshmlabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a label with a vnode @param mp File system mount point @param mntlabel File system mount point label @param vp Vnode to label @param vlabel Label associated with vp On non-multilabel file systems, set the label for a vnode. The label will most likely be based on the file system label. */ typedef void mpo_vnode_label_associate_singlelabel_t( struct mount *mp, struct label *mntlabel, struct vnode *vp, struct label *vlabel ); /** @brief Associate a socket label with a vnode @param cred User credential for the process that opened the socket @param so Socket structure @param solabel Label associated with so @param vp Vnode to label @param vlabel Label associated with vp Associate label information for the vnode, vp, with the label of the open socket described by the socket structure so. The label should be stored in the supplied vlabel parameter. */ typedef void mpo_vnode_label_associate_socket_t( kauth_cred_t cred, socket_t so, struct label *solabel, struct vnode *vp, struct label *vlabel ); /** @brief Copy a vnode label @param src Source vnode label @param dest Destination vnode label Copy the vnode label information from src to dest. On Darwin, this is currently only necessary when executing interpreted scripts, but will later be used if vnode label externalization cannot be an atomic operation. */ typedef void mpo_vnode_label_copy_t( struct label *src, struct label *dest ); /** @brief Destroy vnode label @param label The label to be destroyed Destroy a vnode label. Since the object is going out of scope, policy modules should free any internal storage associated with the label so that it may be destroyed. */ typedef void mpo_vnode_label_destroy_t( struct label *label ); /** @brief Externalize a vnode label for auditing @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on a vnode suitable for inclusion in an audit record. An externalized label consists of a text representation of the label contents that will be added to the audit record as part of a text token. Policy-agnostic user space tools will display this externalized version. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_vnode_label_externalize_audit_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Externalize a vnode label @param label Label to be externalized @param element_name Name of the label namespace for which labels should be externalized @param sb String buffer to be filled with a text representation of the label Produce an external representation of the label on a vnode. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will display this externalized version. @return 0 on success, return non-zero if an error occurs while externalizing the label data. */ typedef int mpo_vnode_label_externalize_t( struct label *label, char *element_name, struct sbuf *sb ); /** @brief Initialize vnode label @param label New label to initialize Initialize label storage for use with a newly instantiated vnode, or for temporary storage associated with the copying in or out of a vnode label. While it is necessary to allocate space for a kernel-resident vnode label, it is not yet necessary to link this vnode with persistent label storage facilities, such as extended attributes. Sleeping is permitted. */ typedef void mpo_vnode_label_init_t( struct label *label ); /** @brief Internalize a vnode label @param label Label to be internalized @param element_name Name of the label namespace for which the label should be internalized @param element_data Text data to be internalized Produce a vnode label from an external representation. An externalized label consists of a text representation of the label contents that can be used with user applications. Policy-agnostic user space tools will forward text version to the kernel for processing by individual policy modules. The policy's internalize entry points will be called only if the policy has registered interest in the label namespace. @return 0 on success, Otherwise, return non-zero if an error occurs while internalizing the label data. */ typedef int mpo_vnode_label_internalize_t( struct label *label, char *element_name, char *element_data ); /** @brief Clean up a vnode label @param label The label to be cleaned for re-use Clean up a vnode label. Darwin (Tiger, 8.x) allocates vnodes on demand, but typically never frees them. Before vnodes are placed back on free lists for re-use, policies can cleanup or overwrite any information present in the label. */ typedef void mpo_vnode_label_recycle_t( struct label *label ); /** @brief Write a label to a extended attribute @param cred Subject credential @param vp The vnode for which the label is being stored @param vlabel Label associated with vp @param intlabel The new label to store Store a new label in the extended attribute corresponding to the supplied vnode. The policy has already authorized the operation; this call must be implemented in order to perform the actual operation. @return In the event of an error, an appropriate value for errno should be returned, otherwise return 0 upon success. @warning XXX After examining the extended attribute implementation on Apple's future release, this entry point may be changed. */ typedef int mpo_vnode_label_store_t( kauth_cred_t cred, struct vnode *vp, struct label *vlabel, struct label *intlabel ); /** @brief Update vnode label from extended attributes @param mp File system mount point @param mntlabel Mount point label @param vp Vnode to label @param vlabel Label associated with vp @param name Name of the xattr @see mpo_vnode_check_setextattr_t When an extended attribute is updated via the Vendor attribute management functions, the MAC vnode label might also require an update. Policies should first determine if 'name' matches their xattr label name. If it does, the kernel is has either replaced or removed the named extended attribute that was previously associated with the vnode. Normally labels should only be modified via MAC Framework label management calls, but sometimes the user space components will directly modify extended attributes. For example, 'cp', 'tar', etc. manage extended attributes in userspace, not the kernel. This entry point is called after the label update has occurred, so it cannot return a failure. However, the operation is preceded by the mpo_vnode_check_setextattr() access control check. If the vnode label needs to be updated the policy should return a non-zero value. The vnode label will be marked for re-association by the framework. */ typedef int mpo_vnode_label_update_extattr_t( struct mount *mp, struct label *mntlabel, struct vnode *vp, struct label *vlabel, const char *name ); /** @brief Update a vnode label @param cred Subject credential @param vp The vnode to relabel @param vnodelabel Existing vnode label @param label New label to replace existing label @see mpo_vnode_check_label_update_t The subject identified by the credential has previously requested and was authorized to relabel the vnode; this entry point allows policies to perform the actual relabel operation. Policies should update vnodelabel using the label stored in the label parameter. */ typedef void mpo_vnode_label_update_t( kauth_cred_t cred, struct vnode *vp, struct label *vnodelabel, struct label *label ); /** @brief Find deatched signatures for a shared library @param p file trying to find the signature @param vp The vnode to relabel @param offset offset in the macho that the signature is requested for (for fat binaries) @param label Existing vnode label */ typedef int mpo_vnode_find_sigs_t( struct proc *p, struct vnode *vp, off_t offset, struct label *label ); /** @brief Create a new vnode, backed by extended attributes @param cred User credential for the creating process @param mp File system mount point @param mntlabel File system mount point label @param dvp Parent directory vnode @param dlabel Parent directory vnode label @param vp Newly created vnode @param vlabel Label to associate with the new vnode @param cnp Component name for vp Write out the label for the newly created vnode, most likely storing the results in a file system extended attribute. Most policies will derive the new vnode label using information from a combination of the subject (user) credential, the file system label, the parent directory label, and potentially the path name component. @return If the operation succeeds, store the new label in vlabel and return 0. Otherwise, return an appropriate errno value. */ typedef int mpo_vnode_notify_create_t( kauth_cred_t cred, struct mount *mp, struct label *mntlabel, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *vlabel, struct componentname *cnp ); /** @brief Inform MAC policies that a vnode has been opened @param cred User credential for the creating process @param vp vnode opened @param label Policy label for the vp @param acc_mode open(2) access mode used Inform Mac policies that a vnode have been successfully opened (passing all MAC polices and DAC). */ typedef void mpo_vnode_notify_open_t( kauth_cred_t cred, struct vnode *vp, struct label *label, int acc_mode ); /** @brief Inform MAC policies that a vnode has been renamed @param cred User credential for the renaming process @param vp Vnode that's being renamed @param label Policy label for vp @param dvp Parent directory for the destination @param dlabel Policy label for dvp @param cnp Component name for the destination Inform MAC policies that a vnode has been renamed. */ typedef void mpo_vnode_notify_rename_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct vnode *dvp, struct label *dlabel, struct componentname *cnp ); /** @brief Inform MAC policies that a vnode has been linked @param cred User credential for the renaming process @param dvp Parent directory for the destination @param dlabel Policy label for dvp @param vp Vnode that's being linked @param vlabel Policy label for vp @param cnp Component name for the destination Inform MAC policies that a vnode has been linked. */ typedef void mpo_vnode_notify_link_t( kauth_cred_t cred, struct vnode *dvp, struct label *dlabel, struct vnode *vp, struct label *vlabel, struct componentname *cnp ); /** @brief Inform MAC policies that an extended attribute has been removed from a vnode @param cred Subject credential @param vp Object node @param label Policy label for vp @param name Extended attribute name Inform MAC policies that an extended attribute has been removed from a vnode. */ typedef void mpo_vnode_notify_deleteextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *label, const char *name ); /** @brief Inform MAC policies that an ACL has been set on a vnode @param cred Subject credential @param vp Object node @param label Policy label for vp @param acl ACL structure pointer Inform MAC policies that an ACL has been set on a vnode. */ typedef void mpo_vnode_notify_setacl_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct kauth_acl *acl ); /** @brief Inform MAC policies that an attributes have been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param alist List of attributes to set Inform MAC policies that an attributes have been set on a vnode. */ typedef void mpo_vnode_notify_setattrlist_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct attrlist *alist ); /** @brief Inform MAC policies that an extended attribute has been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param name Extended attribute name @param uio I/O structure pointer Inform MAC policies that an extended attribute has been set on a vnode. */ typedef void mpo_vnode_notify_setextattr_t( kauth_cred_t cred, struct vnode *vp, struct label *label, const char *name, struct uio *uio ); /** @brief Inform MAC policies that flags have been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param flags File flags; see chflags(2) Inform MAC policies that flags have been set on a vnode. */ typedef void mpo_vnode_notify_setflags_t( kauth_cred_t cred, struct vnode *vp, struct label *label, u_long flags ); /** @brief Inform MAC policies that a new mode has been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param mode File mode; see chmod(2) Inform MAC policies that a new mode has been set on a vnode. */ typedef void mpo_vnode_notify_setmode_t( kauth_cred_t cred, struct vnode *vp, struct label *label, mode_t mode ); /** @brief Inform MAC policies that new uid/gid have been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param uid User ID @param gid Group ID Inform MAC policies that new uid/gid have been set on a vnode. */ typedef void mpo_vnode_notify_setowner_t( kauth_cred_t cred, struct vnode *vp, struct label *label, uid_t uid, gid_t gid ); /** @brief Inform MAC policies that new timestamps have been set on a vnode @param cred Subject credential @param vp Object vnode @param label Policy label for vp @param atime Access time; see utimes(2) @param mtime Modification time; see utimes(2) Inform MAC policies that new timestamps have been set on a vnode. */ typedef void mpo_vnode_notify_setutimes_t( kauth_cred_t cred, struct vnode *vp, struct label *label, struct timespec atime, struct timespec mtime ); /** @brief Inform MAC policies that a vnode has been truncated @param cred Subject credential @param file_cred Credential associated with the struct fileproc @param vp Object vnode @param label Policy label for vp Inform MAC policies that a vnode has been truncated. */ typedef void mpo_vnode_notify_truncate_t( kauth_cred_t cred, kauth_cred_t file_cred, struct vnode *vp, struct label *label ); /** @brief Inform MAC policies that a pty slave has been granted @param p Responsible process @param tp tty data structure @param dev Major and minor numbers of device @param label Policy label for tp Inform MAC policies that a pty slave has been granted. */ typedef void mpo_pty_notify_grant_t( proc_t p, struct tty *tp, dev_t dev, struct label *label ); /** @brief Inform MAC policies that a pty master has been closed @param p Responsible process @param tp tty data structure @param dev Major and minor numbers of device @param label Policy label for tp Inform MAC policies that a pty master has been closed. */ typedef void mpo_pty_notify_close_t( proc_t p, struct tty *tp, dev_t dev, struct label *label ); /** @brief Access control check for kext loading @param cred Subject credential @param identifier Kext identifier Determine whether the subject identified by the credential can load the specified kext. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_kext_check_load_t( kauth_cred_t cred, const char *identifier ); /** @brief Access control check for kext unloading @param cred Subject credential @param identifier Kext identifier Determine whether the subject identified by the credential can unload the specified kext. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_kext_check_unload_t( kauth_cred_t cred, const char *identifier ); /** @brief Access control check for querying information about loaded kexts @param cred Subject credential Determine whether the subject identified by the credential can query information about loaded kexts. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_kext_check_query_t( kauth_cred_t cred ); /** @brief Access control check for getting NVRAM variables. @param cred Subject credential @param name NVRAM variable to get Determine whether the subject identifier by the credential can get the value of the named NVRAM variable. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_iokit_check_nvram_get_t( kauth_cred_t cred, const char *name ); /** @brief Access control check for setting NVRAM variables. @param cred Subject credential @param name NVRAM variable to set @param value The new value for the NVRAM variable Determine whether the subject identifier by the credential can set the value of the named NVRAM variable. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_iokit_check_nvram_set_t( kauth_cred_t cred, const char *name, io_object_t value ); /** @brief Access control check for deleting NVRAM variables. @param cred Subject credential @param name NVRAM variable to delete Determine whether the subject identifier by the credential can delete the named NVRAM variable. @return Return 0 if access is granted, otherwise an appropriate value for errno should be returned. Suggested failure: EPERM for lack of privilege. */ typedef int mpo_iokit_check_nvram_delete_t( kauth_cred_t cred, const char *name ); /* * Placeholder for future events that may need mac hooks. */ typedef void mpo_reserved_hook_t(void); /* * Policy module operations. * * Please note that this should be kept in sync with the check assumptions * policy in bsd/kern/policy_check.c (policy_ops struct). */ #define MAC_POLICY_OPS_VERSION 47 /* inc when new reserved slots are taken */ struct mac_policy_ops { mpo_audit_check_postselect_t *mpo_audit_check_postselect; mpo_audit_check_preselect_t *mpo_audit_check_preselect; mpo_bpfdesc_label_associate_t *mpo_bpfdesc_label_associate; mpo_bpfdesc_label_destroy_t *mpo_bpfdesc_label_destroy; mpo_bpfdesc_label_init_t *mpo_bpfdesc_label_init; mpo_bpfdesc_check_receive_t *mpo_bpfdesc_check_receive; mpo_cred_check_label_update_execve_t *mpo_cred_check_label_update_execve; mpo_cred_check_label_update_t *mpo_cred_check_label_update; mpo_cred_check_visible_t *mpo_cred_check_visible; mpo_cred_label_associate_fork_t *mpo_cred_label_associate_fork; mpo_cred_label_associate_kernel_t *mpo_cred_label_associate_kernel; mpo_cred_label_associate_t *mpo_cred_label_associate; mpo_cred_label_associate_user_t *mpo_cred_label_associate_user; mpo_cred_label_destroy_t *mpo_cred_label_destroy; mpo_cred_label_externalize_audit_t *mpo_cred_label_externalize_audit; mpo_cred_label_externalize_t *mpo_cred_label_externalize; mpo_cred_label_init_t *mpo_cred_label_init; mpo_cred_label_internalize_t *mpo_cred_label_internalize; mpo_cred_label_update_execve_t *mpo_cred_label_update_execve; mpo_cred_label_update_t *mpo_cred_label_update; mpo_devfs_label_associate_device_t *mpo_devfs_label_associate_device; mpo_devfs_label_associate_directory_t *mpo_devfs_label_associate_directory; mpo_devfs_label_copy_t *mpo_devfs_label_copy; mpo_devfs_label_destroy_t *mpo_devfs_label_destroy; mpo_devfs_label_init_t *mpo_devfs_label_init; mpo_devfs_label_update_t *mpo_devfs_label_update; mpo_file_check_change_offset_t *mpo_file_check_change_offset; mpo_file_check_create_t *mpo_file_check_create; mpo_file_check_dup_t *mpo_file_check_dup; mpo_file_check_fcntl_t *mpo_file_check_fcntl; mpo_file_check_get_offset_t *mpo_file_check_get_offset; mpo_file_check_get_t *mpo_file_check_get; mpo_file_check_inherit_t *mpo_file_check_inherit; mpo_file_check_ioctl_t *mpo_file_check_ioctl; mpo_file_check_lock_t *mpo_file_check_lock; mpo_file_check_mmap_downgrade_t *mpo_file_check_mmap_downgrade; mpo_file_check_mmap_t *mpo_file_check_mmap; mpo_file_check_receive_t *mpo_file_check_receive; mpo_file_check_set_t *mpo_file_check_set; mpo_file_label_init_t *mpo_file_label_init; mpo_file_label_destroy_t *mpo_file_label_destroy; mpo_file_label_associate_t *mpo_file_label_associate; mpo_ifnet_check_label_update_t *mpo_ifnet_check_label_update; mpo_ifnet_check_transmit_t *mpo_ifnet_check_transmit; mpo_ifnet_label_associate_t *mpo_ifnet_label_associate; mpo_ifnet_label_copy_t *mpo_ifnet_label_copy; mpo_ifnet_label_destroy_t *mpo_ifnet_label_destroy; mpo_ifnet_label_externalize_t *mpo_ifnet_label_externalize; mpo_ifnet_label_init_t *mpo_ifnet_label_init; mpo_ifnet_label_internalize_t *mpo_ifnet_label_internalize; mpo_ifnet_label_update_t *mpo_ifnet_label_update; mpo_ifnet_label_recycle_t *mpo_ifnet_label_recycle; mpo_inpcb_check_deliver_t *mpo_inpcb_check_deliver; mpo_inpcb_label_associate_t *mpo_inpcb_label_associate; mpo_inpcb_label_destroy_t *mpo_inpcb_label_destroy; mpo_inpcb_label_init_t *mpo_inpcb_label_init; mpo_inpcb_label_recycle_t *mpo_inpcb_label_recycle; mpo_inpcb_label_update_t *mpo_inpcb_label_update; mpo_iokit_check_device_t *mpo_iokit_check_device; mpo_ipq_label_associate_t *mpo_ipq_label_associate; mpo_ipq_label_compare_t *mpo_ipq_label_compare; mpo_ipq_label_destroy_t *mpo_ipq_label_destroy; mpo_ipq_label_init_t *mpo_ipq_label_init; mpo_ipq_label_update_t *mpo_ipq_label_update; mpo_file_check_library_validation_t *mpo_file_check_library_validation; mpo_vnode_notify_setacl_t *mpo_vnode_notify_setacl; mpo_vnode_notify_setattrlist_t *mpo_vnode_notify_setattrlist; mpo_vnode_notify_setextattr_t *mpo_vnode_notify_setextattr; mpo_vnode_notify_setflags_t *mpo_vnode_notify_setflags; mpo_vnode_notify_setmode_t *mpo_vnode_notify_setmode; mpo_vnode_notify_setowner_t *mpo_vnode_notify_setowner; mpo_vnode_notify_setutimes_t *mpo_vnode_notify_setutimes; mpo_vnode_notify_truncate_t *mpo_vnode_notify_truncate; mpo_mbuf_label_associate_bpfdesc_t *mpo_mbuf_label_associate_bpfdesc; mpo_mbuf_label_associate_ifnet_t *mpo_mbuf_label_associate_ifnet; mpo_mbuf_label_associate_inpcb_t *mpo_mbuf_label_associate_inpcb; mpo_mbuf_label_associate_ipq_t *mpo_mbuf_label_associate_ipq; mpo_mbuf_label_associate_linklayer_t *mpo_mbuf_label_associate_linklayer; mpo_mbuf_label_associate_multicast_encap_t *mpo_mbuf_label_associate_multicast_encap; mpo_mbuf_label_associate_netlayer_t *mpo_mbuf_label_associate_netlayer; mpo_mbuf_label_associate_socket_t *mpo_mbuf_label_associate_socket; mpo_mbuf_label_copy_t *mpo_mbuf_label_copy; mpo_mbuf_label_destroy_t *mpo_mbuf_label_destroy; mpo_mbuf_label_init_t *mpo_mbuf_label_init; mpo_mount_check_fsctl_t *mpo_mount_check_fsctl; mpo_mount_check_getattr_t *mpo_mount_check_getattr; mpo_mount_check_label_update_t *mpo_mount_check_label_update; mpo_mount_check_mount_t *mpo_mount_check_mount; mpo_mount_check_remount_t *mpo_mount_check_remount; mpo_mount_check_setattr_t *mpo_mount_check_setattr; mpo_mount_check_stat_t *mpo_mount_check_stat; mpo_mount_check_umount_t *mpo_mount_check_umount; mpo_mount_label_associate_t *mpo_mount_label_associate; mpo_mount_label_destroy_t *mpo_mount_label_destroy; mpo_mount_label_externalize_t *mpo_mount_label_externalize; mpo_mount_label_init_t *mpo_mount_label_init; mpo_mount_label_internalize_t *mpo_mount_label_internalize; mpo_netinet_fragment_t *mpo_netinet_fragment; mpo_netinet_icmp_reply_t *mpo_netinet_icmp_reply; mpo_netinet_tcp_reply_t *mpo_netinet_tcp_reply; mpo_pipe_check_ioctl_t *mpo_pipe_check_ioctl; mpo_pipe_check_kqfilter_t *mpo_pipe_check_kqfilter; mpo_pipe_check_label_update_t *mpo_pipe_check_label_update; mpo_pipe_check_read_t *mpo_pipe_check_read; mpo_pipe_check_select_t *mpo_pipe_check_select; mpo_pipe_check_stat_t *mpo_pipe_check_stat; mpo_pipe_check_write_t *mpo_pipe_check_write; mpo_pipe_label_associate_t *mpo_pipe_label_associate; mpo_pipe_label_copy_t *mpo_pipe_label_copy; mpo_pipe_label_destroy_t *mpo_pipe_label_destroy; mpo_pipe_label_externalize_t *mpo_pipe_label_externalize; mpo_pipe_label_init_t *mpo_pipe_label_init; mpo_pipe_label_internalize_t *mpo_pipe_label_internalize; mpo_pipe_label_update_t *mpo_pipe_label_update; mpo_policy_destroy_t *mpo_policy_destroy; mpo_policy_init_t *mpo_policy_init; mpo_policy_initbsd_t *mpo_policy_initbsd; mpo_policy_syscall_t *mpo_policy_syscall; mpo_system_check_sysctlbyname_t *mpo_system_check_sysctlbyname; mpo_proc_check_inherit_ipc_ports_t *mpo_proc_check_inherit_ipc_ports; mpo_vnode_check_rename_t *mpo_vnode_check_rename; mpo_kext_check_query_t *mpo_kext_check_query; mpo_iokit_check_nvram_get_t *mpo_iokit_check_nvram_get; mpo_iokit_check_nvram_set_t *mpo_iokit_check_nvram_set; mpo_iokit_check_nvram_delete_t *mpo_iokit_check_nvram_delete; mpo_proc_check_expose_task_t *mpo_proc_check_expose_task; mpo_proc_check_set_host_special_port_t *mpo_proc_check_set_host_special_port; mpo_proc_check_set_host_exception_port_t *mpo_proc_check_set_host_exception_port; mpo_exc_action_check_exception_send_t *mpo_exc_action_check_exception_send; mpo_exc_action_label_associate_t *mpo_exc_action_label_associate; mpo_exc_action_label_copy_t *mpo_exc_action_label_copy; mpo_exc_action_label_destroy_t *mpo_exc_action_label_destroy; mpo_exc_action_label_init_t *mpo_exc_action_label_init; mpo_exc_action_label_update_t *mpo_exc_action_label_update; mpo_reserved_hook_t *mpo_reserved1; mpo_reserved_hook_t *mpo_reserved2; mpo_reserved_hook_t *mpo_reserved3; mpo_reserved_hook_t *mpo_reserved4; mpo_reserved_hook_t *mpo_reserved5; mpo_reserved_hook_t *mpo_reserved6; mpo_posixsem_check_create_t *mpo_posixsem_check_create; mpo_posixsem_check_open_t *mpo_posixsem_check_open; mpo_posixsem_check_post_t *mpo_posixsem_check_post; mpo_posixsem_check_unlink_t *mpo_posixsem_check_unlink; mpo_posixsem_check_wait_t *mpo_posixsem_check_wait; mpo_posixsem_label_associate_t *mpo_posixsem_label_associate; mpo_posixsem_label_destroy_t *mpo_posixsem_label_destroy; mpo_posixsem_label_init_t *mpo_posixsem_label_init; mpo_posixshm_check_create_t *mpo_posixshm_check_create; mpo_posixshm_check_mmap_t *mpo_posixshm_check_mmap; mpo_posixshm_check_open_t *mpo_posixshm_check_open; mpo_posixshm_check_stat_t *mpo_posixshm_check_stat; mpo_posixshm_check_truncate_t *mpo_posixshm_check_truncate; mpo_posixshm_check_unlink_t *mpo_posixshm_check_unlink; mpo_posixshm_label_associate_t *mpo_posixshm_label_associate; mpo_posixshm_label_destroy_t *mpo_posixshm_label_destroy; mpo_posixshm_label_init_t *mpo_posixshm_label_init; mpo_proc_check_debug_t *mpo_proc_check_debug; mpo_proc_check_fork_t *mpo_proc_check_fork; mpo_proc_check_get_task_name_t *mpo_proc_check_get_task_name; mpo_proc_check_get_task_t *mpo_proc_check_get_task; mpo_proc_check_getaudit_t *mpo_proc_check_getaudit; mpo_proc_check_getauid_t *mpo_proc_check_getauid; mpo_proc_check_getlcid_t *mpo_proc_check_getlcid; mpo_proc_check_mprotect_t *mpo_proc_check_mprotect; mpo_proc_check_sched_t *mpo_proc_check_sched; mpo_proc_check_setaudit_t *mpo_proc_check_setaudit; mpo_proc_check_setauid_t *mpo_proc_check_setauid; mpo_proc_check_setlcid_t *mpo_proc_check_setlcid; mpo_proc_check_signal_t *mpo_proc_check_signal; mpo_proc_check_wait_t *mpo_proc_check_wait; mpo_proc_label_destroy_t *mpo_proc_label_destroy; mpo_proc_label_init_t *mpo_proc_label_init; mpo_socket_check_accept_t *mpo_socket_check_accept; mpo_socket_check_accepted_t *mpo_socket_check_accepted; mpo_socket_check_bind_t *mpo_socket_check_bind; mpo_socket_check_connect_t *mpo_socket_check_connect; mpo_socket_check_create_t *mpo_socket_check_create; mpo_socket_check_deliver_t *mpo_socket_check_deliver; mpo_socket_check_kqfilter_t *mpo_socket_check_kqfilter; mpo_socket_check_label_update_t *mpo_socket_check_label_update; mpo_socket_check_listen_t *mpo_socket_check_listen; mpo_socket_check_receive_t *mpo_socket_check_receive; mpo_socket_check_received_t *mpo_socket_check_received; mpo_socket_check_select_t *mpo_socket_check_select; mpo_socket_check_send_t *mpo_socket_check_send; mpo_socket_check_stat_t *mpo_socket_check_stat; mpo_socket_check_setsockopt_t *mpo_socket_check_setsockopt; mpo_socket_check_getsockopt_t *mpo_socket_check_getsockopt; mpo_socket_label_associate_accept_t *mpo_socket_label_associate_accept; mpo_socket_label_associate_t *mpo_socket_label_associate; mpo_socket_label_copy_t *mpo_socket_label_copy; mpo_socket_label_destroy_t *mpo_socket_label_destroy; mpo_socket_label_externalize_t *mpo_socket_label_externalize; mpo_socket_label_init_t *mpo_socket_label_init; mpo_socket_label_internalize_t *mpo_socket_label_internalize; mpo_socket_label_update_t *mpo_socket_label_update; mpo_socketpeer_label_associate_mbuf_t *mpo_socketpeer_label_associate_mbuf; mpo_socketpeer_label_associate_socket_t *mpo_socketpeer_label_associate_socket; mpo_socketpeer_label_destroy_t *mpo_socketpeer_label_destroy; mpo_socketpeer_label_externalize_t *mpo_socketpeer_label_externalize; mpo_socketpeer_label_init_t *mpo_socketpeer_label_init; mpo_system_check_acct_t *mpo_system_check_acct; mpo_system_check_audit_t *mpo_system_check_audit; mpo_system_check_auditctl_t *mpo_system_check_auditctl; mpo_system_check_auditon_t *mpo_system_check_auditon; mpo_system_check_host_priv_t *mpo_system_check_host_priv; mpo_system_check_nfsd_t *mpo_system_check_nfsd; mpo_system_check_reboot_t *mpo_system_check_reboot; mpo_system_check_settime_t *mpo_system_check_settime; mpo_system_check_swapoff_t *mpo_system_check_swapoff; mpo_system_check_swapon_t *mpo_system_check_swapon; mpo_reserved_hook_t *mpo_reserved7; mpo_sysvmsg_label_associate_t *mpo_sysvmsg_label_associate; mpo_sysvmsg_label_destroy_t *mpo_sysvmsg_label_destroy; mpo_sysvmsg_label_init_t *mpo_sysvmsg_label_init; mpo_sysvmsg_label_recycle_t *mpo_sysvmsg_label_recycle; mpo_sysvmsq_check_enqueue_t *mpo_sysvmsq_check_enqueue; mpo_sysvmsq_check_msgrcv_t *mpo_sysvmsq_check_msgrcv; mpo_sysvmsq_check_msgrmid_t *mpo_sysvmsq_check_msgrmid; mpo_sysvmsq_check_msqctl_t *mpo_sysvmsq_check_msqctl; mpo_sysvmsq_check_msqget_t *mpo_sysvmsq_check_msqget; mpo_sysvmsq_check_msqrcv_t *mpo_sysvmsq_check_msqrcv; mpo_sysvmsq_check_msqsnd_t *mpo_sysvmsq_check_msqsnd; mpo_sysvmsq_label_associate_t *mpo_sysvmsq_label_associate; mpo_sysvmsq_label_destroy_t *mpo_sysvmsq_label_destroy; mpo_sysvmsq_label_init_t *mpo_sysvmsq_label_init; mpo_sysvmsq_label_recycle_t *mpo_sysvmsq_label_recycle; mpo_sysvsem_check_semctl_t *mpo_sysvsem_check_semctl; mpo_sysvsem_check_semget_t *mpo_sysvsem_check_semget; mpo_sysvsem_check_semop_t *mpo_sysvsem_check_semop; mpo_sysvsem_label_associate_t *mpo_sysvsem_label_associate; mpo_sysvsem_label_destroy_t *mpo_sysvsem_label_destroy; mpo_sysvsem_label_init_t *mpo_sysvsem_label_init; mpo_sysvsem_label_recycle_t *mpo_sysvsem_label_recycle; mpo_sysvshm_check_shmat_t *mpo_sysvshm_check_shmat; mpo_sysvshm_check_shmctl_t *mpo_sysvshm_check_shmctl; mpo_sysvshm_check_shmdt_t *mpo_sysvshm_check_shmdt; mpo_sysvshm_check_shmget_t *mpo_sysvshm_check_shmget; mpo_sysvshm_label_associate_t *mpo_sysvshm_label_associate; mpo_sysvshm_label_destroy_t *mpo_sysvshm_label_destroy; mpo_sysvshm_label_init_t *mpo_sysvshm_label_init; mpo_sysvshm_label_recycle_t *mpo_sysvshm_label_recycle; mpo_reserved_hook_t *mpo_reserved8; mpo_mount_check_snapshot_revert_t *mpo_mount_check_snapshot_revert; mpo_vnode_check_getattr_t *mpo_vnode_check_getattr; mpo_mount_check_snapshot_create_t *mpo_mount_check_snapshot_create; mpo_mount_check_snapshot_delete_t *mpo_mount_check_snapshot_delete; mpo_vnode_check_clone_t *mpo_vnode_check_clone; mpo_proc_check_get_cs_info_t *mpo_proc_check_get_cs_info; mpo_proc_check_set_cs_info_t *mpo_proc_check_set_cs_info; mpo_iokit_check_hid_control_t *mpo_iokit_check_hid_control; mpo_vnode_check_access_t *mpo_vnode_check_access; mpo_vnode_check_chdir_t *mpo_vnode_check_chdir; mpo_vnode_check_chroot_t *mpo_vnode_check_chroot; mpo_vnode_check_create_t *mpo_vnode_check_create; mpo_vnode_check_deleteextattr_t *mpo_vnode_check_deleteextattr; mpo_vnode_check_exchangedata_t *mpo_vnode_check_exchangedata; mpo_vnode_check_exec_t *mpo_vnode_check_exec; mpo_vnode_check_getattrlist_t *mpo_vnode_check_getattrlist; mpo_vnode_check_getextattr_t *mpo_vnode_check_getextattr; mpo_vnode_check_ioctl_t *mpo_vnode_check_ioctl; mpo_vnode_check_kqfilter_t *mpo_vnode_check_kqfilter; mpo_vnode_check_label_update_t *mpo_vnode_check_label_update; mpo_vnode_check_link_t *mpo_vnode_check_link; mpo_vnode_check_listextattr_t *mpo_vnode_check_listextattr; mpo_vnode_check_lookup_t *mpo_vnode_check_lookup; mpo_vnode_check_open_t *mpo_vnode_check_open; mpo_vnode_check_read_t *mpo_vnode_check_read; mpo_vnode_check_readdir_t *mpo_vnode_check_readdir; mpo_vnode_check_readlink_t *mpo_vnode_check_readlink; mpo_vnode_check_rename_from_t *mpo_vnode_check_rename_from; mpo_vnode_check_rename_to_t *mpo_vnode_check_rename_to; mpo_vnode_check_revoke_t *mpo_vnode_check_revoke; mpo_vnode_check_select_t *mpo_vnode_check_select; mpo_vnode_check_setattrlist_t *mpo_vnode_check_setattrlist; mpo_vnode_check_setextattr_t *mpo_vnode_check_setextattr; mpo_vnode_check_setflags_t *mpo_vnode_check_setflags; mpo_vnode_check_setmode_t *mpo_vnode_check_setmode; mpo_vnode_check_setowner_t *mpo_vnode_check_setowner; mpo_vnode_check_setutimes_t *mpo_vnode_check_setutimes; mpo_vnode_check_stat_t *mpo_vnode_check_stat; mpo_vnode_check_truncate_t *mpo_vnode_check_truncate; mpo_vnode_check_unlink_t *mpo_vnode_check_unlink; mpo_vnode_check_write_t *mpo_vnode_check_write; mpo_vnode_label_associate_devfs_t *mpo_vnode_label_associate_devfs; mpo_vnode_label_associate_extattr_t *mpo_vnode_label_associate_extattr; mpo_vnode_label_associate_file_t *mpo_vnode_label_associate_file; mpo_vnode_label_associate_pipe_t *mpo_vnode_label_associate_pipe; mpo_vnode_label_associate_posixsem_t *mpo_vnode_label_associate_posixsem; mpo_vnode_label_associate_posixshm_t *mpo_vnode_label_associate_posixshm; mpo_vnode_label_associate_singlelabel_t *mpo_vnode_label_associate_singlelabel; mpo_vnode_label_associate_socket_t *mpo_vnode_label_associate_socket; mpo_vnode_label_copy_t *mpo_vnode_label_copy; mpo_vnode_label_destroy_t *mpo_vnode_label_destroy; mpo_vnode_label_externalize_audit_t *mpo_vnode_label_externalize_audit; mpo_vnode_label_externalize_t *mpo_vnode_label_externalize; mpo_vnode_label_init_t *mpo_vnode_label_init; mpo_vnode_label_internalize_t *mpo_vnode_label_internalize; mpo_vnode_label_recycle_t *mpo_vnode_label_recycle; mpo_vnode_label_store_t *mpo_vnode_label_store; mpo_vnode_label_update_extattr_t *mpo_vnode_label_update_extattr; mpo_vnode_label_update_t *mpo_vnode_label_update; mpo_vnode_notify_create_t *mpo_vnode_notify_create; mpo_vnode_check_signature_t *mpo_vnode_check_signature; mpo_vnode_check_uipc_bind_t *mpo_vnode_check_uipc_bind; mpo_vnode_check_uipc_connect_t *mpo_vnode_check_uipc_connect; mpo_proc_check_run_cs_invalid_t *mpo_proc_check_run_cs_invalid; mpo_proc_check_suspend_resume_t *mpo_proc_check_suspend_resume; mpo_thread_userret_t *mpo_thread_userret; mpo_iokit_check_set_properties_t *mpo_iokit_check_set_properties; mpo_system_check_chud_t *mpo_system_check_chud; mpo_vnode_check_searchfs_t *mpo_vnode_check_searchfs; mpo_priv_check_t *mpo_priv_check; mpo_priv_grant_t *mpo_priv_grant; mpo_proc_check_map_anon_t *mpo_proc_check_map_anon; mpo_vnode_check_fsgetpath_t *mpo_vnode_check_fsgetpath; mpo_iokit_check_open_t *mpo_iokit_check_open; mpo_proc_check_ledger_t *mpo_proc_check_ledger; mpo_vnode_notify_rename_t *mpo_vnode_notify_rename; mpo_vnode_check_setacl_t *mpo_vnode_check_setacl; mpo_vnode_notify_deleteextattr_t *mpo_vnode_notify_deleteextattr; mpo_system_check_kas_info_t *mpo_system_check_kas_info; mpo_proc_check_cpumon_t *mpo_proc_check_cpumon; mpo_vnode_notify_open_t *mpo_vnode_notify_open; mpo_system_check_info_t *mpo_system_check_info; mpo_pty_notify_grant_t *mpo_pty_notify_grant; mpo_pty_notify_close_t *mpo_pty_notify_close; mpo_vnode_find_sigs_t *mpo_vnode_find_sigs; mpo_kext_check_load_t *mpo_kext_check_load; mpo_kext_check_unload_t *mpo_kext_check_unload; mpo_proc_check_proc_info_t *mpo_proc_check_proc_info; mpo_vnode_notify_link_t *mpo_vnode_notify_link; mpo_iokit_check_filter_properties_t *mpo_iokit_check_filter_properties; mpo_iokit_check_get_property_t *mpo_iokit_check_get_property; }; /** @brief MAC policy handle type The MAC handle is used to uniquely identify a loaded policy within the MAC Framework. A variable of this type is set by mac_policy_register(). */ typedef unsigned int mac_policy_handle_t; #define mpc_t struct mac_policy_conf * /** @brief Mac policy configuration This structure specifies the configuration information for a MAC policy module. A policy module developer must supply a short unique policy name, a more descriptive full name, a list of label namespaces and count, a pointer to the registered enty point operations, any load time flags, and optionally, a pointer to a label slot identifier. The Framework will update the runtime flags (mpc_runtime_flags) to indicate that the module has been registered. If the label slot identifier (mpc_field_off) is NULL, the Framework will not provide label storage for the policy. Otherwise, the Framework will store the label location (slot) in this field. The mpc_list field is used by the Framework and should not be modified by policies. */ /* XXX - reorder these for better aligment on 64bit platforms */ struct mac_policy_conf { const char *mpc_name; /** policy name */ const char *mpc_fullname; /** full name */ char const * const *mpc_labelnames; /** managed label namespaces */ unsigned int mpc_labelname_count; /** number of managed label namespaces */ struct mac_policy_ops *mpc_ops; /** operation vector */ int mpc_loadtime_flags; /** load time flags */ int *mpc_field_off; /** label slot */ int mpc_runtime_flags; /** run time flags */ mpc_t mpc_list; /** List reference */ void *mpc_data; /** module data */ }; /** @brief MAC policy module registration routine This function is called to register a policy with the MAC framework. A policy module will typically call this from the Darwin KEXT registration routine. */ int mac_policy_register(struct mac_policy_conf *mpc, mac_policy_handle_t *handlep, void *xd); /** @brief MAC policy module de-registration routine This function is called to de-register a policy with theD MAC framework. A policy module will typically call this from the Darwin KEXT de-registration routine. */ int mac_policy_unregister(mac_policy_handle_t handle); /* * Framework entry points for the policies to add audit data. */ int mac_audit_text(char *text, mac_policy_handle_t handle); /* * Calls to assist with use of Apple XATTRs within policy modules. */ int mac_vnop_setxattr(struct vnode *, const char *, char *, size_t); int mac_vnop_getxattr(struct vnode *, const char *, char *, size_t, size_t *); int mac_vnop_removexattr(struct vnode *, const char *); /** @brief Set an extended attribute on a vnode-based fileglob. @param fg fileglob representing file to attach the extended attribute @param name extended attribute name @param buf buffer of data to use as the extended attribute value @param len size of buffer Sets the value of an extended attribute on a file. Caller must hold an iocount on the vnode represented by the fileglob. */ int mac_file_setxattr(struct fileglob *fg, const char *name, char *buf, size_t len); /** @brief Get an extended attribute from a vnode-based fileglob. @param fg fileglob representing file to read the extended attribute @param name extended attribute name @param buf buffer of data to hold the extended attribute value @param len size of buffer @param attrlen size of full extended attribute value Gets the value of an extended attribute on a file. Caller must hold an iocount on the vnode represented by the fileglob. */ int mac_file_getxattr(struct fileglob *fg, const char *name, char *buf, size_t len, size_t *attrlen); /** @brief Remove an extended attribute from a vnode-based fileglob. @param fg fileglob representing file to remove the extended attribute @param name extended attribute name Removes the named extended attribute from the file. Caller must hold an iocount on the vnode represented by the fileglob. */ int mac_file_removexattr(struct fileglob *fg, const char *name); /* * Arbitrary limit on how much data will be logged by the audit * entry points above. */ #define MAC_AUDIT_DATA_LIMIT 1024 /* * Values returned by mac_audit_{pre,post}select. To combine the responses * of the security policies into a single decision, * mac_audit_{pre,post}select() choose the greatest value returned. */ #define MAC_AUDIT_DEFAULT 0 /* use system behavior */ #define MAC_AUDIT_NO 1 /* force not auditing this event */ #define MAC_AUDIT_YES 2 /* force auditing this event */ // \defgroup mpc_loadtime_flags Flags for the mpc_loadtime_flags field /** @name Flags for the mpc_loadtime_flags field @see mac_policy_conf This is the complete list of flags that are supported by the mpc_loadtime_flags field of the mac_policy_conf structure. These flags specify the load time behavior of MAC Framework policy modules. */ /*@{*/ /** @brief Flag to indicate registration preference This flag indicates that the policy module must be loaded and initialized early in the boot process. If the flag is specified, attempts to register the module following boot will be rejected. The flag may be used by policies that require pervasive labeling of all system objects, and cannot handle objects that have not been properly initialized by the policy. */ #define MPC_LOADTIME_FLAG_NOTLATE 0x00000001 /** @brief Flag to indicate unload preference This flag indicates that the policy module may be unloaded. If this flag is not set, then the policy framework will reject requests to unload the module. This flag might be used by modules that allocate label state and are unable to free that state at runtime, or for modules that simply do not want to permit unload operations. */ #define MPC_LOADTIME_FLAG_UNLOADOK 0x00000002 /** @brief Unsupported XXX This flag is not yet supported. */ #define MPC_LOADTIME_FLAG_LABELMBUFS 0x00000004 /** @brief Flag to indicate a base policy This flag indicates that the policy module is a base policy. Only one module can declare itself as base, otherwise the boot process will be halted. */ #define MPC_LOADTIME_BASE_POLICY 0x00000008 /*@}*/ /** @brief Policy registration flag @see mac_policy_conf This flag indicates that the policy module has been successfully registered with the TrustedBSD MAC Framework. The Framework will set this flag in the mpc_runtime_flags field of the policy's mac_policy_conf structure after registering the policy. */ #define MPC_RUNTIME_FLAG_REGISTERED 0x00000001 /* * Depends on POLICY_VER */ #ifndef POLICY_VER #define POLICY_VER 1.0 #endif #define MAC_POLICY_SET(handle, mpops, mpname, mpfullname, lnames, lcount, slot, lflags, rflags) \ static struct mac_policy_conf mpname##_mac_policy_conf = { \ .mpc_name = #mpname, \ .mpc_fullname = mpfullname, \ .mpc_labelnames = lnames, \ .mpc_labelname_count = lcount, \ .mpc_ops = mpops, \ .mpc_loadtime_flags = lflags, \ .mpc_field_off = slot, \ .mpc_runtime_flags = rflags \ }; \ \ static kern_return_t \ kmod_start(kmod_info_t *ki, void *xd) \ { \ return mac_policy_register(&mpname##_mac_policy_conf, \ &handle, xd); \ } \ \ static kern_return_t \ kmod_stop(kmod_info_t *ki, void *xd) \ { \ return mac_policy_unregister(handle); \ } \ \ extern kern_return_t _start(kmod_info_t *ki, void *data); \ extern kern_return_t _stop(kmod_info_t *ki, void *data); \ \ KMOD_EXPLICIT_DECL(security.mpname, POLICY_VER, _start, _stop) \ kmod_start_func_t *_realmain = kmod_start; \ kmod_stop_func_t *_antimain = kmod_stop; \ int _kext_apple_cc = __APPLE_CC__ #define LABEL_TO_SLOT(l, s) (l)->l_perpolicy[s] /* * Policy interface to map a struct label pointer to per-policy data. * Typically, policies wrap this in their own accessor macro that casts an * intptr_t to a policy-specific data type. */ intptr_t mac_label_get(struct label *l, int slot); void mac_label_set(struct label *l, int slot, intptr_t v); #define mac_get_mpc(h) (mac_policy_list.entries[h].mpc) /** @name Flags for MAC allocator interfaces These flags are passed to the Darwin kernel allocator routines to indicate whether the allocation is permitted to block or not. Caution should be taken; some operations are not permitted to sleep, and some types of locks cannot be held when sleeping. */ /*@{*/ /** @brief Allocation operations may block If memory is not immediately available, the allocation routine will block (typically sleeping) until memory is available. @warning Inappropriate use of this flag may cause kernel panics. */ #define MAC_WAITOK 0 /** @brief Allocation operations may not block Rather than blocking, the allocator may return an error if memory is not immediately available. This type of allocation will not sleep, preserving locking semantics. */ #define MAC_NOWAIT 1 /*@}*/ #ifdef __cplusplus } #endif #endif /* !_SECURITY_MAC_POLICY_H_ */ ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/wrappers/build.tool ================================================ #!/bin/bash # # build.tool # Lilu # # Copyright © 2018 vit9696. All rights reserved. # cd $(dirname "$0") || exit 1 rm -f *.o *.bin wrappers.inc entry32 entry64 clang -m32 -c entry32.S || exit 1 clang -m64 -c entry64.S || exit 1 clang -m32 entry32.o -o entry32 || exit 1 clang -m64 entry64.o -o entry64 || exit 1 if [ "$(nm entry32.o | grep '00000000 T _main')" == "" ] || [ "$(nm entry64.o | grep '0000000000000000 T _main')" == "" ]; then echo "Invalid main address" exit 1 fi otool -t entry32 | grep -E '^0000' | sed 's#^[0-9a-f]*##' | xxd -r -p > entry32.bin otool -t entry64 | grep -E '^0000' | sed 's#^[0-9a-f]*##' | xxd -r -p > entry64.bin sz32=$(stat -f '%z' entry32.bin) sz64=$(stat -f '%z' entry64.bin) btr32=$(nm entry32.o | grep -E 't booter$' | cut -f1 -d' ') btr64=$(nm entry64.o | grep -E 't booter$' | cut -f1 -d' ') ep32=$(nm entry32.o | grep -E 't entrypoint$' | cut -f1 -d' ') ep64=$(nm entry64.o | grep -E 't entrypoint$' | cut -f1 -d' ') echo '//' > wrappers.inc echo '// wrappers.inc' >> wrappers.inc echo '// Lilu' >> wrappers.inc echo '//' >> wrappers.inc echo '// Copyright © 2018 vit9696. All rights reserved.' >> wrappers.inc echo '//' >> wrappers.inc echo '' >> wrappers.inc echo '// This is an autogenerated file, do not edit!' >> wrappers.inc echo 'static uint8_t entryWrapper32[] = {' >> wrappers.inc cat entry32.bin | xxd -i >> wrappers.inc echo '};' >> wrappers.inc echo 'static uint8_t entryWrapper64[] = {' >> wrappers.inc cat entry64.bin | xxd -i >> wrappers.inc echo '};' >> wrappers.inc echo "static_assert(sizeof(entryWrapper32) == ${sz32}, \"Invalid entryWrapper32 size\");" >> wrappers.inc echo "static_assert(sizeof(entryWrapper64) == ${sz64}, \"Invalid entryWrapper64 size\");" >> wrappers.inc echo "static constexpr size_t EntryWrapper32Booter {0x${btr32}};" >> wrappers.inc echo "static constexpr size_t EntryWrapper64Booter {0x${btr64}};" >> wrappers.inc echo "static constexpr size_t EntryWrapper32Entry {0x${ep32}};" >> wrappers.inc echo "static constexpr size_t EntryWrapper64Entry {0x${ep64}};" >> wrappers.inc rm -f *.o *.bin entry32 entry64 ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/wrappers/entry32.S ================================================ # # entry32.S # Lilu # # Copyright © 2018 vit9696. All rights reserved. # .text .global _main _main: push %ebp mov %esp, %ebp # ensure 16-byte alignment and $0xfffffff0, %esp # int main(int argc, const char* argv[], const char* envp[], const char* apple[]); push 20(%ebp) push 16(%ebp) push 12(%ebp) push 8(%ebp) call get_booter # entrypoint-compatible wrapper booter: .word 0xFFFF .word 0xFFFF get_booter: pop %edx mov (%edx), %edx call *%edx xor %eax, %eax mov %ebp, %esp pop %ebp call get_entrypoint # original entrypoint (main) entrypoint: .word 0xFFFF .word 0xFFFF get_entrypoint: pop %edx mov (%edx), %edx jmp *%edx _end: ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/wrappers/entry64.S ================================================ # # entry64.S # Lilu # # Copyright © 2018 vit9696. All rights reserved. # .text .global _main _main: push %rbp mov %rsp, %rbp # ensure 16-byte alignment and $0xfffffffffffffff0, %rsp # int main(int argc, const char* argv[], const char* envp[], const char* apple[]); push %rdi push %rsi push %rdx push %rcx call *booter(%rip) xor %eax, %eax pop %rcx pop %rdx pop %rsi pop %rdi mov %rbp, %rsp pop %rbp jmp *entrypoint(%rip) # original entrypoint (main) entrypoint: .word 0xFFFF .word 0xFFFF .word 0xFFFF .word 0xFFFF # entrypoint-compatible wrapper booter: .word 0xFFFF .word 0xFFFF .word 0xFFFF .word 0xFFFF _end: ================================================ FILE: EFI/CLOVER/kexts/Other/Lilu_v1.3.7.kext/Contents/Resources/Library/wrappers/wrappers.inc ================================================ // // wrappers.inc // Lilu // // Copyright © 2018 vit9696. All rights reserved. // // This is an autogenerated file, do not edit! static uint8_t entryWrapper32[] = { 0x55, 0x89, 0xe5, 0x83, 0xe4, 0xf0, 0xff, 0x75, 0x14, 0xff, 0x75, 0x10, 0xff, 0x75, 0x0c, 0xff, 0x75, 0x08, 0xe8, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x8b, 0x12, 0xff, 0xd2, 0x31, 0xc0, 0x89, 0xec, 0x5d, 0xe8, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x8b, 0x12, 0xff, 0xe2 }; static uint8_t entryWrapper64[] = { 0x55, 0x48, 0x89, 0xe5, 0x48, 0x83, 0xe4, 0xf0, 0x57, 0x56, 0x52, 0x51, 0xff, 0x15, 0x18, 0x00, 0x00, 0x00, 0x31, 0xc0, 0x59, 0x5a, 0x5e, 0x5f, 0x48, 0x89, 0xec, 0x5d, 0xff, 0x25, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; static_assert(sizeof(entryWrapper32) == 51, "Invalid entryWrapper32 size"); static_assert(sizeof(entryWrapper64) == 50, "Invalid entryWrapper64 size"); static constexpr size_t EntryWrapper32Booter {0x00000017}; static constexpr size_t EntryWrapper64Booter {0x000000000000002a}; static constexpr size_t EntryWrapper32Entry {0x0000002a}; static constexpr size_t EntryWrapper64Entry {0x0000000000000022}; ================================================ FILE: EFI/CLOVER/kexts/Other/RealtekRTL8111.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16D32 CFBundleDevelopmentRegion English CFBundleExecutable RealtekRTL8111 CFBundleIdentifier com.insanelymac.RealtekRTL8111 CFBundleInfoDictionaryVersion 6.0 CFBundleName RealtekRTL8111 CFBundlePackageType KEXT CFBundleShortVersionString 2.2.1 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.2.1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8C1002 DTPlatformVersion GM DTSDKBuild 15E60 DTSDKName macosx10.11 DTXcode 0821 DTXcodeBuild 8C1002 IOKitPersonalities RTL8111 PCIe Adapter CFBundleIdentifier com.insanelymac.RealtekRTL8111 Driver_Version 2.2.1 IOClass RTL8111 IOPCIMatch 0x816810ec 0x81681186 IOProbeScore 1000 IOProviderClass IOPCIDevice Model RTL8111 Vendor Realtek disableASPM enableCSO6 enableEEE enableTSO4 enableTSO6 intrMitigate 24401 rxPolling NSHumanReadableCopyright Copyright © 2013 Laura Müller. All rights reserved. OSBundleLibraries com.apple.iokit.IONetworkingFamily 1.1.0 com.apple.iokit.IOPCIFamily 1.7 com.apple.kpi.bsd 8.10.0 com.apple.kpi.iokit 8.10.0 com.apple.kpi.libkern 8.10.0 com.apple.kpi.mach 8.10.0 OSBundleRequired Network-Root ================================================ FILE: EFI/CLOVER/kexts/Other/SMCBatteryManager.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18F132 CFBundleDevelopmentRegion en CFBundleExecutable SMCBatteryManager CFBundleIdentifier ru.usrsse2.SMCBatteryManager CFBundleInfoDictionaryVersion 6.0 CFBundleName SMCBatteryManager CFBundlePackageType KEXT CFBundleShortVersionString 1.0 CFBundleSupportedPlatforms MacOSX CFBundleVersion 1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities IOSMBusController CFBundleIdentifier ru.usrsse2.SMCBatteryManager IOClass SMCSMBusController IOProviderClass IOResources IOResourceMatch IOKit SMCBatteryManager CFBundleIdentifier ru.usrsse2.SMCBatteryManager IOClass SMCBatteryManager IOMatchCategory SMCBatteryManager IOProviderClass IOResources IOResourceMatch IOKit NSHumanReadableCopyright Copyright © 2018 usrsse2. All rights reserved. OSBundleCompatibleVersion 1.0.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 as.vit9696.VirtualSMC 1.0.0 com.apple.iokit.IOACPIFamily 1.0.0d1 com.apple.iokit.IOSMBusFamily 1.0.0 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/SMCProcessor.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18F132 CFBundleDevelopmentRegion en CFBundleExecutable SMCProcessor CFBundleIdentifier as.vit9696.SMCProcessor CFBundleInfoDictionaryVersion 6.0 CFBundleName SMCProcessor CFBundlePackageType KEXT CFBundleShortVersionString 1.0.5 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.0.5 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities as.vit9696.SMCProcessor CFBundleIdentifier as.vit9696.SMCProcessor IOClass SMCProcessor IOMatchCategory SMCProcessor IONameMatch processor IOPropertyMatch processor-index 0 IOProviderClass IOACPIPlatformDevice IOResourceMatch ACPI NSHumanReadableCopyright Copyright © 2018 vit9696. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 as.vit9696.VirtualSMC 1.0.0 com.apple.iokit.IOACPIFamily 1.0.0d1 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/USBPorts_7560.kext/Contents/Info.plist ================================================ CFBundleDevelopmentRegion English CFBundleGetInfoString 1.0 Copyright © 2018 Headsoft. All rights reserved. CFBundleIdentifier com.Headsoft.USBPorts CFBundleInfoDictionaryVersion 6.0 CFBundleName USBPorts CFBundlePackageType KEXT CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 IOKitPersonalities MacBookPro15,2-XHC CFBundleIdentifier com.apple.driver.AppleUSBHostMergeProperties IOClass AppleUSBHostMergeProperties IONameMatch XHC IOProviderClass AppleUSBXHCIPCI IOProviderMergeProperties port-count DgAAAA== ports HS01 UsbConnector 0 port AQAAAA== HS02 UsbConnector 0 port AgAAAA== HS03 UsbConnector 255 port AwAAAA== HS05 UsbConnector 255 port BQAAAA== HS06 UsbConnector 255 port BgAAAA== HS08 UsbConnector 255 port CAAAAA== SS01 UsbConnector 3 port DQAAAA== SS02 UsbConnector 3 port DgAAAA== model MacBookPro15,2 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/VerbStub.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18B75 CFBundleDevelopmentRegion en CFBundleExecutable VerbStub CFBundleIdentifier com.XPS.VerbStub CFBundleInfoDictionaryVersion 6.0 CFBundleName VerbStub CFBundlePackageType KEXT CFBundleShortVersionString 1.0.3 CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.0.3 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10B61 DTPlatformVersion GM DTSDKBuild 18B71 DTSDKName macosx10.14 DTXcode 1010 DTXcodeBuild 10B61 IOKitPersonalities VerbStub CFBundleIdentifier com.XPS.VerbStub IOClass com_XPS_VerbStub IOMatchCategory com_XPS_VerbStub IOProviderClass IOHDACodecFunction IOUserClientClass VerbStubUserClient VerbStubResidency CFBundleIdentifier com.XPS.VerbStub IOClass VerbStubResidency IOMatchCategory VerbStubResidency IOProviderClass IOResources NSHumanReadableCopyright Copyright © 2017 VerbStub. All rights reserved. OSBundleLibraries com.apple.iokit.IOPCIFamily 2.9 com.apple.kpi.iokit 16.6 com.apple.kpi.libkern 16.6 ================================================ FILE: EFI/CLOVER/kexts/Other/VirtualSMC.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18F132 CFBundleDevelopmentRegion en CFBundleExecutable VirtualSMC CFBundleIdentifier as.vit9696.VirtualSMC CFBundleInfoDictionaryVersion 6.0 CFBundleName VirtualSMC CFBundlePackageType KEXT CFBundleShortVersionString 1.0.5 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.0.5 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities as.vit9696.VirtualSMC CFBundleIdentifier as.vit9696.VirtualSMC IOClass VirtualSMC IODeviceMemory address 768 length 32 address 4277141504 length 65536 IOInterruptControllers io-apic-0 IOInterruptSpecifiers BgAAAAAAAAA= IOMatchCategory IOACPIPlatformDevice IOName SMC IOProbeScore 60000 IOProviderClass AppleACPIPlatformExpert Keystore Generic attr iA== comment Total fan number, this should be put to a plugin name Rk51bQ== type dWk4IA== value AA== attr gA== comment CPU plimit name TVNUYw== type dWk4IA== value AA== attr gA== comment FAN plimit (supposedly) name TVNUZg== type dWk4IA== value AA== attr gA== comment Memory plimit name TVNUbQ== type dWk4IA== value AA== attr gA== comment This should be 1 on laptops, and is overriden by sensors name QkFUUA== type ZmxhZw== value AA== attr gA== comment Only MacPros have custom illumination controllers name THNOTQ== type dWk4IA== value AA== GenericDesktopV1 GenericDesktopV2 GenericLaptopV1 GenericLaptopV2 GenericV1 attr gA== comment GPU plimit name TVNUZw== type dWk4IA== value AA== GenericV2 attr gA== comment E plimit (???) name TVNUZQ== type dWk4IA== value AA== attr gA== comment I plimit (???) name TVNUaQ== type dWk4IA== value AA== attr gA== comment J plimit (???) name TVNUag== type dWk4IA== value AA== ModelInfo GenericV1 branch ajUyAAAAAAA= hwname c21jLXBpa2V0b24A platform ajUyAAAAAAA= rev AXQPAAAE revfb AXQPAAAE revfu AXQPAAAE GenericV2 branch ajUyAAAAAAA= hwname c21jLWh1cm9ucml2ZXIA platform ajUyAAAAAAA= rev AigPAAAH revfb AigPAAAH revfu AigPAAAH GenericV3 hwname c21jLWh1cm9ucml2ZXIA platform ajUyAAAAAAA= _STA 11 name QVBQMDAwMQA= NSHumanReadableCopyright Copyright © 2017 vit9696. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 com.apple.iokit.IOACPIFamily 1.0.0d1 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooI2CHID.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17G2112 CFBundleDevelopmentRegion en CFBundleExecutable VoodooI2CHID CFBundleIdentifier com.alexandred.VoodooI2CHID CFBundleInfoDictionaryVersion 6.0 CFBundleName VoodooI2CHID CFBundlePackageType KEXT CFBundleShortVersionString 1.0 CFBundleSupportedPlatforms MacOSX CFBundleVersion 1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10A255 DTPlatformVersion GM DTSDKBuild 15A278 DTSDKName macosx10.11 DTXcode 1000 DTXcodeBuild 10A255 IOKitPersonalities Intel ACPI Sensor Hub Enabler CFBundleIdentifier com.alexandred.VoodooI2CHID IOClass VoodooI2CSensorHubEnabler IONameMatch INT33D0 IOProviderClass IOACPIPlatformDevice Sensor Hub Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 1 DeviceUsagePage 32 IOClass VoodooI2CSensorHubEventDriver IOProbeScore 100 IOProviderClass IOHIDInterface VoodooI2CHIDDevice CFBundleIdentifier com.alexandred.VoodooI2CHID IOClass VoodooI2CHIDDevice IOProbeScore 100 IOPropertyMatch compatible PNP0C50 IOProviderClass VoodooI2CDeviceNub VoodooI2CHIDDevice Generic Mouse HID Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 2 DeviceUsagePage 1 HIDAccelCurves HIDAccelGainLinear 65536 HIDAccelIndex 0 HIDAccelTangentSpeedLinear 524288 HIDAccelGainCubic 5243 HIDAccelGainLinear 60293 HIDAccelGainParabolic 26214 HIDAccelIndex 8192 HIDAccelTangentSpeedLinear 537395 HIDAccelTangentSpeedParabolicRoot 1245184 HIDAccelGainCubic 6554 HIDAccelGainLinear 60948 HIDAccelGainParabolic 36045 HIDAccelIndex 32768 HIDAccelTangentSpeedLinear 543949 HIDAccelTangentSpeedParabolicRoot 1179648 HIDAccelGainCubic 7864 HIDAccelGainLinear 61604 HIDAccelGainParabolic 46531 HIDAccelIndex 45056 HIDAccelTangentSpeedLinear 550502 HIDAccelTangentSpeedParabolicRoot 1114112 HIDAccelGainCubic 9830 HIDAccelGainLinear 62259 HIDAccelGainParabolic 57672 HIDAccelIndex 57344 HIDAccelTangentSpeedLinear 557056 HIDAccelTangentSpeedParabolicRoot 1048576 HIDAccelGainCubic 11796 HIDAccelGainLinear 62915 HIDAccelGainParabolic 69468 HIDAccelIndex 65536 HIDAccelTangentSpeedLinear 563610 HIDAccelTangentSpeedParabolicRoot 983040 HIDAccelGainCubic 14418 HIDAccelGainLinear 63570 HIDAccelGainParabolic 81920 HIDAccelIndex 98304 HIDAccelTangentSpeedLinear 570163 HIDAccelTangentSpeedParabolicRoot 917504 HIDAccelGainCubic 17695 HIDAccelGainLinear 64225 HIDAccelGainParabolic 95027 HIDAccelIndex 131072 HIDAccelTangentSpeedLinear 576717 HIDAccelTangentSpeedParabolicRoot 851968 HIDAccelGainCubic 21627 HIDAccelGainLinear 64881 HIDAccelGainParabolic 108790 HIDAccelIndex 163840 HIDAccelTangentSpeedLinear 583270 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainCubic 26214 HIDAccelGainLinear 65536 HIDAccelGainParabolic 123208 HIDAccelIndex 196608 HIDAccelTangentSpeedLinear 589824 HIDAccelTangentSpeedParabolicRoot 786432 IOClass IOHIDEventDriver IOProbeScore 100 IOPropertyMatch Transport I2C IOProviderClass IOHIDInterface VoodooI2CHIDDevice Multitouch HID Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 4 DeviceUsagePage 13 DeviceUsage 5 DeviceUsagePage 13 DeviceUsage 2 DeviceUsagePage 13 IOClass VoodooI2CMultitouchHIDEventDriver IOProbeScore 200 IOProviderClass IOHIDInterface VoodooI2CHIDDevice Precision Touchpad HID Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 5 DeviceUsagePage 13 IOClass VoodooI2CPrecisionTouchpadHIDEventDriver IOProbeScore 300 IOPropertyMatch Transport I2C IOProviderClass IOHIDInterface ProcessBluetoothMouseStopsTrackpad ProcessUSBMouseStopsTrackpad QuietTimeAfterTyping 500 RM,deliverNotifications VoodooI2CHIDDevice Stylus HID Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 2 DeviceUsagePage 13 IOClass VoodooI2CStylusHIDEventDriver IOProbeScore 300 IOProviderClass IOHIDInterface VoodooI2CHIDDevice Touchscreen HID Event Driver CFBundleIdentifier com.alexandred.VoodooI2CHID DeviceUsagePairs DeviceUsage 4 DeviceUsagePage 13 IOClass VoodooI2CTouchscreenHIDEventDriver IOProbeScore 400 IOProviderClass IOHIDInterface NSHumanReadableCopyright Copyright © 2017 Alexandre Daoud. All rights reserved. OSBundleLibraries com.alexandred.VoodooI2C 2.0 com.apple.iokit.IOACPIFamily 1.4 com.apple.iokit.IOGraphicsFamily 1.0.0b1 com.apple.iokit.IOHIDFamily 2.0 com.apple.kpi.iokit 14 com.apple.kpi.libkern 14 com.apple.kpi.mach 13.0 OSBundleRequired Safe Boot ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooI2C_v2.1.4.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17G2112 CFBundleDevelopmentRegion en CFBundleExecutable VoodooI2C CFBundleIdentifier com.alexandred.VoodooI2C CFBundleInfoDictionaryVersion 6.0 CFBundleName VoodooI2C CFBundlePackageType KEXT CFBundleShortVersionString 2.1.4 CFBundleSupportedPlatforms MacOSX CFBundleVersion 2.1.4 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10A255 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 1000 DTXcodeBuild 10A255 IOKitPersonalities Custom MT2 Personality ApplePreferenceCapability 2 ApplePreferenceIdentifier com.apple.AppleMultitouchTrackpad ApplePreferencesDefaultPreferences ActuateDetents 0 Clicking 1 DragLock 0 Dragging 0 FirstClickThreshold 1 ForceSuppressed SecondClickThreshold 1 TrackpadCornerSecondaryClick 0 TrackpadFiveFingerPinchGesture 2 TrackpadFourFingerHorizSwipeGesture 2 TrackpadFourFingerPinchGesture 2 TrackpadFourFingerVertSwipeGesture 2 TrackpadHorizScroll 1 TrackpadMomentumScroll TrackpadPinch 1 TrackpadRightClick TrackpadRotate 1 TrackpadScroll TrackpadThreeFingerDrag TrackpadThreeFingerHorizSwipeGesture 2 TrackpadThreeFingerVertSwipeGesture 2 CFBundleIdentifier com.apple.driver.AppleTopCaseHIDEventDriver DefaultMultitouchProperties ActuationSupported ExtractAndPostDeviceButtonState ForceSupported HIDServiceSupport IOCFPlugInTypes 0516B563-B15B-11DA-96EB-0014519758EF AppleMultitouchDriver.kext/Contents/PlugIns/MultitouchHID.plugin MT Built-In MTHIDDevice MTPowerStatsDisable SupportsGestureScrolling TrackpadFourFingerGestures TrackpadMomentumScroll TrackpadSecondaryClickCorners TrackpadThreeFingerDrag parser-options 39 parser-type 1000 DeviceUsagePairs DeviceUsage 2 DeviceUsagePage 1 DoReportIntervalHack HIDAccelCurves HIDAccelGainLinear 65536 HIDAccelIndex 0 HIDAccelTangentSpeedLinear 484966 HIDAccelTangentSpeedParabolicRoot 1376256 HIDAccelGainCubic 5243 HIDAccelGainLinear 64881 HIDAccelGainParabolic 32768 HIDAccelIndex 8192 HIDAccelTangentSpeedLinear 478413 HIDAccelTangentSpeedParabolicRoot 1310720 HIDAccelGainCubic 6554 HIDAccelGainLinear 64225 HIDAccelGainParabolic 43254 HIDAccelIndex 32768 HIDAccelTangentSpeedLinear 471859 HIDAccelTangentSpeedParabolicRoot 1245184 HIDAccelGainCubic 7864 HIDAccelGainLinear 62915 HIDAccelGainParabolic 54395 HIDAccelIndex 45056 HIDAccelTangentSpeedLinear 465306 HIDAccelTangentSpeedParabolicRoot 1179648 HIDAccelGainCubic 9830 HIDAccelGainLinear 61604 HIDAccelGainParabolic 65536 HIDAccelIndex 57344 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 1114112 HIDAccelGainCubic 11796 HIDAccelGainLinear 60293 HIDAccelGainParabolic 75366 HIDAccelIndex 65536 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 1048576 HIDAccelGainCubic 13763 HIDAccelGainLinear 58327 HIDAccelGainParabolic 85197 HIDAccelIndex 98304 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 983040 HIDAccelGainCubic 15729 HIDAccelGainLinear 56361 HIDAccelGainParabolic 95027 HIDAccelIndex 131072 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 917504 HIDAccelGainCubic 18350 HIDAccelGainLinear 54395 HIDAccelGainParabolic 108790 HIDAccelIndex 163840 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 851968 HIDAccelGainCubic 23593 HIDAccelGainLinear 65536 HIDAccelGainParabolic 123208 HIDAccelIndex 196608 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 786432 HIDDisallowRemappingOfPrimaryClick HIDPointerAccelerationTable AACAAFVTQioABwAAAAAAAgAEAAAABAAAABAAAAAQAAAAACAAAA0A AIAAAACAAAABQAAAAYAAAAIAAAAC4AAAAwAAAATgAAAEAAAAB0AA AAUAAAAKAAAABgAAAA1AAAAIAAAAFgAAAArAAAAjAAAADQAAAC8A AAAOwAAAOMAAABBAAABBAAAAEcAAAEjAAAAAUAAADwAAgAAAAIAA AAEAAAABQAAAAYAAAAJAAAACAAAAA4AAAAKAAAAE4AAAAwAAAAZg AAAEAAAACgAAAAUAAAAOQAAABgAAABNAAAAIAAAAHsAAAArAAAAu wAAADQAAADyAAAAOwAAARwAAABBAAABPwAAAEcAAAFiAAAAAgAAA DwAAgAAAAIAAAAEAAAABYAAAAYAAAAKgAAACAAAABEAAAAKAAAAG AAAAAwAAAAgAAAAEAAAADQAAAAUAAAASwAAABgAAABkAAAAIAAAA KAAAAArAAAA7wAAADQAAAEuAAAAOwAAAV0AAABBAAABgQAAAEcAA AGkAAAAAsAAADwAAgAAAAIAAAAEAAAABoAAAAYAAAAMAAAACAAAA BQAAAAKAAAAHQAAAAwAAAAnAAAAEAAAAEEAAAAUAAAAXgAAABgAA AB/AAAAIAAAAMgAAAArAAABKAAAADQAAAFyAAAAOwAAAaQAAABBA AABywAAAEcAAAHrAAAAA4AAADwAAgAAAAKAAAAEAAAABwAAAAYAA AANgAAACAAAABeAAAAKAAAAIoAAAAwAAAAvAAAAEAAAAE8AAAAUA AAAdQAAABgAAACfAAAAIAAAAPcAAAArAAABZAAAADQAAAG3AAAAO wAAAe0AAABBAAACFQAAAEcAAAIxAAAABAAAADwAAgAAAAMAAAAEA AAACAAAAAYAAAAPgAAACAAAABsAAAAKAAAAKQAAAAwAAAA5gAAAE AAAAGMAAAAUAAAAkwAAABgAAADLAAAAIAAAATUAAAArAAABugAAA DQAAAIMAAAAOwAAAj0AAABBAAACXAAAAEcAAAJxA HIDPointerAccelerationType HIDTrackpadAcceleration HIDScrollAccelCurves HIDAccelGainLinear 65536 HIDAccelIndex 0 HIDAccelTangentSpeedLinear 393216 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 62259 HIDAccelGainParabolic 39322 HIDAccelIndex 8192 HIDAccelTangentSpeedLinear 406323 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 58982 HIDAccelGainParabolic 58982 HIDAccelIndex 32768 HIDAccelTangentSpeedLinear 419430 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 55706 HIDAccelGainParabolic 78643 HIDAccelIndex 45056 HIDAccelTangentSpeedLinear 432538 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 52429 HIDAccelGainParabolic 91750 HIDAccelIndex 57344 HIDAccelTangentSpeedLinear 445645 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 49152 HIDAccelGainParabolic 104858 HIDAccelIndex 65536 HIDAccelTangentSpeedLinear 458752 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 45875 HIDAccelGainParabolic 117965 HIDAccelIndex 98304 HIDAccelTangentSpeedLinear 471859 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 42598 HIDAccelGainParabolic 131072 HIDAccelIndex 131072 HIDAccelTangentSpeedLinear 484966 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 39322 HIDAccelGainParabolic 144179 HIDAccelIndex 163840 HIDAccelTangentSpeedLinear 498074 HIDAccelTangentSpeedParabolicRoot 786432 HIDAccelGainLinear 36045 HIDAccelGainParabolic 157286 HIDAccelIndex 196608 HIDAccelTangentSpeedLinear 511181 HIDAccelTangentSpeedParabolicRoot 786432 HIDScrollAccelerationTable AACAAFVTQioABwAAAAAAAQABAAAAAQAAAAAgAAAQAABxOwAATOMA AwAAAAdgAAAEwAAADoAAAAbxSgAX6V4ACVeCACMQWgALZ6EALBF7 AA2N1AA03ToAD36aADvQuAASWKAARl01ABUAAABO2dgAF8AAAFXK 7QAas+UAW2FQAB2QAABe0qoAIL75AGEgywAkLXsAYnXvACewAABj Rl8AAIAAABMAAHE7AABWfwABAAAAAuAAAAIAAAAJYAAAAwAAABIA AAAEwAAAIMAAAAaAAAAwgAAACGp5AEH9tgAK7bUAV4ZuAA0B2ABr PTkADv1/AIEEcAAQy5gAkdRWABJouQCe3VAAE+c/AKikCgAXAucA tn2SABot3ADARE4AHVjQAMX4OgAg35IAytuYACQ4bgDO7mUAJ6CX ANIwowAAsAAAFAAAcTsAAGFOAADAAAABwAAAAQAAAANgAAACAAAA DCAAAAMAAAAW4AAABMAAACnAAAAGQAAAOsAAAAfOggBP7OcACgWA AGo8rgAL658AhMCkAA2RCwCfR+EADzjIALWDbwAQ/k8AxqbEABLN UQDUeCMAFepmAOTKxwAZoVYA8qFmAB1CvwD7fXwAIQuCAQFpdAAk S20BBVKIACegAAEIK4wAAOAAABQAAHE7AABtdwAAwAAAAeAAAAEA AAAD4AAAAgAAAA6AAAADAAAAHEAAAATAAAA0AAAABgAAAEdAAAAH N4wAXL7hAAkAAACAwAAACoAAAKGAAAALz7IAvU7UAA01yQDadikA DvtPAPKF4gARLu4BCSWiABUlDwEfV8QAGT9oASzRKgAdChkBNQrG ACDz5QE6cR4AJEARAT3XdgAnn1YBQMHWAABQAAATAABxOwAAS7AA AQAAAAJgAAACAAAABuAAAAMAAAAMYAAABMAAABcAAAAGwAAAJAAA AAkAAAAyAAAACz1uAEFngAANcE8AUMGhAA+sTQBgSTMAEagdAG5N TAATT9YAd9WQABTQfgB+26MAF3odAIbYXQAagocAjp+lAB2J6QCT vnkAIN/yAJdcWwAkO0IAmYu9ACegOACacdcAAQAAABUAAHE7AABW fwAAwAAAAiAAAAEAAAAEgAAAAYAAAAqAAAACAAAAEaAAAAMAAAAh gAAABMAAAD6AAAAFwAAAVEAAAAbAAABrAAAACAAAAIxAAAAJAAAA qYAAAApAAADKwAAAC8AAAPTAAAANwAABJAAAABAAAAFEn9IAFEAA AV49zAAZAAABbrsYABzQAAFz78AAIOAAAXhvwAAkIAABem/AACeg AAF8JGg= HIDScrollAccelerationType HIDTrackpadScrollAcceleration HIDScrollResolution 26214400 IOCFPlugInTypes 0516B563-B15B-11DA-96EB-0014519758EF AppleMultitouchDriver.kext/Contents/PlugIns/MultitouchHID.plugin IOClass AppleMultitouchTrackpadHIDEventDriver IOProbeScore 9999 IOProviderClass IOHIDInterface MTEventSource ProductIDArray 628 TrackpadEmbedded VendorID 1452 Native Multitouch Engine CFBundleIdentifier com.alexandred.VoodooI2C IOClass VoodooI2CNativeEngine IOMatchCategory VoodooI2CNativeEngine IOProviderClass VoodooI2CMultitouchInterface VoodooI2CACPIController CFBundleIdentifier com.alexandred.VoodooI2C IOClass VoodooI2CACPIController IONameMatch INT33C2 INT33C3 INT3432 INT3433 IOProbeScore 9999 IOProviderClass IOService VoodooI2CControllerDriver CFBundleIdentifier com.alexandred.VoodooI2C IOClass VoodooI2CControllerDriver IOProbeScore 9999 IOProviderClass VoodooI2CControllerNub VoodooI2CPCIController CFBundleIdentifier com.alexandred.VoodooI2C IOClass VoodooI2CPCIController IONameMatch pci8086,9d60 pci8086,9d61 pci8086,a160 pci8086,a161 pci8086,a162 IOProbeScore 9999 IOProviderClass IOService NSHumanReadableCopyright Copyright © 2017 Alexandre Daoud. All rights reserved. OSBundleCompatibleVersion 2.0.0 OSBundleLibraries com.alexandred.VoodooI2CServices 1.0 com.apple.iokit.IOACPIFamily 1.4 com.apple.iokit.IOHIDFamily 2.0 com.apple.iokit.IOPCIFamily 2.9 com.apple.kpi.bsd 8.0 com.apple.kpi.iokit 14 com.apple.kpi.libkern 14 com.apple.kpi.mach 14 org.coolstar.VoodooGPIO 1.1 ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooI2C_v2.1.4.kext/Contents/PlugIns/VoodooGPIO.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17G2112 CFBundleDevelopmentRegion en CFBundleExecutable VoodooGPIO CFBundleIdentifier org.coolstar.VoodooGPIO CFBundleInfoDictionaryVersion 6.0 CFBundleName VoodooGPIO CFBundlePackageType KEXT CFBundleShortVersionString 1.1 CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10A255 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 1000 DTXcodeBuild 10A255 IOKitPersonalities VoodooGPIOSunrisePointH CFBundleIdentifier org.coolstar.VoodooGPIO IOClass VoodooGPIOSunrisePointH IONameMatch INT345D IOProviderClass IOService VoodooGPIOSunrisePointLP CFBundleIdentifier org.coolstar.VoodooGPIO IOClass VoodooGPIOSunrisePointLP IONameMatch INT344B IOProviderClass IOService NSHumanReadableCopyright Copyright © 2017 CoolStar. All rights reserved. OSBundleCompatibleVersion 1.1 OSBundleLibraries com.apple.iokit.IOACPIFamily 1.4 com.apple.kpi.iokit 13.0 com.apple.kpi.libkern 13.0 com.apple.kpi.mach 13.0 ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooI2C_v2.1.4.kext/Contents/PlugIns/VoodooI2CServices.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 17G2112 CFBundleDevelopmentRegion en CFBundleExecutable VoodooI2CServices CFBundleIdentifier com.alexandred.VoodooI2CServices CFBundleInfoDictionaryVersion 6.0 CFBundleName VoodooI2CServices CFBundlePackageType KEXT CFBundleShortVersionString 1.0 CFBundleSupportedPlatforms MacOSX CFBundleVersion 1 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10A255 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 1000 DTXcodeBuild 10A255 IOKitPersonalities VoodooI2CLogger CFBundleIdentifier com.alexandred.VoodooI2CServices IOClass VoodooI2CLogger IOMatchCategory VoodooI2CLogger IOProviderClass VoodooI2CServices VoodooI2CServices CFBundleIdentifier com.alexandred.VoodooI2CServices IOClass VoodooI2CServices IOMatchCategory VoodooI2CServices IOProviderClass IOResources NSHumanReadableCopyright Copyright © 2017 Alexandre Daoud. All rights reserved. OSBundleCompatibleVersion 1.0.0 OSBundleLibraries com.apple.kpi.iokit 14 com.apple.kpi.libkern 14 ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooPS2Controller_v1.8.25.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16D32 CFBundleExecutable VoodooPS2Controller CFBundleGetInfoString 1.8.25, Copyright Apple Computer, Inc. 2000-2003, David Elliot 2007, RehabMan 2012-2013, IcedMan 2017 CFBundleIdentifier org.rehabman.voodoo.driver.PS2Controller CFBundleInfoDictionaryVersion 6.0 CFBundleName Voodoo PS/2 Controller CFBundlePackageType KEXT CFBundleShortVersionString 1.8.25 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.8.25 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8C1002 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 0821 DTXcodeBuild 8C1002 IOKitPersonalities ACPI PS/2 Nub CFBundleIdentifier org.rehabman.voodoo.driver.PS2Controller IOClass AppleACPIPS2Nub IONameMatch PNP0303 PNP030B IOProviderClass IOACPIPlatformDevice MouseNameMatch PNP0F03 PNP0F0B PNP0F0E PNP0F13 ApplePS2Controller CFBundleIdentifier org.rehabman.voodoo.driver.PS2Controller IOClass ApplePS2Controller IONameMatch ps2controller IOProviderClass IOPlatformDevice Platform Profile Default MouseWakeFirst WakeDelay 10 HPQOEM 1411 ProBook 1619 ProBook 161C ProBook 164F ProBook 167C ProBook 167E ProBook 1680 ProBook 179B ProBook 179C ProBook 17A9 ProBook 17F0 ProBook 17F3 ProBook 17F6 ProBook 1942 ProBook 1949 ProBook 198F ProBook ProBook WakeDelay 0 ProBook-102 ProBook ProBook-87 ProBook OSBundleCompatibleVersion 1.8.25 OSBundleLibraries com.apple.iokit.IOACPIFamily 1.0.0d1 com.apple.kpi.bsd 8.0.0 com.apple.kpi.iokit 8.0.0 com.apple.kpi.libkern 8.0.0 com.apple.kpi.mach 8.0.0 com.apple.kpi.unsupported 8.0.0 OSBundleRequired Console Source Code https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooPS2Controller_v1.8.25.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16D32 CFBundleExecutable VoodooPS2Keyboard CFBundleGetInfoString 1.8.25, Copyright Apple Computer, Inc. 2000-2003, RehabMan 2012-2013 CFBundleIdentifier org.rehabman.voodoo.driver.PS2Keyboard CFBundleInfoDictionaryVersion 6.0 CFBundleName Voodoo PS/2 Keyboard CFBundlePackageType KEXT CFBundleShortVersionString 1.8.25 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.8.25 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8C1002 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 0821 DTXcodeBuild 8C1002 IOKitPersonalities ApplePS2Keyboard CFBundleIdentifier org.rehabman.voodoo.driver.PS2Keyboard IOClass ApplePS2Keyboard IOProviderClass ApplePS2KeyboardDevice Platform Profile DELL Dell-Keys Breakless PS2 e005 e006 Function Keys Special ;The following 12 items map Fn+fkeys to fkeys e020=3b e02e=3c e030=3d e022=3e ;Fn+f5 macro ;Fn+f6 macro ;Fn+f7 macro ;Fn+f8 macro ;Fn+f9 macro ;Fn+f10 no code e005=57 e006=58 ;The following 12 items map fkeys to Fn+fkeys 3b=e020 3c=e02e 3d=e030 3e=e022 ;Fn+f5 macro ;Fn+f6 macro ;Fn+f7 macro ;Fn+f8 macro ;Fn+f9 macro ;Fn+f10 no code 57=e005 58=e006 Function Keys Standard ;The following 12 items map Fn+fkeys to Fn+fkeys e020=e020 e02e=e02e e030=e030 e022=e022 ;Fn+f5 macro ;Fn+f6 macro ;Fn+f7 macro ;Fn+f8 macro ;Fn+f9 macro ;Fn+f10 no code e005=e005 e006=e006 ;The following 12 items map fkeys to fkeys 3b=3b 3c=3c 3d=3d 3e=3e 3f=3f 40=40 41=41 42=42 43=43 44=44 57=57 58=58 HSW-LPT Dell-Keys SNB-CPT ActionSwipeDown 63 d, 63 u ActionSwipeUp 61 d, 61 u Breakless PS2 e01e;Touchpad Fn+f3 is breakless e06e;REVIEW: temporary for case that macro inversion does not work... Custom ADB Map e009=83;Dell Support to Launchpad e0f1=71;Call brightens up w RKA1 for special mode (was =90) e0f2=6b;Call brightens down w RKA2 for special mode (was =91) e06e=70;Map vidmirror key for special mode default is adb90 Custom PS2 Map e01e=e037;Map tp disable to Fn+f3 e037=e01e;Prevent PrntScr from triggering tp disable Function Keys Special ;The following 12 items map Fn+fkeys to fkeys e06e=3b e008=3c e01e=3d e005=3e e006=3f e00c=40 ;Fn+f7 no dedicated macro e010=42 e022=43 e019=44 e02e=57 e030=58 ;The following 12 items map fkeys to Fn+fkeys 3b=e06e;Map vidmirror key to f1 3c=e0f0;Map radio toggle action from EC query to f2 3d=e037;Map touchpad toggle button to f3 3e=e0f2;Map acpi RKA2 to f4 brightness down 3f=e0f1;Map acpi RKA1 to f5 brightness up 40=e0f3;Map acpi RKA3 to f6 keyboard backlight ;Fn+f7 no macro 42=e010 43=e022 44=e019 57=e02e 58=e030 Function Keys Standard ;The following 12 items map Fn+fkeys to Fn+fkeys e06e=e06e;Fn+f1 macro translated e008=e008;Fn+f2 regular scancode and EC query call q8c e01e=e037;Fn+f3 regular scancode and EC controls LED e005=e005;Fn+f4 no ps2scancode and EC query call q81 e006=e006;Fn+f5 no ps2scancode and EC query call q80 e00c=e00c;Fn+f6 no ps2scancode and EC query call q8a ;Fn+f7 no macro just regular f key e010=e010; Fn+f8 regular scancode e022=e022; Fn+f9 regular scancode e019=e019;Fn+f10 regular scancode e02e=e02e;Fn+f11 regular scancode e030=e030;Fn+f12 regular scancode ;Fn+f13 is mute dedicated button that always produces e020 regardless of Fn ;The following 12 items map fkeys to fkeys 3b=3b 3c=3c 3d=3d 3e=3e 3f=3f 40=40 41=41 42=42 43=43 44=44 57=57 58=58 Macro Inversion ;This section maps ps2 codes (packet format) received quickly (macros) into fake ps2 codes (packet format) ;Fn+F1 //8CbgAAAAACWwEZ //8C7gAAAAAC2wGZ //8C7gAAAAABmQLb MaximumMacroTime 35000000 Note-Author TimeWalker aka TimeWalker75a Note-Comment Keyboard Profile for DELL SandyBridge SecureCore Tiano based laptops (Vostro 3450 & 3750, Inspiron N4110, XPS L502x & L702x & L511z) WN09 Breakless PS2 e01b e008 e01e e005 e06e e006 Custom ADB Map e01b=70 e06e=83 Custom PS2 Map 56=2b 29=56 2b=29 e01e=e037 e037=e01e WN09a Breakless PS2 e01b e008 e01e e005 e06e e006 Custom ADB Map e01b=70 e06e=83 Custom PS2 Map e01e=e037 e037=e01e Default Action2FingersTap 3b d, 37 d, 1c d, 1c u, 37 u, 3b u Action3FingersTap 3b d, 37 d, 2 d, 2 u, 37 u, 3b u Action4FingersTap 3b d, 37 d, 2 d, 2 u, 37 u, 3b u ActionSwipe4FingersDown 37 d, 2e d, 2e u, 37 u ActionSwipe4FingersLeft 3b d, 7c d, 7c u, 3b u ActionSwipe4FingersRight 3b d, 7b d, 7b u, 3b u ActionSwipe4FingersUp 67 d, 67 u ActionSwipeDown 3b d, 37 d, 7d d, 7d u, 37 u, 3b u ActionSwipeLeft 37 d, 21 d, 21 u, 37 u ActionSwipeLeftFromEdge 3b d, 37 d, 1d d, 1d u, 37 u, 3b u ActionSwipeRight 37 d, 1e d, 1e u, 37 u ActionSwipeRightFromEdge 3b d, 37 d, 19 d, 19 u, 37 u, 3b u ActionSwipeUp 3b d, 7e d, 7e u, 3b u Breakless PS2 ;Items must be strings in the form of breaklessscan (in hex) Custom ADB Map ;Items must be strings in the form of scanfrom=adbto (in hex) Custom PS2 Map ;Items must be strings in the form of scanfrom=scanto (in hex) e027=0;disable discrete fnkeys toggle e028=0;disable discrete trackpad toggle HIDF12EjectDelay 250 LogScanCodes 0 Make Application key into Apple Fn key Make Application key into right windows Make right modifier keys into Hangul and Hanja SleepPressTime 0 Swap capslock and left control Swap command and option Use ISO layout keyboard alt_handler_id 3 HPQOEM 1411 ProBook-102;ProBook 4520s 1619 ProBook-87;ProBook 6560b 161C ProBook-87;ProBook 8460p 164F ProBook-87;ProBook 5330m 167C ProBook-102;ProBook 4530s 167E ProBook-102;ProBook 4330s 1680 ProBook-102;ProBook 4230s 179B ProBook-87;ProBook 6470b 179C ProBook-87;ProBook 6470b 17A9 ProBook-87;ProBook 8570b 17F0 ProBook-102;ProBook 4340s 17F3 ProBook-102;ProBook 4440s 17F6 ProBook-102;ProBook 4540s 1942 ProBook-87;ProBook 450s G1 1949 ProBook-87;ProBook 450s G1 1962 Haswell-Envy;HP Envy 15-j063cl 1963 Haswell-Envy;HP Envy 15-j063cl 1965 Haswell-Envy;HP Envy 17t-j100 1966 Haswell-Envy;HP Envy 17t-j000 198F ProBook-87;ProBook 450s G0 Haswell-Envy Custom ADB Map e019=42;next e010=4d;previous Custom PS2 Map e045=e037 e0ab=0;bogus Fn+F2/F3 ProBook-102 Function Keys Special ;The following 12 items map Fn+fkeys to fkeys e05f=3b e012=3c e017=3d e06e=3e e00a=3f e009=40 e020=41 e02e=42 e030=43 e010=44 e022=57 e019=58 ;The following 12 items map fkeys to Fn+fkeys 3b=e05f 3c=e012 3d=e017 3e=e06e 3f=e00a 40=e009 41=e020 42=e02e 43=e030 44=e010 57=e022 58=e019 Function Keys Standard ;The following 12 items map Fn+fkeys to Fn+fkeys e05f=e05f e012=e012 e017=e017 e06e=e06e e00a=e00a e009=e009 e020=e020 e02e=e02e e030=e030 e010=e010 e022=e022 e019=e019 ;The following 12 items map fkeys to fkeys 3b=3b 3c=3c 3d=3d 3e=3e 3f=3f 40=40 41=41 42=42 43=43 44=44 57=57 58=58 SleepPressTime 3000 ProBook-87 Custom ADB Map 46=4d;scroll => Previous-track e045=34;pause => Play-Pause e052=42;insert => Next-track e046=92;break => Eject Function Keys Special ;The following 8 items map Fn+fkeys to fkeys e05f=3d e06e=3e e02e=40 e030=41 e009=42 e012=43 e017=44 e033=57 ;The following 8 items map fkeys to Fn+fkeys 3d=e05f 3e=e06e 40=e02e 41=e030 42=e037 43=e012 44=e017 Function Keys Standard ;The following 8 items map Fn+fkeys to Fn+fkeys e05f=e05f e06e=e06e e02e=e02e e030=e030 e009=e009 e012=e012 e017=e017 e033=e033 ;The following 8 items map fkeys to fkeys 3d=3d 3e=3e 40=40 41=41 42=42 43=43 44=44 SleepPressTime 3000 Intel CALPELLA SamsungKeys SamsungKeys Breakless PS2 e003 e002 e004 e020 ;e031 e033 e006 e077 e079 e008 e009 Custom ADB Map e002=70 e006=80 e008=71 (was =90) e009=6b (was =91) Function Keys Special ;The following 12 items map Fn+fkeys to fkeys ;fn+f1 no code e003=3c ;fn+f3 weird code e002=3e e004=3f e020=40 e031=41 e033=42 e006=43 ;fn+f10 weird code ;fn+f11 no code ;fn+f12 scrolllock ;The following 12 items map fkeys to Fn+fkeys ;fn+f1 no code 3c=e003 ;fn+f3 weird code 3e=e002 3f=e004 40=e020 41=e031 42=e033 43=e006 ;fn+f10 weird code ;fn+f11 no code ;fn+f12 scrolllock Function Keys Standard ;The following 12 items map Fn+fkeys to Fn+fkeys ;fn+f1 no code e003=e003 ;fn+f3 weird code e002=e002 e004=e004 e020=e020 e031=e031 e033=e033 e006=e006 ;fn+f10 weird code ;fn+f11 no code ;fn+f12 scrolllock ;The following 12 items map fkeys to fkeys 3b=3b 3c=3c 3d=3d 3e=3e 3f=3f 40=40 41=41 42=42 43=43 44=44 57=57 58=58 SECCSD LH43STAR SamsungKeys SamsungKeys Breakless PS2 e020 e02e e030 OSBundleLibraries com.apple.iokit.IOHIDSystem 1.1 com.apple.kpi.bsd 8.0.0 com.apple.kpi.iokit 8.0.0 com.apple.kpi.libkern 8.0.0 com.apple.kpi.mach 8.0.0 com.apple.kpi.unsupported 8.0.0 org.rehabman.voodoo.driver.PS2Controller 1.8.25 OSBundleRequired Console Source Code https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooPS2Controller_v1.8.25.kext/Contents/PlugIns/VoodooPS2Mouse.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16D32 CFBundleExecutable VoodooPS2Mouse CFBundleGetInfoString 1.8.25, Copyright Apple Computer, Inc. 2000-2004, Slice 2010, RehabMan 2012-2013 CFBundleIdentifier org.rehabman.voodoo.driver.PS2Mouse CFBundleInfoDictionaryVersion 6.0 CFBundleName Voodoo PS/2 Mouse CFBundlePackageType KEXT CFBundleShortVersionString 1.8.25 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.8.25 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8C1002 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 0821 DTXcodeBuild 8C1002 IOKitPersonalities ApplePS2Mouse CFBundleIdentifier org.rehabman.voodoo.driver.PS2Mouse HIDPointerAccelerationType HIDTrackpadAcceleration HIDScrollAccelerationType HIDTrackpadScrollAcceleration IOClass ApplePS2Mouse IOProviderClass ApplePS2MouseDevice Platform Profile Default ActLikeTrackpad ButtonCount 3 DefaultResolution 240 DisableDevice DisableLEDUpdating FakeMiddleButton ForceDefaultResolution ForceSetResolution MiddleClickTime 100000000 MouseCount 0 MouseYInverter 1 QuietTimeAfterTyping 500000000 ResolutionMode 3 ScrollResolution 5 ScrollYInverter 1 TrackpadScroll WakeDelay 1000 HPQOEM 1411 ProBook 1619 ProBook 161C ProBook 164F ProBook 167C ProBook 167E ProBook 1680 ProBook 179B ProBook 179C ProBook 17A9 ProBook 17F0 ProBook 17F3 ProBook 17F6 ProBook 1942 ProBook 1949 ProBook 198F ProBook ProBook ActLikeTrackpad DisableDevice ProBook-102 ProBook ProBook-87 ProBook ProductID 547 USBMouseStopsTrackpad 0 VendorID 1452 OSBundleLibraries com.apple.iokit.IOHIDFamily 1.0.0b1 com.apple.kpi.iokit 9.0.0 com.apple.kpi.libkern 9.0.0 com.apple.kpi.mach 9.0.0 org.rehabman.voodoo.driver.PS2Controller 1.8.25 OSBundleRequired Console Source Code https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller ================================================ FILE: EFI/CLOVER/kexts/Other/VoodooPS2Controller_v1.8.25.kext/Contents/PlugIns/VoodooPS2Trackpad.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 16D32 CFBundleExecutable VoodooPS2Trackpad CFBundleGetInfoString 1.8.25, Copyright Apple Computer, Inc. 2002-2003, mackerintel 2008, RehabMan 2012-2013 CFBundleIdentifier org.rehabman.voodoo.driver.PS2Trackpad CFBundleInfoDictionaryVersion 6.0 CFBundleName Voodoo PS/2 Trackpad CFBundlePackageType KEXT CFBundleShortVersionString 1.8.25 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.8.25 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 8C1002 DTPlatformVersion GM DTSDKBuild 16C58 DTSDKName macosx10.12 DTXcode 0821 DTXcodeBuild 8C1002 IOKitPersonalities ALPS GlidePoint CFBundleIdentifier org.rehabman.voodoo.driver.PS2Trackpad IOClass ApplePS2ALPSGlidePoint IOProbeScore 1500 IOProviderClass ApplePS2MouseDevice Platform Profile Default DisableDevice HPQOEM 1411 ProBook 1619 ProBook 161C ProBook 164F ProBook 167C ProBook 167E ProBook 1680 ProBook 179B ProBook 179C ProBook 17A9 ProBook 17F0 ProBook 17F3 ProBook 17F6 ProBook 1942 ProBook 1949 ProBook 198F ProBook ProBook DisableDevice ProBook-102 ProBook ProBook-87 ProBook Sentelic FSP CFBundleIdentifier org.rehabman.voodoo.driver.PS2Trackpad IOClass ApplePS2SentelicFSP IOProbeScore 5500 IOProviderClass ApplePS2MouseDevice Platform Profile Default DisableDevice HPQOEM 1411 ProBook 1619 ProBook 161C ProBook 164F ProBook 167C ProBook 167E ProBook 1680 ProBook 179B ProBook 179C ProBook 17A9 ProBook 17F0 ProBook 17F3 ProBook 17F6 ProBook 1942 ProBook 1949 ProBook 198F ProBook ProBook DisableDevice ProBook-102 ProBook ProBook-87 ProBook Synaptics TouchPad CFBundleIdentifier org.rehabman.voodoo.driver.PS2Trackpad HIDPointerAccelerationTable AACAAFVTQioABwAAAAAAAgAEAAAABAAAABAAAAAQAAAAACAAAA0A AIAAAACAAAABQAAAAYAAAAIAAAAC4AAAAwAAAATgAAAEAAAAB0AA AAUAAAAKAAAABgAAAA1AAAAIAAAAFgAAAArAAAAjAAAADQAAAC8A AAAOwAAAOMAAABBAAABBAAAAEcAAAEjAAAAAUAAADwAAgAAAAIAA AAEAAAABQAAAAYAAAAJAAAACAAAAA4AAAAKAAAAE4AAAAwAAAAZg AAAEAAAACgAAAAUAAAAOQAAABgAAABNAAAAIAAAAHsAAAArAAAAu wAAADQAAADyAAAAOwAAARwAAABBAAABPwAAAEcAAAFiAAAAAgAAA DwAAgAAAAIAAAAEAAAABYAAAAYAAAAKgAAACAAAABEAAAAKAAAAG AAAAAwAAAAgAAAAEAAAADQAAAAUAAAASwAAABgAAABkAAAAIAAAA KAAAAArAAAA7wAAADQAAAEuAAAAOwAAAV0AAABBAAABgQAAAEcAA AGkAAAAAsAAADwAAgAAAAIAAAAEAAAABoAAAAYAAAAMAAAACAAAA BQAAAAKAAAAHQAAAAwAAAAnAAAAEAAAAEEAAAAUAAAAXgAAABgAA AB/AAAAIAAAAMgAAAArAAABKAAAADQAAAFyAAAAOwAAAaQAAABBA AABywAAAEcAAAHrAAAAA4AAADwAAgAAAAKAAAAEAAAABwAAAAYAA AANgAAACAAAABeAAAAKAAAAIoAAAAwAAAAvAAAAEAAAAE8AAAAUA AAAdQAAABgAAACfAAAAIAAAAPcAAAArAAABZAAAADQAAAG3AAAAO wAAAe0AAABBAAACFQAAAEcAAAIxAAAABAAAADwAAgAAAAMAAAAEA AAACAAAAAYAAAAPgAAACAAAABsAAAAKAAAAKQAAAAwAAAA5gAAAE AAAAGMAAAAUAAAAkwAAABgAAADLAAAAIAAAATUAAAArAAABugAAA DQAAAIMAAAAOwAAAj0AAABBAAACXAAAAEcAAAJxAAA== HIDPointerAccelerationType HIDTrackpadAcceleration HIDScrollAccelerationTable AACAAFVTQioABwAAAAAAAQABAAAAAQAAAAAgAAAQAABxOwAATOMA AwAAAAdgAAAEwAAADoAAAAbxSgAX6V4ACVeCACMQWgALZ6EALBF7 AA2N1AA03ToAD36aADvQuAASWKAARl01ABUAAABO2dgAF8AAAFXK 7QAas+UAW2FQAB2QAABe0qoAIL75AGEgywAkLXsAYnXvACewAABj Rl8AAIAAABMAAHE7AABWfwABAAAAAuAAAAIAAAAJYAAAAwAAABIA AAAEwAAAIMAAAAaAAAAwgAAACGp5AEH9tgAK7bUAV4ZuAA0B2ABr PTkADv1/AIEEcAAQy5gAkdRWABJouQCe3VAAE+c/AKikCgAXAucA tn2SABot3ADARE4AHVjQAMX4OgAg35IAytuYACQ4bgDO7mUAJ6CX ANIwowAAsAAAFAAAcTsAAGFOAADAAAABwAAAAQAAAANgAAACAAAA DCAAAAMAAAAW4AAABMAAACnAAAAGQAAAOsAAAAfOggBP7OcACgWA AGo8rgAL658AhMCkAA2RCwCfR+EADzjIALWDbwAQ/k8AxqbEABLN UQDUeCMAFepmAOTKxwAZoVYA8qFmAB1CvwD7fXwAIQuCAQFpdAAk S20BBVKIACegAAEIK4wAAOAAABQAAHE7AABtdwAAwAAAAeAAAAEA AAAD4AAAAgAAAA6AAAADAAAAHEAAAATAAAA0AAAABgAAAEdAAAAH N4wAXL7hAAkAAACAwAAACoAAAKGAAAALz7IAvU7UAA01yQDadikA DvtPAPKF4gARLu4BCSWiABUlDwEfV8QAGT9oASzRKgAdChkBNQrG ACDz5QE6cR4AJEARAT3XdgAnn1YBQMHWAABQAAATAABxOwAAS7AA AQAAAAJgAAACAAAABuAAAAMAAAAMYAAABMAAABcAAAAGwAAAJAAA AAkAAAAyAAAACz1uAEFngAANcE8AUMGhAA+sTQBgSTMAEagdAG5N TAATT9YAd9WQABTQfgB+26MAF3odAIbYXQAagocAjp+lAB2J6QCT vnkAIN/yAJdcWwAkO0IAmYu9ACegOACacdcAAQAAABUAAHE7AABW fwAAwAAAAiAAAAEAAAAEgAAAAYAAAAqAAAACAAAAEaAAAAMAAAAh gAAABMAAAD6AAAAFwAAAVEAAAAbAAABrAAAACAAAAIxAAAAJAAAA qYAAAApAAADKwAAAC8AAAPTAAAANwAABJAAAABAAAAFEn9IAFEAA AV49zAAZAAABbrsYABzQAAFz78AAIOAAAXhvwAAkIAABem/AACeg AAF8JGg= HIDScrollAccelerationType HIDTrackpadScrollAcceleration IOClass ApplePS2SynapticsTouchPad IOProbeScore 6000 IOProviderClass ApplePS2MouseDevice Platform Profile Default BogusDeltaThreshX 0 BogusDeltaThreshY 0 ButtonCount 3 CenterX 3000 CenterY 3000 CircularScrollDivisor 0 CircularScrollTrigger 0 ClickPadClickTime 300000000 ClickPadTrackBoth Darwin 16.x ApplePreferenceCapability ApplePreferenceIdentifier com.apple.AppleMultitouchTrackpad MT Built-in MTHIDDevice SupportsGestureScrolling TrackpadEmbedded TrackpadFourFingerGestures TrackpadSecondaryClickCorners TrackpadThreeFingerDrag DisableDevice DisableLEDUpdating DisableZoneBottom 4200 DisableZoneControl 0 DisableZoneLeft 0 DisableZoneRight 1700 DisableZoneTop 99999 DivisorX 5 DivisorY 5 DoubleTapThresholdX 100 DoubleTapThresholdY 100 DragExitDelayTime 750000000 DragLockTempMask 1048592 Dragging 1 DynamicEWMode EdgeBottom 1700 EdgeLeft 1700 EdgeRight 5200 EdgeTop 4200 FakeMiddleButton FingerChangeIgnoreDeltas 3 FingerZ 30 HorizontalScrollDivisor 0 ImmediateClick MaxDragTime 180000000 MaxTapTime 130000000 MiddleClickTime 100000000 MomentumScrollDivisor 100 MomentumScrollMultiplier 98 MomentumScrollSamplesMin 3 MomentumScrollThreshY 18 MomentumScrollTimer 10000000 MouseCount 0 MouseMiddleScroll MouseMultiplierX 20 MouseMultiplierY 20 MouseScrollMultiplierX 20 MouseScrollMultiplierY 20 MultiFingerHorizontalDivisor 13 MultiFingerVerticalDivisor 13 MultiFingerWLimit 9 QuietTimeAfterTyping 500000000 Resolution 305 RightClickZoneBottom 0 RightClickZoneLeft 3800 RightClickZoneRight 99999 RightClickZoneTop 2000 ScrollDeltaThreshX 0 ScrollDeltaThreshY 0 ScrollResolution 305 SkipPassThrough SmoothInput StickyHorizontalScrolling StickyMultiFingerScrolling StickyVerticalScrolling SwapDoubleTriple SwipeDeltaX 800 SwipeDeltaY 800 TapThresholdX 50 TapThresholdY 50 USBMouseStopsTrackpad 0 UnitsPerMMX 50 UnitsPerMMY 50 UnsmoothInput UseHighRate VerticalScrollDivisor 0 WakeDelay 1000 ZLimit 115 ZoneBottom 0 ZoneLeft 1700 ZoneRight 5200 ZoneTop 99999 HPQOEM 1411 ProBook 1619 ProBook 161C ProBook 164F ProBook 167C ProBook 167E ProBook 1680 ProBook 179B ProBook 179C ProBook 17A9 ProBook 17F0 ProBook 17F3 ProBook 17F6 ProBook 1942 ProBook 1949 ProBook 198F ProBook ProBook FingerZ 40 ProBook-102 ProBook ProBook-87 ProBook ProductID 547 VendorID 1452 OSBundleLibraries com.apple.iokit.IOHIDSystem 1.0.0b1 com.apple.kpi.iokit 9.0.0 com.apple.kpi.libkern 9.0.0 com.apple.kpi.mach 9.0.0 org.rehabman.voodoo.driver.PS2Controller 1.8.25 OSBundleRequired Console Source Code https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller ================================================ FILE: EFI/CLOVER/kexts/Other/WhateverGreen_v1.3.0.kext/Contents/Info.plist ================================================ BuildMachineOSBuild 18G29g CFBundleDevelopmentRegion en CFBundleExecutable WhateverGreen CFBundleIdentifier as.vit9696.WhateverGreen CFBundleInfoDictionaryVersion 6.0 CFBundleName WhateverGreen CFBundlePackageType KEXT CFBundleShortVersionString 1.3.0 CFBundleSignature ???? CFBundleSupportedPlatforms MacOSX CFBundleVersion 1.3.0 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 10E1001 DTPlatformVersion GM DTSDKBuild 18E219 DTSDKName macosx10.14 DTXcode 1020 DTXcodeBuild 10E1001 IOKitPersonalities AppleIntelPanelA ApplePanels Default AAAHQAr3//4= F10P9c56 AAAANQDiAP8= F10P9c57 AAAANQDiAP8= F10P9c58 AEYARgDXAP8= F10P9c59 AEwATADMAP8= F10P9c5a AEwATADMAP8= F10P9c5b AAAAPgEHASg= F10P9c5c AAAAPgEHASg= F10P9c5d AAAAPgEHASg= F10P9c5e AAAAPgEHASg= F10P9c5f AAAAPgEHASg= F10P9c60 AAAANQDiAP8= F10P9c61 AAAANwDnAP8= F10P9c62 AAAANwDnAP8= F10P9c63 AAAAAADlAP8= F10P9c65 AAAAAADlAP8= F10P9c69 AAAANQDoAP8= F10P9c6a AEUATgDOAP8= F10P9c6b AEUATgDOAP8= F10P9c6c AAAADgDOAP8= F10P9c71 AAAADgDOAP8= F10P9c72 AAAANQDoAP8= F10P9c74 ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10P9c7d AEUATgDOAP8= F10P9c7e AAAADgDOAP8= F10P9c8d AAAADgDOAP8= F10P9c8e AAAADgDOAP8= F10P9c92 AEUATgDOAP8= F10P9c93 AEUATgDOAP8= F10P9c94 AEUATgDOAP8= F10P9c95 AEUATgDOAP8= F10P9c96 AAAADgDOAP8= F10T9c66 ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10T9c67 ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10T9c68 ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10T9c6d ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10T9c6f ABEAAAASABcAHgAnADMAQgBWAG8AkAC7APMBPAGaAhQC sgOA F10T9c70 ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zw== F10T9c73 ABEAAAASABcAHgAnADMAQgBWAG8AkAC7APMBPAGaAhQC sgOA F10T9c79 ABEAAAAjACwANwBEAFUAagCFAKYAzwECAUIBkQH1AnID DQPP F10T9c79D ABEAAAAjACwANwBEAFUAagCFAKYAzwECAUIBkQH1AnID DQPPAMg= F10T9c7aD ABEAAAAjACwANwBEAFUAagCFAKYAzwECAUIBkQH1AnID DQPPAMg= F10T9c7c ABEAAAASABcAHgAnADMAQgBWAG8AkAC7APMBPAGaAhQC sgOA F10T9c80D ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zwDI F10T9c81D ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zwDI F10T9c82D ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zwDI F10T9c83D ABAAAAAeACUAMQA9AE8AZwCDAKkA2QEVAWUB6QJPAvcD zwDI F10T9c84 ABEAAAAQABUAGwAjAC4APABPAGgAiACzAOsBNQGWAhYC vgOa F10T9c85 ABEAAAAQABUAGwAjAC4APABPAGgAiACzAOsBNQGWAhYC vgOa F10T9c86 ABEAAAAQABUAGwAjAC4APABPAGgAiACzAOsBNQGWAhYC vgOa F10T9c89 ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQA F10T9c8a ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQA F10T9c8b ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQA F10T9c8c ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQA F10T9c8f ABEAAAAdACUALgA6AEkAXAB0AJIAtwDmASEBagHGAjkC ygOA F10T9c90 ABEAAAAdACUALgA6AEkAXAB0AJIAtwDmASEBagHGAjkC ygOA F10T9c91 ABEAAAAdACUALgA6AEkAXAB0AJIAtwDmASEBagHGAjkC ygOA F10T9c9a ABEAAAAdACUALgA6AEkAXAB0AJIAtwDmASEBagHGAjkC ygOA F10T9c9d ABEAAAAdACUALgA6AEkAXAB0AJIAtwDmASEBagHGAjkC ygOA F10T9c9e ABEAAAAhACoANgBFAFkAdACXAMUA8AEmAWcBtwIcApsD OQQA F10T9c9f ABEAAAAhACoANQBDAFYAbgCPALgA4gESAVABmwH6Am8D AgO/ F10T9ca0 ABEAAAAhACoANgBFAFkAdACXAMUA8AEmAWcBtwIcApsD OQQA F10T9ca1 ABEAAAAhACoANQBDAFYAbgCPALgA4gESAVABmwH6Am8D AgO/ F10T9ca2 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9ca3 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9ca4 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9ca5M ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQABAA= F10T9ca6M ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQABAA= F10T9ca7M ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQABAA= F10T9ca8M ABEAAAAtADgARABUAGcAfgCcAL4A6gEgAWUBugIfAp0D PAQABAA= F10T9ca9 ABEABgAIAA0AEQAXABsAIQAnAC4AOABAAE8AZQB/AKAA ygD/ F10T9caaM ABEACgAQABYAHgAnADEAOwBKAFwAZABuAHwAjgClAL4A zQDYAQA= F10T9cabM ABEACgAQABYAHgAnADEAOwBKAFwAZABuAHwAjgClAL4A zQDYAQA= F10T9cb0 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9cb1 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9cb2 ABEAAAAkACsANgBDAFQAaACDAKYAywD6ATUBfQHYAkgC 1QOG F10T9cb5 ABEABgANABIAGQAhACoANgBDAFUAXgBpAHkAjACiALsA 2gDy F10T9cb6 ABEAAAAkAC0AOABHAFoAcgCTALwA5wEdAV8BsQIVApYD NwQA F10T9cb7 ABEAAAAkAC0AOABHAFoAcgCTALwA5wEdAV8BsQIVApYD NwQA F10T9cb8 ABEAAAAjACsANgBEAFYAbQCMALQA3QEQAU8BnQH+AnkD DgPR F10T9cb9 ABEAAAAjACsANgBEAFYAbQCMALQA3QEQAU8BnQH+AnkD DgPR F10T9cba ABEAAAAkAC0AOABHAFoAcgCTALwA5wEdAV8BsQIVApYD NwQA F10T9cbb ABEAAAAkAC0AOABHAFoAcgCTALwA5wEdAV8BsQIVApYD NwQA F10T9cbcM ABEACgAQABYAHgAnADEAOwBKAFwAZABuAHwAjgClAL4A zQDYAQA= F10T9cbd ABEAAAAhACoANgBFAFkAdACXAMUA8AEmAWcBtwIcApsD OQQA F10T9cbeM ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cc0M ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cc1M ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cc2 ABEAAAAhACoANQBDAFYAbgCPALgA4gESAVABmwH6Am8D AgO/ F10T9cc3 ABEAAAAiACsANgBGAFgAbwCPALcA4QEUAVQBogIEAnoD DwPL F10T9cc5 ABEAAAAhACkANABCAFMAaQCHAKwA0wEDAT4BhwHiAlIC 3gOP F10T9cc7 ABEAAAAiACsANgBGAFgAbwCPALcA4QEUAVQBogIEAnoD DwPL F10T9cc9 ABEAAAAiACsANgBGAFgAbwCPALcA4QEUAVQBogIEAnoD DwPL F10T9ccb ABEAAAAhACkANABCAFMAaQCHAKwA0wEDAT4BhwHiAlIC 3gOP F10T9cd1M ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cd6 ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9cd7 ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9cd8M ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cd9M ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cdaM ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cdbM ABEAAAAiACwANgBGAFgAcgCUALwA5gEaAVwBqwIKAoID FgPOBAA= F10T9cdc ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9cdd ABEACgARABkAIwAwADwASwBaAGgAdQCEAJYAqwDBANUA 5gD/ F10T9cde ABEABgANABcAIgAsADoASABZAGoAdACCAJQAqAC9ANIA 5AD/ F10T9cdf ABEAAAAjAC4AOgBMAF8AeQCWALsA6QEiAWcBuwIgApwD MwPq F10T9cf0 ABEAAAAiACwAOABJAFsAdACQALUA4AEXAVcBqQILAoED EAPA F10T9cf2 ABEAAAAiACwAOQBJAF0AdQCTALgA5QEcAV8BswIXApID KAPe F10T9cf3 ABEAAAAhACoANgBFAFgAbwCMAK4A2QENAU0BnAH7Am8C +wOq F10T9cf4 ABEAAAAhACkANQBEAFYAbQCJAKoA1AEHAUYBkwHwAmIC 6wOT F10T9cfc ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9cfd ABEACgAPABcAIQAtADkASABWAGEAbAB4AIYAmQCtAL4A zQDV F10T9cfeM ABEAGAA3AF8AigCzAOsBJAFnAakB1AIJAlQCogL4A00D lgP/BAA= F10T9cff ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9d0c ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9d0d ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10T9d0fM ABEAGAA3AF8AigCzAOsBJAFnAakB1AIJAlQCogL4A00D lgP/BAA= F10Ta007 ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10Ta008 ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10Ta00aM ABEAGAA3AF8AigCzAOsBJAFnAakB1AIJAlQCogL4A00D lgP/BAA= F10Ta00b ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F10Ta00cM ABEAGAA3AF8AigCzAOsBJAFnAakB1AIJAlQCogL4A00D lgP/BAA= F10Ta00d ABEABgALABQAHAAnADMAPwBOAFwAZwBzAIEAkQClAL8A 2wD/ F11P9c58 AEoASgDuASg= F11P9c5b AAAANQDhAP8= F11P9c5c AAAANQDhAP8= F11P9c5d AAAANQDhAP8= F11P9c5e AAAANQDhAP8= F11P9c5f AAAANQDhAP8= F11T9c7f ABEAAADHAP4BNQFsAaMB2gIRAkgCfwK2Au0DJANbA5ID yQQA F12P9c5b AAAAZAGqAeI= F12P9c5c AAAAZAGqAeI= F12P9c5e AAAAZAGqAeI= F12P9c5f AAAAZAGqAeI= F12P9c7f AAAAZAGqAeI= F12T9c6fL ABEAAAJfA3cEPwUvBm8IJwoHDNcQRxRXGX8f5yh/Mx8/ x1NYBAA= F12T9c73L ABEAAAJfA3cEPwUvBm8IJwoHDNcQRxRXGX8f5yh/Mx8/ x1NYBAA= F12T9c7cL ABEAAAJfA3cEPwUvBm8IJwoHDNcQRxRXGX8f5yh/Mx8/ x1NYBAA= F14T9cc3 ABEAAAAhADYAUQBzAJ4A0wEUAWQBxQImApsDJwPPBJsF jAar F14T9cc5 ABEAAAAgADQATQBuAJYAyAEGAVEBrQIMAnsDAAOdBF0F PgZM F14T9cc7 ABEAAAAhADYAUQBzAJ4A0wEUAWQBxQImApsDJwPPBJsF jAar F14T9cc9 ABEAAAAhADYAUQBzAJ4A0wEUAWQBxQImApsDJwPPBJsF jAar F14T9ccb ABEAAAAgADQATQBuAJYAyAEGAVEBrQIMAnsDAAOdBF0F PgZM F14T9cdf ABEAAAA8AFIAagCJAK4A2gEWAVkBtAIUAoIDDgO5BJAF mwbm F14T9cf0 ABEAAAA5AE8AaACDAKcA0gEJAUwBoQIAAmwC8gOYBGAF YAag F14T9cf2 ABEAAAA8AFEAawCJAK4A3AEXAVsBtgIVAoEDDAOyBIMF jgbU F14T9cf3 ABEAAAA6AE4AZwCCAKQA0AEHAUYBmgH5AmAC4gOABEQF PgZz F14T9cf4 ABEAAAA3AEkAYAB7AJ4AxwD6ATkBiwHqAlACzQNmBCYF HwZJ F14T9d0b ABEAAAAhADYAUQBzAJ4A0wEUAWQBxQImApsDJwPPBJsF jAar F14Ta006 ABEAAAAhADYAUQBzAJ4A0wEUAWQBxQImApsDJwPPBJsF jAar F14Ta010 ABEAAAA5AE8AaACDAKcA0gEJAUwBoQIAAmwC8gOYBGAF YAag F14Ta013 ABEAAAAnADYAUAB2AJ0AzgEMAVkBrgIfApcDMgPgBLUF ogbE F14Ta014 ABEAAAAmADQATQBxAJcAxgECAUsBnQIKAn0DEgO4BIUF aQaA F14Ta015 ABEAAAAnADYAUAB2AJ0AzgEMAVkBrgIfApcDMgPgBLUF ogbE F14Ta019 ABEAAAAfADQATwBxAJsAzwEOAV0BuwIvArkDYAQpBR4G RAed F14Ta022 ABEAAAAfADQATwBxAJsAzwEOAV0BuwIvArkDYAQpBR4G RAed F14Ta02b ABEAAAAfADQATwBxAJsAzwEOAV0BvAIvArkDYAQqBR8G RQee F14Ta02c ABEAAAAfADQATwBxAJsAzwEOAV0BvAIvArkDYAQqBR8G RQee F14Ta02e ABEAAAAeADMATABtAJYAyQEGAVMBrgIeAqQDRgQKBPcG FAdj F14Ta02f ABEAAAAeADMATABtAJYAyQEGAVMBrgIeAqQDRgQKBPcG FAdj F14Txxxx ABEAAAA0AFIAcwCUAL4A+gE2AXIBxQIvArkDYAQaBQoG DgcQ F15T9cdf ABEAAAA4AFgAggC5AP8BVwHDAkIC1QN9BD4FIQYyB4EJ DArZ F15T9cf0 ABEAAAA2AFQAfQCyAPUBSQGxAisCuANZBBME7AXzBzQI rwpq F15T9cf2 ABEAAAA4AFgAggC5AP8BVwHDAkIC1QN9BD4FIQYyB4EJ DArZ F15T9cf3 ABEAAAA1AFQAfACwAPIBRgGsAiUCsQNQBAgE3wXjByEI mApO F15Ta010 ABEAAAA0AFIAeQCsAO0BPwGjAhoCogM+A/IExQXDBvsI agoX F15Ta018 ABEAAAAWACUAOABQAG4AkwDAAPgBOwGNAe8CZgL1A6ME dAVp F15Ta01a ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F15Ta01b ABEAAAA2AFQAfQCyAPUBSQGxAisCuANZBBME7AXzBzQI rwpq F15Ta01c ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F15Ta020 ABEAAAAWACUAOABQAG4AkwDAAPgBOwGNAe8CZgL1A6ME dAVp F15Ta027 ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F15Ta028 ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F15Ta029 ABEAAAAXACYAOgBSAHEAkwDEAPwBPwGRAfMCagL5A6UE cwVp F15Ta02a ABEAAAAXACYAOQBSAHAAlQDCAPkBPQGOAfICawL+A6wE eAVp F15Ta02d ABEAAAA4AFgAggC5AP8BVwHDAkIC1QN9BD4FIQYyB4EJ DArZ F15Txxxx ABEAAAA2AFQAfQCyAPUBSQGxAisCuANZBBME7AXzBzQI rwrZ F16Ia039 ABEAAANpBc0IzgyhEWgXRx5yJ0Ax1T6ITZ5fknS7jaaq zMzM F16Ia03c ABEAAANpBc0IzgyhEWgXRx5yJ0Ax1T6ITZ5fknS7jaaq zMzM F16Ia03d ABEAAAKPA1MEWgWhB64KPQ4UE3QaXiQYMalEWV52gxG2 x/97 F16Ia03e ABEAAAKPA1MEWgWhB64KPQ4UE3QaXiQYMalEWV52gxG2 x/97 F16Ta01a ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F16Ta01c ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F16Ta027 ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F16Ta028 ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F16Ta029 ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVp F16Ta030 ABEAAAALAA4AEwAZACIALgA+AFQAcgCcANUBIwGPAiUC 8gQP F16Ta031 ABEAAAAMABAAFQAcACYAMwBFAF4AgACvAPABSAHCAmoD UgSS F16Ta033 ABEAAAANABIAFwAgACsAOQBOAGoAkADEAQ4BdQIEAsoD 3wVp F16Ta034 ABEAAAANABIAFwAfACoAOABNAGkAjwDEAQ0BcgIAAscD 3wVp F16Ta037 ABEAAAANABIAFwAfACoAOABNAGkAjwDEAQ0BcgIAAscD 3wVp F16Txxxx ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oE eAVs F17Ta033 ABEAAAANABIAFgAeACgANgBJAGMAhwC4AP0BXQHjApwD nwUP F17Ta034 ABEAAAANABIAGAAfACoAOABNAGgAjgDCAQoBbwH7AsAD 1QVa F17Ta037 ABEAAAANABIAGAAfACoAOABNAGgAjgDCAQoBbwH7AsAD 1QVa F17Txxxx ABEAAAAfADQATwBxAJsAzwEOAV0BuwIvArkDYAQpBR4G RAeh F18Txxxx ABEAAABTAIwA1QExAaICLgLYA64ErAXlB1kJHAs7DdAQ 6hSZ F19Txxxx ABEAAAKPA1MEWgWhB64KPQ4UE3QaXiQYMalEWV52gxG2 x/97 F24Txxxx ABEAAQA0AFIAcwCUAL4A+gE2AXIBxQIvArkDYAQaBQoG DgcQ CFBundleIdentifier com.apple.driver.AppleBacklight IOClass AppleIntelPanelA IODisplayParameters brightness max 255 min 40 commit reg 0 IOMatchCategory IODisplayParameters IONameMatch backlight IOProbeScore 5000 IOProviderClass IOACPIPlatformDevice NVHDAEnabler CFBundleIdentifier as.vit9696.WhateverGreen IOClass NVHDAEnabler IOMatchCategory IOFramebuffer IOPCIClassMatch 0x03000000&0xff000000 IOPCIMatch 0x000010de&0x0000ffff IOProbeScore 300000 IOProviderClass IOPCIDevice as.vit9696.WhateverGreen CFBundleIdentifier as.vit9696.WhateverGreen IOClass WhateverGreen IOMatchCategory WhateverGreen IOProviderClass IOResources IOResourceMatch IOKit NSHumanReadableCopyright Copyright © 2018 vit9696. All rights reserved. OSBundleCompatibleVersion 1.0 OSBundleLibraries as.vit9696.Lilu 1.2.0 com.apple.iokit.IOPCIFamily 1.0.0b1 com.apple.kpi.bsd 12.0.0 com.apple.kpi.dsep 12.0.0 com.apple.kpi.iokit 12.0.0 com.apple.kpi.libkern 12.0.0 com.apple.kpi.mach 12.0.0 com.apple.kpi.unsupported 12.0.0 OSBundleRequired Root ================================================ FILE: EFI/CLOVER/misc/HdaCodec#0 (Realtek ALC256).txt ================================================ HdaCodecDump Start Codec: Realtek ALC256 Address: 0 AFG Function Id: 0x1 (unsol 1) Vendor ID: 0x10EC0256 Revision ID: 0x00100002 Default PCM: rates [0x0560]: 44100 48000 96000 192000 bits [0x000E]: 16 20 24 formats [0x00000001]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A Node 0x02 [Audio Output] wcaps 0x0000041D: Stereo Amp-Out Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=02, mute=0 Amp-Out vals: [0x57 0x57] Node 0x03 [Audio Output] wcaps 0x0000041D: Stereo Amp-Out Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=02, mute=0 Amp-Out vals: [0x57 0x57] Node 0x04 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x06 [Audio Output] wcaps 0x00000611: Stereo Digital Node 0x07 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x24 Node 0x08 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x23 Node 0x09 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x22 Node 0x0A [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0B [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0C [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0D [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0E [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0F [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x10 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x12 [Pin Complex] wcaps 0x0040040B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00000020: IN Pin Default 0x90A60170: [Fixed] Mic at Int N/A Conn = Digital, Color = Unknown DefAssociation = 0x7, Sequence = 0x0 Pin-ctls: 0x00: Node 0x13 [Pin Complex] wcaps 0x0040040B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00000020: IN Pin Default 0x40000000: [None] Line Out at Ext N/A Conn = Unknown, Color = Unknown DefAssociation = 0x0, Sequence = 0x0 Pin-ctls: 0x00: Node 0x14 [Pin Complex] wcaps 0x0040058D: Stereo Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x00010014: OUT EAPD Detect EAPD 0x2: EAPD Pin Default 0x90170120: [Fixed] Speaker at Int N/A Conn = Analog, Color = Unknown DefAssociation = 0x2, Sequence = 0x0 Pin-ctls: 0x40: OUT Connection: 1 0x02 Node 0x15 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x16 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x17 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x18 [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Node 0x19 [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Node 0x1A [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x00: Node 0x1B [Pin Complex] wcaps 0x0040058F: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x00013734: IN OUT EAPD Detect EAPD 0x2: EAPD Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Connection: 2 0x02 0x03 Node 0x1C [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x1D [Pin Complex] wcaps 0x00400400: Mono Pincap 0x00000020: IN Pin Default 0x40779A2D: [None] Modem Handset at Ext N/A Conn = Analog, Color = Pink DefAssociation = 0x2, Sequence = 0xD Pin-ctls: 0x20: IN Node 0x1E [Pin Complex] wcaps 0x00400781: Stereo Digital Pincap 0x00000014: OUT Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x40: OUT Connection: 1 0x06 Node 0x1F [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x20 [Vendor Defined Widget] wcaps 0x00F00040: Mono Node 0x21 [Pin Complex] wcaps 0x0040058D: Stereo Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x0001001C: OUT HP EAPD Detect EAPD 0x2: EAPD Pin Default 0x02211030: [Jack] HP Out at Ext Front Conn = 1/8, Color = Black DefAssociation = 0x3, Sequence = 0x0 Pin-ctls: 0x00: Connection: 2 0x02 0x03 Node 0x22 [Audio Mixer] wcaps 0x0020010B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Connection: 5 0x18 0x19 0x1A 0x1B 0x1D Node 0x23 [Audio Mixer] wcaps 0x0020010B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Connection: 6 0x18 0x19 0x1A 0x1B 0x1D 0x12 Node 0x24 [Audio Selector] wcaps 0x00300101: Stereo Connection: 2 0x12 0x13 ================================================ FILE: EFI/CLOVER/misc/HdaCodec#1 (Realtek ALC256).txt ================================================ HdaCodecDump Start Codec: Realtek ALC256 Address: 0 AFG Function Id: 0x1 (unsol 1) Vendor ID: 0x10EC0256 Revision ID: 0x00100002 Default PCM: rates [0x0560]: 44100 48000 96000 192000 bits [0x000E]: 16 20 24 formats [0x00000001]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A Node 0x02 [Audio Output] wcaps 0x0000041D: Stereo Amp-Out Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=02, mute=0 Amp-Out vals: [0x57 0x57] Node 0x03 [Audio Output] wcaps 0x0000041D: Stereo Amp-Out Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=02, mute=0 Amp-Out vals: [0x57 0x57] Node 0x04 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x06 [Audio Output] wcaps 0x00000611: Stereo Digital Node 0x07 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x24 Node 0x08 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x23 Node 0x09 [Audio Input] wcaps 0x0010051B: Stereo Amp-In Amp-In caps: ofs=0x17, nsteps=0x3F, stepsize=02, mute=1 Amp-In vals: [0x97 0x97] Connection: 1 0x22 Node 0x0A [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0B [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0C [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0D [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0E [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x0F [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x10 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x12 [Pin Complex] wcaps 0x0040040B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00000020: IN Pin Default 0x90A60170: [Fixed] Mic at Int N/A Conn = Digital, Color = Unknown DefAssociation = 0x7, Sequence = 0x0 Pin-ctls: 0x00: Node 0x13 [Pin Complex] wcaps 0x0040040B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00000020: IN Pin Default 0x40000000: [None] Line Out at Ext N/A Conn = Unknown, Color = Unknown DefAssociation = 0x0, Sequence = 0x0 Pin-ctls: 0x00: Node 0x14 [Pin Complex] wcaps 0x0040058D: Stereo Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x00010014: OUT EAPD Detect EAPD 0x2: EAPD Pin Default 0x90170120: [Fixed] Speaker at Int N/A Conn = Analog, Color = Unknown DefAssociation = 0x2, Sequence = 0x0 Pin-ctls: 0x40: OUT Connection: 1 0x02 Node 0x15 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x16 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x17 [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x18 [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Node 0x19 [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Node 0x1A [Pin Complex] wcaps 0x0040048B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: Pincap 0x00003724: IN Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x00: Node 0x1B [Pin Complex] wcaps 0x0040058F: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x00013734: IN OUT EAPD Detect EAPD 0x2: EAPD Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x20: IN Connection: 2 0x02 0x03 Node 0x1C [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x1D [Pin Complex] wcaps 0x00400400: Mono Pincap 0x00000020: IN Pin Default 0x40779A2D: [None] Modem Handset at Ext N/A Conn = Analog, Color = Pink DefAssociation = 0x2, Sequence = 0xD Pin-ctls: 0x20: IN Node 0x1E [Pin Complex] wcaps 0x00400781: Stereo Digital Pincap 0x00000014: OUT Detect Pin Default 0x411111F0: [None] Speaker at Ext Rear Conn = 1/8, Color = Black DefAssociation = 0xF, Sequence = 0x0 Pin-ctls: 0x40: OUT Connection: 1 0x06 Node 0x1F [Vendor Defined Widget] wcaps 0x00F00000: Mono Node 0x20 [Vendor Defined Widget] wcaps 0x00F00040: Mono Node 0x21 [Pin Complex] wcaps 0x0040058D: Stereo Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x0001001C: OUT HP EAPD Detect EAPD 0x2: EAPD Pin Default 0x02211030: [Jack] HP Out at Ext Front Conn = 1/8, Color = Black DefAssociation = 0x3, Sequence = 0x0 Pin-ctls: 0x00: Connection: 2 0x02 0x03 Node 0x22 [Audio Mixer] wcaps 0x0020010B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Connection: 5 0x18 0x19 0x1A 0x1B 0x1D Node 0x23 [Audio Mixer] wcaps 0x0020010B: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] Connection: 6 0x18 0x19 0x1A 0x1B 0x1D 0x12 Node 0x24 [Audio Selector] wcaps 0x00300101: Stereo Connection: 2 0x12 0x13 ================================================ FILE: EFI/CLOVER/misc/HdaCodec#2 (Intel Kaby Lake HDMI).txt ================================================ HdaCodecDump Start Codec: Intel Kaby Lake HDMI Address: 2 AFG Function Id: 0x1 (unsol 0) Vendor ID: 0x8086280B Revision ID: 0x00100000 Default PCM: N/A Default Amp-In caps: N/A Default Amp-Out caps: N/A Node 0x02 [Audio Output] wcaps 0x00006611: Stereo Digital Node 0x03 [Pin Complex] wcaps 0x0040778D: Stereo Digital Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=00, mute=1 Amp-Out vals: [0x00 0x00] Pincap 0x09000094: OUT Detect HBR HDMI DP Pin Default 0x18560010: [Jack] Digital Out at Int Special Conn = Digital, Color = Unknown DefAssociation = 0x1, Sequence = 0x0 Pin-ctls: 0x00: Connection: 1 0x02 ================================================ FILE: EFI/CLOVER/themes/Hackintosh_ID/force.txt ================================================ ================================================ FILE: EFI/CLOVER/themes/Hackintosh_ID/theme.plist ================================================ Author Badruzeus Description Hackintosh Indonesia theme for Clover Bootloader. Version: 1.6 Theme Background Dark Path background.png Type Tile Badges Inline Scale 16 Show Swap Banner logo.png BootCampStyle Components Banner Functions Help Label MenuTitle MenuTitleImage Revision Font CharWidth 12 Path Font_Telegrama_16pt_White.png Proportional Type Load Layout BannerOffset 50 ButtonOffset 64 SelectionBigWidth 288 TextOffset -100 TileXSpace 128 TileYSpace 128 Origination DesignHeight 1080 DesignWidth 1920 Selection Big Selection_big.png ChangeNonSelectedGrey Color 0x183C77FF OnTop Small Selection_small.png Version 1.6 Year 2018 ================================================ FILE: EFI/CLOVER/themes/SimpleThemeDark/.hash ================================================ 340eb36af3f8e4066909df417c498a4bb6fcdf75 ================================================ FILE: EFI/CLOVER/themes/SimpleThemeDark/theme.plist ================================================ Author Chang Description A Simple Theme Theme Background Path background.png Type Tile Badges Show Swap Inline Banner banner.png Font Path font.png Type Load CharWidth 10 Selection Big selection_big.png Color 0x6C6C6CFF Small selection_small.png OnTop Year 2014 ================================================ FILE: EFI/Clover_Install_Log.txt ================================================ Clover EFI installer log - Sun Sep 23 16:08:36 CST 2018 Installer version: v2.4k r4672 EFI bootloader ====================================================== /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *512.1 GB disk0 1: EFI ESP 524.3 MB disk0s1 2: Microsoft Basic Data WINDOWS10 65.7 GB disk0s2 3: Apple_APFS Container disk2 31.5 GB disk0s3 4: Apple_APFS Container disk3 100.4 GB disk0s4 5: Apple_HFS DATAS 205.3 GB disk0s5 6: Apple_KernelCoreDump 655.4 MB disk0s6 7: Apple_HFS 10.12.6 56.8 GB disk0s7 8: Apple_Boot Recovery HD 650.0 MB disk0s8 9: Apple_HFS Install macOS High S... 9.2 GB disk0s9 10: Linux Filesystem 10.0 GB disk0s10 11: Apple_HFS 10.14 30.4 GB disk0s11 12: Apple_Boot Recovery HD 650.0 MB disk0s12 /dev/disk1 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk1 1: EFI ESP_HDD 209.7 MB disk1s1 2: FreeBSD UFS 120.3 GB disk1s2 3: Microsoft Basic Data BackUp 213.5 GB disk1s3 4: Microsoft Basic Data DATAS2 285.8 GB disk1s4 5: Apple_HFS TimeMachine 379.9 GB disk1s5 /dev/disk2 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +31.5 GB disk2 Physical Store disk0s3 1: APFS Volume 10.13.6_17G2112 15.3 GB disk2s1 2: APFS Volume Preboot 21.8 MB disk2s2 3: APFS Volume Recovery 515.8 MB disk2s3 4: APFS Volume VM 1.1 GB disk2s4 /dev/disk3 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +100.4 GB disk3 Physical Store disk0s4 1: APFS Volume MAC 64.3 GB disk3s1 2: APFS Volume Preboot 125.1 MB disk3s2 3: APFS Volume Recovery 2.6 GB disk3s3 4: APFS Volume VM 20.5 KB disk3s4 Target volume /Volumes/MAC on disk3 is APFS on physical store disk0s4 ====================================================== Backing up EFI files Backing up /Volumes/MAC/EFIROOTDIR/EFI folder to /Volumes/MAC/EFI-Backups/r4672/2018-09-23-16h08/EFI ====================================================== Installing BootSectors/BootLoader Stage 0 - Don't write any of boot0af, boot0md, boot0ss to / Stage 1 - Don't write any of boot1h2, boot1f32alt, boot1xalt to / ====================================================== Installing RC Scripts Installing RC scripts on target volume '/' Activating /etc/rc.boot.d/70.disable_sleep_proxy_client.local rc script ====================================================== =========== Clover EFI Installation Finish =========== ====================================================== ================================================ FILE: HIDPI/DisplayVendorID-dae/DisplayProductID-15e0 ================================================ DisplayBacklight 575.5 DisplayBrightReflection 573.10000000000002 DisplayDarkReflection 1.1000000000000001 DisplayLeakage 0.41899999999999998 DisplayLowestLevel 2 DisplayLowestMeasured 0.43230000000000002 DisplayProductID 45061 DisplayProductName Color LCD DisplayVendorID 1552 IODisplayEDID AP///////wAGEBKgAAAAABwWAQS1MBt4Im+xp1VMniUMUFQAAAABAQEBAQEBAQEBAQEB AQEBtDuASnE4NEBQNmgAWMEQAAAawy+ASnE4NEBQNmgAWMEQAAAaAAAA/ABpTWFjCiAg ICAgICAgAAAAAAAAQTGWARAAAAoBCiAgAIM= IOGFlags 4 scale-resolutions AAAGQAAAA4QA AAALQAAABlQA AAAKAAAABaAA target-default-ppmm 10.069930100000001 ================================================ FILE: HIDPI/DisplayVendorID-dae/DisplayProductID-15e0_hidpi ================================================ DisplayProductID 45061 DisplayVendorID 1552 IODisplayEDID AP///////wAGEBKgAAAAABwWAQS1MBt4Im+xp1VMniUMUFQAAAABAQEBAQEBAQEBAQEB AQEBtDuASnE4NEBQNmgAWMEQAAAawy+ASnE4NEBQNmgAWMEQAAAaAAAA/ABpTWFjCiAg ICAgICAgAAAAAAAAQTGWARAAAAoBCiAgAIM= scale-resolutions AAAPAAAACHAAAAABACAAAA== AAAMgAAABwgAAAABACAAAA== AAALQAAABlQAAAABACAAAA== AAAHgAAABDgAAAABACAAAA== AAAGQAAAA4QAAAABACAAAA== AAAFoAAAAyoAAAABACAAAA== ================================================ FILE: HIDPI/DisplayVendorID-dae/Icons.plist ================================================ board-ids Mac-189A3D4F975D5FFC display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-189A3D4F975D5FFC.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-2BD1B31983FE1663 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-2BD1B31983FE1663.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-3CBD00234E554E41 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-3CBD00234E554E41.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-42FD25EABCABB274 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-42FD25EABCABB274.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-4B682C642B45593E display-icon com.apple.imac-unibody-21 Mac-65CE76090165799A display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-AFD8A9D944EA4843 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-AFD8A9D944EA4843.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-B809C3757DA9BB8D display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-B809C3757DA9BB8D.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-C3EC7CD22292981F display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-C3EC7CD22292981F.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 Mac-DB15BD556843C820 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-DB15BD556843C820.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 Mac-E43C1C25D4880AD6 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-E43C1C25D4880AD6.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 Mac-FA842E06C61E91C5 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-FA842E06C61E91C5.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 vendors 1e6d products 5b10 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b10.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b10.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 47 5b11 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 11 resolution-preview-y 47 610 display-icon com.apple.cinema-display products 9226 display-icon com.apple.led-cinema-display-27 9227 display-icon com.apple.led-cinema-display-27 9236 display-icon com.apple.led-cinema-display-24 a027-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-9d9da0.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-e1e1df.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-e8c9c3 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-e8c9c3.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a027-ebd7bf display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a027-ebd7bf.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-9d9da0.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-e1e1df.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-e8c9c3 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-e8c9c3.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a028-ebd7bf display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a028-ebd7bf.tiff resolution-preview-height 76 resolution-preview-width 122 resolution-preview-x 52 resolution-preview-y 66 a029 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a029.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 a02a display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02a.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 47 resolution-preview-y 64 a02e display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02e.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 a02f display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a02f.tiff resolution-preview-height 90 resolution-preview-width 144 resolution-preview-x 41 resolution-preview-y 67 a030-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a030-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a031-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a031-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a032 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 a033-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a033-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a034-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a034-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a037-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a037-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a033-e1e1df.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 a038-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-9d9da0.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 a038-e1e1df display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a030-e1e1df.tiff resolution-preview-height 92 resolution-preview-width 147 resolution-preview-x 40 resolution-preview-y 62 ae11 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae12 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae13 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae15 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae16 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae17 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/Models/Mac-65CE76090165799A.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 12 resolution-preview-y 71 ae19 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 ae1a display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 ae1b display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-610/DisplayProductID-a032.tiff resolution-preview-height 90 resolution-preview-width 160 resolution-preview-x 33 resolution-preview-y 68 9e6d products 5b11 display-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.icns display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-5b11.tiff resolution-preview-height 114 resolution-preview-width 202 resolution-preview-x 11 resolution-preview-y 47 dae display-icon com.apple.cinema-display products 15e0-9d9da0 display-resolution-preview-icon /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-dae/DisplayProductID-15e0-9d9da0.tiff resolution-preview-height 83 resolution-preview-width 131 resolution-preview-x 48 resolution-preview-y 62 display-icon public.display ================================================ FILE: README.md ================================================ # Dell Inspiron 7000 I/II (7x60/7x72) for macOS Mojave/High Sierra 这是我使用的Dell Inspiron 7000(7560)的CLOVER引导文件,它同样也适用于Dell Inspiron 7460/7472/7572等I代II代机型 ## 电脑配置 | 规格 | 详细信息 | | -------- | ------------------------------------------------------------ | | 电脑型号 | 戴尔 Inspiron 7560 笔记本电脑 | | 操作系统 | macOS Mojave 18E226/macOS High Sierra 10.13.6 17G2208 | | 处理器 | 英特尔 Core i7-7500U @ 2.70GHz 双核 | | 内存 | 16 GB ( 金士顿 DDR4 2400MHz ) | | 硬盘 | 建兴 CV1-8B512 (512 GB / 固态硬盘 ) | | 显卡 | 英特尔 HD Graphics 620 (platform-id:0x59160000) | | 显示器 | 奇美 CMN15E0 FHD 1920x1080 (15.6 英寸) | | 声卡 | ALC256 (layout-id:2/56) | | 网卡 | ~~英特尔7265已更换为Bcm94352z(14E4:43B1)/~~已更换为DW1820A(14E4:43A3)[5-20-2019] | ## 安装镜像 直接使用博客中的镜像进行安装:[【黑果小兵】macOS Mojave 10.14(18A389) with Clover 4670原版镜像](https://blog.daliansky.net/macOS-Mojave-10.14-18A389-Release-with-Clover-4670-original-mirror.html) ## CLOVER * 支持Mojave/High Sierra/Sierra * CPU原生支持,变频正常 * 睡眠唤醒正常,最新增加睡眠呼吸灯 * 显卡原生支持,采用`Lilu+WhateverGreen`通过`Clover/device/Properties`方式注入,同时支持HDMI显示输出 * 声卡为ALC256(ALC3246),使用 `AppleALC` 仿冒,layout-id:2或者56,通过`Clover/device/Properties`方式注入,支持HDMI Audio声音输出 * ~~无线网卡更换为bcm94352z,添加`SSDT-7560-DW1560.aml`以解决可能存在的睡眠唤醒后蓝牙失效的问题。~~已更换为DW-1820A * 显示器亮度调节正常;亮度调节快捷键:`f11/f12` * USB遮盖采用`INTEL FB-Patcher`生成`USBPower.kext`,它位于`Clover/kexts/Other` * 添加PCI设备信息 * 其它 `ACPI` 补丁修复采用 `hotpatch` 方式,文件位于 `/CLOVER/ACPI/patched` ## 系统截图 ![0About](./screenshot/0About.png) ![0Displays](./screenshot/0Displays.png) ![0Displays1](./screenshot/0Displays1.png) ![0Memory](./screenshot/0Memory.png) ![1Audio](./screenshot/1Audio.png) ![1Audio2](./screenshot/1Audio2.png) ![1AudioPatch](./screenshot/1AudioPatch.png) ![2BlueTooth](./screenshot/2BlueTooth.png) ![2BlueTooth2](./screenshot/2BlueTooth2.png) ![3Wifi](./screenshot/3Wifi.png) ![4Sata](./screenshot/4Sata.png) ![5Ethernet](./screenshot/5Ethernet.png) ![6USB](./screenshot/6USB.png) ![6USBFinal](./screenshot/6USBFinal.png) ![7Light](./screenshot/7Light.png) ![8Volume](./screenshot/8Volume.png) ![9Drivers](./screenshot/9Drivers.png) ![Clover](./screenshot/Clover.png) ## ALCPlugFix > 修复耳机切换及插入无声 进入 `ALCPlugFix` 目录,双击 `install双击自动安装.command` 安装 ## HIDPI **感谢 @[冰水加劲Q](https://github.com/xzhih)** 进入 `一键开启HIDPI并注入EDID` 目录,点击 `双击.command` 命令执行后以实现下面的效果: ![hidpi](http://7.daliansky.net/hidpi.jpg) ## 更新 * 10-4-2017 * 加入显示器edid和HIDPI * 10-7-2017 * 修复bcm94352z在10.12下的WIFI驱动 * 10-8-2017 * 添加一键开启HIDPI脚本,同时解决内屏黑屏问题,感谢 `冰水加劲Q` 提供的脚本 * 10-17-2017 * EFI更新,修正显卡驱动 * 驱动更新: * Lilu v1.2.0 * AppleALC v1.2.1 * IntelGraphicsDVMTFixup v1.2.0 * AirportBrcmFixup v1.1.0 * 驱动修复: * IntelGraphicsFixup v1.2.0 * 10-21-2017 * Clover 常规更新 Clover_v2.4k_r4259 * 驱动更新: * FakeSMC v1765 * 修改BCM94352z驱动方式,将注入信息移动到FakeSMC,移除config.plist中的相关信息 * 11-12-2017 * Clover 常规更新 * Clover_v2.4k_r4298 * ALC256声卡驱动更新 * 添加全新id:56 * 去除底噪 * ALCPlugFix更新,修复耳机插入状态 * 3-13-2018 * 修改独显屏蔽模式,独显屏蔽更彻底,感谢@宪武 * Clover常规更新 * Clover_v2.4k_r4418 * drivers64UEFI更新 * 使用AptioMemoryFix.efi彻底解决内存分配不足卡+++问题 * Apfs.efi常规更新到10.13.4Beta5 * 驱动更新 * InterGraphicsFixup v1.2.5 * AppleALC v1.2.3 * Lilu v1.2.3 * Shiki v2.2.3 * AirportBrcmFixup v1.1.1 * 4-9-2018 * Clover常规更新 * Clover_v2.4k_r4429 更新支持macOS 10.13.4 * Apfs.efi常规更新到10.13.5DB1 * 驱动更新 * InterGraphicsFixup v1.2.7 * AppleALC v1.2.6 * Shiki v2.2.6 * AirportBrcmFixup v1.1.2 * 7-21-2018 * 支持`Mojave`/`High Sierra`/`Sierra` * CLOVER常规更新 * Clover v2.4k r4618,支持10.13.6 17G2112 * 使用`ApfsDriverLoader-64.efi`,不需要再频繁地更新`apfs.efi`了 * 驱动更新 * Lilu v1.2.5 * AppleALC v1.3.0 * WhateverGreen v1.2.0 * 8-4-2018 * CLOVER常规更新到v2.4k r4630 * 使用新的显卡驱动方式,更好地支持10.13/10.14 * 驱动更新 - Lilu v1.2.6 - AppleALC v1.3.1 - WhateverGreen v1.2.1 * 8-6-2018 * Clover添加Disable minStolenSize less or equal fStolenMemorySize assertion,解决卡DVMT;另一种方法请移步:[通过修改DVMT Pre-Allocated解决AppleIntelKBLGraphicsFramebuffer问题](http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=1730172&page=1#pid46869870) * SMBIOS设置为MacBookPro15,2,它只支持10.13.6(17G2112/17G2208)以及10.14Beta版本,旧的系统请使用配置文件`config_MBP141.plist` * 8-8-2018 * 增加Brcm94352z/DW1560注入信息,解决10.13.6(17G2112/17G2208)/10.14蓝牙失效问题 * 8-11-2018 * 加入了I2C触摸板的支持,开启更多手势 * 9-22-2018 * 使用`FB Patcher`生成USBPower.kext,弃用`USBInjectAll.kext`和`SSDT-UIAC-ALL.aml` * `VoodooI2C`更新到v2.0.1特别版,触摸板支持更多手势,支持双指捏合缩放,支持`Mojave`和`HighSierra` * 声卡id注入:2,以解决部分机型无法驱动的问题 * 驱动常规更新 * Lilu v1.2.7 * WhatEverGreen v1.2.3 * AppleALC v1.3.2 * 修改主题文件,适配`Mojave` * 9-24-2018 * `config.plist`修正 * 删除`kextstopatch`里面关于`minStolen`的补丁 * 删除USB端口限制补丁 * 添加`USBPower.kext`驱动,删除`SSDT-UIAC-ALL.aml` * 修正`SSDT-PCIList.aml`显示信息 * 修正自带主题`Hackintosh_ID`适配`Mojave`图标 * 9-29-2018 * 增加睡眠呼吸灯 * 添加`DW1560`信息的注入,有效改善睡眠唤醒后蓝牙失效 * 4-6-2019 * 更新支持到Mojave 10.14.4 * 常规驱动更新 * 5-2-2019 * 更新`CLOVER`到v4924 * 修正`PCIList`信息 * 添加开机声音 * 修改电池驱动为`SMCBatteryManager.kext` * 5-19-2019 * 更新`CLOVER`到v4928 * 添加`ComboJack`,解决耳麦输入 * 修改`ALCPlugfix`,支持睡眠唤醒后`内置麦克风`和`耳麦`完美切换 * 6-4-2019 * 更新 CLOVER 到 v4940 * 添加 macOS Catalina 支持 * WIFI工作正常,蓝牙暂时不工作 * 常规驱动更新 ## 如果你认可我的工作,可以通过 `打赏` 支持我后续的更新 |微信|支付宝| | --- | --- | |![wechatpay_160](http://7.daliansky.net/wechatpay_160.jpg)|![alipay_160](http://7.daliansky.net/alipay_160.jpg)| ## QQ群: 331686786 [一起黑苹果](http://shang.qq.com/wpa/qunwpa?idkey=db511a29e856f37cbb871108ffa77a6e79dde47e491b8f2c8d8fe4d3c310de91) 158976808 [燃7000黑苹果交流群](http://shang.qq.com/wpa/qunwpa?idkey=e2a57e954de694774549b675dda9cd9a6f5cf30db3a53d4d82a34b9013dde5e3) ================================================ FILE: README的副本.md ================================================ # Dell Inspiron 7000 (7x60) for macOS High Sierra/Sierra 这是我使用的Dell Inspiron 7000(7560)的CLOVER引导文件 ## CLOVER * 支持Mojave/High Sierra/Sierra * CPU原生支持 * 显卡原生支持,通过`WhateverGreen`自动侦测驱动 * 声卡为ALC256(ALC3246),使用 `AppleALC` 仿冒,layout-id:56 * 无线网卡更换为bcm94352z,驱动信息位于 `FakeSMC` * 其它 `ACPI` 补丁修复采用 `hotpatch` 方式,文件位于 `/CLOVER/ACPI/patched` ![screenshot18](http://7.daliansky.net/screenshot18.png) * 清理了下Drivers64UEFI目录,只保留需要的驱动程序 ![Clover](http://7.daliansky.net/dell/Clover.jpg) ## ALCPlugFix > 修复耳机切换及插入无声 进入 `ALCPlugFix` 目录,双击 `install双击自动安装.command` 安装 ## HIDPI **感谢 @[冰水加劲Q](https://github.com/xzhih)** 进入 `一键开启HIDPI并注入EDID` 目录,点击 `双击.command` 命令执行后以实现下面的效果: ![hidpi](http://7.daliansky.net/hidpi.jpg) ## refind 另一个BootLoader 使用方法:将 `refind` 目录复制到 `/EFI` 下即可 ## 更新 * 10-4-2017 * 加入显示器edid和HIDPI * 10-7-2017 * 修复bcm94352z在10.12下的WIFI驱动 * 10-8-2017 * 添加一键开启HIDPI脚本,同时解决内屏黑屏问题,感谢 `冰水加劲Q` 提供的脚本 * 10-17-2017 * EFI更新,修正显卡驱动 * 驱动更新: * Lilu v1.2.0 * AppleALC v1.2.1 * IntelGraphicsDVMTFixup v1.2.0 * AirportBrcmFixup v1.1.0 * 驱动修复: * IntelGraphicsFixup v1.2.0 * 10-21-2017 * Clover 常规更新 Clover_v2.4k_r4259 * 驱动更新: * FakeSMC v1765 * 修改BCM94352z驱动方式,将注入信息移动到FakeSMC,移除config.plist中的相关信息 * 11-12-2017 * Clover 常规更新 * Clover_v2.4k_r4298 * ALC256声卡驱动更新 * 添加全新id:56 * 去除底噪 * ALCPlugFix更新,修复耳机插入状态 * 3-13-2018 * 修改独显屏蔽模式,独显屏蔽更彻底,感谢@宪武 * Clover常规更新 * Clover_v2.4k_r4418 * drivers64UEFI更新 * 使用AptioMemoryFix.efi彻底解决内存分配不足卡+++问题 * Apfs.efi常规更新到10.13.4Beta5 * 驱动更新 * InterGraphicsFixup v1.2.5 * AppleALC v1.2.3 * Lilu v1.2.3 * Shiki v2.2.3 * AirportBrcmFixup v1.1.1 * 4-9-2018 * Clover常规更新 * Clover_v2.4k_r4429 更新支持macOS 10.13.4 * Apfs.efi常规更新到10.13.5DB1 * 驱动更新 * InterGraphicsFixup v1.2.7 * AppleALC v1.2.6 * Shiki v2.2.6 * AirportBrcmFixup v1.1.2 * 7-21-2018 * 支持`Mojave`/`High Sierra`/`Sierra` * CLOVER常规更新 * Clover v2.4k r4618,支持10.13.6 17G2112 * 使用`ApfsDriverLoader-64.efi`,不需要再频繁地更新`apfs.efi`了 * 驱动更新 * Lilu v1.2.5 * AppleALC v1.3.0 * WhateverGreen v1.2.0 * 8-4-2018 * CLOVER常规更新到v2.4k r4630 * 使用新的显卡驱动方式,更好地支持10.13/10.14 * 驱动更新 - Lilu v1.2.6 - AppleALC v1.3.1 - WhateverGreen v1.2.1 * 8-6-2018 * Clover添加Disable minStolenSize less or equal fStolenMemorySize assertion,解决卡DVMT;另一种方法请移步:[通过修改DVMT Pre-Allocated解决AppleIntelKBLGraphicsFramebuffer问题](http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=1730172&page=1#pid46869870) * SMBIOS设置为MacBookPro15,2,它只支持10.13.6(17G2112/17G2208)以及10.14Beta版本,旧的系统请使用配置文件`config_MBP141.plist` * 8-8-2018 * 增加Brcm94352z/DW1560注入信息,解决10.13.6(17G2112/17G2208)/10.14蓝牙失效问题 * 8-11-2018 * 加入了I2C触摸板的支持,开启更多手势 * 9-22-2018 * 使用`FB Patcher`生成USBPower.kext,弃用`USBInjectAll.kext`和`SSDT-UIAC-ALL.aml` * `VoodooI2C`更新到v2.0.1特别版,触摸板支持更多手势,支持双指捏合缩放,支持`Mojave`和`HighSierra` * 声卡id注入:2,以解决部分机型无法驱动的问题 * 驱动常规更新 * Lilu v1.2.7 * WhatEverGreen v1.2.3 * AppleALC v1.3.2 * 修改主题文件,适配`Mojave` * 9-23-2018 * `config.plist`修正 * 删除`kextstopatch`里面关于`minStolen`的补丁 * 删除USB端口限制补丁 * 添加`USBPower.kext`驱动,删除`SSDT-UIAC-ALL.aml` * 修正`SSDT-PCIList.aml`显示信息 * 修正自带主题`Hackintosh_ID`适配`Mojave`图标 ## 如果你认可我的工作,可以通过 `打赏` 支持我后续的更新 |微信|支付宝| | --- | --- | |![wechatpay_160](http://7.daliansky.net/wechatpay_160.jpg)|![alipay_160](http://7.daliansky.net/alipay_160.jpg)| ## QQ群: 331686786 [一起黑苹果](http://shang.qq.com/wpa/qunwpa?idkey=db511a29e856f37cbb871108ffa77a6e79dde47e491b8f2c8d8fe4d3c310de91) 158976808 [燃7000黑苹果交流群](http://shang.qq.com/wpa/qunwpa?idkey=e2a57e954de694774549b675dda9cd9a6f5cf30db3a53d4d82a34b9013dde5e3) ================================================ FILE: Tools/archey ================================================ #!/bin/bash # Modified: DalianSky(https://blog.daliansky.net) # 脚本中调用了bdmesg获取主板型号,所以使用前请勾选安装CLOVER的RC Scripts # updated: 2-15-2019 # archey-osx 1.6.0 (https://github.com/obihann/archey-osx/) # test to see if bash supports arrays arraytest[0]='test' || (echo 'Error: Arrays are not supported in this version of bash.' && exit 2) # Detect the packager. if [ -x /usr/local/bin/brew ]; then detectedpackager=homebrew elif command -v port >/dev/null; then detectedpackager=macports else detectedpackager=none fi # Get the command line options opt_nocolor=f opt_force_color=f opt_offline=f for arg in "$@" do case "${arg}" in -p|--packager) packager=$detectedpackager ;; -m|--macports) packager=macports ;; -b|--nocolor) opt_nocolor=t ;; -c|--color) opt_nocolor=f opt_force_color=t ;; -o|--offline) opt_offline=t ;; -h|--help) echo "Archey OS X 1.6.0" echo echo "Usage: $0 [options]" echo echo " -p --packager Use auto detected package system (default packager: ${detectedpackager})." echo " -m --macports Force use MacPorts as package system." echo " -b --nocolor Turn color off." echo " -c --color Force the color on (overrides --nocolor)." echo " -o --offline Disable the IP address check." exit 0 ;; *) echo "Unknown argument: $1" 1>&2 echo "For help, use: $0 --help" 1>&2 exit 1 ;; esac done osx_version="$(sw_vers -productVersion)" osx_build="$(sw_vers -buildVersion)" # define OS Short Version #case "$osx_version" in # "10.4"*) codename="Mac OS X Tiger" ;; # "10.5"*) codename="Mac OS X Leopard" ;; # "10.6"*) codename="Mac OS X Snow Leopard" ;; # "10.7"*) codename="Mac OS X Lion" ;; # "10.8"*) codename="OS X Mountain Lion" ;; # "10.9"*) codename="OS X Mavericks" ;; # "10.10"*) codename="OS X Yosemite" ;; # "10.11"*) codename="OS X El Capitan" ;; # "10.12"*) codename="macOS Sierra" ;; # "10.13"*) codename="macOS High Sierra" ;; # "10.14"*) codename="macOS Mojave" ;; # *) codename="macOS" ;; #esac # define OS Short Version codename=$(xxd -ps /Applications/Utilities/System\ Information.app/Contents/MacOS/System\ Information | tr -d '\n' | perl -nle "print $& if m{00$(sw_vers -productVersion | awk -F '.' '{printf $1"."$2}' | xxd -ps)00\K.*?00}" | xxd -r -p) mem_total="$(($(sysctl -n hw.memsize) / 1024 / 1024))" mem_wired="$(vm_stat | awk '/wired/ { print $4 }')" mem_active="$(vm_stat | awk '/active / { printf $3 }')" mem_compressed="$(vm_stat | awk '/occupied/ { printf $5 }')" mem_used="$(((${mem_wired//.} + ${mem_active//.} + ${mem_compressed//.}) * 4 / 1024))" cores="$(sysctl -n hw.logicalcpu_max)" # Uptime boot="$(sysctl -n kern.boottime)" boot="${boot/'{ sec = '}" boot="${boot/,*}" now="$(date +%s)" seconds="$((now - boot))" days="$((seconds / 60 / 60 / 24)) days" hours="$((seconds / 60 / 60 % 24)) hours" mins="$((seconds / 60 % 60)) minutes" # Format the days, hours and minutes. strip_date() { case "$1" in "0 "*) unset "${1/* }" ;; "1 "*) printf "%s" "${1/s}" ;; *) printf "%s" "$1" ;; esac } days="$(strip_date "$days")" hours="$(strip_date "$hours")" mins="$(strip_date "$mins")" uptime="${days:+$days, }${hours:+$hours, }${mins}" uptime="${uptime%', '}" uptime="${uptime:-${seconds} seconds}" # model if [[ "$(kextstat | grep "FakeSMC")" != "" ]]; then #model="$(ioreg -c FakeSMCKeyStore | grep product-name | sed -e's/"//g' | sed -e 's/|//g' | sed -e 's/product-name = //g' | sed -e 's/ //g') (SMBIOS: $(sysctl -n hw.model))" model="$(bdmesg | grep ProductName | grep ProductName | sed '{print $7}')" else model="$(sysctl -n hw.model)" fi # Mainboard mb="$(bdmesg | grep Z370 | awk '{print $8,$9,$10}' | sed "s/'Z/Z/g" | sed "s/)'/)/g")" # System Variables # User="$(osascript -e "computer name of (system info)")" # Hostname=$(osascript -e "computer name of (system info)") # Hostname=$(system_profiler SPSoftwareDataType | grep "Computer" | sed 's/ Computer Name: //g') User=$(echo $(osascript -e "computer name of (system info)") | sed "s/-/ /g") Date=$(date | sed 's/CST//g') # IP=$(osascript -e "IPv4 address of (system info)") # IP=`echo $(ifconfig | grep 'inet.*netmask.*broadcast') | awk '{print $2}'` Intranet=$(osascript -e "IPv4 address of (system info)") Public=$(dig +short myip.opendns.com @resolver1.opendns.com) System_version="$codename $osx_version $osx_build" Kernel_version="$(uname) $(uname -r)" Uptime=$(uptime | sed 's/.*up \([^,]*\), .*/\1/') Shell="$SHELL" Terminal="$TERM by ${TERM_PROGRAM//_/ }" Cpu="$(sysctl -n machdep.cpu.brand_string | sed 's/(R)//g' | sed 's/(TM)//g' | sed 's/CPU @ //g') x (${cores})" memory="${mem_used}MB(Avai) / ${mem_total}MB(Total)" # Battery Battery=$(ioreg -c AppleSmartBattery -r | awk '$1~/Capacity/{c[$1]=$3} END{OFMT="%.2f%"; max=c["\"MaxCapacity\""]; if (max>0) { print 100*c["\"CurrentCapacity\""]/max;} }') batterystatus=$(pmset -g batt | sed -n '2p' | awk '{print $4}' | sed 's/;//g') if [[ $batterystatus == discharging ]] ; then batterystatus="未充电" elif [[ $batterystatus == charging ]] ; then batterystatus="充电中" else batterystatus="充电完成" fi # disk disk_total="$(df -h | head -2 | tail -1 | awk '{print $2}' | sed 's/i/B/g')(Total)" disk_used="$(df -h | head -2 | tail -1 | awk '{print $4}' | sed 's/i/B/g')(Avai)" Disk="$disk_used / $disk_total" # GPU # main resolution resolution="$(system_profiler SPDisplaysDataType | grep Resolution | awk 'NF+=1' | sed 's/Resolution://g' | cut -b 12- | sed -e 's/, /\n/g' | sed -n 1p)" gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 " "}')" vram="$(system_profiler SPDisplaysDataType | grep VRAM | cut -b 7-)" # extension resolution displayext="$(system_profiler SPDisplaysDataType | grep Resolution | awk 'NF+=1' | sed 's/Resolution://g' | cut -b 12- | sed -e 's/, /\n/g' | sed -n 2p)" #if [[ -z $displayext ]] ; then # displayext=$resolution #fi #if type -p screenresolution >/dev/null; then # resolution="$(screenresolution get 2>&1 | awk '/Display/ {printf $6 "Hz, "}')" # resolution="${resolution//x??@/ @ }" # #else # resolution="$(system_profiler SPDisplaysDataType |\ # awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')" #fi # ## If no refresh rate is empty. #[[ "$resolution" == *"@ Hz"* ]] && \ # resolution="${resolution//@ Hz}" # #[[ "${scale_factor%.*}" == 2 ]] && \ # resolution="${resolution// @/@2x @}" # #if [[ "$refresh_rate" == "off" ]]; then # resolution="${resolution// @ [0-9][0-9]Hz}" # resolution="${resolution// @ [0-9][0-9][0-9]Hz}" #fi # #[[ "$resolution" == *"0Hz"* ]] && \ # resolution="${resolution// @ 0Hz}" #resolution="${resolution%,*}" case "$term" in "Apple_Terminal") term_font="$(osascript </dev/null) GREEN=$(tput setaf 2 2>/dev/null) YELLOW=$(tput setaf 3 2>/dev/null) BLUE=$(tput setaf 4 2>/dev/null) PURPLE=$(tput setaf 5 2>/dev/null) textColor=$(tput setaf 6 2>/dev/null) normal=$(tput sgr0 2>/dev/null) fi fieldlist[${#fieldlist[@]}]="${textColor}主板型号 :${normal} ${mb}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}操作系统 :${normal} ${System_version}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}内核版本 :${normal} ${Kernel_version}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}开机时间 :${normal} ${uptime}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}Shell :${normal} ${Shell}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}当前时间 :${normal} ${Date}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}处理器 :${normal} ${Cpu}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}内存 :${normal} ${memory}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}磁盘 :${normal} ${Disk}${normal}" if [[ ! -z $Battery ]]; then fieldlist[${#fieldlist[@]}]="${textColor}剩余电量 :${normal} ${Battery}% / ${batterystatus}${normal}" fi fieldlist[${#fieldlist[@]}]="${textColor}IP 地址 :${normal} 公网 ${Public} / 内网 ${Intranet}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}当前终端 :${normal} ${Terminal}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}显卡设备 :${normal} ${gpu}/ $vram${normal}" fieldlist[${#fieldlist[@]}]="${textColor}主显示器 :${normal} ${resolution}${normal}" fieldlist[${#fieldlist[@]}]="${textColor}扩展显示 :${normal} ${displayext}${normal}" logofile=${ARCHEY_LOGO_FILE:-"${HOME}/.config/archey-logo"} if [ -a "$logofile" ] then source "$logofile" else # The ${foo# } is a cheat so that it lines up here as well # as when run. echo -e " ${normal# } ${User} ${model} ${normal# } ---------------------------------------------- ${GREEN# } ${fieldlist[0]} ${GREEN# } ### ${fieldlist[1]} ${GREEN# } #### ${fieldlist[2]} ${GREEN# } ### ${fieldlist[3]} ${GREEN# } ####### ####### ${fieldlist[4]} ${YELLOW# } ###################### ${fieldlist[5]} ${YELLOW# } ##################### ${fieldlist[6]} ${RED# } #################### ${fieldlist[7]} ${RED# } #################### ${fieldlist[8]} ${RED# } ##################### ${fieldlist[9]} ${PURPLE# } ###################### ${fieldlist[10]} ${PURPLE# } #################### ${fieldlist[11]} ${BLUE# } ################ ${fieldlist[12]} ${BLUE# } #### ##### ${fieldlist[13]} ${BLUE# } ${fieldlist[14]} ${normal} " fi ================================================ FILE: Tools/usb_Ports ================================================ #!/bin/sh ioreg | grep @14 | awk '{print $3 $4 $5 $6}' | sed 's/ ================================================ FILE: hda-tools/Extract_ALC256/ahhcd.plist ================================================ HDAConfigDefault AFGLowPowerState AwAAAA== Codec Rockjesus - Realtek ALC256 (3246) - dell 7559 CodecID 283902550 ConfigData ASccAAEnHQEBJx6mAScfmQFHHBABRx0BAUceFwFHH5kCFxwgAhcd EAIXHiECFx8BAbcMAg== FuncGroup 1 LayoutID 11 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec Insanelydeepak - Realtek ALC256 (3246) for Dell Series CodecID 283902550 ConfigData ASccEAEnHQABJx6gAScfkAFHHCABRx0AAUceFwFHH5ABlxwwAZcd EAGXHosBlx8CAhccUAIXHRACFx4rAhcfAgE3HPABNx0AATceAAE3 H0ABhxzwAYcdAAGHHgABhx9AAacc8AGnHQABpx4AAacfQAG3HPAB tx0AAbceAAG3H0AB1xzwAdcdAAHXHgAB1x9AAecc8AHnHQAB5x4A AecfQAFHDAI= FuncGroup 1 LayoutID 13 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== CodecID 283902550 Comment vusun123 - ALC256 for Asus X555UJ ConfigData AUccUAFHHQABRx4XAUcfkAFHDAIBpxwwAacdAAGnHqABpx+QAhcc IAIXHRACFx4hAhcfAA== FuncGroup 1 LayoutID 28 WakeConfigData AUcMAg== WakeVerbReinit AFGLowPowerState AwAAAA== Codec DalianSky - Realtek ALC256 (3246) for Dell 7000 Series CodecID 283902550 ConfigData ASccMAEnHQEBJx6mAScfkAE3HPABNx0AATceAAE3H0ABRxwQAUcd AQFHHhcBRx+QAUcMAgGHHPABhx0AAYceAAGHH0ABlxxAAZcdEAGX HoEBlx8CAacc8AGnHQABpx4AAacfQAG3HPABtx0AAbceAAG3H0AB 1xzwAdcdAAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAIXHCACFx0Q AhceIQIXHwICFwwC FuncGroup 1 LayoutID 56 WakeConfigData AUcMAg== WakeVerbReinit ================================================ FILE: hda-tools/ccc ================================================ #!/bin/sh sudo rm -rf /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache sudo rm -rf /System/Library/PrelinkedKernels/prelinkedkernel sudo touch /System/Library/Extensions/ && sudo kextcache -u / ================================================ FILE: hda-tools/codecgraph ================================================ #!/bin/sh version="1.0" name=`basename $0` dir=`dirname $0` fmt="svg" usage="Usage: $name [-f format] [-h] [-o name] [-v] [codecfile]" help="Options: -f format Set output format (svg, ps, png), default is $fmt -h Display list of parameters and exit -o name Set output file name -v Display version information and exit " while getopts hvf:o: opt do case "$opt" in f) # specify output file format fmt="$OPTARG" ;; h) echo "$usage" 1>&2 echo "$help" 1>&2 exit 0 ;; o) # specify output file name outfile="$OPTARG" ;; v) # display version information echo "$name $version" exit 0 ;; \?) echo "$usage" 1>&2 exit 1 ;; esac done shift `expr $OPTIND - 1` codecfile=$1 if [ -z "$codecfile" ]; then codecfile=`ls /proc/asound/card*/codec*|head -1 2>/dev/null` if [ -n "$codecfile" ]; then echo "Reading codec data from $codecfile" fi fi if [ -z "$codecfile" ]; then echo "error: codec file not specified" >&2 exit 1 fi if [ ! -x $dir/codecgraph.py ]; then echo "error: can't execute codecgraph.py (package corrupt?)" >&2 exit 1 fi if [ -z "`which dot`" ]; then echo "error: dot executable not found (did you install graphviz?)" >&2 exit 1 fi if [ ! -r "$codecfile" ]; then echo "error: can't read input file $codecfile" >&2 exit 1 fi if [ -z "$outfile" ]; then outfile="`basename $codecfile`" fi cat $codecfile | grep -v "^[\t ]*$" | head -1 | grep ^Codec: if [ $? -ne 0 ]; then echo "error: $codecfile not a codec description" 2>&1 exit 1 fi dotfile=`mktemp -t codecgraph.XXXXXX` $dir/codecgraph.py $codecfile > $dotfile echo Generating $outfile.$fmt dot -T$fmt -o$outfile.$fmt $dotfile rm $dotfile ================================================ FILE: hda-tools/codecgraph.1 ================================================ .TH "CODECGRAPH" "1" "Version 1\&.0" "Jan 2008" "HDA tools" .PP .SH "NAME" codecgraph - hda-intel codec graph generator .PP .SH "SYNOPSIS" \fBcodecgraph\fP [\fB-f\fP \fIformat\fP] [\fB-h\fP] [\fB-o\fP \fIname\fP] [\fB-v\fP] [\fIcodecfile\fP] .PP .SH "DESCRIPTION" \fBcodecgraph\fP generates a graph based on the ALSA description of a High Definition Audio codec\&. The generated graph depicts the HDA codec layout and node connections, helping driver troubleshooting and maintenance\&. In Linux this description is available at \f(CW/proc/asound/card*/codec#*\fP\&. .PP .SH "OPTIONS" .IP "\fB-f\fP \fIformat\fP" Specify the format of the generated graph\&. Valid formats are all formats accepted by \fBdot(1)\fP, including \fBps\fP (PostScript)\&, \fBsvg\fP (Structured Vector Graphics)\&, \fBfig\fP (XFIG graphics) and \fBpng\fP (Portable Network Graphics)\&. .IP "\fB-h\fP" Show usage information and exit\&. .IP "\fB-o\fP \fIname\fP" Set the output file name\&. .IP "\fB-v\fP" Print version information and exit\&. .PP .SH "EXAMPLES" Generate a graph from codec.txt in PNG format: .IP "" \f(CWcodecgraph -f png codec.txt\fP .PP Generate a graph for the local host HDA codec data: .IP "" \f(CWcodecgraph\fP .PP .SH "SEE ALSO" dot(1) .PP .SH "AUTHOR" Eduardo Habkost \&. Wrapper script by Claudio Matsuoka \&. .PP ================================================ FILE: hda-tools/codecgraph.py ================================================ #!/usr/bin/python # # Script to generate graphviz graphs from HDA-Intel codec information # # by Eduardo Habkost # # Copyright (c) 2006,2007 Eduardo Habkost # Copyright (c) 2006,2007 Mandriva Conectiva # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import re, sys ALL_NODES = False def indentlevel(line): """Return the indent level of a line""" m = re_indent.match(line) if not m: return 0 return len(m.group(0)) def parse_item(level, lines): """Read a line and corresponding indented lines""" item = lines.pop(0).rstrip(' \r\n').lstrip(' ') subitems = list(parse_items(level, lines)) return item,subitems def parse_items(level, lines): """Parse a list of indented lines""" while lines: l = lines[0] linelvl = indentlevel(l) if linelvl <= level: # end of list break yield parse_item(linelvl, lines) def coloravg(a, b, v): r = tuple([int(a[i]*(1-v) + b[i]*v) for i in 0,1,2]) return r def formatcolor(c): return '#%02x%02x%02x' % c class Amplifier: def __init__(self, ofs, nsteps, stepsize, mute): self.ofs = int(ofs, 16) self.nsteps = int(nsteps, 16) self.stepsize = stepsize self.mute = mute def set_values(self, values): self.values = values self.gainvalues = [v & 0x7f for v in values] self.mutevalues = [(v & 0x80) <> 0 for v in values] def color(self): if True in self.mutevalues: level = 0 else: average = sum(self.gainvalues)/len(self.gainvalues) if self.nsteps == 0: level = 1 else: #XXX: confirm if this formula is correct level = 1-float(average-self.ofs)/(self.nsteps) if level < 0: level = 0 if level > 1: level = 1 zerocolor = (200, 200, 200) fullcolor = (0, 0, 255) color = coloravg(zerocolor, fullcolor, level) return formatcolor(color) class Node: node_info_re = re.compile('^Node (0x[0-9a-f]*) \[(.*?)\] wcaps 0x[0-9a-f]*?: (.*)$') final_hex_re = re.compile(' *(0x[0-9a-f]*)$') def __init__(self, codec, item, subitems): self.item = item self.subitems = subitems self.codec = codec fields = {} # split first line and get some fields data = item.split(' ') m = self.node_info_re.match(item) self.nid = int(m.group(1), 16) self.type = m.group(2) wcapstr = m.group(3) self.wcaps = wcapstr.split() # parse all items on the node information for item,subitems in self.subitems: # Parse node fields if ':' in item: f,v = item.split(':', 1) v = v.lstrip() # strip hex number at the end. # some fields, such as Pincap & Pin Default, # have an hex number in the end m = self.final_hex_re.search(f) if m: f = self.final_hex_re.sub('', f) # store the hex value and the # string, on different keys fields[f+'-hex'] = m.group(1),subitems fields[f] = v,subitems else: fields[f] = v,subitems else: sys.stderr.write("Unknown node item: %s\n" % (item)) self.fields = fields # parse connection info conn = fields.get('Connection', ('0', [])) number,items = conn self.num_inputs = int(number) conns = [] self.active_conn = None for i,sub in items: for j in i.split(): active = j.endswith('*') j = j.rstrip('*') nid = int(j, 16) conns.append(nid) if active: self.active_conn = nid assert len(conns) == self.num_inputs self.inputs = conns if not self.active_conn and self.num_inputs == 1: self.active_conn = self.inputs[0] # parse amplifier info def parse_amps(name, count): capstr = fields['%s caps' % (name)][0] if capstr == 'N/A': capstr = 'ofs=0x00, nsteps=0x00, stepsize=0x00, mute=0' capl = capstr.split(', ') caps = {} for cap in capl: cname,cval = cap.split('=', 1) caps[cname] = cval valstr = fields['%s vals' % (name)][0] vals = re.findall(r'\[([^]]*)\]', valstr) # warn if Amp-In vals field is broken if count != len(vals): sys.stderr.write("Node 0x%02x: Amp-In vals count is wrong: values found: %d. expected: %d\n" % (self.nid, len(vals), count)) amps = [] for i in range(count): amp = Amplifier(caps['ofs'], caps['nsteps'], caps['stepsize'], caps['mute']) if len(vals) > i: intvals = [int(v, 16) for v in vals[i].split(' ')] # just in case the "vals" field is # broken in our input file else: intvals = [0, 0] amp.set_values(intvals) amps.append(amp) return amps inamps = self.num_inamps() if inamps > 0: self.inamps = parse_amps('Amp-In', inamps) if self.has_outamp(): self.outamp, = parse_amps('Amp-Out', 1) self.outputs = [] def new_output(self, nid): self.outputs.append(nid) def input_nodes(self): for c in self.inputs: yield self.codec.get_node(c) def is_divided(self): if self.type == 'Pin Complex': return True return False def idstring(self): return 'nid-%02x' % (self.nid) def has_outamp(self): return 'Amp-Out' in self.wcaps def outamp_id(self): return '"%s-ampout"' % (self.idstring()) def out_id(self): if self.is_divided(): return self.main_output_id() if self.has_outamp(): return self.outamp_id() return self.outamp_next_id() def has_inamp(self): return 'Amp-In' in self.wcaps def many_ampins(self): types = ['Audio Mixer'] return self.type in types def num_inamps(self): if not self.has_inamp(): return 0 elif self.many_ampins(): return self.num_inputs else: return 1 def inamp_id(self, orignid): if self.many_ampins(): return '"%s-ampin-%s"' % (self.idstring(), orignid) return '"%s-ampin"' % (self.idstring()) def in_id(self, orignid): if self.is_divided(): return self.main_input_id() if self.has_inamp(): return self.inamp_id(orignid) return self.inamp_next_id() def main_id(self): assert not self.is_divided() return '"%s"' % (self.idstring()) def main_input_id(self): assert self.is_divided() return '"%s-in"' % (self.idstring()) def main_output_id(self): assert self.is_divided() return '"%s-out"' % (self.idstring()) def inamp_next_id(self): """ID of the node where the In-Amp would be connected""" if self.is_divided(): return self.main_output_id() return self.main_id() def outamp_next_id(self): """ID of the node where the Out-Amp would be connected""" if self.is_divided(): return self.main_input_id() return self.main_id() def wcaps_label(self): not_shown = ['Amp-In', 'Amp-Out'] show = [cap for cap in self.wcaps if not cap in not_shown] return ' '.join(show) def label(self): r = '0x%02x' % (self.nid) print '// %r' % (self.fields) pdef = self.fields.get('Pin Default') if pdef: pdef,subdirs = pdef r += '\\n%s' % (pdef) r += '\\n%s' % (self.wcaps_label()) pincap = self.fields.get('Pincap') if pincap: pincap,subdirs = pincap r += '\\n%s' % (pincap) r = '"%s"' % (r) return r def show_input(self): return ALL_NODES or len(self.inputs) > 0 def show_output(self): return ALL_NODES or len(self.outputs) > 0 def additional_attrs(self): default_attrs = [ ('shape', 'box'), ('color', 'black') ] shape_dict = { 'Audio Input':[ ('color', 'red'), ('shape', 'ellipse') ], 'Audio Output':[ ('color', 'blue'), ('shape', 'ellipse') ], 'Pin Complex':[ ('color', 'green'), ('shape', 'box') ], 'Audio Selector':[ ('shape', 'parallelogram'), ('orientation', '0') ], 'Audio Mixer':[ ('shape', 'hexagon') ], 'Unknown Node':[ ('color', 'red'), ('shape', 'Mdiamond') ], } return shape_dict.get(self.type, default_attrs) def new_node(self, f, id, attrs): f.write(' %s ' % (id)) if attrs: attrstr = ', '.join('%s=%s' % (f,v) for f,v in attrs) f.write('[%s]' % (attrstr)) f.write('\n') def dump_main_input(self, f): if self.show_input(): self.new_node(f, self.main_input_id(), self.get_attrs()) def dump_main_output(self, f): if self.show_output(): self.new_node(f, self.main_output_id(), self.get_attrs()) def get_attrs(self): attrs = [ ('label', self.label()) ] attrs.extend(self.additional_attrs()) return attrs def dump_main(self, f): if not self.is_divided(): if self.show_input() or self.show_output(): self.new_node(f, self.main_id(), self.get_attrs()) else: self.dump_main_input() self.dump_main_output() def show_amp(self, f, id, type, frm, to, label='', color=None): if color is None: fill = '' else: fill=' color="%s"' % (color) f.write(' %s [label = "%s", shape=triangle orientation=-90%s];\n' % (id, label, fill)) f.write(' %s -> %s [arrowsize=0.5, arrowtail=dot, weight=2.0%s];\n' % (frm, to, fill)) def dump_out_amps(self, f): if self.show_output() and self.has_outamp(): self.show_amp(f, self.outamp_id(), "Out", self.outamp_next_id(), self.outamp_id(), '', self.outamp.color()) def dump_in_amps(self, f): if self.show_input() and self.has_inamp(): if self.many_ampins(): amporigins = [("%d (0x%02x)" % (n, self.inputs[n]), self.inputs[n]) for n in range(len(self.inputs))] else: amporigins = [ ('', None) ] for i in range(len(amporigins)): label,origin = amporigins[i] ampid = self.inamp_id(origin) self.show_amp(f, ampid, "In", ampid, self.inamp_next_id(), label, self.inamps[i].color()) def dump_amps(self, f): self.dump_out_amps(f) self.dump_in_amps(f) def is_conn_active(self, c): if self.type == 'Audio Mixer': return True if c == self.active_conn: return True return False def dump_graph(self, f): codec = self.codec name = "cluster-%s" % (self.idstring()) if self.is_divided(): f.write('subgraph "%s-in" {\n' % (name)) f.write(' pencolor="gray80"\n') self.dump_main_input(f) self.dump_out_amps(f) f.write('}\n') f.write('subgraph "%s-out" {\n' % (name)) f.write(' pencolor="gray80"\n') self.dump_main_output(f) self.dump_in_amps(f) f.write('}\n') else: f.write('subgraph "%s" {\n' % (name)) f.write(' pencolor="gray80"\n') self.dump_main(f) self.dump_amps(f) f.write('}\n') for origin in self.input_nodes(): if self.is_conn_active(origin.nid): attrs="[color=gray20]" else: attrs="[color=gray style=dashed]" f.write('%s -> %s %s;\n' % (origin.out_id(), self.in_id(origin.nid), attrs)) re_indent = re.compile("^ *") class CodecInfo: def __init__(self, f): self.fields = {} self.nodes = {} lines = f.readlines() total_lines = len(lines) for item,subitems in parse_items(-1, lines): line = total_lines-len(lines) try: if not ': ' in item and item.endswith(':'): # special case where there is no ": " # but we want to treat it like a "key: value" # line # (e.g. "Default PCM:" line) item += ' ' if item.startswith('Node '): n = Node(self, item, subitems) self.nodes[n.nid] = n if item.startswith('No Modem Function Group found'): # ignore those lines pass elif ': ' in item: f,v = item.split(': ', 1) self.fields[f] = v elif item.strip() == '': continue else: sys.stderr.write("Warning: line %d ignored: %s\n" % (line, item)) except: sys.stderr.write('Exception around line %d\n' % (line)) sys.stderr.write('item: %r\n' % (item)) sys.stderr.write('subitems: %r\n' % (subitems)) raise self.create_out_lists() def get_node(self, nid): n = self.nodes.get(nid) if not n: # create a fake node n = Node(self, 'Node 0x%02x [Unknown Node] wcaps 0x0000: ' % (nid), []) self.nodes[nid] = n n.label = lambda: ('"Unknown Node 0x%02x"' % (nid)) return n def create_out_lists(self): for n in self.nodes.values(): for i in n.input_nodes(): i.new_output(n.nid) def dump(self): print "Codec: %s" % (self.fields['Codec']) print "Nodes: %d" % (len(self.nodes)) for n in self.nodes.values(): print "Node: 0x%02x" % (n.nid), print " %d conns" % (n.num_inputs) def dump_graph(self, f): f.write('digraph {\n') f.write("""rankdir=LR ranksep=3.0 """) for n in self.nodes.values(): n.dump_graph(f) f.write('}\n') def main(argv): f = open(argv[1], 'r') ci = CodecInfo(f) ci.dump_graph(sys.stdout) if __name__ == '__main__': main(sys.argv) ================================================ FILE: hda-tools/config_dump.sh ================================================ #!/bin/bash HDA_AUDIO_AFG=0x01 HDA_PIN_COMPLEX=0x04 cmdResult=0 function sendCommand() { result=`hda-verb -q "$1" "$2" "$3"` let cmdResult=result } function findAudioRootNode() { local result=-1 sendCommand 0 PARAMETERS NODE_COUNT start=$(( ($cmdResult >> 16) & 0xFF )) end=$(( $start + (($cmdResult >> 0) & 0xFF) )) #echo $start...$end n=$start while [[ $n -lt $end ]]; do #echo Testing node $n sendCommand $n PARAMETERS FUNCTION_TYPE let type=$(($cmdResult & 0x7F)) if [[ $type -eq $HDA_AUDIO_AFG ]]; then let result=$n break fi ((n++)) done echo $result } function shifty() { local result=$(( ($1 >> $2) & ((1 << ($3-$2+1))-1) )) echo $result } rgPortConnectivity=(Connected NotConnected FixedFunction Both) rgDefaultDevice=(LineOut Speaker HPOut CD SPDIFOut DigitalOtherOut ModemLineSide ModemHandsetSide LineIn AUX MicIn Telephony SPDIFIn DigitalOtherIn Reserved Other) rgConnectionType=(Unknown .125 .250 ATAPIInternal RCA Optical OtherDigital OtherAnalog MultichannelAnalog XLRPro RJ11 Combination Undef_C Undef_D Undef_E Other) rgColor=(Unknown Black Grey Blue Green Red Orange Yellow Purple Pink Reserved_A Reserved_B Reserved_C Reserved_D White Other) rgMisc=(NoJackOverride JackOverride) function parseConfig() { local val=$(shifty $1 30 31) printf "\tPort Connectivity: %s (0x%x)\n" ${rgPortConnectivity[$val]} $val val=$(shifty $1 29 24) printf "\tLocation: (0x%x)\n" $val val=$(shifty $1 20 23) printf "\tDefault Device: %s (0x%x)\n" ${rgDefaultDevice[$val]} $val val=$(shifty $1 16 19) printf "\tConnection Type: %s (0x%x)\n" ${rgConnectionType[$val]} $val val=$(shifty $1 12 15) printf "\tColor: %s (0x%x)\n" ${rgColor[$val]} $val val=$(shifty $1 8 11) printf "\tMisc: %s (0x%x)\n" ${rgMisc[$(shifty $val 0 0)]} $val val=$(shifty $1 4 7) printf "\tDefault Association: (0x%x)\n" $val val=$(shifty $1 0 3) printf "\tSequence: (0x%x)\n" $val } if [[ "$1" != "" ]]; then parseConfig "$1" exit fi rootNode=`findAudioRootNode` #echo $rootNode sendCommand $rootNode PARAMETERS NODE_COUNT #printf "result=0x%08x\n" $cmdResult start=$(( ($cmdResult >> 16) & 0xFF )) end=$(( $start + (($cmdResult >> 0) & 0xFF) )) #echo $start...$end n=$start while [[ $n -lt $end ]]; do sendCommand $n PARAMETERS AUDIO_WIDGET_CAP let type=$((($cmdResult >> 20) & 0x0F)) if [[ $type -eq $HDA_PIN_COMPLEX ]]; then sendCommand $n GET_CONFIG_DEFAULT 0 let config=$cmdResult printf "Node 0x%02x [Pin Complex] : Pin Config 0x%08x\n" $n $config parseConfig $config fi ((n = $n+1)) done ================================================ FILE: hda-tools/convert.sh ================================================ #!/bin/bash if [ -t 0 ]; then echo "usage:" echo " echo -n bytes | ./convert.sh [config|other]" echo "or:" echo " pbpaste | ./convert.sh [config|other]" exit fi declare -a g_configDefault declare -a g_configFill function add_to_array() # $1 is node # $2 is payload # $3 is shift value { if [[ -z "${g_configDefault[$1]}" ]]; then #echo initial set node: $1 g_configDefault[$1]=0 g_configFill[$1]=0 fi local cur=g_configDefault[$1] g_configDefault[$1]=$(( $cur | ($2<<$3) )) local fill=${g_configFill[$1]} g_configFill[$1]=$(( $fill | (0x1<<$3) )) } declare -a g_unknownVerbs function add_to_unknown() # $1 is verb data { local count=${#g_unkownVerbs[@]} g_unkownVerbs[$count]=$1 } function shifty() { local result=$(( ($1 >> $2) & ((1 << ($3-$2+1))-1) )) echo $result } input=$(cat -) let index=0 while [[ index -lt ${#input} ]]; do ch=${input:$index:1} if [[ $ch =~ [a-fA-F0-9] ]]; then verb=$verb$ch fi if [[ ${#verb} -eq 8 ]]; then let verb_n=0x$verb verb="" cmd=$(shifty $verb_n 8 19) payload=$(shifty $verb_n 0 7) node=$(shifty $verb_n 20 26) if [[ $cmd -eq 0x71c ]]; then #printf "byte0: 0x%x, 0x%02x\n" $node $payload add_to_array $node $payload 0 elif [[ $cmd -eq 0x71d ]]; then #printf "byte1: 0x%x, 0x%02x\n" $node $payload add_to_array $node $payload 8 elif [[ $cmd -eq 0x71e ]]; then #printf "byte2: 0x%x, 0x%02x\n" $node $payload add_to_array $node $payload 16 elif [[ $cmd -eq 0x71f ]]; then #printf "byte3: 0x%x, 0x%02x\n" $node $payload add_to_array $node $payload 24 else add_to_unknown $verb_n fi fi ((index++)) done #echo ${g_configDefault[*]} if [[ -z "$1" && ${#g_configDefault[@]} -ne 0 ]]; then echo Config Data: fi if [[ -z "$1" || "$1" == "config" ]]; then let i_temp=0 while [[ $i_temp -lt 256 ]]; do if [[ ! -z "${g_configDefault[$i_temp]}" && ${g_configFill[$i_temp]} -eq 0x01010101 ]]; then printf " 0x%02x, 0x%08x,\n" $i_temp ${g_configDefault[$i_temp]} fi ((i_temp++)) done fi let extra_unknown=0 let i_temp=0 while [[ $i_temp -lt 256 ]]; do if [[ ! -z "${g_configFill[$i_temp]}" ]]; then if [[ ${g_configFill[$i_temp]} -ne 0x1111 ]]; then ((extra_unknown++)) fi fi ((i_temp++)) done count_temp=${#g_unkownVerbs[@]} total_temp=$(($count_temp+$extra_unknown)) if [[ -z "$1" && $total_temp -ne 0 ]]; then echo Unknown Verbs: fi if [[ -z "$1" || "$1" == "other" ]]; then # output incomplete configDefaults let i_temp=0 while [[ $i_temp -lt 256 ]]; do if [[ ! -z "${g_configFill[$i_temp]}" && ${g_configFill[$i_temp]} -ne 0x01010101 ]]; then x=${g_configDefault[$i_temp]} fill=${g_configFill[$i_temp]} if [[ $(($fill & 0x01)) -ne 0 ]]; then new="$(printf "%08x" $(( ($i_temp<<20) | (0x71c<<8) | (($x>>0)&0xFF) )))" if [[ -z "$unknown" ]]; then unknown=$new; else unknown="$unknown $new"; fi fi if [[ $(($fill & 0x0100)) -ne 0 ]]; then new="$(printf "%08x" $(( ($i_temp<<20) | (0x71d<<8) | (($x>>8)&0xFF) )))" if [[ -z "$unknown" ]]; then unknown=$new; else unknown="$unknown $new"; fi fi if [[ $(($fill & 0x010000)) -ne 0 ]]; then new="$(printf "%08x" $(( ($i_temp<<20) | (0x71e<<8) | (($x>>16)&0xFF) )))" if [[ -z "$unknown" ]]; then unknown=$new; else unknown="$unknown $new"; fi fi if [[ $(($fill & 0x01000000)) -ne 0 ]]; then new="$(printf "%08x" $(( ($i_temp<<20) | (0x71f<<8) | (($x>>24)&0xFF) )))" if [[ -z "$unknown" ]]; then unknown=$new; else unknown="$unknown $new"; fi fi fi ((i_temp++)) done # output other verbs (non-config default) let i_temp=0 while [[ $i_temp -lt $count_temp ]]; do new="$(printf "%08x" ${g_unkownVerbs[$i_temp]})" if [[ -z "$unknown" ]]; then unknown=$new; else unknown="$unknown $new"; fi ((i_temp++)) done if [[ $total_temp -gt 0 ]]; then printf "%s\n" "$unknown" | xxd -r -p | xxd -i -c 4 fi fi ================================================ FILE: hda-tools/eapd_dump.sh ================================================ #!/bin/bash # Get right input amp # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x0 # Get left input amp # 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x2000 # Get right output amp # 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x8000 # Get left output amp # 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0xa000 # Set both input amps # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 = 0x7003 function dump { echo -e "\t\tnid = $1 --> result `hda-verb $1 $2 $3 | tail -c 11`" } function dump_all { dump 0x02 $1 $2 dump 0x03 $1 $2 dump 0x04 $1 $2 dump 0x05 $1 $2 dump 0x06 $1 $2 dump 0x07 $1 $2 dump 0x08 $1 $2 dump 0x09 $1 $2 dump 0x0a $1 $2 dump 0x0b $1 $2 dump 0x0c $1 $2 dump 0x0d $1 $2 dump 0x0e $1 $2 dump 0x0f $1 $2 dump 0x10 $1 $2 dump 0x11 $1 $2 dump 0x12 $1 $2 dump 0x13 $1 $2 dump 0x14 $1 $2 dump 0x15 $1 $2 dump 0x16 $1 $2 dump 0x17 $1 $2 dump 0x18 $1 $2 dump 0x19 $1 $2 dump 0x1a $1 $2 dump 0x1b $1 $2 dump 0x1c $1 $2 dump 0x1d $1 $2 dump 0x1e $1 $2 dump 0x1f $1 $2 dump 0x20 $1 $2 dump 0x21 $1 $2 dump 0x22 $1 $2 dump 0x23 $1 $2 dump 0x24 $1 $2 } #echo -e "\tConnection Selector" #dump_all GET_CONNECT_SEL 0x0 #echo -e "\tProcessing State" #dump_all GET_PROC_STATE 0x0 #echo -e "\tPower State" #dump_all GET_POWER_STATE 0x0 #echo -e "\tPin Widget Control" #dump_all GET_PIN_WIDGET_CONTROL 0x0 #echo -e "\tPin Sense" #dump_all GET_PIN_SENSE 0x0 echo -e "\tEAPD" dump_all GET_EAPD_BTLENABLE 0x0 #echo -e "\tAmp Mute (Right Input)" #dump_all GET_AMP_GAIN_MUTE 0x0 #echo -e "\tAmp Mute (Left Input)" #dump_all GET_AMP_GAIN_MUTE 0x2000 #echo -e "\tAmp Mute (Right Output)" #dump_all GET_AMP_GAIN_MUTE 0x8000 #echo -e "\tAmp Mute (Left Output)" #dump_all GET_AMP_GAIN_MUTE 0xa000 #echo -e "\tVolume Knob Control" #dump_all GET_VOLUME_KNOB_CONTROL 0x0 #echo -e "\tConfiguration Default" #dump_all GET_CONFIG_DEFAULT 0x0 ================================================ FILE: hda-tools/extract_hda.sh ================================================ #!/bin/bash #set -x # check arguments if [[ "$#" -lt 3 ]]; then echo Usage: $0 {AppleHDA-path} {name} {codec-id-1} [codec-id-2 codec-id-n ...] echo echo "{AppleHDA-path} is path of patched AppleHDA.kext or AppleHDA injector" echo "{name} is \"Resources\" folder suffix to be created for extracted files (Extract_name)" echo "Following the fixed arguments, are one or more codec ids, usually specified in hex, such as 0x10ec0892" echo "Specifiying zero (0) for a codec id, will result in it matching all that are present" echo echo "Examples:" echo " $0 ~/Downloads/realtekALC.kext ALC892 0x10ec0892" echo " $0 ~/Downloads/AppleHDA.kext ALC280 0x10ec0892" echo " $0 ~/Projects/probook.git/AppleHDA_ProBook.kext ProBook 0x10ec0282 0x10ec0280" echo " $0 ~/Projects/probook.git/AppleHDA_ProBook.kext ProBook 0" exit fi # g_codecFilter array declare -a g_codecFilter function add_codec() # $1 is codec_id { local count=${#g_codecFilter[@]} g_codecFilter[$count]=$(($1)) } function check_codec() # $1 is codec_id to check # echo true/false { local count=${#g_codecFilter[@]} local i for((i=0; i<$count; i++)); do if [[ "$1" -eq ${g_codecFilter[$i]} || ${g_codecFilter[$i]} -eq 0 ]]; then break fi done if [[ $i -eq $count ]]; then echo false else echo true fi } # g_layoutList declare -a g_layoutList function add_layout() # $1 is layout-id to add { local count=${#g_layoutList[@]} local i for((i=0; i<$count; i++)); do if [[ "$1" -eq ${g_layoutList[$i]} ]]; then break fi done if [[ $i == $count ]]; then g_layoutList[$count]=$(($1)) fi } # g_layoutList declare -a g_pathmapList function add_pathmap() # $1 is pathmap-id to add { local count=${#g_pathmapList[@]} local i for((i=0; i<$count; i++)); do if [[ "$1" -eq ${g_pathmapList[$i]} ]]; then break fi done if [[ $i == $count ]]; then g_pathmapList[$count]=$(($1)) fi } function check_pathmap() # $1 is pathmap_id to check # echo true/false { local count=${#g_pathmapList[@]} local i for((i=0; i<$count; i++)); do if [[ "$1" -eq ${g_pathmapList[$i]} ]]; then break fi done if [[ $i -eq $count ]]; then echo false else echo true fi } function merge_entry() # $1 is keypath to read # $2 is source plist # $3 is keypath to write # #4 is dest plist { /usr/libexec/PlistBuddy -x -c "Print \"$1\"" "$2" >/tmp/org_rehabman_temp.plist /usr/libexec/PlistBuddy -x -c "Add \"$3\" dict" "$4" /usr/libexec/PlistBuddy -c "Merge /tmp/org_rehabman_temp.plist \"$3\"" "$4" } hda="$1" extract=Extract_"$2" # build list of codecs to filter for ((i=3; i<=$#; i++)); do add_codec "${!i}" done #echo [dbg] g_codecFilter: ${g_codecFilter[*]} # determine plist to scan plist="$hda"/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist if [[ ! -e "$plist" ]]; then plist="$hda"/Contents/Info.plist fi if [[ ! -e "$plist" ]]; then plist=./Info.plist fi #echo [dbg] plist: "$plist" if [[ ! -e "$plist" ]]; then if [[ ! -e "./hdaconfig.txt" ]]; then echo "Info.plist at $plist does not exist (and no hdaconfig.txt)" exit fi fi if [[ ! -d "$extract" ]]; then rm -rf "$extract" mkdir "$extract" fi rm -f "$extract"/Platforms.plist rm -f "$extract"/layout*.plist cat >"$extract"/ahhcd.plist < HDAConfigDefault ahhcd_starter_plist ahhcd_count=0 if [[ -e "$plist" ]]; then # use PlistBuddy to look at the Info.plist for ((i=0; 1; i++)); do prefix=":IOKitPersonalities:HDA Hardware Config Resource:HDAConfigDefault:$i" codec=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" $plist 2>&1` if [[ "$codec" == *"Does Not Exist"* ]]; then break fi if [[ `check_codec $codec` == 'true' ]]; then merge_entry "$prefix" $plist "HDAConfigDefault:$ahhcd_count" "$extract"/ahhcd.plist ((ahhcd_count++)) layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" $plist 2>&1` if [[ "$layout" != *"Does Not Exist"* ]]; then add_layout "$layout" fi fi #printf "[dbg] found codec: 0x%x\n" $codec done fi # also look at the root (AppleHDAPatcher style hdaconfig.txt as Info.plist) plist=hdaconfig.txt prefix="" codec=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" $plist 2>&1` if [[ "$codec" != *"Does Not Exist"* ]]; then if [[ `check_codec $codec` == 'true' ]]; then merge_entry "$prefix" $plist "HDAConfigDefault:$ahhcd_count" "$extract"/ahhcd.plist ((ahhcd_count++)) layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" $plist 2>&1` fi if [[ "$layout" != *"Does Not Exist"* ]]; then add_layout "$layout" fi fi #printf "[dbg] found codec: 0x%x\n" $codec # look at PostConstructionInitialization for additional layout-ids (and perhaps other data) pci_count=0 for ((i=0; 1; i++)); do prefix=":IOKitPersonalities:HDA Hardware Config Resource:PostConstructionInitialization:$i" codec=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" $plist 2>&1` if [[ "$codec" == *"Does Not Exist"* ]]; then break fi if [[ `check_codec $codec` == 'true' ]]; then merge_entry "$prefix" $plist "PostConstructionInitialization:$pci_count" "$extract"/ahhcd.plist ((pci_count++)) for((j=0; 1; j++)); do layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:Layouts:$j\"" $plist 2>&1` if [[ "$layout" == *"Does Not Exist"* ]]; then break fi add_layout "$layout" done fi done echo [dbg] g_layoutList: ${g_layoutList[*]} for ((i=0; i<${#g_layoutList[@]}; i++)); do # copy available layout file layout=${g_layoutList[$i]} echo layout$layout.zml.zlib if [[ -e layout$layout.zml.zlib ]]; then zlib inflate layout$layout.zml.zlib >"$extract"/layout$layout.plist elif [[ -e layout$layout.xml.zlib ]]; then zlib inflate layout$layout.xml.zlib >"$extract"/layout$layout.plist elif [[ -e $1/Contents/Resources/layout$layout.xml.zlib ]]; then zlib inflate $1/Contents/Resources/layout$layout.xml.zlib >"$extract"/layout$layout.plist elif [[ -e $1/Contents/Resources/layout$layout.xml ]]; then cp $1/Contents/Resources/layout$layout.xml "$extract"/layout$layout.plist fi done if [ 0 -eq 1 ]; then if [[ ! -e "$extract"/layout.bak ]]; then mkdir "$extract"/layout.bak; fi rm -f "$extract"/layout.bak/* cp "$extract"/layout*.plist "$extract"/layout.bak fi # clean each layout*.plist for codec filter for layout in "$extract"/layout*.plist; do for ((i=0; 1; i++)); do prefix=":PathMapRef:$i" pathmap=`/usr/libexec/PlistBuddy -c "Print \"$prefix:PathMapID\"" $layout 2>&1` if [[ "$pathmap" == *"Does Not Exist"* ]]; then break fi for ((j=0; 1; j++)); do prefix=":PathMapRef:$i:CodecID:$j" codec=`/usr/libexec/PlistBuddy -c "Print \"$prefix\"" $layout 2>&1` if [[ "$codec" == *"Does Not Exist"* ]]; then break fi if [[ `check_codec $codec` != "true" ]]; then #echo [dbg] $layout: deleting \"$prefix\" for codec $codec /usr/libexec/PlistBuddy -c "Delete \"$prefix\"" $layout ((j--)) fi done done done # now, delete any PathMapRef with an empty codec list for layout in "$extract"/layout*.plist; do for ((i=0; 1; i++)); do prefix=":PathMapRef:$i" pathmap=`/usr/libexec/PlistBuddy -c "Print \"$prefix:PathMapID\"" $layout 2>&1` if [[ "$pathmap" == *"Does Not Exist"* ]]; then break fi test=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID:0\"" $layout 2>&1` if [[ "$test" == *"Does Not Exist"* ]]; then #echo [dbg] $layout: deleting \"$prefix\" \($pathmap\) /usr/libexec/PlistBuddy -c "Delete \"$prefix\"" $layout ((i--)) else add_pathmap "$pathmap" fi done done #echo [dbg] g_pathmapList: ${g_pathmapList[*]} # copy available Platforms if [[ -e Platforms.zml.zlib ]]; then zlib inflate Platforms.zml.zlib >"$extract"/Platforms.plist elif [[ -e Platforms.xml.zlib ]]; then zlib inflate Platforms.xml.zlib >"$extract"/Platforms.plist elif [[ -e $1/Contents/Resources/Platforms.xml.zlib ]]; then zlib inflate $1/Contents/Resources/Platforms.xml.zlib >"$extract"/Platforms.plist elif [[ -e $1/Contents/Resources/Platforms.xml ]]; then cp $1/Contents/Resources/Platforms.xml "$extract"/Platforms.plist fi /usr/libexec/PlistBuddy -c "Delete :CommonPeripheralDSP" "$extract"/Platforms.plist # in Platforms.plist, remove any pathmap not in g_pathmapList plist="$extract"/Platforms.plist for ((i=0; 1; i++)); do pathmap=`/usr/libexec/PlistBuddy -c "Print :PathMaps:$i:PathMapID" $plist 2>&1` if [[ "$pathmap" == *"Does Not Exist"* ]]; then break fi if [[ `check_pathmap $pathmap` != "true" ]]; then #echo [dbg] Platforms.plist: deleting \":PathMaps:$i\" \($pathmap\) /usr/libexec/PlistBuddy -c "Delete :PathMaps:$i" $plist ((i--)) fi done echo "Extracted files in $extract:" ls -l "$extract" ================================================ FILE: hda-tools/gen_ahhcd.sh ================================================ #!/bin/bash #set -x if [[ "$1" == "" ]]; then echo "Usage: $0 {codec}" echo echo "{codec} is a \"Resources\" directory suffix that contains ahhcd.plist, layout*.plist, Platforms.plist" echo echo "Examples:" echo " $0 ALC892" echo " $0 ProBook" exit fi out="SSDT-$1_out.dsl" plist="Resources_$1/ahhcd.plist" convert_sh=`dirname "$0"`/convert.sh if [[ ! -e "$plist" ]]; then echo Error: file \"$plist\" does not exist, aborting... exit fi # g_layoutList declare -a g_codecList function add_codec() # $1 is codec-id to add { local count=${#g_codecList[@]} local i for((i=0; i<$count; i++)); do if [[ "$1" -eq ${g_codecList[$i]} ]]; then break fi done if [[ $i == $count ]]; then g_codecList[$count]=$(($1)) fi } function generate_pinconfig() { local count=0 for ((j=0; 1; j++)); do prefix=":HDAConfigDefault:$j" codec_test=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" "$plist" 2>&1` if [[ "$codec_test" == *"Does Not Exist"* ]]; then break fi if [[ $codec_test -eq $codec ]]; then layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" $plist 2>&1` if [[ "$layout" == *"Does Not Exist"* ]]; then echo Error: LayoutID not present at index $j for codec $codec continue fi verbs=`/usr/libexec/PlistBuddy -x -c "Print \"$prefix:ConfigData\"" "$plist" 2>&1` verbs=$([[ "$verbs" =~ \(.*)\<\/data\> ]] && echo ${BASH_REMATCH[1]}) verbs=`echo $verbs | base64 --decode | xxd -p | tr '\n' ' '` verbs=`echo -n "$verbs" | "$convert_sh" config` if [[ "$verbs" != "" ]]; then ((count++)) fi fi done if [[ $count -ne 0 ]]; then printf " \"PinConfigDefault\", Package()\n" >>$out printf " {\n" >>$out printf " Package(){},\n" >>$out for ((j=0; 1; j++)); do prefix=":HDAConfigDefault:$j" codec_test=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" "$plist" 2>&1` if [[ "$codec_test" == *"Does Not Exist"* ]]; then break fi if [[ $codec_test -eq $codec ]]; then layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" "$plist" 2>&1` if [[ "$layout" == *"Does Not Exist"* ]]; then echo Error: LayoutID not present at index $j for codec $codec continue fi verbs=`/usr/libexec/PlistBuddy -x -c "Print \"$prefix:ConfigData\"" "$plist" 2>&1` verbs=$([[ "$verbs" =~ \(.*)\<\/data\> ]] && echo ${BASH_REMATCH[1]}) verbs=`echo $verbs | base64 --decode | xxd -p | tr '\n' ' '` verbs_t=`echo -n "$verbs" | "$convert_sh" config` if [[ "$verbs_t" != "" ]]; then printf " Package()\n" >>$out printf " {\n" >>$out printf " \"LayoutID\", %d,\n" $layout >>$out printf " \"PinConfigs\", Package()\n" >>$out printf " {\n" >>$out printf " Package(){},\n" >>$out echo -n "$verbs" | "$convert_sh" config | sed 's/^/ /' >>$out printf " },\n" >>$out printf " },\n" >>$out fi fi done printf " },\n" >>$out fi } function generate_commands() { # "Custom Commands" local count=0 for ((j=0; 1; j++)); do prefix=":HDAConfigDefault:$j" codec_test=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" "$plist" 2>&1` if [[ "$codec_test" == *"Does Not Exist"* ]]; then break fi if [[ $codec_test -eq $codec ]]; then layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" $plist 2>&1` if [[ "$layout" == *"Does Not Exist"* ]]; then echo Error: LayoutID not present at index $j for codec $codec continue fi verbs=`/usr/libexec/PlistBuddy -x -c "Print \"$prefix:ConfigData\"" "$plist" 2>&1` verbs=$([[ "$verbs" =~ \(.*)\<\/data\> ]] && echo ${BASH_REMATCH[1]}) verbs=`echo $verbs | base64 --decode | xxd -p | tr '\n' ' '` verbs_t=`echo -n "$verbs" | "$convert_sh" other` if [[ "$verbs_t" != "" ]]; then ((count++)) fi fi done if [[ $count -ne 0 ]]; then printf " \"Custom Commands\", Package()\n" >>$out printf " {\n" >>$out printf " Package(){},\n" >>$out for ((j=0; 1; j++)); do prefix=":HDAConfigDefault:$j" codec_test=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" "$plist" 2>&1` if [[ "$codec_test" == *"Does Not Exist"* ]]; then break fi if [[ $codec_test -eq $codec ]]; then layout=`/usr/libexec/PlistBuddy -c "Print \"$prefix:LayoutID\"" $plist 2>&1` if [[ "$layout" == *"Does Not Exist"* ]]; then echo Error: LayoutID not present at index $j for codec $codec continue fi verbs=`/usr/libexec/PlistBuddy -x -c "Print \"$prefix:ConfigData\"" "$plist" 2>&1` verbs=$([[ "$verbs" =~ \(.*)\<\/data\> ]] && echo ${BASH_REMATCH[1]}) verbs=`echo $verbs | base64 --decode | xxd -p | tr '\n' ' '` verbs_t=`echo -n "$verbs" | "$convert_sh" other` if [[ "$verbs_t" != "" ]]; then printf " Package()\n" >>$out printf " {\n" >>$out printf " \"LayoutID\", %d,\n" $layout >>$out printf " \"Command\", Buffer()\n" >>$out printf " {\n" >>$out echo -n "$verbs" | "$convert_sh" other | sed 's/^/ /' >>$out printf " },\n" >>$out printf " },\n" >>$out fi fi done printf " },\n" >>$out fi } # find all codecs in ahhcd.plist for ((i=0; 1; i++)); do prefix=":HDAConfigDefault:$i" codec=`/usr/libexec/PlistBuddy -c "Print \"$prefix:CodecID\"" "$plist" 2>&1` if [[ "$codec" == *"Does Not Exist"* ]]; then break fi add_codec "$codec" done #echo [dbg] codecs: ${g_codecList[*]} echo Generating "$out"... # generate SSDT header cat >$out <y", }, "CodecCommanderPowerHook", Package() { "Disable", ">y", }, "CodecCommanderProbeInit", Package() { "Version", 0x020600, ssdt_starter_dsl # for each codec/layout in ahhcd.plist, generate pinconfigs/verbs count=${#g_codecList[@]} for((i=0; i<$count; i++)); do codec=${g_codecList[$i]} printf "generating: \"%04x_%04x\"\n" $(($codec>>16)) $(($codec&0xFFFF)) printf " \"%04x_%04x\", Package()\n" $(($codec>>16)) $(($codec&0xFFFF)) >>$out printf " {\n" >>$out generate_pinconfig generate_commands printf " },\n" >>$out done # generate SSDT footer printf " },\n" >>$out printf " })\n" >>$out printf "}\n" >>$out printf "//EOF\n" >>$out #EOF ================================================ FILE: hda-tools/node_dump.sh ================================================ #!/bin/bash # Get right input amp # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x0 # Get left input amp # 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x2000 # Get right output amp # 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x8000 # Get left output amp # 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0xa000 # Set both input amps # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 = 0x7003 function dump { echo -e "\t\tnid = $1 --> result `hda-verb $1 $2 $3 | tail -c 11`" } function dump_all { dump 0x02 $1 $2 dump 0x03 $1 $2 dump 0x04 $1 $2 dump 0x05 $1 $2 dump 0x06 $1 $2 dump 0x07 $1 $2 dump 0x08 $1 $2 dump 0x09 $1 $2 dump 0x0a $1 $2 dump 0x0b $1 $2 dump 0x0c $1 $2 dump 0x0d $1 $2 dump 0x0e $1 $2 dump 0x0f $1 $2 dump 0x10 $1 $2 dump 0x11 $1 $2 dump 0x12 $1 $2 dump 0x13 $1 $2 dump 0x14 $1 $2 dump 0x15 $1 $2 dump 0x16 $1 $2 dump 0x17 $1 $2 dump 0x18 $1 $2 dump 0x19 $1 $2 dump 0x1a $1 $2 dump 0x1b $1 $2 dump 0x1c $1 $2 dump 0x1d $1 $2 dump 0x1e $1 $2 dump 0x1f $1 $2 dump 0x20 $1 $2 dump 0x21 $1 $2 dump 0x22 $1 $2 dump 0x23 $1 $2 dump 0x24 $1 $2 } echo -e "\tConnection Selector" dump_all GET_CONNECT_SEL 0x0 echo -e "\tProcessing State" dump_all GET_PROC_STATE 0x0 echo -e "\tPower State" dump_all GET_POWER_STATE 0x0 echo -e "\tPin Widget Control" dump_all GET_PIN_WIDGET_CONTROL 0x0 echo -e "\tPin Sense" dump_all GET_PIN_SENSE 0x0 echo -e "\tEAPD" dump_all GET_EAPD_BTLENABLE 0x0 echo -e "\tAmp Mute (Right Input)" dump_all GET_AMP_GAIN_MUTE 0x0 echo -e "\tAmp Mute (Left Input)" dump_all GET_AMP_GAIN_MUTE 0x2000 echo -e "\tAmp Mute (Right Output)" dump_all GET_AMP_GAIN_MUTE 0x8000 echo -e "\tAmp Mute (Left Output)" dump_all GET_AMP_GAIN_MUTE 0xa000 echo -e "\tVolume Knob Control" dump_all GET_VOLUME_KNOB_CONTROL 0x0 echo -e "\tConfiguration Default" dump_all GET_CONFIG_DEFAULT 0x0 ================================================ FILE: hda-tools/print_version.sh ================================================ #set -x # extract minor version (eg. 10.9 vs. 10.10 vs. 10.11) MINOR_VER=$([[ "$(sw_vers -productVersion)" =~ [0-9]+\.([0-9]+) ]] && echo ${BASH_REMATCH[1]}) if [[ $MINOR_VER -ge 11 ]]; then echo 10.11+ else echo 10.10- fi ================================================ FILE: hda-tools/verbit.sh ================================================ #!/bin/bash # verbit - Utility to parse a Linux Alsa Codec Dump and display the verbs used. # Some basic verb modifications needed for AppleHDA are displayed as well. # # version 1.0 - This version assists with simple verb decoding and it is # up to the user to choose which nodes and any final modifications # to make. # # Many Thanks to THe KiNG # Signal64 blacklist[0]="411111f0" blacklist[1]="400000f0" blacklist[2]="CD at Int ATAPI" codecfile=$1 debug=$(dirname $1)/verbitdebug.txt typeset -i i=0 typeset -i j=0 typeset -i verbcount=0 typeset -i nextassoc=0 brk="--------------------------------------------------------------------------------------------------------" if [[ ! -f $codecfile ]];then echo "ERROR: Could not find codec dump file: $codecfile" exit fi # Simple check to see if this is a ALSA codec dump file chk=`head -4 $codecfile | sed '/AFG Function Id/d' | cut -f1 -d":" | tr "\n" " " | tr -d " "` if [[ $chk != "CodecAddressVendorId" ]];then echo "ERROR: This doesn't appear to be an alsa codec dump file" head -4 $codecfile exit fi #################################################################### # Start - Parse and display original codec info from file > $debug echo -e "\nVerbs from Linux Codec Dump File: $codecfile" codecname=`head $codecfile | grep Codec: | cut -f2 -d":" | cut -f2- -d" "` codecaddr=`head $codecfile | grep Address: | cut -f2 -d":"` codechex=`head $codecfile | grep "Vendor Id:" | cut -f2 -d":"` codecdec=`printf "%d" $codechex` printf "\nCodec: %s Address: %s DevID: %s (%s)\n" "$codecname" $codecaddr $codecdec $codechex echo -e "\n Jack Color Description Node PinDefault Original Verbs\n$brk" #addr=`grep Address $codecfile | cut -f2 -d" "` typeset -i nidnum=0 while read line;do chknode=`echo $line | grep "Node 0x" | cut -f2 -d" "` if [[ -n $chknode ]];then hexnode=$chknode vnode=`echo $hexnode | cut -f2 -d"x"` fi pin=`echo $line | grep "Pin Default" | cut -f2 -d"x" | cut -f1 -d":"` if [[ -n $pin ]];then desc=`echo $line | cut -f2 -d"]"` jack=`grep -A8 "Node $hexnode" $codecfile | grep -A2 "$pin" | grep Color | cut -f2 -d"=" | cut -f1 -d","` color=`grep -A8 "Node $hexnode" $codecfile | grep -A2 "$pin" | grep Color | cut -f3 -d"="` # 71c Default Association/Sequence verb1=$codecaddr$vnode"71c"`echo $pin | cut -c7,8` # 71d Color/Misc verb2=$codecaddr$vnode"71d"`echo $pin | cut -c5,6` # 71e Default Device/Connection Type verb3=$codecaddr$vnode"71e"`echo $pin | cut -c3,4` # 71f Port Connectivity/Location verb4=$codecaddr$vnode"71f"`echo $pin | cut -c1,2` printf "%7s %7s %-27s %3d %-6s %-12s %s %s %s %s\n" $jack $color "$desc" $hexnode $hexnode "0x"$pin $verb1 $verb2 $verb3 $verb4 chkblklist="$jack $color $desc $hexnode 0x$pin" blklisted=0;i=0 while [ $i -lt ${#blacklist[@]} ];do chk=`echo $chkblklist | grep "${blacklist[i]}"` if [[ $chk ]];then blklisted=1 fi i=i+1 done if [[ $blklisted = 0 ]];then vdesc[verbcount]="$desc" vjack[verbcount]=$jack vcolor[verbcount]=$color vhex[verbcount]=$hexnode vpin[verbcount]=$pin verbc[verbcount]=$verb1 verbd[verbcount]=$verb2 verbe[verbcount]=$verb3 verbf[verbcount]=$verb4 verbcount=verbcount+1 else blnodes=$blnodes$hexnode" " fi fi done < $codecfile echo -e "$brk\n" # Show nodes that were blacklisted and removed echo "Blacklist:" >> $debug echo ${blacklist[*]} >> $debug echo "Removed Nodes: $blnodes" >> $debug # Correct Verbs # Rules: # Pin Defaults of 0x411111f0 or 0x400000f0 are removed # Remove CD at INT ATAPI # Taken Care of by blacklist array above, shouldn't be in current verb array # 71c Sequence should always be 0 # 71c Association needs to be unique! # 71d Set all Misc to 0 (Jack Detect Enabled) and determine which should be 1 later # 71e - Not Processed in this version # 71f Location should not use 02 for Front Panel, use 01 instead # # Step 1 - Correct 71c Associations # echo "Checking 71c Associations" >> $debug echo -e "\nCurrent Associations" >> $debug i=0 while [ $i -lt $verbcount ] do note="" assoc[i]=`echo ${verbc[i]} | cut -c7` if [[ ${assoc[i]} = 0 ]];then assoc[i]=1 note=" note: Changed 0 to 1" fi # Debug echo "${verbc[i]} = ${assoc[i]} $note" >> $debug i=i+1 done # Determine unused association values i=1;j=0 while (( i < 15 ));do # convert to single hex digit ihex=`printf "%x\n" $i` chk=`echo ${assoc[*]} | grep -w $ihex` if [[ -z $chk ]];then unused[j]=$ihex j=j+1 fi i=i+1 done # Debug echo -e "\n Used associations = "${assoc[*]} >> $debug echo "Unused associations = "${unused[*]} >> $debug echo -e "\nCorrecting duplicate associations\n" >> $debug i=0;nextassoc=0 while [ $i -lt $verbcount ] do #build a assoc list without current node being checked j=0;assoclist="" while [ $j -lt $verbcount ] do if [[ $j != $i ]];then assoclist=$assoclist${assoc[j]}" " fi j=j+1 done echo "Checking if ${assoc[i]} already exists in: $assoclist" >> $debug chkassoc=`echo $assoclist | grep -w ${assoc[i]}` if [[ -n $chkassoc ]];then #There is a duplicate #Is this the first time we've seen this association? echo " duplicate found - Is this the first time we've seen this association?" >> $debug firstassoc=`echo $newassoclist | grep -w ${assoc[i]}` if [[ -n $firstassoc ]];then echo " no - replacing association with: ${unused[nextassoc]}" >> $debug assoc[i]=${unused[nextassoc]} nverbc[i]=`echo ${verbc[i]} | cut -c1-6`${assoc[i]}"0" nextassoc=nextassoc+1 else echo " yes - ignoring" >> $debug nverbc[i]=`echo ${verbc[i]} | cut -c1-7`"0" fi else echo " no duplicate found" >> $debug nverbc[i]=`echo ${verbc[i]} | cut -c1-7`"0" fi newassoclist=$newassoclist${assoc[i]}" " i=i+1 done echo -e "\nNew 71c Associations" >> $debug echo " Before After" >> $debug echo "--------------------------------------------------" >> $debug i=0 while [ $i -lt $verbcount ] do echo ${verbc[i]}" "${nverbc[i]}" "${verbd[i]}" "${verbe[i]}" "${verbf[i]} >> $debug i=i+1 done # # Step 2 - Correcting 71d Misc # echo -e "\nReset 71d Misc to 0" >> $debug i=0 while [ $i -lt $verbcount ] do nverbd[i]=`echo ${verbd[i]} | cut -c1-7`"0" #verbd[i]=$verb$b i=i+1 done echo -e "New 71d Associations" >> $debug echo " Before After" >> $debug echo "--------------------------------------------------" >> $debug i=0 while [ $i -lt $verbcount ] do echo ${verbd[i]}" "${nverbc[i]}" "${nverbd[i]}" "${verbe[i]}" "${verbf[i]} >> $debug i=i+1 done # # Step 3 - Correct 71e # # Removed for now # # Step 4 - Correct 71f # echo -e "\nCorrect 71f 02 FP to 01" >> $debug i=0 while [ $i -lt $verbcount ] do verb=`echo ${verbf[i]} | cut -c1-7` misc=`echo ${verbf[i]} | cut -c8 | tr [a-z] [A-Z]` if [[ $misc = "2" ]];then misc="1" fi if [[ $misc != "1" ]];then misc="0" fi nverbf[i]=$verb$misc i=i+1 done echo -e "New 71f Associations" >> $debug echo " Before After" >> $debug echo "--------------------------------------------------" >> $debug i=0 while [ $i -lt $verbcount ] do echo ${verbd[i]}" "${nverbc[i]}" "${nverbd[i]}" "${verbe[i]}" "${nverbf[i]} >> $debug i=i+1 done echo " " >> $debug # # Step 5 - Show new verbs # echo -e "\n Jack Color Description Node PinDefault Modified Verbs\n$brk" i=0 while [ $i -lt $verbcount ] do printf "%7s %7s %-27s %3d %-6s %-12s %s %s %s %s\n" ${vjack[i]} ${vcolor[i]} "${vdesc[i]}" ${vhex[i]} ${vhex[i]} "0x"${vpin[i]} ${nverbc[i]} ${nverbd[i]} ${verbe[i]} ${nverbf[i]} i=i+1 done echo -e "$brk\n" # verbs in one line printf "Modified Verbs in One Line:" i=0 while [ $i -lt $verbcount ] do printf " %s %s %s %s" ${nverbc[i]} ${nverbd[i]} ${verbe[i]} ${nverbf[i]} i=i+1 done echo -e "\n$brk\n" ================================================ FILE: hda-tools/widget_dump.sh ================================================ #!/bin/bash # Get right input amp # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x0 # Get left input amp # 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x2000 # Get right output amp # 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0x8000 # Get left output amp # 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 = 0xa000 # Set both input amps # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 # 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 = 0x7003 function dump { echo -e "\t\tnid = $1 --> result `hda-verb $1 $2 $3 | tail -c 11`" } function dump_all { dump 0x02 $1 $2 dump 0x03 $1 $2 dump 0x04 $1 $2 dump 0x05 $1 $2 dump 0x06 $1 $2 dump 0x07 $1 $2 dump 0x08 $1 $2 dump 0x09 $1 $2 dump 0x0a $1 $2 dump 0x0b $1 $2 dump 0x0c $1 $2 dump 0x0d $1 $2 dump 0x0e $1 $2 dump 0x0f $1 $2 dump 0x10 $1 $2 dump 0x11 $1 $2 dump 0x12 $1 $2 dump 0x13 $1 $2 dump 0x14 $1 $2 dump 0x15 $1 $2 dump 0x16 $1 $2 dump 0x17 $1 $2 dump 0x18 $1 $2 dump 0x19 $1 $2 dump 0x1a $1 $2 dump 0x1b $1 $2 dump 0x1c $1 $2 dump 0x1d $1 $2 dump 0x1e $1 $2 dump 0x1f $1 $2 dump 0x20 $1 $2 dump 0x21 $1 $2 dump 0x22 $1 $2 dump 0x23 $1 $2 dump 0x24 $1 $2 } #echo -e "\tConnection Selector" #dump_all GET_CONNECT_SEL 0x0 #echo -e "\tProcessing State" #dump_all GET_PROC_STATE 0x0 #echo -e "\tPower State" #dump_all GET_POWER_STATE 0x0 echo -e "\tPin Widget Control" dump_all GET_PIN_WIDGET_CONTROL 0x0 #echo -e "\tPin Sense" #dump_all GET_PIN_SENSE 0x0 #echo -e "\tEAPD" #dump_all GET_EAPD_BTLENABLE 0x0 #echo -e "\tAmp Mute (Right Input)" #dump_all GET_AMP_GAIN_MUTE 0x0 #echo -e "\tAmp Mute (Left Input)" #dump_all GET_AMP_GAIN_MUTE 0x2000 #echo -e "\tAmp Mute (Right Output)" #dump_all GET_AMP_GAIN_MUTE 0x8000 #echo -e "\tAmp Mute (Left Output)" #dump_all GET_AMP_GAIN_MUTE 0xa000 #echo -e "\tVolume Knob Control" #dump_all GET_VOLUME_KNOB_CONTROL 0x0 #echo -e "\tConfiguration Default" #dump_all GET_CONFIG_DEFAULT 0x0 ================================================ FILE: refind/drivers_aa64/LICENSE.txt ================================================ Licensing for the filesystem drivers is complex. Three different licenses apply to various parts of the code: * Christoph Pfisterer's original file system wrapper (FSW) code is covered by a BSD-style license. Many of the source files with names that take the form fsw_*.[ch] are so licensed, but this is NOT generally true of filesystem-specific files (e.g., fsw_ext2.c or fsw_btrfs.c). * Certain filesystem drivers are licensed under the GPLv2, either because they borrow code from the Linux kernel or because a developer (typically Oracle) applied the GPLv2 license to them. This is true of the ext2fs, ext4fs, ReiserFS, HFS+, and ISO-9660 drivers. * At least one filesystem driver (Btrfs) uses code taken from GRUB, and so uses the GPLv3 (or later) license. Note that the GPLv2 and GPLv3 are, ironically, not compatible licenses. Thus, code from GPLv2 and GPLv3 projects should not be mixed. The BSD license used by Pfisterer's original code is compatible with both versions of the GPL, so the fact that both GPLv2 and GPLv3 drivers is built upon it is OK. If you intend to contribute to this project's drivers or use the code yourself, please keep this fact in mind. The below was written by Christoph Pfisterer with respect to his original code: File System Wrapper License ============================= The various parts of the File System Wrapper source code come from different sources and may carry different licenses. Here's a quick account of the situation: * The core code was written from scratch and is covered by a BSD-style license. * The EFI host driver was written from scratch, possibly using code from the TianoCore project and Intel's EFI Application Toolkit. It is covered by a BSD-style license. * The ext2 and reiserfs file system drivers use definitions from the Linux kernel source. The actual code was written from scratch, using multiple sources for reference. These drivers are covered by the GNU GPL. For more details, see each file's boilerplate comment. The full text of the GNU GPL is in the file LICENSE_GPL.txt. ================================================ FILE: refind/drivers_aa64/LICENSE_GPL.txt ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ================================================ FILE: refind/drivers_ia32/LICENSE.txt ================================================ Licensing for the filesystem drivers is complex. Three different licenses apply to various parts of the code: * Christoph Pfisterer's original file system wrapper (FSW) code is covered by a BSD-style license. Many of the source files with names that take the form fsw_*.[ch] are so licensed, but this is NOT generally true of filesystem-specific files (e.g., fsw_ext2.c or fsw_btrfs.c). * Certain filesystem drivers are licensed under the GPLv2, either because they borrow code from the Linux kernel or because a developer (typically Oracle) applied the GPLv2 license to them. This is true of the ext2fs, ext4fs, ReiserFS, HFS+, and ISO-9660 drivers. * At least one filesystem driver (Btrfs) uses code taken from GRUB, and so uses the GPLv3 (or later) license. Note that the GPLv2 and GPLv3 are, ironically, not compatible licenses. Thus, code from GPLv2 and GPLv3 projects should not be mixed. The BSD license used by Pfisterer's original code is compatible with both versions of the GPL, so the fact that both GPLv2 and GPLv3 drivers is built upon it is OK. If you intend to contribute to this project's drivers or use the code yourself, please keep this fact in mind. The below was written by Christoph Pfisterer with respect to his original code: File System Wrapper License ============================= The various parts of the File System Wrapper source code come from different sources and may carry different licenses. Here's a quick account of the situation: * The core code was written from scratch and is covered by a BSD-style license. * The EFI host driver was written from scratch, possibly using code from the TianoCore project and Intel's EFI Application Toolkit. It is covered by a BSD-style license. * The ext2 and reiserfs file system drivers use definitions from the Linux kernel source. The actual code was written from scratch, using multiple sources for reference. These drivers are covered by the GNU GPL. For more details, see each file's boilerplate comment. The full text of the GNU GPL is in the file LICENSE_GPL.txt. ================================================ FILE: refind/drivers_ia32/LICENSE_GPL.txt ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ================================================ FILE: refind/drivers_x64/LICENSE.txt ================================================ Licensing for the filesystem drivers is complex. Three different licenses apply to various parts of the code: * Christoph Pfisterer's original file system wrapper (FSW) code is covered by a BSD-style license. Many of the source files with names that take the form fsw_*.[ch] are so licensed, but this is NOT generally true of filesystem-specific files (e.g., fsw_ext2.c or fsw_btrfs.c). * Certain filesystem drivers are licensed under the GPLv2, either because they borrow code from the Linux kernel or because a developer (typically Oracle) applied the GPLv2 license to them. This is true of the ext2fs, ext4fs, ReiserFS, HFS+, and ISO-9660 drivers. * At least one filesystem driver (Btrfs) uses code taken from GRUB, and so uses the GPLv3 (or later) license. Note that the GPLv2 and GPLv3 are, ironically, not compatible licenses. Thus, code from GPLv2 and GPLv3 projects should not be mixed. The BSD license used by Pfisterer's original code is compatible with both versions of the GPL, so the fact that both GPLv2 and GPLv3 drivers is built upon it is OK. If you intend to contribute to this project's drivers or use the code yourself, please keep this fact in mind. The below was written by Christoph Pfisterer with respect to his original code: File System Wrapper License ============================= The various parts of the File System Wrapper source code come from different sources and may carry different licenses. Here's a quick account of the situation: * The core code was written from scratch and is covered by a BSD-style license. * The EFI host driver was written from scratch, possibly using code from the TianoCore project and Intel's EFI Application Toolkit. It is covered by a BSD-style license. * The ext2 and reiserfs file system drivers use definitions from the Linux kernel source. The actual code was written from scratch, using multiple sources for reference. These drivers are covered by the GNU GPL. For more details, see each file's boilerplate comment. The full text of the GNU GPL is in the file LICENSE_GPL.txt. ================================================ FILE: refind/drivers_x64/LICENSE_GPL.txt ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ================================================ FILE: refind/icons/README ================================================ This directory holds icons used by rEFInd. This file describes their sources, both in overview and in file-by-file detail, and provides pointers to the relevant licenses under which the icons are distributed. Icon Sources (Overview) ----------------------- - The AwOken 2.5 icon set - Source: http://alecive.deviantart.com/art/AwOken-163570862 - Copyright (c) 2013 by Alessandro Roncone (aka alecive on DeviantArt) - License: Creative Commons Attribution-Share Alike 3.0 (CC-SA 3.0) - Original work for rEFInd - Source: https://sourceforge.net/p/refind (this archive) - Copyright (c) 2015 by Roderick W. Smith - License: LGPLv3+ or CC-SA 3.0 - Debian OS icon - Source: https://commons.wikimedia.org/wiki/File:Debian-OpenLogo.svg - Copyright (c) 1999 Debian Project - License: LGPLv3+ or CC-SA 3.0 - Elementary OS icon - Source: https://commons.wikimedia.org/wiki/File:Elementary_logo.svg - Copyright (c) 2008 Dan Rabbit - License: GPLv2+ Some icons have been altered from their original forms -- normally conversion from SVG to PNG format, resizing, changes in coloration, or addition of "drop shadow" effects. Details follow.... The "svg" subdirectory holds SVG versions of some icons (notably absent are those based on the AwOken icon set). Icon Sources (Detail) --------------------- Icons unchanged from AwOken 2.5: os_centos.png -- AwOken/clear/128x128/start-here/start-here-centos.png os_chakra.png -- AwOken/clear/128x128/start-here/start-here-chakra.png os_chrome.png -- AwOken/clear/128x128/apps/google-chrome1.png os_crunchbang.png -- AwOken/clear/128x128/start-here/start-here-crunchbang3.png os_fedora.png -- AwOken/clear/128x128/start-here/start-here-fedora5.png os_frugalware.png -- AwOken/clear/128x128/start-here/start-here-frugalware1.png os_kubuntu.png -- AwOken/clear/128x128/start-here/start-here-kubuntu.png os_lubuntu.png -- AwOken/clear/128x128/start-here/start-here-lubuntu.png os_mageia.png -- AwOken/clear/128x128/start-here/start-here-mageia.png os_mandriva.png -- AwOken/clear/128x128/start-here/start-here-mandriva5.png os_network.png -- AwOken/clear/128x128/places/network-workgroup1.png os_ubuntu.png -- AwOken/clear/128x128/start-here/start-here-ubuntu.png os_unknown.png -- AwOken/clear/128x128/actions/color-line1.png os_win8.png -- AwOken/clear/128x128/apps/live1.png Icons modified from AwOken 2.5: arrow_left.png -- AwOken/clear/128x128/actions/go-previous.png arrow_right.png -- AwOken/clear/128x128/actions/go-next.png boot_linux.png -- AwOken/clear/128x128/apps/supertux.png func_about.png -- AwOkenWhite/clear/128x128/actions/info2.png func_exit.png -- AwOkenWhite/clear/128x128/actions/application-exit2.png func_firmware.png -- AwOkenWhite/clear/128x128/status/indicator-cpufreq.png func_reset.png -- AwOkenWhite/clear/128x128/apps/gnome-session-reboot2.png func_shutdown.png -- AwOkenWhite/clear/128x128/apps/gnome-session-halt2.png os_arch.png -- AwOkenWhite/clear/128x128/start-here/start-here-arch3.png os_clover.png -- AwOkenWhite/clear/128x128/actions/tools-wizard.png os_gentoo.png -- AwOken/clear/128x128/start-here/start-here-gentoo.png os_hwtest.png -- AwOkenWhite/clear/128x128/apps/hw.png os_linux.png -- AwOkenWhite/clear/128x128/apps/supertux.png os_linuxmint.png -- AwOkenWhite/clear/128x128/start-here/start-here-mint3.png os_opensuse.png -- AwOkenWhite/clear/128x128/start-here/start-here-suse3.png os_slackware.png -- AwOkenWhite/clear/128x128/start-here/start-here-slackware1.png os_suse.png -- AwOkenWhite/clear/128x128/start-here/start-here-suse3.png os_xubuntu.png -- AwOkenWhite/clear/128x128/start-here/start-here-xubuntu1.png tool_mok_tool.png -- AwOkenWhite/clear/128x128/apps/gnome-keyring-manager.png tool_netboot.png -- AwOken/clear/128x128/places/network-workgroup1.png tool_shell.png -- AwOken/clear/128x128/apps/terminal3.png vol_external.png -- AwOkenWhite/clear/128x128/devices/drive-removable-media-usb2.png vol_internal.png -- AwOken/clear/128/128/drive-harddisk/Internal.png vol_net.png -- AwOken/clear/128/128/drive-harddisk/Server.png vol_optical.png - AwOken/clear/128x128/devices/media-optical-cd1.png Modified Elementary OS icon: os_elementary.png (GPLv2+) Modified Debian OS icon: os_debian.png (LGPLv3+ or CC-BY-SA 3.0) Icons created by me (Roderick W. Smith): boot_win.png func_csr_rotate.png os_clover.png os_freebsd.png os_gummiboot.png os_haiku.png os_legacy.png os_mac.png os_netbsd.png os_redhat.png os_refind.png os_refit.png os_win.png tool_apple_rescue.png tool_fwupdate.png tool_memtest.png tool_rescue.png transparent.png In addition, some icons are combinations of two other icons from different sources: tool_part.png -- vol_internal.png with AwOken's gparted2.png tool_windows_rescue.png: os_win8.png with AwOken's gnome_network_preferences.png Licneses -------- The "licenses" subdirectory contains the text of the relevant licenses: CC-SA 3.0: Creative Commons Legal Code.html (See also https://creativecommons.org/licenses/by-sa/3.0/us/) GPLv2: gpl-2.0.txt (see also https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) LGPLv3: lgpl-3.0.txt (see also http://www.gnu.org/licenses/lgpl-3.0.en.html) ================================================ FILE: refind/icons/licenses/cc-3.0.txt ================================================ Creative Commons Legal Code Attribution-ShareAlike 3.0 Unported CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. License THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 1. Definitions a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. c. "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. d. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. e. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. f. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. g. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. h. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. i. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. j. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. k. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, d. to Distribute and Publicly Perform Adaptations. e. For the avoidance of doubt: i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. b. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. d. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 5. Representations, Warranties and Disclaimer UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 7. Termination a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 8. Miscellaneous a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. Creative Commons Notice Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. Creative Commons may be contacted at https://creativecommons.org/. ================================================ FILE: refind/icons/licenses/gpl-2.0.txt ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. ================================================ FILE: refind/icons/licenses/lgpl-3.0.txt ================================================ GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ================================================ FILE: refind/icons-backup/README ================================================ This directory holds icons used by rEFInd. This file describes their sources, both in overview and in file-by-file detail, and provides pointers to the relevant licenses under which the icons are distributed. Icon Sources (Overview) ----------------------- - The AwOken 2.5 icon set - Source: http://alecive.deviantart.com/art/AwOken-163570862 - Copyright (c) 2013 by Alessandro Roncone (aka alecive on DeviantArt) - License: Creative Commons Attribution-Share Alike 3.0 (CC-SA 3.0) - Original work for rEFInd - Source: https://sourceforge.net/p/refind (this archive) - Copyright (c) 2015 by Roderick W. Smith - License: LGPLv3+ or CC-SA 3.0 - Debian OS icon - Source: https://commons.wikimedia.org/wiki/File:Debian-OpenLogo.svg - Copyright (c) 1999 Debian Project - License: LGPLv3+ or CC-SA 3.0 - Elementary OS icon - Source: https://commons.wikimedia.org/wiki/File:Elementary_logo.svg - Copyright (c) 2008 Dan Rabbit - License: GPLv2+ Some icons have been altered from their original forms -- normally conversion from SVG to PNG format, resizing, changes in coloration, or addition of "drop shadow" effects. Details follow.... The "svg" subdirectory holds SVG versions of some icons (notably absent are those based on the AwOken icon set). Icon Sources (Detail) --------------------- Icons unchanged from AwOken 2.5: os_centos.png -- AwOken/clear/128x128/start-here/start-here-centos.png os_chakra.png -- AwOken/clear/128x128/start-here/start-here-chakra.png os_chrome.png -- AwOken/clear/128x128/apps/google-chrome1.png os_crunchbang.png -- AwOken/clear/128x128/start-here/start-here-crunchbang3.png os_fedora.png -- AwOken/clear/128x128/start-here/start-here-fedora5.png os_frugalware.png -- AwOken/clear/128x128/start-here/start-here-frugalware1.png os_kubuntu.png -- AwOken/clear/128x128/start-here/start-here-kubuntu.png os_lubuntu.png -- AwOken/clear/128x128/start-here/start-here-lubuntu.png os_mageia.png -- AwOken/clear/128x128/start-here/start-here-mageia.png os_mandriva.png -- AwOken/clear/128x128/start-here/start-here-mandriva5.png os_network.png -- AwOken/clear/128x128/places/network-workgroup1.png os_ubuntu.png -- AwOken/clear/128x128/start-here/start-here-ubuntu.png os_unknown.png -- AwOken/clear/128x128/actions/color-line1.png os_win8.png -- AwOken/clear/128x128/apps/live1.png Icons modified from AwOken 2.5: arrow_left.png -- AwOken/clear/128x128/actions/go-previous.png arrow_right.png -- AwOken/clear/128x128/actions/go-next.png boot_linux.png -- AwOken/clear/128x128/apps/supertux.png func_about.png -- AwOkenWhite/clear/128x128/actions/info2.png func_exit.png -- AwOkenWhite/clear/128x128/actions/application-exit2.png func_firmware.png -- AwOkenWhite/clear/128x128/status/indicator-cpufreq.png func_reset.png -- AwOkenWhite/clear/128x128/apps/gnome-session-reboot2.png func_shutdown.png -- AwOkenWhite/clear/128x128/apps/gnome-session-halt2.png os_arch.png -- AwOkenWhite/clear/128x128/start-here/start-here-arch3.png os_clover.png -- AwOkenWhite/clear/128x128/actions/tools-wizard.png os_gentoo.png -- AwOken/clear/128x128/start-here/start-here-gentoo.png os_hwtest.png -- AwOkenWhite/clear/128x128/apps/hw.png os_linux.png -- AwOkenWhite/clear/128x128/apps/supertux.png os_linuxmint.png -- AwOkenWhite/clear/128x128/start-here/start-here-mint3.png os_opensuse.png -- AwOkenWhite/clear/128x128/start-here/start-here-suse3.png os_slackware.png -- AwOkenWhite/clear/128x128/start-here/start-here-slackware1.png os_suse.png -- AwOkenWhite/clear/128x128/start-here/start-here-suse3.png os_xubuntu.png -- AwOkenWhite/clear/128x128/start-here/start-here-xubuntu1.png tool_mok_tool.png -- AwOkenWhite/clear/128x128/apps/gnome-keyring-manager.png tool_netboot.png -- AwOken/clear/128x128/places/network-workgroup1.png tool_shell.png -- AwOken/clear/128x128/apps/terminal3.png vol_external.png -- AwOkenWhite/clear/128x128/devices/drive-removable-media-usb2.png vol_internal.png -- AwOken/clear/128/128/drive-harddisk/Internal.png vol_net.png -- AwOken/clear/128/128/drive-harddisk/Server.png vol_optical.png - AwOken/clear/128x128/devices/media-optical-cd1.png Modified Elementary OS icon: os_elementary.png (GPLv2+) Modified Debian OS icon: os_debian.png (LGPLv3+ or CC-BY-SA 3.0) Icons created by me (Roderick W. Smith): boot_win.png func_csr_rotate.png os_clover.png os_freebsd.png os_gummiboot.png os_haiku.png os_legacy.png os_mac.png os_netbsd.png os_redhat.png os_refind.png os_refit.png os_win.png tool_apple_rescue.png tool_fwupdate.png tool_memtest.png tool_rescue.png transparent.png In addition, some icons are combinations of two other icons from different sources: tool_part.png -- vol_internal.png with AwOken's gparted2.png tool_windows_rescue.png: os_win8.png with AwOken's gnome_network_preferences.png Licneses -------- The "licenses" subdirectory contains the text of the relevant licenses: CC-SA 3.0: Creative Commons Legal Code.html (See also https://creativecommons.org/licenses/by-sa/3.0/us/) GPLv2: gpl-2.0.txt (see also https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) LGPLv3: lgpl-3.0.txt (see also http://www.gnu.org/licenses/lgpl-3.0.en.html) ================================================ FILE: refind/icons-backup/licenses/cc-3.0.txt ================================================ Creative Commons Legal Code Attribution-ShareAlike 3.0 Unported CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. License THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 1. Definitions a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. c. "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. d. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. e. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. f. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. g. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. h. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. i. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. j. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. k. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, d. to Distribute and Publicly Perform Adaptations. e. For the avoidance of doubt: i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. b. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. d. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 5. Representations, Warranties and Disclaimer UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 7. Termination a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 8. Miscellaneous a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. Creative Commons Notice Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. Creative Commons may be contacted at https://creativecommons.org/. ================================================ FILE: refind/icons-backup/licenses/gpl-2.0.txt ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. ================================================ FILE: refind/icons-backup/licenses/lgpl-3.0.txt ================================================ GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ================================================ FILE: refind/refind.conf ================================================ # # refind.conf # Configuration file for the rEFInd boot menu # # Timeout in seconds for the main menu screen. Setting the timeout to 0 # disables automatic booting (i.e., no timeout). Setting it to -1 causes # an immediate boot to the default OS *UNLESS* a keypress is in the buffer # when rEFInd launches, in which case that keypress is interpreted as a # shortcut key. If no matching shortcut is found, rEFInd displays its # menu with no timeout. # timeout 20 # Screen saver timeout; the screen blanks after the specified number of # seconds with no keyboard input. The screen returns after most keypresses # (unfortunately, not including modifier keys such as Shift, Control, Alt, # or Option). Setting a value of "-1" causes rEFInd to start up with its # screen saver active. The default is 0, which disables the screen saver. #screensaver 300 # Hide user interface elements for personal preference or to increase # security: # banner - the rEFInd title banner (built-in or loaded via "banner") # label - boot option text label in the menu # singleuser - remove the submenu options to boot Mac OS X in single-user # or verbose modes; affects ONLY MacOS X # safemode - remove the submenu option to boot Mac OS X in "safe mode" # hwtest - the submenu option to run Apple's hardware test # arrows - scroll arrows on the OS selection tag line # hints - brief command summary in the menu # editor - the options editor (+, F2, or Insert on boot options menu) # badges - device-type badges for boot options # all - all of the above # Default is none of these (all elements active) # #hideui singleuser #hideui all # Set the name of a subdirectory in which icons are stored. Icons must # have the same names they have in the standard directory. The directory # name is specified relative to the main rEFInd binary's directory. If # an icon can't be found in the specified directory, an attempt is made # to load it from the default directory; thus, you can replace just some # icons in your own directory and rely on the default for others. # Default is "icons". # #icons_dir myicons #icons_dir icons/snowy # Use a custom title banner instead of the rEFInd icon and name. The file # path is relative to the directory where refind.efi is located. The color # in the top left corner of the image is used as the background color # for the menu screens. Currently uncompressed BMP images with color # depths of 24, 8, 4 or 1 bits are supported, as well as PNG images. # #banner hostname.bmp #banner mybanner.png #banner icons/snowy/banner-snowy.png # Specify how to handle banners that aren't exactly the same as the screen # size: # noscale - Crop if too big, show with border if too small # fillscreen - Fill the screen # Default is noscale # #banner_scale fillscreen # Icon sizes. All icons are square, so just one value is specified. The # big icons are used for OS selectors in the first row and the small # icons are used for tools on the second row. Drive-type badges are 1/4 # the size of the big icons. Legal values are 32 and above. If the icon # files do not hold icons of the proper size, the icons are scaled to # the specified size. The default values are 48 and 128 for small and # big icons, respectively. # #small_icon_size 96 #big_icon_size 256 # Custom images for the selection background. There is a big one (144 x 144) # for the OS icons, and a small one (64 x 64) for the function icons in the # second row. If only a small image is given, that one is also used for # the big icons by stretching it in the middle. If only a big one is given, # the built-in default will be used for the small icons. # # Like the banner option above, these options take a filename of an # uncompressed BMP image file with a color depth of 24, 8, 4, or 1 bits, # or a PNG image. The PNG format is required if you need transparency # support (to let you "see through" to a full-screen banner). # #selection_big selection-big.bmp #selection_small selection-small.bmp # Set the font to be used for all textual displays in graphics mode. # The font must be a PNG file with alpha channel transparency. It must # contain ASCII characters 32-126 (space through tilde), inclusive, plus # a glyph to be displayed in place of characters outside of this range, # for a total of 96 glyphs. Only monospaced fonts are supported. Fonts # may be of any size, although large fonts can produce display # irregularities. # The default is rEFInd's built-in font, Luxi Mono Regular 12 point. # #font myfont.png # Use text mode only. When enabled, this option forces rEFInd into text mode. # Passing this option a "0" value causes graphics mode to be used. Pasing # it no value or any non-0 value causes text mode to be used. # Default is to use graphics mode. # #textonly # Set the EFI text mode to be used for textual displays. This option # takes a single digit that refers to a mode number. Mode 0 is normally # 80x25, 1 is sometimes 80x50, and higher numbers are system-specific # modes. Mode 1024 is a special code that tells rEFInd to not set the # text mode; it uses whatever was in use when the program was launched. # If you specify an invalid mode, rEFInd pauses during boot to inform # you of valid modes. # CAUTION: On VirtualBox, and perhaps on some real computers, specifying # a text mode and uncommenting the "textonly" option while NOT specifying # a resolution can result in an unusable display in the booted OS. # Default is 1024 (no change) # #textmode 2 # Set the screen's video resolution. Pass this option either: # * two values, corresponding to the X and Y resolutions # * one value, corresponding to a GOP (UEFI) video mode # Note that not all resolutions are supported. On UEFI systems, passing # an incorrect value results in a message being shown on the screen to # that effect, along with a list of supported modes. On EFI 1.x systems # (e.g., Macintoshes), setting an incorrect mode silently fails. On both # types of systems, setting an incorrect resolution results in the default # resolution being used. A resolution of 1024x768 usually works, but higher # values often don't. # Default is "0 0" (use the system default resolution, usually 800x600). # #resolution 1024 768 #resolution 1440 900 #resolution 3 # Enable touch screen support. If active, this feature enables use of # touch screen controls (as on tablets). Note, however, that not all # tablets' EFIs provide the necessary underlying support, so this # feature may not work for you. If it does work, you should be able # to launch an OS or tool by touching it. In a submenu, touching # anywhere launches the currently-selection item; there is, at present, # no way to select a specific submenu item. # #enable_touch # Launch specified OSes in graphics mode. By default, rEFInd switches # to text mode and displays basic pre-launch information when launching # all OSes except OS X. Using graphics mode can produce a more seamless # transition, but displays no information, which can make matters # difficult if you must debug a problem. Also, on at least one known # computer, using graphics mode prevents a crash when using the Linux # kernel's EFI stub loader. You can specify an empty list to boot all # OSes in text mode. # Valid options: # osx - Mac OS X # linux - A Linux kernel with EFI stub loader # elilo - The ELILO boot loader # grub - The GRUB (Legacy or 2) boot loader # windows - Microsoft Windows # Default value: osx # #use_graphics_for osx,linux # Which non-bootloader tools to show on the tools line, and in what # order to display them: # shell - the EFI shell (requires external program; see rEFInd # documentation for details) # memtest - the memtest86 program, in EFI/tools, EFI/memtest86, # EFI/memtest, EFI/tools/memtest86, or EFI/tools/memtest # gptsync - the (dangerous) gptsync.efi utility (requires external # program; see rEFInd documentation for details) # gdisk - the gdisk partitioning program # apple_recovery - boots the Apple Recovery HD partition, if present # windows_recovery - boots an OEM Windows recovery tool, if present # (see also the windows_recovery_files option) # mok_tool - makes available the Machine Owner Key (MOK) maintenance # tool, MokManager.efi, used on Secure Boot systems # csr_rotate - adjusts Apple System Integrity Protection (SIP) # policy. Requires "csr_values" to be set. # about - an "about this program" option # exit - a tag to exit from rEFInd # shutdown - shuts down the computer (a bug causes this to reboot # many UEFI systems) # reboot - a tag to reboot the computer # firmware - a tag to reboot the computer into the firmware's # user interface (ignored on older computers) # fwupdate - a tag to update the firmware; launches the fwupx64.efi # (or similar) program # netboot - launch the ipxe.efi tool for network (PXE) booting # Default is shell,memtest,gdisk,apple_recovery,windows_recovery,mok_tool,about,shutdown,reboot,firmware,fwupdate # #showtools shell, gdisk, memtest, mok_tool, apple_recovery, windows_recovery, about, reboot, exit, firmware, fwupdate # Boot loaders that can launch a Windows restore or emergency system. # These tend to be OEM-specific. # Default is LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi # #windows_recovery_files LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi # Directories in which to search for EFI drivers. These drivers can # provide filesystem support, give access to hard disks on plug-in # controllers, etc. In most cases none are needed, but if you add # EFI drivers and you want rEFInd to automatically load them, you # should specify one or more paths here. rEFInd always scans the # "drivers" and "drivers_{arch}" subdirectories of its own installation # directory (where "{arch}" is your architecture code); this option # specifies ADDITIONAL directories to scan. # Default is to scan no additional directories for EFI drivers # #scan_driver_dirs EFI/tools/drivers,drivers # Which types of boot loaders to search, and in what order to display them: # internal - internal EFI disk-based boot loaders # external - external EFI disk-based boot loaders # optical - EFI optical discs (CD, DVD, etc.) # netboot - EFI network (PXE) boot options # hdbios - BIOS disk-based boot loaders # biosexternal - BIOS external boot loaders (USB, eSATA, etc.) # cd - BIOS optical-disc boot loaders # manual - use stanzas later in this configuration file # Note that the legacy BIOS options require firmware support, which is # not present on all computers. # The netboot option is experimental and relies on the ipxe.efi and # ipxe_discover.efi program files. # On UEFI PCs, default is internal,external,optical,manual # On Macs, default is internal,hdbios,external,biosexternal,optical,cd,manual # #scanfor internal,external,optical,manual # By default, rEFInd relies on the UEFI firmware to detect BIOS-mode boot # devices. This sometimes doesn't detect all the available devices, though. # For these cases, uefi_deep_legacy_scan results in a forced scan and # modification of NVRAM variables on each boot. Adding "0", "off", or # "false" resets to the default value. This token has no effect on Macs or # when no BIOS-mode options are set via scanfor. # Default is unset (or "uefi_deep_legacy_scan false") # #uefi_deep_legacy_scan # Delay for the specified number of seconds before scanning disks. # This can help some users who find that some of their disks # (usually external or optical discs) aren't detected initially, # but are detected after pressing Esc. # The default is 0. # #scan_delay 5 # When scanning volumes for EFI boot loaders, rEFInd always looks for # Mac OS X's and Microsoft Windows' boot loaders in their normal locations, # and scans the root directory and every subdirectory of the /EFI directory # for additional boot loaders, but it doesn't recurse into these directories. # The also_scan_dirs token adds more directories to the scan list. # Directories are specified relative to the volume's root directory. This # option applies to ALL the volumes that rEFInd scans UNLESS you include # a volume name and colon before the directory name, as in "myvol:/somedir" # to scan the somedir directory only on the filesystem named myvol. If a # specified directory doesn't exist, it's ignored (no error condition # results). The default is to scan the "boot" directory in addition to # various hard-coded directories. # #also_scan_dirs boot,ESP2:EFI/linux/kernels # Partitions (or whole disks, for legacy-mode boots) to omit from scans. # For EFI-mode scans, you must specify a volume by its label, which you # can obtain in an EFI shell by typing "vol", from Linux by typing # "blkid /dev/{devicename}", or by examining the disk's label in various # OSes' file browsers. # For legacy-mode scans, you can specify any subset of the boot loader # description shown when you highlight the option in rEFInd. # The default is "LRS_ESP". # #dont_scan_volumes "Recovery HD" # Directories that should NOT be scanned for boot loaders. By default, # rEFInd doesn't scan its own directory, the EFI/tools directory, the # EFI/memtest directory, the EFI/memtest86 directory, or the # com.apple.recovery.boot directory. Using the dont_scan_dirs option # enables you to "blacklist" other directories; but be sure to use "+" # as the first element if you want to continue blacklisting existing # directories. You might use this token to keep EFI/boot/bootx64.efi out # of the menu if that's a duplicate of another boot loader or to exclude # a directory that holds drivers or non-bootloader utilities provided by # a hardware manufacturer. If a directory is listed both here and in # also_scan_dirs, dont_scan_dirs takes precedence. Note that this # blacklist applies to ALL the filesystems that rEFInd scans, not just # the ESP, unless you precede the directory name by a filesystem name, # as in "myvol:EFI/somedir" to exclude EFI/somedir from the scan on the # myvol volume but not on other volumes. # #dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86 # Files that should NOT be included as EFI boot loaders (on the # first line of the display). If you're using a boot loader that # relies on support programs or drivers that are installed alongside # the main binary or if you want to "blacklist" certain loaders by # name rather than location, use this option. Note that this will # NOT prevent certain binaries from showing up in the second-row # set of tools. Most notably, various Secure Boot and recovery # tools are present in this list, but may appear as second-row # items. # The file may be specified as a bare name (e.g., "notme.efi"), as # a complete filename (e.g., "/EFI/somedir/notme.efi"), or as a # complete filename with volume (e.g., "SOMEDISK:/EFI/somedir/notme.efi"). # The default is shim.efi,shim-fedora.efi,shimx64.efi,PreLoader.efi, # TextMode.efi,ebounce.efi,GraphicsConsole.efi,MokManager.efi,HashTool.efi, # HashTool-signed.efi,bootmgr.efi,fb{arch}.efi # (where "{arch}" is the architecture code, like "x64"). # #dont_scan_files shim.efi,MokManager.efi # Scan for Linux kernels that lack a ".efi" filename extension. This is # useful for better integration with Linux distributions that provide # kernels with EFI stub loaders but that don't give those kernels filenames # that end in ".efi", particularly if the kernels are stored on a # filesystem that the EFI can read. When set to "1", "true", or "on", this # option causes all files in scanned directories with names that begin with # "vmlinuz" or "bzImage" to be included as loaders, even if they lack ".efi" # extensions. Passing this option a "0", "false", or "off" value causes # kernels without ".efi" extensions to NOT be scanned. # Default is "true" -- to scan for kernels without ".efi" extensions. # #scan_all_linux_kernels false # Combine all Linux kernels in a given directory into a single entry. # When so set, the kernel with the most recent time stamp will be launched # by default, and its filename will appear in the entry's description. # To launch other kernels, the user must press F2 or Insert; alternate # kernels then appear as options on the sub-menu. # Default is "true" -- kernels are "folded" into a single menu entry. # #fold_linux_kernels false # Comma-delimited list of strings to treat as if they were numbers for the # purpose of kernel version number detection. These strings are matched on a # first-found basis; that is, if you want to treat both "linux-lts" and # "linux" as version strings, they MUST be specified as "linux-lts,linux", # since if you specify it the other way, both vmlinuz-linux and # vmlinuz-linux-lts will return with "linux" as the "version string," which # is not what you'd want. Also, if the kernel or initrd file includes both a # specified string and digits, the "version string" includes both. For # instance, "vmlinuz-linux-4.8" would yield a version string of "linux-4.8". # This option is intended for Arch and other distributions that don't include # version numbers in their kernel filenames, but may provide other uniquely # identifying strings for multiple kernels. If this feature causes problems # (say, if your kernel filename includes "linux" but the initrd filename # doesn't), be sure this is set to an empty string # (extra_kernel_version_strings "") or comment out the option to disable it. # Default is no extra version strings # #extra_kernel_version_strings linux-lts,linux # Set the maximum number of tags that can be displayed on the screen at # any time. If more loaders are discovered than this value, rEFInd shows # a subset in a scrolling list. If this value is set too high for the # screen to handle, it's reduced to the value that the screen can manage. # If this value is set to 0 (the default), it's adjusted to the number # that the screen can handle. # #max_tags 0 # Set the default menu selection. The available arguments match the # keyboard accelerators available within rEFInd. You may select the # default loader using: # - A digit between 1 and 9, in which case the Nth loader in the menu # will be the default. # - A "+" symbol at the start of the string, which refers to the most # recently booted loader. # - Any substring that corresponds to a portion of the loader's title # (usually the OS's name, boot loader's path, or a volume or # filesystem title). # You may also specify multiple selectors by separating them with commas # and enclosing the list in quotes. (The "+" option is only meaningful in # this context.) # If you follow the selector(s) with two times, in 24-hour format, the # default will apply only between those times. The times are in the # motherboard's time standard, whether that's UTC or local time, so if # you use UTC, you'll need to adjust this from local time manually. # Times may span midnight as in "23:30 00:30", which applies to 11:30 PM # to 12:30 AM. You may specify multiple default_selection lines, in which # case the last one to match takes precedence. Thus, you can set a main # option without a time followed by one or more that include times to # set different defaults for different times of day. # The default behavior is to boot the previously-booted OS. # #default_selection 1 #default_selection Microsoft #default_selection "+,bzImage,vmlinuz" #default_selection Maintenance 23:30 2:00 #default_selection "Maintenance,OS X" 1:00 2:30 # Enable VMX bit and lock the CPU MSR if unlocked. # On some Intel Apple computers, the firmware does not lock the MSR 0x3A. # The symptom on Windows is Hyper-V not working even if the CPU # meets the minimum requirements (HW assisted virtualization and SLAT) # DO NOT SET THIS EXCEPT ON INTEL CPUs THAT SUPPORT VMX! See # http://www.thomas-krenn.com/en/wiki/Activating_the_Intel_VT_Virtualization_Feature! # for more on this subject. # The default is false: Don't try to enable and lock the MSR. # #enable_and_lock_vmx false # Tell a Mac's EFI that OS X is about to be launched, even when it's not. # This option causes some Macs to initialize their hardware differently than # when a third-party OS is launched normally. In some cases (particularly on # Macs with multiple video cards), using this option can cause hardware to # work that would not otherwise work. On the other hand, using this option # when it is not necessary can cause hardware (such as keyboards and mice) to # become inaccessible. Therefore, you should not enable this option if your # non-Apple OSes work correctly; enable it only if you have problems with # some hardware devices. When needed, a value of "10.9" usually works, but # you can experiment with other values. This feature has no effect on # non-Apple computers. # The default is inactive (no OS X spoofing is done). # #spoof_osx_version 10.9 # Set the CSR values for Apple's System Integrity Protection (SIP) feature. # Values are one-byte (two-character) hexadecimal numbers. These values # define which specific security features are enabled. Below are the codes # for what the values mean. Add them up (in hexadecimal!) to set new values. # Apple's "csrutil enable" and "csrutil disable" commands set values of 10 # and 77, respectively. # CSR_ALLOW_UNTRUSTED_KEXTS 0x01 # CSR_ALLOW_UNRESTRICTED_FS 0x02 # CSR_ALLOW_TASK_FOR_PID 0x04 # CSR_ALLOW_KERNEL_DEBUGGER 0x08 # CSR_ALLOW_APPLE_INTERNAL 0x10 # CSR_ALLOW_UNRESTRICTED_DTRACE 0x20 # CSR_ALLOW_UNRESTRICTED_NVRAM 0x40 # #csr_values 10,77 # Include a secondary configuration file within this one. This secondary # file is loaded as if its options appeared at the point of the "include" # token itself, so if you want to override a setting in the main file, # the secondary file must be referenced AFTER the setting you want to # override. Note that the secondary file may NOT load a tertiary file. # #include manual.conf # Sample manual configuration stanzas. Each begins with the "menuentry" # keyword followed by a name that's to appear in the menu (use quotes # if you want the name to contain a space) and an open curly brace # ("{"). Each entry ends with a close curly brace ("}"). Common # keywords within each stanza include: # # volume - identifies the filesystem from which subsequent files # are loaded. You can specify the volume by filesystem # label, by partition label, or by partition GUID number # (but NOT yet by filesystem UUID number). # loader - identifies the boot loader file # initrd - Specifies an initial RAM disk file # icon - specifies a custom boot loader icon # ostype - OS type code to determine boot options available by # pressing Insert. Valid values are "MacOS", "Linux", # "Windows", and "XOM". Case-sensitive. # graphics - set to "on" to enable graphics-mode boot (useful # mainly for MacOS) or "off" for text-mode boot. # Default is auto-detected from loader filename. # options - sets options to be passed to the boot loader; use # quotes if more than one option should be passed or # if any options use characters that might be changed # by rEFInd parsing procedures (=, /, #, or tab). # disabled - use alone or set to "yes" to disable this entry. # # Note that you can use either DOS/Windows/EFI-style backslashes (\) # or Unix-style forward slashes (/) as directory separators. Either # way, all file references are on the ESP from which rEFInd was # launched. # Use of quotes around parameters causes them to be interpreted as # one keyword, and for parsing of special characters (spaces, =, /, # and #) to be disabled. This is useful mainly with the "options" # keyword. Use of quotes around parameters that specify filenames is # permissible, but you must then use backslashes instead of slashes, # except when you must pass a forward slash to the loader, as when # passing a root= option to a Linux kernel. # Below are several sample boot stanzas. All are disabled by default. # Find one similar to what you need, copy it, remove the "disabled" line, # and adjust the entries to suit your needs. # A sample entry for a Linux 3.13 kernel with EFI boot stub support # on a partition with a GUID of 904404F8-B481-440C-A1E3-11A5A954E601. # This entry includes Linux-specific boot options and specification # of an initial RAM disk. Note uses of Linux-style forward slashes. # Also note that a leading slash is optional in file specifications. menuentry Linux { icon EFI/refind/icons/os_linux.png volume 904404F8-B481-440C-A1E3-11A5A954E601 loader bzImage-3.3.0-rc7 initrd initrd-3.3.0.img options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837" disabled } # Below is a more complex Linux example, specifically for Arch Linux. # This example MUST be modified for your specific installation; if nothing # else, the PARTUUID code must be changed for your disk. Because Arch Linux # does not include version numbers in its kernel and initrd filenames, you # may need to use manual boot stanzas when using fallback initrds or # multiple kernels with Arch. This example is modified from one in the Arch # wiki page on rEFInd (https://wiki.archlinux.org/index.php/rEFInd). menuentry "Arch Linux" { icon /EFI/refind/icons/os_arch.png volume "Arch Linux" loader /boot/vmlinuz-linux initrd /boot/initramfs-linux.img options "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap" submenuentry "Boot using fallback initramfs" { initrd /boot/initramfs-linux-fallback.img } submenuentry "Boot to terminal" { add_options "systemd.unit=multi-user.target" } disabled } # A sample entry for loading Ubuntu using its standard name for # its GRUB 2 boot loader. Note uses of Linux-style forward slashes menuentry Ubuntu { loader /EFI/ubuntu/grubx64.efi icon /EFI/refind/icons/os_linux.png disabled } # A minimal ELILO entry, which probably offers nothing that # auto-detection can't accomplish. menuentry "ELILO" { loader \EFI\elilo\elilo.efi disabled } # Like the ELILO entry, this one offers nothing that auto-detection # can't do; but you might use it if you want to disable auto-detection # but still boot Windows.... menuentry "Windows 7" { loader \EFI\Microsoft\Boot\bootmgfw.efi disabled } # EFI shells are programs just like boot loaders, and can be # launched in the same way. You can pass a shell the name of a # script that it's to run on the "options" line. The script # could initialize hardware and then launch an OS, or it could # do something entirely different. menuentry "Windows via shell script" { icon \EFI\refind\icons\os_win.png loader \EFI\tools\shell.efi options "fs0:\EFI\tools\launch_windows.nsh" disabled } # Mac OS is normally detected and run automatically; however, # if you want to do something unusual, a manual boot stanza may # be the way to do it. This one does nothing very unusual, but # it may serve as a starting point. Note that you'll almost # certainly need to change the "volume" line for this example # to work. menuentry "My Mac OS X" { icon \EFI\refind\icons\os_mac.png volume "OS X boot" loader \System\Library\CoreServices\boot.efi disabled } ================================================ FILE: refind/refind.conf-sample ================================================ # # refind.conf # Configuration file for the rEFInd boot menu # # Timeout in seconds for the main menu screen. Setting the timeout to 0 # disables automatic booting (i.e., no timeout). Setting it to -1 causes # an immediate boot to the default OS *UNLESS* a keypress is in the buffer # when rEFInd launches, in which case that keypress is interpreted as a # shortcut key. If no matching shortcut is found, rEFInd displays its # menu with no timeout. # timeout 20 # Screen saver timeout; the screen blanks after the specified number of # seconds with no keyboard input. The screen returns after most keypresses # (unfortunately, not including modifier keys such as Shift, Control, Alt, # or Option). Setting a value of "-1" causes rEFInd to start up with its # screen saver active. The default is 0, which disables the screen saver. #screensaver 300 # Hide user interface elements for personal preference or to increase # security: # banner - the rEFInd title banner (built-in or loaded via "banner") # label - boot option text label in the menu # singleuser - remove the submenu options to boot Mac OS X in single-user # or verbose modes; affects ONLY MacOS X # safemode - remove the submenu option to boot Mac OS X in "safe mode" # hwtest - the submenu option to run Apple's hardware test # arrows - scroll arrows on the OS selection tag line # hints - brief command summary in the menu # editor - the options editor (+, F2, or Insert on boot options menu) # badges - device-type badges for boot options # all - all of the above # Default is none of these (all elements active) # #hideui singleuser #hideui all # Set the name of a subdirectory in which icons are stored. Icons must # have the same names they have in the standard directory. The directory # name is specified relative to the main rEFInd binary's directory. If # an icon can't be found in the specified directory, an attempt is made # to load it from the default directory; thus, you can replace just some # icons in your own directory and rely on the default for others. # Default is "icons". # #icons_dir myicons #icons_dir icons/snowy # Use a custom title banner instead of the rEFInd icon and name. The file # path is relative to the directory where refind.efi is located. The color # in the top left corner of the image is used as the background color # for the menu screens. Currently uncompressed BMP images with color # depths of 24, 8, 4 or 1 bits are supported, as well as PNG images. # #banner hostname.bmp #banner mybanner.png #banner icons/snowy/banner-snowy.png # Specify how to handle banners that aren't exactly the same as the screen # size: # noscale - Crop if too big, show with border if too small # fillscreen - Fill the screen # Default is noscale # #banner_scale fillscreen # Icon sizes. All icons are square, so just one value is specified. The # big icons are used for OS selectors in the first row and the small # icons are used for tools on the second row. Drive-type badges are 1/4 # the size of the big icons. Legal values are 32 and above. If the icon # files do not hold icons of the proper size, the icons are scaled to # the specified size. The default values are 48 and 128 for small and # big icons, respectively. # #small_icon_size 96 #big_icon_size 256 # Custom images for the selection background. There is a big one (144 x 144) # for the OS icons, and a small one (64 x 64) for the function icons in the # second row. If only a small image is given, that one is also used for # the big icons by stretching it in the middle. If only a big one is given, # the built-in default will be used for the small icons. # # Like the banner option above, these options take a filename of an # uncompressed BMP image file with a color depth of 24, 8, 4, or 1 bits, # or a PNG image. The PNG format is required if you need transparency # support (to let you "see through" to a full-screen banner). # #selection_big selection-big.bmp #selection_small selection-small.bmp # Set the font to be used for all textual displays in graphics mode. # The font must be a PNG file with alpha channel transparency. It must # contain ASCII characters 32-126 (space through tilde), inclusive, plus # a glyph to be displayed in place of characters outside of this range, # for a total of 96 glyphs. Only monospaced fonts are supported. Fonts # may be of any size, although large fonts can produce display # irregularities. # The default is rEFInd's built-in font, Luxi Mono Regular 12 point. # #font myfont.png # Use text mode only. When enabled, this option forces rEFInd into text mode. # Passing this option a "0" value causes graphics mode to be used. Pasing # it no value or any non-0 value causes text mode to be used. # Default is to use graphics mode. # #textonly # Set the EFI text mode to be used for textual displays. This option # takes a single digit that refers to a mode number. Mode 0 is normally # 80x25, 1 is sometimes 80x50, and higher numbers are system-specific # modes. Mode 1024 is a special code that tells rEFInd to not set the # text mode; it uses whatever was in use when the program was launched. # If you specify an invalid mode, rEFInd pauses during boot to inform # you of valid modes. # CAUTION: On VirtualBox, and perhaps on some real computers, specifying # a text mode and uncommenting the "textonly" option while NOT specifying # a resolution can result in an unusable display in the booted OS. # Default is 1024 (no change) # #textmode 2 # Set the screen's video resolution. Pass this option either: # * two values, corresponding to the X and Y resolutions # * one value, corresponding to a GOP (UEFI) video mode # Note that not all resolutions are supported. On UEFI systems, passing # an incorrect value results in a message being shown on the screen to # that effect, along with a list of supported modes. On EFI 1.x systems # (e.g., Macintoshes), setting an incorrect mode silently fails. On both # types of systems, setting an incorrect resolution results in the default # resolution being used. A resolution of 1024x768 usually works, but higher # values often don't. # Default is "0 0" (use the system default resolution, usually 800x600). # #resolution 1024 768 #resolution 1440 900 #resolution 3 # Enable touch screen support. If active, this feature enables use of # touch screen controls (as on tablets). Note, however, that not all # tablets' EFIs provide the necessary underlying support, so this # feature may not work for you. If it does work, you should be able # to launch an OS or tool by touching it. In a submenu, touching # anywhere launches the currently-selection item; there is, at present, # no way to select a specific submenu item. # #enable_touch # Launch specified OSes in graphics mode. By default, rEFInd switches # to text mode and displays basic pre-launch information when launching # all OSes except OS X. Using graphics mode can produce a more seamless # transition, but displays no information, which can make matters # difficult if you must debug a problem. Also, on at least one known # computer, using graphics mode prevents a crash when using the Linux # kernel's EFI stub loader. You can specify an empty list to boot all # OSes in text mode. # Valid options: # osx - Mac OS X # linux - A Linux kernel with EFI stub loader # elilo - The ELILO boot loader # grub - The GRUB (Legacy or 2) boot loader # windows - Microsoft Windows # Default value: osx # #use_graphics_for osx,linux # Which non-bootloader tools to show on the tools line, and in what # order to display them: # shell - the EFI shell (requires external program; see rEFInd # documentation for details) # memtest - the memtest86 program, in EFI/tools, EFI/memtest86, # EFI/memtest, EFI/tools/memtest86, or EFI/tools/memtest # gptsync - the (dangerous) gptsync.efi utility (requires external # program; see rEFInd documentation for details) # gdisk - the gdisk partitioning program # apple_recovery - boots the Apple Recovery HD partition, if present # windows_recovery - boots an OEM Windows recovery tool, if present # (see also the windows_recovery_files option) # mok_tool - makes available the Machine Owner Key (MOK) maintenance # tool, MokManager.efi, used on Secure Boot systems # csr_rotate - adjusts Apple System Integrity Protection (SIP) # policy. Requires "csr_values" to be set. # about - an "about this program" option # exit - a tag to exit from rEFInd # shutdown - shuts down the computer (a bug causes this to reboot # many UEFI systems) # reboot - a tag to reboot the computer # firmware - a tag to reboot the computer into the firmware's # user interface (ignored on older computers) # fwupdate - a tag to update the firmware; launches the fwupx64.efi # (or similar) program # netboot - launch the ipxe.efi tool for network (PXE) booting # Default is shell,memtest,gdisk,apple_recovery,windows_recovery,mok_tool,about,shutdown,reboot,firmware,fwupdate # #showtools shell, gdisk, memtest, mok_tool, apple_recovery, windows_recovery, about, reboot, exit, firmware, fwupdate # Boot loaders that can launch a Windows restore or emergency system. # These tend to be OEM-specific. # Default is LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi # #windows_recovery_files LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi # Directories in which to search for EFI drivers. These drivers can # provide filesystem support, give access to hard disks on plug-in # controllers, etc. In most cases none are needed, but if you add # EFI drivers and you want rEFInd to automatically load them, you # should specify one or more paths here. rEFInd always scans the # "drivers" and "drivers_{arch}" subdirectories of its own installation # directory (where "{arch}" is your architecture code); this option # specifies ADDITIONAL directories to scan. # Default is to scan no additional directories for EFI drivers # #scan_driver_dirs EFI/tools/drivers,drivers # Which types of boot loaders to search, and in what order to display them: # internal - internal EFI disk-based boot loaders # external - external EFI disk-based boot loaders # optical - EFI optical discs (CD, DVD, etc.) # netboot - EFI network (PXE) boot options # hdbios - BIOS disk-based boot loaders # biosexternal - BIOS external boot loaders (USB, eSATA, etc.) # cd - BIOS optical-disc boot loaders # manual - use stanzas later in this configuration file # Note that the legacy BIOS options require firmware support, which is # not present on all computers. # The netboot option is experimental and relies on the ipxe.efi and # ipxe_discover.efi program files. # On UEFI PCs, default is internal,external,optical,manual # On Macs, default is internal,hdbios,external,biosexternal,optical,cd,manual # #scanfor internal,external,optical,manual # By default, rEFInd relies on the UEFI firmware to detect BIOS-mode boot # devices. This sometimes doesn't detect all the available devices, though. # For these cases, uefi_deep_legacy_scan results in a forced scan and # modification of NVRAM variables on each boot. Adding "0", "off", or # "false" resets to the default value. This token has no effect on Macs or # when no BIOS-mode options are set via scanfor. # Default is unset (or "uefi_deep_legacy_scan false") # #uefi_deep_legacy_scan # Delay for the specified number of seconds before scanning disks. # This can help some users who find that some of their disks # (usually external or optical discs) aren't detected initially, # but are detected after pressing Esc. # The default is 0. # #scan_delay 5 # When scanning volumes for EFI boot loaders, rEFInd always looks for # Mac OS X's and Microsoft Windows' boot loaders in their normal locations, # and scans the root directory and every subdirectory of the /EFI directory # for additional boot loaders, but it doesn't recurse into these directories. # The also_scan_dirs token adds more directories to the scan list. # Directories are specified relative to the volume's root directory. This # option applies to ALL the volumes that rEFInd scans UNLESS you include # a volume name and colon before the directory name, as in "myvol:/somedir" # to scan the somedir directory only on the filesystem named myvol. If a # specified directory doesn't exist, it's ignored (no error condition # results). The default is to scan the "boot" directory in addition to # various hard-coded directories. # #also_scan_dirs boot,ESP2:EFI/linux/kernels # Partitions (or whole disks, for legacy-mode boots) to omit from scans. # For EFI-mode scans, you must specify a volume by its label, which you # can obtain in an EFI shell by typing "vol", from Linux by typing # "blkid /dev/{devicename}", or by examining the disk's label in various # OSes' file browsers. # For legacy-mode scans, you can specify any subset of the boot loader # description shown when you highlight the option in rEFInd. # The default is "LRS_ESP". # #dont_scan_volumes "Recovery HD" # Directories that should NOT be scanned for boot loaders. By default, # rEFInd doesn't scan its own directory, the EFI/tools directory, the # EFI/memtest directory, the EFI/memtest86 directory, or the # com.apple.recovery.boot directory. Using the dont_scan_dirs option # enables you to "blacklist" other directories; but be sure to use "+" # as the first element if you want to continue blacklisting existing # directories. You might use this token to keep EFI/boot/bootx64.efi out # of the menu if that's a duplicate of another boot loader or to exclude # a directory that holds drivers or non-bootloader utilities provided by # a hardware manufacturer. If a directory is listed both here and in # also_scan_dirs, dont_scan_dirs takes precedence. Note that this # blacklist applies to ALL the filesystems that rEFInd scans, not just # the ESP, unless you precede the directory name by a filesystem name, # as in "myvol:EFI/somedir" to exclude EFI/somedir from the scan on the # myvol volume but not on other volumes. # #dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86 # Files that should NOT be included as EFI boot loaders (on the # first line of the display). If you're using a boot loader that # relies on support programs or drivers that are installed alongside # the main binary or if you want to "blacklist" certain loaders by # name rather than location, use this option. Note that this will # NOT prevent certain binaries from showing up in the second-row # set of tools. Most notably, various Secure Boot and recovery # tools are present in this list, but may appear as second-row # items. # The file may be specified as a bare name (e.g., "notme.efi"), as # a complete filename (e.g., "/EFI/somedir/notme.efi"), or as a # complete filename with volume (e.g., "SOMEDISK:/EFI/somedir/notme.efi"). # The default is shim.efi,shim-fedora.efi,shimx64.efi,PreLoader.efi, # TextMode.efi,ebounce.efi,GraphicsConsole.efi,MokManager.efi,HashTool.efi, # HashTool-signed.efi,bootmgr.efi,fb{arch}.efi # (where "{arch}" is the architecture code, like "x64"). # #dont_scan_files shim.efi,MokManager.efi # Scan for Linux kernels that lack a ".efi" filename extension. This is # useful for better integration with Linux distributions that provide # kernels with EFI stub loaders but that don't give those kernels filenames # that end in ".efi", particularly if the kernels are stored on a # filesystem that the EFI can read. When set to "1", "true", or "on", this # option causes all files in scanned directories with names that begin with # "vmlinuz" or "bzImage" to be included as loaders, even if they lack ".efi" # extensions. Passing this option a "0", "false", or "off" value causes # kernels without ".efi" extensions to NOT be scanned. # Default is "true" -- to scan for kernels without ".efi" extensions. # #scan_all_linux_kernels false # Combine all Linux kernels in a given directory into a single entry. # When so set, the kernel with the most recent time stamp will be launched # by default, and its filename will appear in the entry's description. # To launch other kernels, the user must press F2 or Insert; alternate # kernels then appear as options on the sub-menu. # Default is "true" -- kernels are "folded" into a single menu entry. # #fold_linux_kernels false # Comma-delimited list of strings to treat as if they were numbers for the # purpose of kernel version number detection. These strings are matched on a # first-found basis; that is, if you want to treat both "linux-lts" and # "linux" as version strings, they MUST be specified as "linux-lts,linux", # since if you specify it the other way, both vmlinuz-linux and # vmlinuz-linux-lts will return with "linux" as the "version string," which # is not what you'd want. Also, if the kernel or initrd file includes both a # specified string and digits, the "version string" includes both. For # instance, "vmlinuz-linux-4.8" would yield a version string of "linux-4.8". # This option is intended for Arch and other distributions that don't include # version numbers in their kernel filenames, but may provide other uniquely # identifying strings for multiple kernels. If this feature causes problems # (say, if your kernel filename includes "linux" but the initrd filename # doesn't), be sure this is set to an empty string # (extra_kernel_version_strings "") or comment out the option to disable it. # Default is no extra version strings # #extra_kernel_version_strings linux-lts,linux # Set the maximum number of tags that can be displayed on the screen at # any time. If more loaders are discovered than this value, rEFInd shows # a subset in a scrolling list. If this value is set too high for the # screen to handle, it's reduced to the value that the screen can manage. # If this value is set to 0 (the default), it's adjusted to the number # that the screen can handle. # #max_tags 0 # Set the default menu selection. The available arguments match the # keyboard accelerators available within rEFInd. You may select the # default loader using: # - A digit between 1 and 9, in which case the Nth loader in the menu # will be the default. # - A "+" symbol at the start of the string, which refers to the most # recently booted loader. # - Any substring that corresponds to a portion of the loader's title # (usually the OS's name, boot loader's path, or a volume or # filesystem title). # You may also specify multiple selectors by separating them with commas # and enclosing the list in quotes. (The "+" option is only meaningful in # this context.) # If you follow the selector(s) with two times, in 24-hour format, the # default will apply only between those times. The times are in the # motherboard's time standard, whether that's UTC or local time, so if # you use UTC, you'll need to adjust this from local time manually. # Times may span midnight as in "23:30 00:30", which applies to 11:30 PM # to 12:30 AM. You may specify multiple default_selection lines, in which # case the last one to match takes precedence. Thus, you can set a main # option without a time followed by one or more that include times to # set different defaults for different times of day. # The default behavior is to boot the previously-booted OS. # #default_selection 1 #default_selection Microsoft #default_selection "+,bzImage,vmlinuz" #default_selection Maintenance 23:30 2:00 #default_selection "Maintenance,OS X" 1:00 2:30 # Enable VMX bit and lock the CPU MSR if unlocked. # On some Intel Apple computers, the firmware does not lock the MSR 0x3A. # The symptom on Windows is Hyper-V not working even if the CPU # meets the minimum requirements (HW assisted virtualization and SLAT) # DO NOT SET THIS EXCEPT ON INTEL CPUs THAT SUPPORT VMX! See # http://www.thomas-krenn.com/en/wiki/Activating_the_Intel_VT_Virtualization_Feature! # for more on this subject. # The default is false: Don't try to enable and lock the MSR. # #enable_and_lock_vmx false # Tell a Mac's EFI that OS X is about to be launched, even when it's not. # This option causes some Macs to initialize their hardware differently than # when a third-party OS is launched normally. In some cases (particularly on # Macs with multiple video cards), using this option can cause hardware to # work that would not otherwise work. On the other hand, using this option # when it is not necessary can cause hardware (such as keyboards and mice) to # become inaccessible. Therefore, you should not enable this option if your # non-Apple OSes work correctly; enable it only if you have problems with # some hardware devices. When needed, a value of "10.9" usually works, but # you can experiment with other values. This feature has no effect on # non-Apple computers. # The default is inactive (no OS X spoofing is done). # #spoof_osx_version 10.9 # Set the CSR values for Apple's System Integrity Protection (SIP) feature. # Values are one-byte (two-character) hexadecimal numbers. These values # define which specific security features are enabled. Below are the codes # for what the values mean. Add them up (in hexadecimal!) to set new values. # Apple's "csrutil enable" and "csrutil disable" commands set values of 10 # and 77, respectively. # CSR_ALLOW_UNTRUSTED_KEXTS 0x01 # CSR_ALLOW_UNRESTRICTED_FS 0x02 # CSR_ALLOW_TASK_FOR_PID 0x04 # CSR_ALLOW_KERNEL_DEBUGGER 0x08 # CSR_ALLOW_APPLE_INTERNAL 0x10 # CSR_ALLOW_UNRESTRICTED_DTRACE 0x20 # CSR_ALLOW_UNRESTRICTED_NVRAM 0x40 # #csr_values 10,77 # Include a secondary configuration file within this one. This secondary # file is loaded as if its options appeared at the point of the "include" # token itself, so if you want to override a setting in the main file, # the secondary file must be referenced AFTER the setting you want to # override. Note that the secondary file may NOT load a tertiary file. # #include manual.conf # Sample manual configuration stanzas. Each begins with the "menuentry" # keyword followed by a name that's to appear in the menu (use quotes # if you want the name to contain a space) and an open curly brace # ("{"). Each entry ends with a close curly brace ("}"). Common # keywords within each stanza include: # # volume - identifies the filesystem from which subsequent files # are loaded. You can specify the volume by filesystem # label, by partition label, or by partition GUID number # (but NOT yet by filesystem UUID number). # loader - identifies the boot loader file # initrd - Specifies an initial RAM disk file # icon - specifies a custom boot loader icon # ostype - OS type code to determine boot options available by # pressing Insert. Valid values are "MacOS", "Linux", # "Windows", and "XOM". Case-sensitive. # graphics - set to "on" to enable graphics-mode boot (useful # mainly for MacOS) or "off" for text-mode boot. # Default is auto-detected from loader filename. # options - sets options to be passed to the boot loader; use # quotes if more than one option should be passed or # if any options use characters that might be changed # by rEFInd parsing procedures (=, /, #, or tab). # disabled - use alone or set to "yes" to disable this entry. # # Note that you can use either DOS/Windows/EFI-style backslashes (\) # or Unix-style forward slashes (/) as directory separators. Either # way, all file references are on the ESP from which rEFInd was # launched. # Use of quotes around parameters causes them to be interpreted as # one keyword, and for parsing of special characters (spaces, =, /, # and #) to be disabled. This is useful mainly with the "options" # keyword. Use of quotes around parameters that specify filenames is # permissible, but you must then use backslashes instead of slashes, # except when you must pass a forward slash to the loader, as when # passing a root= option to a Linux kernel. # Below are several sample boot stanzas. All are disabled by default. # Find one similar to what you need, copy it, remove the "disabled" line, # and adjust the entries to suit your needs. # A sample entry for a Linux 3.13 kernel with EFI boot stub support # on a partition with a GUID of 904404F8-B481-440C-A1E3-11A5A954E601. # This entry includes Linux-specific boot options and specification # of an initial RAM disk. Note uses of Linux-style forward slashes. # Also note that a leading slash is optional in file specifications. menuentry Linux { icon EFI/refind/icons/os_linux.png volume 904404F8-B481-440C-A1E3-11A5A954E601 loader bzImage-3.3.0-rc7 initrd initrd-3.3.0.img options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837" disabled } # Below is a more complex Linux example, specifically for Arch Linux. # This example MUST be modified for your specific installation; if nothing # else, the PARTUUID code must be changed for your disk. Because Arch Linux # does not include version numbers in its kernel and initrd filenames, you # may need to use manual boot stanzas when using fallback initrds or # multiple kernels with Arch. This example is modified from one in the Arch # wiki page on rEFInd (https://wiki.archlinux.org/index.php/rEFInd). menuentry "Arch Linux" { icon /EFI/refind/icons/os_arch.png volume "Arch Linux" loader /boot/vmlinuz-linux initrd /boot/initramfs-linux.img options "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap" submenuentry "Boot using fallback initramfs" { initrd /boot/initramfs-linux-fallback.img } submenuentry "Boot to terminal" { add_options "systemd.unit=multi-user.target" } disabled } # A sample entry for loading Ubuntu using its standard name for # its GRUB 2 boot loader. Note uses of Linux-style forward slashes menuentry Ubuntu { loader /EFI/ubuntu/grubx64.efi icon /EFI/refind/icons/os_linux.png disabled } # A minimal ELILO entry, which probably offers nothing that # auto-detection can't accomplish. menuentry "ELILO" { loader \EFI\elilo\elilo.efi disabled } # Like the ELILO entry, this one offers nothing that auto-detection # can't do; but you might use it if you want to disable auto-detection # but still boot Windows.... menuentry "Windows 7" { loader \EFI\Microsoft\Boot\bootmgfw.efi disabled } # EFI shells are programs just like boot loaders, and can be # launched in the same way. You can pass a shell the name of a # script that it's to run on the "options" line. The script # could initialize hardware and then launch an OS, or it could # do something entirely different. menuentry "Windows via shell script" { icon \EFI\refind\icons\os_win.png loader \EFI\tools\shell.efi options "fs0:\EFI\tools\launch_windows.nsh" disabled } # Mac OS is normally detected and run automatically; however, # if you want to do something unusual, a manual boot stanza may # be the way to do it. This one does nothing very unusual, but # it may serve as a starting point. Note that you'll almost # certainly need to change the "volume" line for this example # to work. menuentry "My Mac OS X" { icon \EFI\refind\icons\os_mac.png volume "OS X boot" loader \System\Library\CoreServices\boot.efi disabled } ================================================ FILE: ubuntu/grub.cfg ================================================ search.fs_uuid 18f16d5a-8dea-483f-80e4-04c1685bce78 root hd0,gpt10 set prefix=($root)'/boot/grub' configfile $prefix/grub.cfg