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