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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
use std::os::raw::c_int;
use mach::kern_return::{kern_return_t, KERN_SUCCESS};
const SYS_IOKIT: c_int = (((0x38) & 0x3f) << 26);
const SUB_IOKIT_COMMON: c_int = (((0) & 0xfff) << 14);
pub type IOReturn = kern_return_t;
pub const kIOReturnSuccess: IOReturn = KERN_SUCCESS as c_int;
pub const kIOReturnError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2bc);
pub const kIOReturnNoMemory: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2bd);
pub const kIOReturnNoResources: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2be);
pub const kIOReturnIPCError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2bf);
pub const kIOReturnNoDevice: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c0);
pub const kIOReturnNotPrivileged: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c1);
pub const kIOReturnBadArgument: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c2);
pub const kIOReturnLockedRead: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c3);
pub const kIOReturnLockedWrite: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c4);
pub const kIOReturnExclusiveAccess: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c5);
pub const kIOReturnBadMessageID: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c6);
pub const kIOReturnUnsupported: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c7);
pub const kIOReturnVMError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c8);
pub const kIOReturnInternalError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2c9);
pub const kIOReturnIOError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ca);
pub const kIOReturnCannotLock: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2cc);
pub const kIOReturnNotOpen: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2cd);
pub const kIOReturnNotReadable: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ce);
pub const kIOReturnNotWritable: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2cf);
pub const kIOReturnNotAligned: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d0);
pub const kIOReturnBadMedia: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d1);
pub const kIOReturnStillOpen: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d2);
pub const kIOReturnRLDError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d3);
pub const kIOReturnDMAError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d4);
pub const kIOReturnBusy: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d5);
pub const kIOReturnTimeout: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d6);
pub const kIOReturnOffline: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d7);
pub const kIOReturnNotReady: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d8);
pub const kIOReturnNotAttached: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2d9);
pub const kIOReturnNoChannels: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2da);
pub const kIOReturnNoSpace: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2db);
pub const kIOReturnPortExists: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2dd);
pub const kIOReturnCannotWire: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2de);
pub const kIOReturnNoInterrupt: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2df);
pub const kIOReturnNoFrames: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e0);
pub const kIOReturnMessageTooLarge: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e1);
pub const kIOReturnNotPermitted: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e2);
pub const kIOReturnNoPower: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e3);
pub const kIOReturnNoMedia: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e4);
pub const kIOReturnUnformattedMedia: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e5);
pub const kIOReturnUnsupportedMode: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e6);
pub const kIOReturnUnderrun: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e7);
pub const kIOReturnOverrun: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e8);
pub const kIOReturnDeviceError: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2e9);
pub const kIOReturnNoCompletion: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ea);
pub const kIOReturnAborted: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2eb);
pub const kIOReturnNoBandwidth: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ec);
pub const kIOReturnNotResponding: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ed);
pub const kIOReturnIsoTooOld: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ee);
pub const kIOReturnIsoTooNew: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2ef);
pub const kIOReturnNotFound: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x2f0);
pub const kIOReturnInvalid: IOReturn = (SYS_IOKIT | SUB_IOKIT_COMMON | 0x1);