skip to content
==> include/mesh/abi/place_ops.h <==
1/* @ajax/mesh-abi-place-ops: F_PLACE ops: pause, paused, set, done, fail.
2 *
3 * Part of alpha-c-mesh, a C port of alpha-rust-mesh (README.md says from where). */
4#ifndef MESH_ABI_PLACE_OPS_H
5#define MESH_ABI_PLACE_OPS_H
6
7#include <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
10
11/* F_PLACE ops.  The leader runs a change among the up members: PL_PAUSE to
12 * each -> (each drains) PL_PAUSED with its state -> PL_SET to each with the mode,
13 * the member mask and the state that continues -> PL_DONE from each.  PL_FAIL
14 * (the leader, any time): set the mode it names (the old one) and resume,
15 * without copying state.  PL_REQ / PL_RESULT are unused since F3 (changes go
16 * through the desired state) but keep their numbers. */
17#define MESH_PL_REQ 0u
18#define MESH_PL_RESULT 1u
19#define MESH_PL_PAUSE 2u
20#define MESH_PL_PAUSED 3u
21#define MESH_PL_SET 4u
22#define MESH_PL_DONE 5u
23#define MESH_PL_FAIL 6u
24
25#endif