xref: /xnu-8792.41.9/bsd/machine/machine.modulemap (revision 5c2921b07a2480ab43ec66f5b9e41cb872bc554f)
1*5c2921b0SApple OSS Distributionsmodule Darwin.machine [system] {
2*5c2921b0SApple OSS Distributions  module _limits {
3*5c2921b0SApple OSS Distributions    #ifdef XNU_KERNEL_PRIVATE
4*5c2921b0SApple OSS Distributions    // A few machine headers are in the public SDK for macOS, but
5*5c2921b0SApple OSS Distributions    // mastered out of the public SDK for the other OSes. Oddly the
6*5c2921b0SApple OSS Distributions    // corresponding arm and i386 headers are in all the public SDKs.
7*5c2921b0SApple OSS Distributions    #endif
8*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
9*5c2921b0SApple OSS Distributions    header "machine/_limits.h"
10*5c2921b0SApple OSS Distributions    #endif
11*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
12*5c2921b0SApple OSS Distributions    header "i386/_limits.h"
13*5c2921b0SApple OSS Distributions    #endif
14*5c2921b0SApple OSS Distributions    header "arm/_limits.h"
15*5c2921b0SApple OSS Distributions
16*5c2921b0SApple OSS Distributions    export *
17*5c2921b0SApple OSS Distributions  }
18*5c2921b0SApple OSS Distributions
19*5c2921b0SApple OSS Distributions  module _mcontext {
20*5c2921b0SApple OSS Distributions    header "machine/_mcontext.h"
21*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
22*5c2921b0SApple OSS Distributions    header "i386/_mcontext.h"
23*5c2921b0SApple OSS Distributions    #endif
24*5c2921b0SApple OSS Distributions    header "arm/_mcontext.h"
25*5c2921b0SApple OSS Distributions
26*5c2921b0SApple OSS Distributions    export *
27*5c2921b0SApple OSS Distributions  }
28*5c2921b0SApple OSS Distributions
29*5c2921b0SApple OSS Distributions  module _param {
30*5c2921b0SApple OSS Distributions    header "machine/_param.h"
31*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
32*5c2921b0SApple OSS Distributions    header "i386/_param.h"
33*5c2921b0SApple OSS Distributions    #endif
34*5c2921b0SApple OSS Distributions    header "arm/_param.h"
35*5c2921b0SApple OSS Distributions
36*5c2921b0SApple OSS Distributions    export *
37*5c2921b0SApple OSS Distributions  }
38*5c2921b0SApple OSS Distributions
39*5c2921b0SApple OSS Distributions  module _types {
40*5c2921b0SApple OSS Distributions    header "machine/_types.h"
41*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
42*5c2921b0SApple OSS Distributions    header "i386/_types.h"
43*5c2921b0SApple OSS Distributions    #endif
44*5c2921b0SApple OSS Distributions    header "arm/_types.h"
45*5c2921b0SApple OSS Distributions
46*5c2921b0SApple OSS Distributions    export *
47*5c2921b0SApple OSS Distributions  }
48*5c2921b0SApple OSS Distributions
49*5c2921b0SApple OSS Distributions  module arch {
50*5c2921b0SApple OSS Distributions    header "arm/arch.h"
51*5c2921b0SApple OSS Distributions    export *
52*5c2921b0SApple OSS Distributions  }
53*5c2921b0SApple OSS Distributions
54*5c2921b0SApple OSS Distributions  #ifdef XNU_KERNEL_PRIVATE
55*5c2921b0SApple OSS Distributions  // The XNU_PLATFORM_MacOSX headers are in the public SDK for macOS,
56*5c2921b0SApple OSS Distributions  // but mastered out of the public SDK for the other OSes.
57*5c2921b0SApple OSS Distributions  #endif
58*5c2921b0SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
59*5c2921b0SApple OSS Distributions  module byte_order {
60*5c2921b0SApple OSS Distributions    header "machine/byte_order.h"
61*5c2921b0SApple OSS Distributions    export *
62*5c2921b0SApple OSS Distributions  }
63*5c2921b0SApple OSS Distributions
64*5c2921b0SApple OSS Distributions  #endif
65*5c2921b0SApple OSS Distributions  #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
66*5c2921b0SApple OSS Distributions  module eflags {
67*5c2921b0SApple OSS Distributions    header "i386/eflags.h"
68*5c2921b0SApple OSS Distributions    export *
69*5c2921b0SApple OSS Distributions  }
70*5c2921b0SApple OSS Distributions  #endif
71*5c2921b0SApple OSS Distributions
72*5c2921b0SApple OSS Distributions  module endian {
73*5c2921b0SApple OSS Distributions    header "machine/endian.h"
74*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
75*5c2921b0SApple OSS Distributions    header "i386/endian.h"
76*5c2921b0SApple OSS Distributions    #endif
77*5c2921b0SApple OSS Distributions    header "arm/endian.h"
78*5c2921b0SApple OSS Distributions
79*5c2921b0SApple OSS Distributions    export *
80*5c2921b0SApple OSS Distributions  }
81*5c2921b0SApple OSS Distributions
82*5c2921b0SApple OSS Distributions  #ifdef XNU_KERNEL_PRIVATE
83*5c2921b0SApple OSS Distributions  // A few other machine headers are in the public SDK for macOS, but
84*5c2921b0SApple OSS Distributions  // mastered out of the public SDK for the other OSes. This time the
85*5c2921b0SApple OSS Distributions  // corresponding arm headers follow the machine headers, but the
86*5c2921b0SApple OSS Distributions  // corresponding i386 headers are in the public SDK for simulators.
87*5c2921b0SApple OSS Distributions  #endif
88*5c2921b0SApple OSS Distributions  #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
89*5c2921b0SApple OSS Distributions  module fasttrap_isa {
90*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
91*5c2921b0SApple OSS Distributions    header "machine/fasttrap_isa.h"
92*5c2921b0SApple OSS Distributions    #endif
93*5c2921b0SApple OSS Distributions    header "i386/fasttrap_isa.h"
94*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
95*5c2921b0SApple OSS Distributions    header "arm/fasttrap_isa.h"
96*5c2921b0SApple OSS Distributions    #endif
97*5c2921b0SApple OSS Distributions
98*5c2921b0SApple OSS Distributions    export *
99*5c2921b0SApple OSS Distributions  }
100*5c2921b0SApple OSS Distributions
101*5c2921b0SApple OSS Distributions  #endif
102*5c2921b0SApple OSS Distributions  module limits {
103*5c2921b0SApple OSS Distributions    header "machine/limits.h"
104*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
105*5c2921b0SApple OSS Distributions    header "i386/limits.h"
106*5c2921b0SApple OSS Distributions    #endif
107*5c2921b0SApple OSS Distributions    header "arm/limits.h"
108*5c2921b0SApple OSS Distributions
109*5c2921b0SApple OSS Distributions    export *
110*5c2921b0SApple OSS Distributions  }
111*5c2921b0SApple OSS Distributions
112*5c2921b0SApple OSS Distributions  module param {
113*5c2921b0SApple OSS Distributions    header "machine/param.h"
114*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
115*5c2921b0SApple OSS Distributions    header "i386/param.h"
116*5c2921b0SApple OSS Distributions    #endif
117*5c2921b0SApple OSS Distributions    header "arm/param.h"
118*5c2921b0SApple OSS Distributions
119*5c2921b0SApple OSS Distributions    export *
120*5c2921b0SApple OSS Distributions  }
121*5c2921b0SApple OSS Distributions
122*5c2921b0SApple OSS Distributions  #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
123*5c2921b0SApple OSS Distributions  module profile {
124*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
125*5c2921b0SApple OSS Distributions    header "machine/profile.h"
126*5c2921b0SApple OSS Distributions    #endif
127*5c2921b0SApple OSS Distributions    header "i386/profile.h"
128*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
129*5c2921b0SApple OSS Distributions    header "arm/profile.h"
130*5c2921b0SApple OSS Distributions    #endif
131*5c2921b0SApple OSS Distributions
132*5c2921b0SApple OSS Distributions    export *
133*5c2921b0SApple OSS Distributions  }
134*5c2921b0SApple OSS Distributions
135*5c2921b0SApple OSS Distributions  #endif
136*5c2921b0SApple OSS Distributions  module signal {
137*5c2921b0SApple OSS Distributions    header "machine/signal.h"
138*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
139*5c2921b0SApple OSS Distributions    header "i386/signal.h"
140*5c2921b0SApple OSS Distributions    #endif
141*5c2921b0SApple OSS Distributions    header "arm/signal.h"
142*5c2921b0SApple OSS Distributions
143*5c2921b0SApple OSS Distributions    export *
144*5c2921b0SApple OSS Distributions  }
145*5c2921b0SApple OSS Distributions
146*5c2921b0SApple OSS Distributions  module types {
147*5c2921b0SApple OSS Distributions    header "machine/types.h"
148*5c2921b0SApple OSS Distributions    #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
149*5c2921b0SApple OSS Distributions    header "i386/types.h"
150*5c2921b0SApple OSS Distributions    #endif
151*5c2921b0SApple OSS Distributions    header "arm/types.h"
152*5c2921b0SApple OSS Distributions
153*5c2921b0SApple OSS Distributions    export *
154*5c2921b0SApple OSS Distributions  }
155*5c2921b0SApple OSS Distributions  #if defined(XNU_PLATFORM_MacOSX) || defined(XNU_PLATFORM_iPhoneSimulator) || defined(XNU_PLATFORM_AppleTVSimulator) || defined(XNU_PLATFORM_WatchSimulator)
156*5c2921b0SApple OSS Distributions
157*5c2921b0SApple OSS Distributions  module user_ldt {
158*5c2921b0SApple OSS Distributions    header "i386/user_ldt.h"
159*5c2921b0SApple OSS Distributions    export *
160*5c2921b0SApple OSS Distributions  }
161*5c2921b0SApple OSS Distributions
162*5c2921b0SApple OSS Distributions  module vmparam {
163*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
164*5c2921b0SApple OSS Distributions    header "machine/vmparam.h"
165*5c2921b0SApple OSS Distributions    #endif
166*5c2921b0SApple OSS Distributions    header "i386/vmparam.h"
167*5c2921b0SApple OSS Distributions    #ifdef XNU_PLATFORM_MacOSX
168*5c2921b0SApple OSS Distributions    header "arm/vmparam.h"
169*5c2921b0SApple OSS Distributions    #endif
170*5c2921b0SApple OSS Distributions
171*5c2921b0SApple OSS Distributions    export *
172*5c2921b0SApple OSS Distributions  }
173*5c2921b0SApple OSS Distributions  #endif
174*5c2921b0SApple OSS Distributions}
175