/* The fixed ISH product and vendor id */ #define ISH_HID_VENDOR 0x8086 #define ISH_HID_PRODUCT 0x22D8 #define ISH_HID_VERSION 0x0200
#define CMD_MASK 0x7F #define IS_RESPONSE 0x80
/* Used to dump to Linux trace buffer, if enabled */ extern ishtp_print_log ishtp_hid_print_trace; #define hid_ishtp_trace(client, ...) \
(ishtp_hid_print_trace)(NULL, __VA_ARGS__)
/** * struct ishtp_cl_data - Encapsulate per ISH TP HID Client * @enum_device_done: Enum devices response complete flag * @hid_descr_done: HID descriptor complete flag * @report_descr_done: Get report descriptor complete flag * @init_done: Init process completed successfully * @suspended: System is under suspend state or in progress * @num_hid_devices: Number of HID devices enumerated in this client * @cur_hid_dev: This keeps track of the device index for which * initialization and registration with HID core * in progress. * @hid_devices: Store vid/pid/devid for each enumerated HID device * @report_descr: Stores the raw report descriptors for each HID device * @report_descr_size: Report description of size of above repo_descr[] * @hid_sensor_hubs: Pointer to hid_device for all HID device, so that * when clients are removed, they can be freed * @hid_descr: Pointer to hid descriptor for each enumerated hid * device * @hid_descr_size: Size of each above report descriptor * @init_wait: Wait queue to wait during initialization, where the * client send message to ISH FW and wait for response * @ishtp_hid_wait: The wait for get report during wait callback from hid * core * @bad_recv_cnt: Running count of packets received with error * @multi_packet_cnt: Count of fragmented packet count * * This structure is used to store completion flags and per client data like * report description, number of HID devices etc.
*/ struct ishtp_cl_data { /* completion flags */ bool enum_devices_done; bool hid_descr_done; bool report_descr_done; bool init_done; bool suspended;
/** * struct ishtp_hid_data - Per instance HID data * @index: Device index in the order of enumeration * @request_done: Get Feature/Input report complete flag * used during get/set request from hid core * @client_data: Link to the client instance * @hid_wait: Completion waitq * * @raw_get_req: Flag indicating raw get request ongoing * @raw_buf: raw request buffer filled on receiving get report * @raw_buf_size: raw request buffer size * Used to tie hid hid->driver data to driver client instance
*/ struct ishtp_hid_data { int index; bool request_done; struct ishtp_cl_data *client_data;
wait_queue_head_t hid_wait;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.