~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/olpc-ec.h

Version: ~ [ linux-5.4-rc7 ] ~ [ linux-5.3.10 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.83 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.153 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.200 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.200 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.76 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _LINUX_OLPC_EC_H
  2 #define _LINUX_OLPC_EC_H
  3 
  4 /* XO-1 EC commands */
  5 #define EC_FIRMWARE_REV                 0x08
  6 #define EC_WRITE_SCI_MASK               0x1b
  7 #define EC_WAKE_UP_WLAN                 0x24
  8 #define EC_WLAN_LEAVE_RESET             0x25
  9 #define EC_DCON_POWER_MODE              0x26
 10 #define EC_READ_EB_MODE                 0x2a
 11 #define EC_SET_SCI_INHIBIT              0x32
 12 #define EC_SET_SCI_INHIBIT_RELEASE      0x34
 13 #define EC_WLAN_ENTER_RESET             0x35
 14 #define EC_WRITE_EXT_SCI_MASK           0x38
 15 #define EC_SCI_QUERY                    0x84
 16 #define EC_EXT_SCI_QUERY                0x85
 17 
 18 struct platform_device;
 19 
 20 struct olpc_ec_driver {
 21         int (*probe)(struct platform_device *);
 22         int (*suspend)(struct platform_device *);
 23         int (*resume)(struct platform_device *);
 24 
 25         int (*ec_cmd)(u8, u8 *, size_t, u8 *, size_t, void *);
 26 };
 27 
 28 #ifdef CONFIG_OLPC
 29 
 30 extern void olpc_ec_driver_register(struct olpc_ec_driver *drv, void *arg);
 31 
 32 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
 33                 size_t outlen);
 34 
 35 #else
 36 
 37 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
 38                 size_t outlen) { return -ENODEV; }
 39 
 40 #endif /* CONFIG_OLPC */
 41 
 42 #endif /* _LINUX_OLPC_EC_H */
 43 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp