Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48 lines
1.0 KiB
C
48 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Automatically generated C representation of wwnr automaton
|
|
* For further information about this format, see kernel documentation:
|
|
* Documentation/trace/rv/deterministic_automata.rst
|
|
*/
|
|
|
|
enum states_wwnr {
|
|
not_running_wwnr = 0,
|
|
running_wwnr,
|
|
state_max_wwnr
|
|
};
|
|
|
|
#define INVALID_STATE state_max_wwnr
|
|
|
|
enum events_wwnr {
|
|
switch_in_wwnr = 0,
|
|
switch_out_wwnr,
|
|
wakeup_wwnr,
|
|
event_max_wwnr
|
|
};
|
|
|
|
struct automaton_wwnr {
|
|
char *state_names[state_max_wwnr];
|
|
char *event_names[event_max_wwnr];
|
|
unsigned char function[state_max_wwnr][event_max_wwnr];
|
|
unsigned char initial_state;
|
|
bool final_states[state_max_wwnr];
|
|
};
|
|
|
|
static const struct automaton_wwnr automaton_wwnr = {
|
|
.state_names = {
|
|
"not_running",
|
|
"running"
|
|
},
|
|
.event_names = {
|
|
"switch_in",
|
|
"switch_out",
|
|
"wakeup"
|
|
},
|
|
.function = {
|
|
{ running_wwnr, INVALID_STATE, not_running_wwnr },
|
|
{ INVALID_STATE, not_running_wwnr, INVALID_STATE },
|
|
},
|
|
.initial_state = not_running_wwnr,
|
|
.final_states = { 1, 0 },
|
|
};
|