1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Automatically generated C representation of wwnr automaton 4 * For further information about this format, see kernel documentation: 5 * Documentation/trace/rv/deterministic_automata.rst 6 */ 7 8 enum states_wwnr { 9 not_running_wwnr = 0, 10 running_wwnr, 11 state_max_wwnr 12 }; 13 14 #define INVALID_STATE state_max_wwnr 15 16 enum events_wwnr { 17 switch_in_wwnr = 0, 18 switch_out_wwnr, 19 wakeup_wwnr, 20 event_max_wwnr 21 }; 22 23 struct automaton_wwnr { 24 char *state_names[state_max_wwnr]; 25 char *event_names[event_max_wwnr]; 26 unsigned char function[state_max_wwnr][event_max_wwnr]; 27 unsigned char initial_state; 28 bool final_states[state_max_wwnr]; 29 }; 30 31 static const struct automaton_wwnr automaton_wwnr = { 32 .state_names = { 33 "not_running", 34 "running" 35 }, 36 .event_names = { 37 "switch_in", 38 "switch_out", 39 "wakeup" 40 }, 41 .function = { 42 { running_wwnr, INVALID_STATE, not_running_wwnr }, 43 { INVALID_STATE, not_running_wwnr, INVALID_STATE }, 44 }, 45 .initial_state = not_running_wwnr, 46 .final_states = { 1, 0 }, 47 }; 48