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
refactor: add a async read/write variant to device ops, with allow async io to be...
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
acpi
/
acpi.h
diff --git
a/lunaix-os/includes/hal/acpi/acpi.h
b/lunaix-os/includes/hal/acpi/acpi.h
index 46713b8f54f618fed20db0bed74bed181831dd13..a9a4af65cf80c255413bb3e6687d4ea7cbeaec7d 100644
(file)
--- a/
lunaix-os/includes/hal/acpi/acpi.h
+++ b/
lunaix-os/includes/hal/acpi/acpi.h
@@
-1,10
+1,6
@@
#ifndef __LUNAIX_ACPI_ACPI_H
#define __LUNAIX_ACPI_ACPI_H
#ifndef __LUNAIX_ACPI_ACPI_H
#define __LUNAIX_ACPI_ACPI_H
-#include <arch/x86/boot/multiboot.h>
-#include <stddef.h>
-#include <stdint.h>
-
#include "fadt.h"
#include "madt.h"
#include "mcfg.h"
#include "fadt.h"
#include "madt.h"
#include "mcfg.h"
@@
-24,16
+20,16
@@
typedef struct
{
typedef struct
{
- u
int
32_t signature_l;
- u
int
32_t signature_h;
- u
int
8_t chksum;
+ u32_t signature_l;
+ u32_t signature_h;
+ u8_t chksum;
char oem_id[6];
// Revision
char oem_id[6];
// Revision
- u
int
8_t rev;
+ u8_t rev;
acpi_rsdt_t* rsdt;
acpi_rsdt_t* rsdt;
- u
int
32_t length;
+ u32_t length;
acpi_sdthdr_t* xsdt;
acpi_sdthdr_t* xsdt;
- u
int
8_t x_chksum;
+ u8_t x_chksum;
char reserved[3]; // Reserved field
} __attribute__((packed)) acpi_rsdp_t;
char reserved[3]; // Reserved field
} __attribute__((packed)) acpi_rsdp_t;
@@
-50,13
+46,10
@@
typedef struct
struct acpi_mcfg_toc mcfg;
} acpi_context;
struct acpi_mcfg_toc mcfg;
} acpi_context;
-int
-acpi_init(multiboot_info_t* mb_info);
-
acpi_context*
acpi_get_context();
acpi_context*
acpi_get_context();
-u
int
8_t
-acpi_g
istranslate(uint
8_t old_irq);
+u8_t
+acpi_g
simap(u
8_t old_irq);
#endif /* __LUNAIX_ACPI_ACPI_H */
#endif /* __LUNAIX_ACPI_ACPI_H */