Skip to content

Commit df21b93

Browse files
committed
cleaner
1 parent 8efde40 commit df21b93

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

grub-core/term/arm/cros_ec.c

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -328,54 +328,6 @@ struct ec_response_proto_version {
328328
uint32_t version;
329329
} __packed;
330330

331-
/*
332-
* Hello. This is a simple command to test the EC is responsive to
333-
* commands.
334-
*/
335-
#define EC_CMD_HELLO 0x01
336-
337-
struct ec_params_hello {
338-
uint32_t in_data; /* Pass anything here */
339-
} __packed;
340-
341-
struct ec_response_hello {
342-
uint32_t out_data; /* Output will be in_data + 0x01020304 */
343-
} __packed;
344-
345-
346-
/*
347-
* Read memory-mapped data.
348-
*
349-
* This is an alternate interface to memory-mapped data for bus protocols
350-
* which don't support direct-mapped memory - I2C, SPI, etc.
351-
*
352-
* Response is params.size bytes of data.
353-
*/
354-
#define EC_CMD_READ_MEMMAP 0x07
355-
356-
struct ec_params_read_memmap {
357-
uint8_t offset; /* Offset in memmap (EC_MEMMAP_*) */
358-
uint8_t size; /* Size to read in bytes */
359-
} __packed;
360-
361-
/* Read versions supported for a command */
362-
#define EC_CMD_GET_CMD_VERSIONS 0x08
363-
364-
struct ec_params_get_cmd_versions {
365-
uint8_t cmd; /* Command to check */
366-
} __packed;
367-
368-
struct ec_params_get_cmd_versions_v1 {
369-
uint16_t cmd; /* Command to check */
370-
} __packed;
371-
372-
struct ec_response_get_cmd_versions {
373-
/*
374-
* Mask of supported versions; use EC_VER_MASK() to compare with a
375-
* desired version.
376-
*/
377-
uint32_t version_mask;
378-
} __packed;
379331

380332
/*
381333
* Check EC communcations status (busy). This is needed on i2c/spi but not

0 commit comments

Comments
 (0)