This repository was archived by the owner on Sep 5, 2023. It is now read-only.
forked from RehabMan/OS-X-Generic-USB3
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCompatibility.cpp
More file actions
107 lines (88 loc) · 2.97 KB
/
Compatibility.cpp
File metadata and controls
107 lines (88 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
//
// Compatibility.cpp
// GenericUSBXHCI
//
// Created by Zenith432 on September 10th 2014.
// Copyright (c) 2014 Zenith432. All rights reserved.
//
//
#include "GenericUSBXHCI.h"
#define CLASS GenericUSBXHCI
#define super IOUSBControllerV3
#pragma mark -
#pragma mark Build-time Versioning Test
#pragma mark -
#ifdef REHABMAN_UNIVERSAL_BUILD
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1080
#error REHABMAN_UNIVERSAL_BUILD requires at least 10.8 SDK.
#endif
#endif
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 && !defined(REHABMAN_UNIVERSAL_BUILD)
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000
#error OS 10.10 SDK may only be used to target OS version 10.10.
#endif
#elif __MAC_OS_X_VERSION_MIN_REQUIRED < 1075
#error Target OS version must be 10.7.5 or above.
#endif
#if 0
#pragma mark -
#pragma mark Introduced OS 10.10
#pragma mark -
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 && __MAC_OS_X_VERSION_MIN_REQUIRED < 101000
__attribute__((visibility("hidden")))
bool CLASS::init(IORegistryEntry* from, IORegistryPlane const* inPlane)
{
return super::init(from, inPlane);
}
__attribute__((visibility("hidden")))
IOReturn CLASS::GetRootHubPowerExitLatencies(IOUSBHubExitLatencies** latencies)
{
return super::GetRootHubPowerExitLatencies(latencies);
}
__attribute__((visibility("hidden")))
IOReturn CLASS::CheckPowerModeBeforeGatedCall(char* fromStr, OSObject* token, UInt32 options)
{
return super::CheckPowerModeBeforeGatedCall(fromStr, token, options);
}
#endif
#pragma mark -
#pragma mark Introduced OS 10.9
#pragma mark -
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090 && __MAC_OS_X_VERSION_MIN_REQUIRED < 1090
__attribute__((visibility("hidden")))
IOReturn CLASS::updateReport(IOReportChannelList* channels, IOReportUpdateAction action, void* result, void* destination)
{
return super::updateReport(channels, action, result, destination);
}
__attribute__((visibility("hidden")))
bool CLASS::DoNotPowerOffPortsOnStop(void)
{
return super::DoNotPowerOffPortsOnStop();
}
__attribute__((visibility("hidden")))
IOReturn CLASS::configureReport(IOReportChannelList* channels, IOReportConfigureAction action, void* result, void* destination)
{
return super::configureReport(channels, action, result, destination);
}
#endif
#pragma mark -
#pragma mark Introduced OS 10.8.5
#pragma mark -
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 && __MAC_OS_X_VERSION_MIN_REQUIRED < 1085
__attribute__((visibility("hidden")))
UInt32 CLASS::GetMinimumIdlePowerState(void)
{
return super::GetMinimumIdlePowerState();
}
__attribute__((visibility("hidden")))
IOReturn CLASS::UpdateDeviceAddress(USBDeviceAddress oldDeviceAddress, USBDeviceAddress newDeviceAddress, UInt8 speed, USBDeviceAddress hubAddress, int port)
{
return super::UpdateDeviceAddress(oldDeviceAddress, newDeviceAddress, speed, hubAddress, port);
}
__attribute__((visibility("hidden")))
UInt64 CLASS::GetErrata64Bits(UInt16 vendorID, UInt16 deviceID, UInt16 revisionID)
{
return super::GetErrata64Bits(vendorID, deviceID, revisionID);
}
#endif
#endif //0