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
chore: fix almost *ALL* warnings.
[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 fb7809771945861212bbe35b249fe019741508d7..b055aa3a3349375c1a67cccbe8736e67f8c88120 100644
(file)
--- a/
lunaix-os/includes/hal/acpi/sdt.h
+++ b/
lunaix-os/includes/hal/acpi/sdt.h
@@
-1,26
+1,28
@@
#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>
-typedef struct
+#define ACPI_TABLE_PACKED __attribute__((packed))
+
+typedef struct acpi_sdthdr
{
{
- u
int
32_t signature;
- u
int
32_t length;
+ u32_t signature;
+ u32_t length;
// Revision
// Revision
- u
int
8_t rev;
- u
int
8_t chksum;
+ u8_t rev;
+ u8_t chksum;
char oem_id[6];
char oem_table_id[8];
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;
-}
__attribute__((packed))
acpi_sdthdr_t;
+ u32_t oem_rev;
+ u32_t vendor_id;
+ u32_t vendor_rev;
+}
ACPI_TABLE_PACKED
acpi_sdthdr_t;
-typedef struct
+typedef struct
acpi_rsdt
{
acpi_sdthdr_t header;
acpi_sdthdr_t* entry;
{
acpi_sdthdr_t header;
acpi_sdthdr_t* entry;
-}
__attribute__((packed))
acpi_rsdt_t;
+}
ACPI_TABLE_PACKED
acpi_rsdt_t;
#endif /* __LUNAIX_ACPI_SDT_H */
#endif /* __LUNAIX_ACPI_SDT_H */