summaryrefslogtreecommitdiff
path: root/include/port80.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/port80.h')
-rw-r--r--include/port80.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/port80.h b/include/port80.h
index 28966750c6..470b01cc4b 100644
--- a/include/port80.h
+++ b/include/port80.h
@@ -13,6 +13,7 @@
enum port_80_event {
PORT_80_EVENT_RESUME = 0x1001, /* S3->S0 transition */
PORT_80_EVENT_RESET = 0x1002, /* RESET transition */
+ PORT_80_IGNORE = 0xffff, /* Invalid POST CODE */
};
/**
@@ -22,4 +23,14 @@ enum port_80_event {
*/
void port_80_write(int data);
+#ifdef HAS_TASK_PORT80
+/**
+ * Chip specific function to read from port 80.
+ *
+ * @return data from the last LPC write to port 80,
+ * or PORT_80_IGNORE if no data is available.
+ */
+int port_80_read(void);
+#endif
+
#endif /* __CROS_EC_PORT80_H */