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