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