diff options
-rw-r--r-- | src/ec/acpi/ec.c | 5 | ||||
-rw-r--r-- | src/ec/acpi/ec.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c index 3f5cd9ed1b..a739b98df3 100644 --- a/src/ec/acpi/ec.c +++ b/src/ec/acpi/ec.c @@ -126,6 +126,11 @@ int ec_write(u8 addr, u8 data) return send_ec_data(data); } +u8 ec_status(void) +{ + return inb(ec_cmd_reg); +} + u8 ec_query(void) { send_ec_command(0x84); diff --git a/src/ec/acpi/ec.h b/src/ec/acpi/ec.h index 0877fe200b..d9487e9015 100644 --- a/src/ec/acpi/ec.h +++ b/src/ec/acpi/ec.h @@ -40,6 +40,7 @@ int send_ec_command(u8 command); int send_ec_data(u8 data); int send_ec_data_nowait(u8 data); u8 recv_ec_data(void); +u8 ec_status(void); u8 ec_query(void); u8 ec_read(u8 addr); int ec_write(u8 addr, u8 data); |