Convert enum fields to upper snakecase.
Change-Id: I0fb65ecf523b3e5303344737c54bbe82c5e93ee0
diff --git a/inc/hf/cpu.h b/inc/hf/cpu.h
index 6f358cd..6d38662 100644
--- a/inc/hf/cpu.h
+++ b/inc/hf/cpu.h
@@ -32,22 +32,22 @@
enum vcpu_state {
/** The vcpu is switched off. */
- vcpu_state_off,
+ VCPU_STATE_OFF,
/** The vcpu is ready to be run. */
- vcpu_state_ready,
+ VCPU_STATE_READY,
/** The vcpu is currently running. */
- vcpu_state_running,
+ VCPU_STATE_RUNNING,
/** The vcpu is waiting for a message. */
- vcpu_state_blocked_mailbox,
+ VCPU_STATE_BLOCKED_MAILBOX,
/** The vcpu is waiting for an interrupt. */
- vcpu_state_blocked_interrupt,
+ VCPU_STATE_BLOCKED_INTERRUPT,
/** The vcpu has aborted. */
- vcpu_state_aborted,
+ VCPU_STATE_ABORTED,
};
struct interrupts {
diff --git a/inc/hf/vm.h b/inc/hf/vm.h
index 9511d0d..e202ab4 100644
--- a/inc/hf/vm.h
+++ b/inc/hf/vm.h
@@ -26,13 +26,13 @@
enum mailbox_state {
/** There is no message in the mailbox. */
- mailbox_state_empty,
+ MAILBOX_STATE_EMPTY,
/** There is a message in the mailbox that is waiting for a reader. */
- mailbox_state_received,
+ MAILBOX_STATE_RECEIVED,
/** There is a message in the mailbox that has been read. */
- mailbox_state_read,
+ MAILBOX_STATE_READ,
};
struct wait_entry {