Lines Matching full:ec
29 * The EC is unresponsive for a time after a reboot command. Add a
45 * EC panic is not covered by the standard (0-F) ACPI notify values.
46 * Arbitrarily choosing B0 to notify ec panic, which is in the 84-BF
52 * Command interface between EC and AP, for LPC, I2C and SPI interfaces.
69 * struct cros_ec_command - Information about a ChromeOS EC command.
73 * @insize: Max number of bytes to accept from the EC.
74 * @result: EC's response to the command (separate from communication failure).
75 * @data: Where to put the incoming data from EC and outgoing data to EC.
87 * struct cros_ec_device - Information about a ChromeOS EC device.
91 * @cmd_readmem: Direct read of the EC memory-mapped region, if supported.
104 * @din: Input buffer (for data from EC). This buffer will always be
110 * @dout: Output buffer (for data to EC). This buffer will always be
120 * @cmd_xfer: Send command to EC and get response.
122 * succeeded, but that doesn't mean the EC was happy with the
123 * command. The caller should check msg.result for the EC's result
125 * @pkt_xfer: Send packet to EC and get response.
132 * @host_sleep_v1: True if this EC supports the sleep v1 command.
138 * is received and when the EC will declare sleep
148 * @notifier_ready: The notifier_block to let the kernel re-query EC
149 * communication protocol when the EC sends
151 * @ec: The platform_device used by the mfd driver to interface with the
152 * main EC.
154 * PD behind an EC.
155 * @panic_notifier: EC panic notifier.
158 /* These are used by other drivers that want to talk to the EC */
162 int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset,
178 int (*cmd_xfer)(struct cros_ec_device *ec,
180 int (*pkt_xfer)(struct cros_ec_device *ec,
197 struct platform_device *ec; member
204 * struct cros_ec_platform - ChromeOS EC platform information.
205 * @ec_name: Name of EC device (e.g. 'cros-ec', 'cros-pd', ...)
216 * struct cros_ec_dev - ChromeOS EC device entry point.
221 * @has_kb_wake_angle: True if at least 2 accelerometer are connected to the EC.
223 * @features: Features supported by the EC.
257 bool cros_ec_check_features(struct cros_ec_dev *ec, int feature);
259 int cros_ec_get_sensor_count(struct cros_ec_dev *ec);