• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 /* automatically generated by rust-bindgen */
6 
7 pub const MPC_SIGNATURE: &'static [u8; 5usize] = b"PCMP\x00";
8 pub const MP_PROCESSOR: ::std::os::raw::c_uint = 0;
9 pub const MP_BUS: ::std::os::raw::c_uint = 1;
10 pub const MP_IOAPIC: ::std::os::raw::c_uint = 2;
11 pub const MP_INTSRC: ::std::os::raw::c_uint = 3;
12 pub const MP_LINTSRC: ::std::os::raw::c_uint = 4;
13 pub const MP_TRANSLATION: ::std::os::raw::c_uint = 192;
14 pub const CPU_ENABLED: ::std::os::raw::c_uint = 1;
15 pub const CPU_BOOTPROCESSOR: ::std::os::raw::c_uint = 2;
16 pub const CPU_STEPPING_MASK: ::std::os::raw::c_uint = 15;
17 pub const CPU_MODEL_MASK: ::std::os::raw::c_uint = 240;
18 pub const CPU_FAMILY_MASK: ::std::os::raw::c_uint = 3840;
19 pub const BUSTYPE_EISA: &'static [u8; 5usize] = b"EISA\x00";
20 pub const BUSTYPE_ISA: &'static [u8; 4usize] = b"ISA\x00";
21 pub const BUSTYPE_INTERN: &'static [u8; 7usize] = b"INTERN\x00";
22 pub const BUSTYPE_MCA: &'static [u8; 4usize] = b"MCA\x00";
23 pub const BUSTYPE_VL: &'static [u8; 3usize] = b"VL\x00";
24 pub const BUSTYPE_PCI: &'static [u8; 4usize] = b"PCI\x00";
25 pub const BUSTYPE_PCMCIA: &'static [u8; 7usize] = b"PCMCIA\x00";
26 pub const BUSTYPE_CBUS: &'static [u8; 5usize] = b"CBUS\x00";
27 pub const BUSTYPE_CBUSII: &'static [u8; 7usize] = b"CBUSII\x00";
28 pub const BUSTYPE_FUTURE: &'static [u8; 7usize] = b"FUTURE\x00";
29 pub const BUSTYPE_MBI: &'static [u8; 4usize] = b"MBI\x00";
30 pub const BUSTYPE_MBII: &'static [u8; 5usize] = b"MBII\x00";
31 pub const BUSTYPE_MPI: &'static [u8; 4usize] = b"MPI\x00";
32 pub const BUSTYPE_MPSA: &'static [u8; 5usize] = b"MPSA\x00";
33 pub const BUSTYPE_NUBUS: &'static [u8; 6usize] = b"NUBUS\x00";
34 pub const BUSTYPE_TC: &'static [u8; 3usize] = b"TC\x00";
35 pub const BUSTYPE_VME: &'static [u8; 4usize] = b"VME\x00";
36 pub const BUSTYPE_XPRESS: &'static [u8; 7usize] = b"XPRESS\x00";
37 pub const MPC_APIC_USABLE: ::std::os::raw::c_uint = 1;
38 pub const MP_IRQDIR_DEFAULT: ::std::os::raw::c_uint = 0;
39 pub const MP_IRQDIR_HIGH: ::std::os::raw::c_uint = 1;
40 pub const MP_IRQDIR_LOW: ::std::os::raw::c_uint = 3;
41 pub const MP_APIC_ALL: ::std::os::raw::c_uint = 255;
42 pub const MPC_OEM_SIGNATURE: &'static [u8; 5usize] = b"_OEM\x00";
43 #[repr(C)]
44 #[derive(Debug, Default, Copy)]
45 pub struct mpf_intel {
46     pub signature: [::std::os::raw::c_char; 4usize],
47     pub physptr: ::std::os::raw::c_uint,
48     pub length: ::std::os::raw::c_uchar,
49     pub specification: ::std::os::raw::c_uchar,
50     pub checksum: ::std::os::raw::c_uchar,
51     pub feature1: ::std::os::raw::c_uchar,
52     pub feature2: ::std::os::raw::c_uchar,
53     pub feature3: ::std::os::raw::c_uchar,
54     pub feature4: ::std::os::raw::c_uchar,
55     pub feature5: ::std::os::raw::c_uchar,
56 }
57 #[test]
bindgen_test_layout_mpf_intel()58 fn bindgen_test_layout_mpf_intel() {
59     assert_eq!(
60         ::std::mem::size_of::<mpf_intel>(),
61         16usize,
62         concat!("Size of: ", stringify!(mpf_intel))
63     );
64     assert_eq!(
65         ::std::mem::align_of::<mpf_intel>(),
66         4usize,
67         concat!("Alignment of ", stringify!(mpf_intel))
68     );
69     assert_eq!(
70         unsafe { &(*(0 as *const mpf_intel)).signature as *const _ as usize },
71         0usize,
72         concat!(
73             "Alignment of field: ",
74             stringify!(mpf_intel),
75             "::",
76             stringify!(signature)
77         )
78     );
79     assert_eq!(
80         unsafe { &(*(0 as *const mpf_intel)).physptr as *const _ as usize },
81         4usize,
82         concat!(
83             "Alignment of field: ",
84             stringify!(mpf_intel),
85             "::",
86             stringify!(physptr)
87         )
88     );
89     assert_eq!(
90         unsafe { &(*(0 as *const mpf_intel)).length as *const _ as usize },
91         8usize,
92         concat!(
93             "Alignment of field: ",
94             stringify!(mpf_intel),
95             "::",
96             stringify!(length)
97         )
98     );
99     assert_eq!(
100         unsafe { &(*(0 as *const mpf_intel)).specification as *const _ as usize },
101         9usize,
102         concat!(
103             "Alignment of field: ",
104             stringify!(mpf_intel),
105             "::",
106             stringify!(specification)
107         )
108     );
109     assert_eq!(
110         unsafe { &(*(0 as *const mpf_intel)).checksum as *const _ as usize },
111         10usize,
112         concat!(
113             "Alignment of field: ",
114             stringify!(mpf_intel),
115             "::",
116             stringify!(checksum)
117         )
118     );
119     assert_eq!(
120         unsafe { &(*(0 as *const mpf_intel)).feature1 as *const _ as usize },
121         11usize,
122         concat!(
123             "Alignment of field: ",
124             stringify!(mpf_intel),
125             "::",
126             stringify!(feature1)
127         )
128     );
129     assert_eq!(
130         unsafe { &(*(0 as *const mpf_intel)).feature2 as *const _ as usize },
131         12usize,
132         concat!(
133             "Alignment of field: ",
134             stringify!(mpf_intel),
135             "::",
136             stringify!(feature2)
137         )
138     );
139     assert_eq!(
140         unsafe { &(*(0 as *const mpf_intel)).feature3 as *const _ as usize },
141         13usize,
142         concat!(
143             "Alignment of field: ",
144             stringify!(mpf_intel),
145             "::",
146             stringify!(feature3)
147         )
148     );
149     assert_eq!(
150         unsafe { &(*(0 as *const mpf_intel)).feature4 as *const _ as usize },
151         14usize,
152         concat!(
153             "Alignment of field: ",
154             stringify!(mpf_intel),
155             "::",
156             stringify!(feature4)
157         )
158     );
159     assert_eq!(
160         unsafe { &(*(0 as *const mpf_intel)).feature5 as *const _ as usize },
161         15usize,
162         concat!(
163             "Alignment of field: ",
164             stringify!(mpf_intel),
165             "::",
166             stringify!(feature5)
167         )
168     );
169 }
170 impl Clone for mpf_intel {
clone(&self) -> Self171     fn clone(&self) -> Self {
172         *self
173     }
174 }
175 #[repr(C)]
176 #[derive(Debug, Default, Copy)]
177 pub struct mpc_table {
178     pub signature: [::std::os::raw::c_char; 4usize],
179     pub length: ::std::os::raw::c_ushort,
180     pub spec: ::std::os::raw::c_char,
181     pub checksum: ::std::os::raw::c_char,
182     pub oem: [::std::os::raw::c_char; 8usize],
183     pub productid: [::std::os::raw::c_char; 12usize],
184     pub oemptr: ::std::os::raw::c_uint,
185     pub oemsize: ::std::os::raw::c_ushort,
186     pub oemcount: ::std::os::raw::c_ushort,
187     pub lapic: ::std::os::raw::c_uint,
188     pub reserved: ::std::os::raw::c_uint,
189 }
190 #[test]
bindgen_test_layout_mpc_table()191 fn bindgen_test_layout_mpc_table() {
192     assert_eq!(
193         ::std::mem::size_of::<mpc_table>(),
194         44usize,
195         concat!("Size of: ", stringify!(mpc_table))
196     );
197     assert_eq!(
198         ::std::mem::align_of::<mpc_table>(),
199         4usize,
200         concat!("Alignment of ", stringify!(mpc_table))
201     );
202     assert_eq!(
203         unsafe { &(*(0 as *const mpc_table)).signature as *const _ as usize },
204         0usize,
205         concat!(
206             "Alignment of field: ",
207             stringify!(mpc_table),
208             "::",
209             stringify!(signature)
210         )
211     );
212     assert_eq!(
213         unsafe { &(*(0 as *const mpc_table)).length as *const _ as usize },
214         4usize,
215         concat!(
216             "Alignment of field: ",
217             stringify!(mpc_table),
218             "::",
219             stringify!(length)
220         )
221     );
222     assert_eq!(
223         unsafe { &(*(0 as *const mpc_table)).spec as *const _ as usize },
224         6usize,
225         concat!(
226             "Alignment of field: ",
227             stringify!(mpc_table),
228             "::",
229             stringify!(spec)
230         )
231     );
232     assert_eq!(
233         unsafe { &(*(0 as *const mpc_table)).checksum as *const _ as usize },
234         7usize,
235         concat!(
236             "Alignment of field: ",
237             stringify!(mpc_table),
238             "::",
239             stringify!(checksum)
240         )
241     );
242     assert_eq!(
243         unsafe { &(*(0 as *const mpc_table)).oem as *const _ as usize },
244         8usize,
245         concat!(
246             "Alignment of field: ",
247             stringify!(mpc_table),
248             "::",
249             stringify!(oem)
250         )
251     );
252     assert_eq!(
253         unsafe { &(*(0 as *const mpc_table)).productid as *const _ as usize },
254         16usize,
255         concat!(
256             "Alignment of field: ",
257             stringify!(mpc_table),
258             "::",
259             stringify!(productid)
260         )
261     );
262     assert_eq!(
263         unsafe { &(*(0 as *const mpc_table)).oemptr as *const _ as usize },
264         28usize,
265         concat!(
266             "Alignment of field: ",
267             stringify!(mpc_table),
268             "::",
269             stringify!(oemptr)
270         )
271     );
272     assert_eq!(
273         unsafe { &(*(0 as *const mpc_table)).oemsize as *const _ as usize },
274         32usize,
275         concat!(
276             "Alignment of field: ",
277             stringify!(mpc_table),
278             "::",
279             stringify!(oemsize)
280         )
281     );
282     assert_eq!(
283         unsafe { &(*(0 as *const mpc_table)).oemcount as *const _ as usize },
284         34usize,
285         concat!(
286             "Alignment of field: ",
287             stringify!(mpc_table),
288             "::",
289             stringify!(oemcount)
290         )
291     );
292     assert_eq!(
293         unsafe { &(*(0 as *const mpc_table)).lapic as *const _ as usize },
294         36usize,
295         concat!(
296             "Alignment of field: ",
297             stringify!(mpc_table),
298             "::",
299             stringify!(lapic)
300         )
301     );
302     assert_eq!(
303         unsafe { &(*(0 as *const mpc_table)).reserved as *const _ as usize },
304         40usize,
305         concat!(
306             "Alignment of field: ",
307             stringify!(mpc_table),
308             "::",
309             stringify!(reserved)
310         )
311     );
312 }
313 impl Clone for mpc_table {
clone(&self) -> Self314     fn clone(&self) -> Self {
315         *self
316     }
317 }
318 #[repr(C)]
319 #[derive(Debug, Default, Copy)]
320 pub struct mpc_cpu {
321     pub type_: ::std::os::raw::c_uchar,
322     pub apicid: ::std::os::raw::c_uchar,
323     pub apicver: ::std::os::raw::c_uchar,
324     pub cpuflag: ::std::os::raw::c_uchar,
325     pub cpufeature: ::std::os::raw::c_uint,
326     pub featureflag: ::std::os::raw::c_uint,
327     pub reserved: [::std::os::raw::c_uint; 2usize],
328 }
329 #[test]
bindgen_test_layout_mpc_cpu()330 fn bindgen_test_layout_mpc_cpu() {
331     assert_eq!(
332         ::std::mem::size_of::<mpc_cpu>(),
333         20usize,
334         concat!("Size of: ", stringify!(mpc_cpu))
335     );
336     assert_eq!(
337         ::std::mem::align_of::<mpc_cpu>(),
338         4usize,
339         concat!("Alignment of ", stringify!(mpc_cpu))
340     );
341     assert_eq!(
342         unsafe { &(*(0 as *const mpc_cpu)).type_ as *const _ as usize },
343         0usize,
344         concat!(
345             "Alignment of field: ",
346             stringify!(mpc_cpu),
347             "::",
348             stringify!(type_)
349         )
350     );
351     assert_eq!(
352         unsafe { &(*(0 as *const mpc_cpu)).apicid as *const _ as usize },
353         1usize,
354         concat!(
355             "Alignment of field: ",
356             stringify!(mpc_cpu),
357             "::",
358             stringify!(apicid)
359         )
360     );
361     assert_eq!(
362         unsafe { &(*(0 as *const mpc_cpu)).apicver as *const _ as usize },
363         2usize,
364         concat!(
365             "Alignment of field: ",
366             stringify!(mpc_cpu),
367             "::",
368             stringify!(apicver)
369         )
370     );
371     assert_eq!(
372         unsafe { &(*(0 as *const mpc_cpu)).cpuflag as *const _ as usize },
373         3usize,
374         concat!(
375             "Alignment of field: ",
376             stringify!(mpc_cpu),
377             "::",
378             stringify!(cpuflag)
379         )
380     );
381     assert_eq!(
382         unsafe { &(*(0 as *const mpc_cpu)).cpufeature as *const _ as usize },
383         4usize,
384         concat!(
385             "Alignment of field: ",
386             stringify!(mpc_cpu),
387             "::",
388             stringify!(cpufeature)
389         )
390     );
391     assert_eq!(
392         unsafe { &(*(0 as *const mpc_cpu)).featureflag as *const _ as usize },
393         8usize,
394         concat!(
395             "Alignment of field: ",
396             stringify!(mpc_cpu),
397             "::",
398             stringify!(featureflag)
399         )
400     );
401     assert_eq!(
402         unsafe { &(*(0 as *const mpc_cpu)).reserved as *const _ as usize },
403         12usize,
404         concat!(
405             "Alignment of field: ",
406             stringify!(mpc_cpu),
407             "::",
408             stringify!(reserved)
409         )
410     );
411 }
412 impl Clone for mpc_cpu {
clone(&self) -> Self413     fn clone(&self) -> Self {
414         *self
415     }
416 }
417 #[repr(C)]
418 #[derive(Debug, Default, Copy)]
419 pub struct mpc_bus {
420     pub type_: ::std::os::raw::c_uchar,
421     pub busid: ::std::os::raw::c_uchar,
422     pub bustype: [::std::os::raw::c_uchar; 6usize],
423 }
424 #[test]
bindgen_test_layout_mpc_bus()425 fn bindgen_test_layout_mpc_bus() {
426     assert_eq!(
427         ::std::mem::size_of::<mpc_bus>(),
428         8usize,
429         concat!("Size of: ", stringify!(mpc_bus))
430     );
431     assert_eq!(
432         ::std::mem::align_of::<mpc_bus>(),
433         1usize,
434         concat!("Alignment of ", stringify!(mpc_bus))
435     );
436     assert_eq!(
437         unsafe { &(*(0 as *const mpc_bus)).type_ as *const _ as usize },
438         0usize,
439         concat!(
440             "Alignment of field: ",
441             stringify!(mpc_bus),
442             "::",
443             stringify!(type_)
444         )
445     );
446     assert_eq!(
447         unsafe { &(*(0 as *const mpc_bus)).busid as *const _ as usize },
448         1usize,
449         concat!(
450             "Alignment of field: ",
451             stringify!(mpc_bus),
452             "::",
453             stringify!(busid)
454         )
455     );
456     assert_eq!(
457         unsafe { &(*(0 as *const mpc_bus)).bustype as *const _ as usize },
458         2usize,
459         concat!(
460             "Alignment of field: ",
461             stringify!(mpc_bus),
462             "::",
463             stringify!(bustype)
464         )
465     );
466 }
467 impl Clone for mpc_bus {
clone(&self) -> Self468     fn clone(&self) -> Self {
469         *self
470     }
471 }
472 #[repr(C)]
473 #[derive(Debug, Default, Copy)]
474 pub struct mpc_ioapic {
475     pub type_: ::std::os::raw::c_uchar,
476     pub apicid: ::std::os::raw::c_uchar,
477     pub apicver: ::std::os::raw::c_uchar,
478     pub flags: ::std::os::raw::c_uchar,
479     pub apicaddr: ::std::os::raw::c_uint,
480 }
481 #[test]
bindgen_test_layout_mpc_ioapic()482 fn bindgen_test_layout_mpc_ioapic() {
483     assert_eq!(
484         ::std::mem::size_of::<mpc_ioapic>(),
485         8usize,
486         concat!("Size of: ", stringify!(mpc_ioapic))
487     );
488     assert_eq!(
489         ::std::mem::align_of::<mpc_ioapic>(),
490         4usize,
491         concat!("Alignment of ", stringify!(mpc_ioapic))
492     );
493     assert_eq!(
494         unsafe { &(*(0 as *const mpc_ioapic)).type_ as *const _ as usize },
495         0usize,
496         concat!(
497             "Alignment of field: ",
498             stringify!(mpc_ioapic),
499             "::",
500             stringify!(type_)
501         )
502     );
503     assert_eq!(
504         unsafe { &(*(0 as *const mpc_ioapic)).apicid as *const _ as usize },
505         1usize,
506         concat!(
507             "Alignment of field: ",
508             stringify!(mpc_ioapic),
509             "::",
510             stringify!(apicid)
511         )
512     );
513     assert_eq!(
514         unsafe { &(*(0 as *const mpc_ioapic)).apicver as *const _ as usize },
515         2usize,
516         concat!(
517             "Alignment of field: ",
518             stringify!(mpc_ioapic),
519             "::",
520             stringify!(apicver)
521         )
522     );
523     assert_eq!(
524         unsafe { &(*(0 as *const mpc_ioapic)).flags as *const _ as usize },
525         3usize,
526         concat!(
527             "Alignment of field: ",
528             stringify!(mpc_ioapic),
529             "::",
530             stringify!(flags)
531         )
532     );
533     assert_eq!(
534         unsafe { &(*(0 as *const mpc_ioapic)).apicaddr as *const _ as usize },
535         4usize,
536         concat!(
537             "Alignment of field: ",
538             stringify!(mpc_ioapic),
539             "::",
540             stringify!(apicaddr)
541         )
542     );
543 }
544 impl Clone for mpc_ioapic {
clone(&self) -> Self545     fn clone(&self) -> Self {
546         *self
547     }
548 }
549 #[repr(C)]
550 #[derive(Debug, Default, Copy)]
551 pub struct mpc_intsrc {
552     pub type_: ::std::os::raw::c_uchar,
553     pub irqtype: ::std::os::raw::c_uchar,
554     pub irqflag: ::std::os::raw::c_ushort,
555     pub srcbus: ::std::os::raw::c_uchar,
556     pub srcbusirq: ::std::os::raw::c_uchar,
557     pub dstapic: ::std::os::raw::c_uchar,
558     pub dstirq: ::std::os::raw::c_uchar,
559 }
560 #[test]
bindgen_test_layout_mpc_intsrc()561 fn bindgen_test_layout_mpc_intsrc() {
562     assert_eq!(
563         ::std::mem::size_of::<mpc_intsrc>(),
564         8usize,
565         concat!("Size of: ", stringify!(mpc_intsrc))
566     );
567     assert_eq!(
568         ::std::mem::align_of::<mpc_intsrc>(),
569         2usize,
570         concat!("Alignment of ", stringify!(mpc_intsrc))
571     );
572     assert_eq!(
573         unsafe { &(*(0 as *const mpc_intsrc)).type_ as *const _ as usize },
574         0usize,
575         concat!(
576             "Alignment of field: ",
577             stringify!(mpc_intsrc),
578             "::",
579             stringify!(type_)
580         )
581     );
582     assert_eq!(
583         unsafe { &(*(0 as *const mpc_intsrc)).irqtype as *const _ as usize },
584         1usize,
585         concat!(
586             "Alignment of field: ",
587             stringify!(mpc_intsrc),
588             "::",
589             stringify!(irqtype)
590         )
591     );
592     assert_eq!(
593         unsafe { &(*(0 as *const mpc_intsrc)).irqflag as *const _ as usize },
594         2usize,
595         concat!(
596             "Alignment of field: ",
597             stringify!(mpc_intsrc),
598             "::",
599             stringify!(irqflag)
600         )
601     );
602     assert_eq!(
603         unsafe { &(*(0 as *const mpc_intsrc)).srcbus as *const _ as usize },
604         4usize,
605         concat!(
606             "Alignment of field: ",
607             stringify!(mpc_intsrc),
608             "::",
609             stringify!(srcbus)
610         )
611     );
612     assert_eq!(
613         unsafe { &(*(0 as *const mpc_intsrc)).srcbusirq as *const _ as usize },
614         5usize,
615         concat!(
616             "Alignment of field: ",
617             stringify!(mpc_intsrc),
618             "::",
619             stringify!(srcbusirq)
620         )
621     );
622     assert_eq!(
623         unsafe { &(*(0 as *const mpc_intsrc)).dstapic as *const _ as usize },
624         6usize,
625         concat!(
626             "Alignment of field: ",
627             stringify!(mpc_intsrc),
628             "::",
629             stringify!(dstapic)
630         )
631     );
632     assert_eq!(
633         unsafe { &(*(0 as *const mpc_intsrc)).dstirq as *const _ as usize },
634         7usize,
635         concat!(
636             "Alignment of field: ",
637             stringify!(mpc_intsrc),
638             "::",
639             stringify!(dstirq)
640         )
641     );
642 }
643 impl Clone for mpc_intsrc {
clone(&self) -> Self644     fn clone(&self) -> Self {
645         *self
646     }
647 }
648 pub const mp_irq_source_types_mp_INT: mp_irq_source_types = 0;
649 pub const mp_irq_source_types_mp_NMI: mp_irq_source_types = 1;
650 pub const mp_irq_source_types_mp_SMI: mp_irq_source_types = 2;
651 pub const mp_irq_source_types_mp_ExtINT: mp_irq_source_types = 3;
652 pub type mp_irq_source_types = ::std::os::raw::c_uint;
653 #[repr(C)]
654 #[derive(Debug, Default, Copy)]
655 pub struct mpc_lintsrc {
656     pub type_: ::std::os::raw::c_uchar,
657     pub irqtype: ::std::os::raw::c_uchar,
658     pub irqflag: ::std::os::raw::c_ushort,
659     pub srcbusid: ::std::os::raw::c_uchar,
660     pub srcbusirq: ::std::os::raw::c_uchar,
661     pub destapic: ::std::os::raw::c_uchar,
662     pub destapiclint: ::std::os::raw::c_uchar,
663 }
664 #[test]
bindgen_test_layout_mpc_lintsrc()665 fn bindgen_test_layout_mpc_lintsrc() {
666     assert_eq!(
667         ::std::mem::size_of::<mpc_lintsrc>(),
668         8usize,
669         concat!("Size of: ", stringify!(mpc_lintsrc))
670     );
671     assert_eq!(
672         ::std::mem::align_of::<mpc_lintsrc>(),
673         2usize,
674         concat!("Alignment of ", stringify!(mpc_lintsrc))
675     );
676     assert_eq!(
677         unsafe { &(*(0 as *const mpc_lintsrc)).type_ as *const _ as usize },
678         0usize,
679         concat!(
680             "Alignment of field: ",
681             stringify!(mpc_lintsrc),
682             "::",
683             stringify!(type_)
684         )
685     );
686     assert_eq!(
687         unsafe { &(*(0 as *const mpc_lintsrc)).irqtype as *const _ as usize },
688         1usize,
689         concat!(
690             "Alignment of field: ",
691             stringify!(mpc_lintsrc),
692             "::",
693             stringify!(irqtype)
694         )
695     );
696     assert_eq!(
697         unsafe { &(*(0 as *const mpc_lintsrc)).irqflag as *const _ as usize },
698         2usize,
699         concat!(
700             "Alignment of field: ",
701             stringify!(mpc_lintsrc),
702             "::",
703             stringify!(irqflag)
704         )
705     );
706     assert_eq!(
707         unsafe { &(*(0 as *const mpc_lintsrc)).srcbusid as *const _ as usize },
708         4usize,
709         concat!(
710             "Alignment of field: ",
711             stringify!(mpc_lintsrc),
712             "::",
713             stringify!(srcbusid)
714         )
715     );
716     assert_eq!(
717         unsafe { &(*(0 as *const mpc_lintsrc)).srcbusirq as *const _ as usize },
718         5usize,
719         concat!(
720             "Alignment of field: ",
721             stringify!(mpc_lintsrc),
722             "::",
723             stringify!(srcbusirq)
724         )
725     );
726     assert_eq!(
727         unsafe { &(*(0 as *const mpc_lintsrc)).destapic as *const _ as usize },
728         6usize,
729         concat!(
730             "Alignment of field: ",
731             stringify!(mpc_lintsrc),
732             "::",
733             stringify!(destapic)
734         )
735     );
736     assert_eq!(
737         unsafe { &(*(0 as *const mpc_lintsrc)).destapiclint as *const _ as usize },
738         7usize,
739         concat!(
740             "Alignment of field: ",
741             stringify!(mpc_lintsrc),
742             "::",
743             stringify!(destapiclint)
744         )
745     );
746 }
747 impl Clone for mpc_lintsrc {
clone(&self) -> Self748     fn clone(&self) -> Self {
749         *self
750     }
751 }
752 #[repr(C)]
753 #[derive(Debug, Default, Copy)]
754 pub struct mpc_oemtable {
755     pub signature: [::std::os::raw::c_char; 4usize],
756     pub length: ::std::os::raw::c_ushort,
757     pub rev: ::std::os::raw::c_char,
758     pub checksum: ::std::os::raw::c_char,
759     pub mpc: [::std::os::raw::c_char; 8usize],
760 }
761 #[test]
bindgen_test_layout_mpc_oemtable()762 fn bindgen_test_layout_mpc_oemtable() {
763     assert_eq!(
764         ::std::mem::size_of::<mpc_oemtable>(),
765         16usize,
766         concat!("Size of: ", stringify!(mpc_oemtable))
767     );
768     assert_eq!(
769         ::std::mem::align_of::<mpc_oemtable>(),
770         2usize,
771         concat!("Alignment of ", stringify!(mpc_oemtable))
772     );
773     assert_eq!(
774         unsafe { &(*(0 as *const mpc_oemtable)).signature as *const _ as usize },
775         0usize,
776         concat!(
777             "Alignment of field: ",
778             stringify!(mpc_oemtable),
779             "::",
780             stringify!(signature)
781         )
782     );
783     assert_eq!(
784         unsafe { &(*(0 as *const mpc_oemtable)).length as *const _ as usize },
785         4usize,
786         concat!(
787             "Alignment of field: ",
788             stringify!(mpc_oemtable),
789             "::",
790             stringify!(length)
791         )
792     );
793     assert_eq!(
794         unsafe { &(*(0 as *const mpc_oemtable)).rev as *const _ as usize },
795         6usize,
796         concat!(
797             "Alignment of field: ",
798             stringify!(mpc_oemtable),
799             "::",
800             stringify!(rev)
801         )
802     );
803     assert_eq!(
804         unsafe { &(*(0 as *const mpc_oemtable)).checksum as *const _ as usize },
805         7usize,
806         concat!(
807             "Alignment of field: ",
808             stringify!(mpc_oemtable),
809             "::",
810             stringify!(checksum)
811         )
812     );
813     assert_eq!(
814         unsafe { &(*(0 as *const mpc_oemtable)).mpc as *const _ as usize },
815         8usize,
816         concat!(
817             "Alignment of field: ",
818             stringify!(mpc_oemtable),
819             "::",
820             stringify!(mpc)
821         )
822     );
823 }
824 impl Clone for mpc_oemtable {
clone(&self) -> Self825     fn clone(&self) -> Self {
826         *self
827     }
828 }
829 pub const mp_bustype_MP_BUS_ISA: mp_bustype = 1;
830 pub const mp_bustype_MP_BUS_EISA: mp_bustype = 2;
831 pub const mp_bustype_MP_BUS_PCI: mp_bustype = 3;
832 pub type mp_bustype = ::std::os::raw::c_uint;
833