2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef __ASM_IO_APIC_H
|
|
|
|
#define __ASM_IO_APIC_H
|
|
|
|
#include <asm/types.h>
|
|
|
|
#include <asm/mpspec.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <asm/apicdef.h>
|
|
|
|
union IO_APIC_reg_00 {
|
|
|
|
u32 raw;
|
|
|
|
struct {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
u32 __reserved_2 : 14,
|
|
|
|
LTS : 1,
|
|
|
|
delivery_type : 1,
|
|
|
|
__reserved_1 : 8,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
ID : 8;
|
|
|
|
} __attribute__ ((packed)) bits;
|
|
|
|
};
|
|
|
|
union IO_APIC_reg_01 {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
u32 raw;
|
|
|
|
struct {
|
|
|
|
u32 version : 8,
|
|
|
|
__reserved_2 : 7,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
PRQ : 1,
|
|
|
|
entries : 8,
|
|
|
|
__reserved_1 : 8;
|
|
|
|
} __attribute__ ((packed)) bits;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
union IO_APIC_reg_02 {
|
|
|
|
u32 raw;
|
|
|
|
struct {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
u32 __reserved_2 : 24,
|
|
|
|
arbitration : 4,
|
|
|
|
__reserved_1 : 4;
|
|
|
|
} __attribute__ ((packed)) bits;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
union IO_APIC_reg_03 {
|
|
|
|
u32 raw;
|
|
|
|
struct {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
u32 boot_DT : 1,
|
|
|
|
__reserved_1 : 31;
|
|
|
|
} __attribute__ ((packed)) bits;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
enum ioapic_irq_destination_types {
|
|
|
|
dest_Fixed = 0,
|
|
|
|
dest_LowestPrio = 1,
|
|
|
|
dest_SMI = 2,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
dest__reserved_1 = 3,
|
|
|
|
dest_NMI = 4,
|
|
|
|
dest_INIT = 5,
|
|
|
|
dest__reserved_2 = 6,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
dest_ExtINT = 7
|
|
|
|
};
|
|
|
|
struct IO_APIC_route_entry {
|
|
|
|
__u32 vector : 8,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
delivery_mode : 3,
|
|
|
|
dest_mode : 1,
|
|
|
|
delivery_status : 1,
|
|
|
|
polarity : 1,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
irr : 1,
|
|
|
|
trigger : 1,
|
|
|
|
mask : 1,
|
|
|
|
__reserved_2 : 15;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
union { struct { __u32
|
|
|
|
__reserved_1 : 24,
|
|
|
|
physical_dest : 4,
|
|
|
|
__reserved_2 : 4;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
} physical;
|
|
|
|
struct { __u32
|
|
|
|
__reserved_1 : 24,
|
|
|
|
logical_dest : 8;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
} logical;
|
|
|
|
} dest;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
#define io_apic_assign_pci_irqs 0
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#endif
|