IOHIDFamilyPrivate.h [plain text]
#ifndef _IOKIT_HID_IOHIDFAMILYPRIVATE_H
#define _IOKIT_HID_IOHIDFAMILYPRIVATE_H
#ifdef KERNEL
#include "IOHIDKeys.h"
#include "IOHIDDevice.h"
#endif
#include "IOHIDDebug.h"
#include <pexpert/pexpert.h>
__BEGIN_DECLS
#ifdef KERNEL
bool CompareProperty(IOService * owner, OSDictionary * matching, const char * key, SInt32 * score, SInt32 increment = 0);
bool CompareDeviceUsage( IOService * owner, OSDictionary * matching, SInt32 * score, SInt32 increment = 0);
bool CompareDeviceUsagePairs(IOService * owner, OSDictionary * matching, SInt32 * score, SInt32 increment = 0);
bool CompareProductID( IOService * owner, OSDictionary * matching, SInt32 * score);
bool MatchPropertyTable(IOService * owner, OSDictionary * table, SInt32 * score);
bool CompareNumberPropertyMask( IOService *owner, OSDictionary *matching, const char *key, const char *maskKey, SInt32 *score, SInt32 increment);
bool CompareNumberPropertyArray( IOService * owner, OSDictionary * matching, const char * arrayName, const char * key, SInt32 * score, SInt32 increment);
bool CompareNumberPropertyArrayWithMask( IOService * owner, OSDictionary * matching, const char * arrayName, const char * key, const char * maskKey, SInt32 * score, SInt32 increment);
#define kEjectKeyDelayMS 0 // the delay for a dedicated eject key
#define kEjectF12DelayMS 250 // the delay for an F12/eject key
void IOHIDSystemActivityTickle(SInt32 nxEventType, IOService *sender);
void handle_stackshot_keychord(uint32_t keycode);
#define NX_HARDWARE_TICKLE (NX_LASTEVENT+1)
#define kIOHIDDeviceWillTerminate iokit_family_msg(sub_iokit_hidsystem, 8)
#endif
bool isSingleUser();
IOFixed getFixedValue(uint32_t value, uint32_t unit, uint32_t exponent);
#define kHIDDtraceDebug "hid_dtrace_debug"
__attribute__((optnone)) __attribute__((unused)) static uint32_t gIOHIDFamilyDtraceDebug()
{
static uint32_t debug = 0xffffffff;
if (debug == 0xffffffff) {
debug = 0;
if (!PE_parse_boot_argn(kHIDDtraceDebug, &debug, sizeof (debug))) {
debug = 0;
}
}
return debug;
}
void hid_trace(HIDTraceFunctionType functionType, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5);
__END_DECLS
#endif