Loading include/linux/olpc-ec.h +12 −11 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ #ifndef _LINUX_OLPC_EC_H #define _LINUX_OLPC_EC_H #include <linux/bits.h> /* XO-1 EC commands */ #define EC_FIRMWARE_REV 0x08 #define EC_WRITE_SCI_MASK 0x1b Loading @@ -17,17 +19,16 @@ #define EC_EXT_SCI_QUERY 0x85 /* SCI source values */ #define EC_SCI_SRC_EMPTY 0x00 #define EC_SCI_SRC_GAME 0x01 #define EC_SCI_SRC_BATTERY 0x02 #define EC_SCI_SRC_BATSOC 0x04 #define EC_SCI_SRC_BATERR 0x08 #define EC_SCI_SRC_EBOOK 0x10 /* XO-1 only */ #define EC_SCI_SRC_WLAN 0x20 /* XO-1 only */ #define EC_SCI_SRC_ACPWR 0x40 #define EC_SCI_SRC_BATCRIT 0x80 #define EC_SCI_SRC_GPWAKE 0x100 /* XO-1.5 only */ #define EC_SCI_SRC_ALL 0x1FF #define EC_SCI_SRC_GAME BIT(0) #define EC_SCI_SRC_BATTERY BIT(1) #define EC_SCI_SRC_BATSOC BIT(2) #define EC_SCI_SRC_BATERR BIT(3) #define EC_SCI_SRC_EBOOK BIT(4) /* XO-1 only */ #define EC_SCI_SRC_WLAN BIT(5) /* XO-1 only */ #define EC_SCI_SRC_ACPWR BIT(6) #define EC_SCI_SRC_BATCRIT BIT(7) #define EC_SCI_SRC_GPWAKE BIT(8) /* XO-1.5 only */ #define EC_SCI_SRC_ALL GENMASK(8, 0) struct platform_device; Loading Loading
include/linux/olpc-ec.h +12 −11 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ #ifndef _LINUX_OLPC_EC_H #define _LINUX_OLPC_EC_H #include <linux/bits.h> /* XO-1 EC commands */ #define EC_FIRMWARE_REV 0x08 #define EC_WRITE_SCI_MASK 0x1b Loading @@ -17,17 +19,16 @@ #define EC_EXT_SCI_QUERY 0x85 /* SCI source values */ #define EC_SCI_SRC_EMPTY 0x00 #define EC_SCI_SRC_GAME 0x01 #define EC_SCI_SRC_BATTERY 0x02 #define EC_SCI_SRC_BATSOC 0x04 #define EC_SCI_SRC_BATERR 0x08 #define EC_SCI_SRC_EBOOK 0x10 /* XO-1 only */ #define EC_SCI_SRC_WLAN 0x20 /* XO-1 only */ #define EC_SCI_SRC_ACPWR 0x40 #define EC_SCI_SRC_BATCRIT 0x80 #define EC_SCI_SRC_GPWAKE 0x100 /* XO-1.5 only */ #define EC_SCI_SRC_ALL 0x1FF #define EC_SCI_SRC_GAME BIT(0) #define EC_SCI_SRC_BATTERY BIT(1) #define EC_SCI_SRC_BATSOC BIT(2) #define EC_SCI_SRC_BATERR BIT(3) #define EC_SCI_SRC_EBOOK BIT(4) /* XO-1 only */ #define EC_SCI_SRC_WLAN BIT(5) /* XO-1 only */ #define EC_SCI_SRC_ACPWR BIT(6) #define EC_SCI_SRC_BATCRIT BIT(7) #define EC_SCI_SRC_GPWAKE BIT(8) /* XO-1.5 only */ #define EC_SCI_SRC_ALL GENMASK(8, 0) struct platform_device; Loading