git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: support user-spcae pci rescan
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
acpi
/
madt.h
diff --git
a/lunaix-os/includes/hal/acpi/madt.h
b/lunaix-os/includes/hal/acpi/madt.h
index ef03bfd5b013dc74ef97dec0c60e3d394faec940..538e521837e12167c2fb25bfa53f5f60f2b75c9a 100644
(file)
--- a/
lunaix-os/includes/hal/acpi/madt.h
+++ b/
lunaix-os/includes/hal/acpi/madt.h
@@
-13,8
+13,8
@@
*/
typedef struct
{
*/
typedef struct
{
- u
int
8_t type;
- u
int
8_t length;
+ u8_t type;
+ u8_t length;
} ACPI_TABLE_PACKED acpi_ics_hdr_t;
/**
} ACPI_TABLE_PACKED acpi_ics_hdr_t;
/**
@@
-26,9
+26,9
@@
typedef struct
typedef struct
{
acpi_ics_hdr_t header;
typedef struct
{
acpi_ics_hdr_t header;
- u
int
8_t processor_id;
- u
int
8_t apic_id;
- u
int
32_t flags;
+ u8_t processor_id;
+ u8_t apic_id;
+ u32_t flags;
} ACPI_TABLE_PACKED acpi_apic_t;
/**
} ACPI_TABLE_PACKED acpi_apic_t;
/**
@@
-41,11
+41,12
@@
typedef struct
typedef struct
{
acpi_ics_hdr_t header;
typedef struct
{
acpi_ics_hdr_t header;
- uint8_t ioapic_id;
- uint8_t reserved;
- uint32_t ioapic_addr;
- // The global system interrupt offset for this IOAPIC. (Kind of IRQ offset for a slave IOAPIC)
- uint32_t gis_offset;
+ u8_t ioapic_id;
+ u8_t reserved;
+ u32_t ioapic_addr;
+ // The global system interrupt offset for this IOAPIC. (Kind of IRQ offset
+ // for a slave IOAPIC)
+ u32_t gis_offset;
} ACPI_TABLE_PACKED acpi_ioapic_t;
/**
} ACPI_TABLE_PACKED acpi_ioapic_t;
/**
@@
-60,20
+61,20
@@
typedef struct
typedef struct
{
acpi_ics_hdr_t header;
typedef struct
{
acpi_ics_hdr_t header;
- u
int
8_t bus;
+ u8_t bus;
// source, which is the original IRQ back in the era of IBM PC/AT, the 8259
// PIC
// source, which is the original IRQ back in the era of IBM PC/AT, the 8259
// PIC
- u
int
8_t source;
+ u8_t source;
// global system interrupt. The override of source in APIC mode
// global system interrupt. The override of source in APIC mode
- u
int
32_t gsi;
- u
int
16_t flags;
+ u32_t gsi;
+ u16_t flags;
} ACPI_TABLE_PACKED acpi_intso_t;
typedef struct
{
acpi_sdthdr_t header;
void* apic_addr;
} ACPI_TABLE_PACKED acpi_intso_t;
typedef struct
{
acpi_sdthdr_t header;
void* apic_addr;
- u
int
32_t flags;
+ u32_t flags;
// Here is a bunch of packed ICS reside here back-to-back.
} ACPI_TABLE_PACKED acpi_madt_t;
// Here is a bunch of packed ICS reside here back-to-back.
} ACPI_TABLE_PACKED acpi_madt_t;