Adding upstream version 6.02~pre8+dfsg.
[syslinux-debian/hramrach.git] / com32 / gplinclude / acpi / ecdt.h
blob5d572636db7945c01b21997667ca2f86f0debba9
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009-2011 Erwan Velu - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef ECDT_H
14 #define ECDT_H
15 #include <inttypes.h>
16 #include <stdbool.h>
18 #define ECDT "ECDT"
20 /* Offset of the EC_ID in the structure */
21 #define EC_ID_OFFSET 65
23 typedef struct {
24 uint64_t *address;
25 s_acpi_description_header header;
26 bool valid;
27 uint32_t warning_energy_level;
28 uint32_t low_energy_level;
29 uint32_t critical_energy_level;
30 s_gas ec_control;
31 s_gas ec_data;
32 uint32_t uid;
33 uint8_t gpe_bit;
34 char *ec_id;
35 } s_ecdt;
37 void parse_ecdt(s_ecdt * ecdt);
38 #endif