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