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