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