/*! * @header * Shims for the SPI. */ #ifndef __IMG4_SHIM_H #define __IMG4_SHIM_H #ifndef __IMG4_INDIRECT #error "Please #include instead of this file directly" #endif // __IMG4_INDIRECT #include #include #include #if KERNEL #define IMG4_TARGET_SHIM_FOUND 1 #define IMG4_TARGET_XNU 1 #if __has_include() #include #endif #if XNU_KERNEL_PRIVATE #define IMG4_TARGET_XNU_PROPER 1 #else #define IMG4_TARGET_XNU_PROPER 0 #endif #endif // KERNEL #if !IMG4_TARGET_SHIM_FOUND #if EFI #define IMG4_TARGET_EFI 1 #if __has_include() #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpragma-pack" #include #pragma clang diagnostic pop #endif // __has_include() #elif SEP // EFI #define IMG4_TARGET_SEP 1 #include #else // EFI #define IMG4_TARGET_DARWIN 1 #if __has_include() #include #endif #endif // EFI #endif // !IMG4_TARGET_SHIM_FOUND #if IMG4_TARGET_XNU || IMG4_TARGET_DARWIN #define IMG4_TARGET_DARWIN_GENERIC 1 #endif #endif // __IMG4_SHIM_H