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: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
acpi
/
sdt.h
diff --git
a/lunaix-os/includes/hal/acpi/sdt.h
b/lunaix-os/includes/hal/acpi/sdt.h
index fc4a332428e4424da18c4a1088ffc1b9dfaacc1f..e5b1d11d233d7c56d84a713d88c3cfc27a2deb2b 100644
(file)
--- a/
lunaix-os/includes/hal/acpi/sdt.h
+++ b/
lunaix-os/includes/hal/acpi/sdt.h
@@
-1,22
+1,22
@@
#ifndef __LUNAIX_ACPI_SDT_H
#define __LUNAIX_ACPI_SDT_H
#ifndef __LUNAIX_ACPI_SDT_H
#define __LUNAIX_ACPI_SDT_H
-#include <
stdint
.h>
+#include <
lunaix/types
.h>
-#define ACPI_TABLE_PACKED
__attribute__((packed))
+#define ACPI_TABLE_PACKED __attribute__((packed))
typedef struct acpi_sdthdr
{
typedef struct acpi_sdthdr
{
- u
int
32_t signature;
- u
int
32_t length;
+ u32_t signature;
+ u32_t length;
// Revision
uint8_t rev;
uint8_t chksum;
char oem_id[6];
char oem_table_id[8];
// Revision
uint8_t rev;
uint8_t chksum;
char oem_id[6];
char oem_table_id[8];
- u
int
32_t oem_rev;
- u
int
32_t vendor_id;
- u
int
32_t vendor_rev;
+ u32_t oem_rev;
+ u32_t vendor_id;
+ u32_t vendor_rev;
} ACPI_TABLE_PACKED acpi_sdthdr_t;
typedef struct acpi_rsdt
} ACPI_TABLE_PACKED acpi_sdthdr_t;
typedef struct acpi_rsdt