]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
cleaner
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 22 Feb 2016 18:44:39 +0000 (19:44 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 22 Feb 2016 18:44:39 +0000 (19:44 +0100)
grub-core/term/arm/cros_ec.c

index bc93a86bee17d616ecaf87383abc2de5abec0a28..8685729d5ea553890a2fff76ca3b3acb00247120 100644 (file)
@@ -328,54 +328,6 @@ struct ec_response_proto_version {
        uint32_t version;
 } __packed;
 
-/*
- * Hello.  This is a simple command to test the EC is responsive to
- * commands.
- */
-#define EC_CMD_HELLO 0x01
-
-struct ec_params_hello {
-       uint32_t in_data;  /* Pass anything here */
-} __packed;
-
-struct ec_response_hello {
-       uint32_t out_data;  /* Output will be in_data + 0x01020304 */
-} __packed;
-
-
-/*
- * Read memory-mapped data.
- *
- * This is an alternate interface to memory-mapped data for bus protocols
- * which don't support direct-mapped memory - I2C, SPI, etc.
- *
- * Response is params.size bytes of data.
- */
-#define EC_CMD_READ_MEMMAP 0x07
-
-struct ec_params_read_memmap {
-       uint8_t offset;   /* Offset in memmap (EC_MEMMAP_*) */
-       uint8_t size;     /* Size to read in bytes */
-} __packed;
-
-/* Read versions supported for a command */
-#define EC_CMD_GET_CMD_VERSIONS 0x08
-
-struct ec_params_get_cmd_versions {
-       uint8_t cmd;      /* Command to check */
-} __packed;
-
-struct ec_params_get_cmd_versions_v1 {
-       uint16_t cmd;     /* Command to check */
-} __packed;
-
-struct ec_response_get_cmd_versions {
-       /*
-        * Mask of supported versions; use EC_VER_MASK() to compare with a
-        * desired version.
-        */
-       uint32_t version_mask;
-} __packed;
 
 /*
  * Check EC communcations status (busy). This is needed on i2c/spi but not