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