File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
include/linux/platform_data Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -3463,6 +3463,34 @@ union __ec_align_offset1 ec_response_get_next_data_v1 {
3463
3463
};
3464
3464
BUILD_ASSERT (sizeof (union ec_response_get_next_data_v1 ) == 16 );
3465
3465
3466
+ union __ec_align_offset1 ec_response_get_next_data_v3 {
3467
+ uint8_t key_matrix [18 ];
3468
+
3469
+ /* Unaligned */
3470
+ uint32_t host_event ;
3471
+ uint64_t host_event64 ;
3472
+
3473
+ struct __ec_todo_unpacked {
3474
+ /* For aligning the fifo_info */
3475
+ uint8_t reserved [3 ];
3476
+ struct ec_response_motion_sense_fifo_info info ;
3477
+ } sensor_fifo ;
3478
+
3479
+ uint32_t buttons ;
3480
+
3481
+ uint32_t switches ;
3482
+
3483
+ uint32_t fp_events ;
3484
+
3485
+ uint32_t sysrq ;
3486
+
3487
+ /* CEC events from enum mkbp_cec_event */
3488
+ uint32_t cec_events ;
3489
+
3490
+ uint8_t cec_message [16 ];
3491
+ };
3492
+ BUILD_ASSERT (sizeof (union ec_response_get_next_data_v3 ) == 18 );
3493
+
3466
3494
struct ec_response_get_next_event {
3467
3495
uint8_t event_type ;
3468
3496
/* Followed by event data if any */
@@ -3475,6 +3503,12 @@ struct ec_response_get_next_event_v1 {
3475
3503
union ec_response_get_next_data_v1 data ;
3476
3504
} __ec_align1 ;
3477
3505
3506
+ struct ec_response_get_next_event_v3 {
3507
+ uint8_t event_type ;
3508
+ /* Followed by event data if any */
3509
+ union ec_response_get_next_data_v3 data ;
3510
+ } __ec_align1 ;
3511
+
3478
3512
/* Bit indices for buttons and switches.*/
3479
3513
/* Buttons */
3480
3514
#define EC_MKBP_POWER_BUTTON 0
You can’t perform that action at this time.
0 commit comments