From ea7d806ab0ba7acbc4143261c2648864d3def1f1 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Mon, 16 Feb 2015 14:43:53 +1100 Subject: s/OpalMessageType/opal_msg_type/ removing CamelCase and being consistent! We now consistently use msg as abbreviation for message in OPAL API. Signed-off-by: Stewart Smith --- core/opal-msg.c | 2 +- doc/opal-api/opal-messages.txt | 2 +- include/opal-msg.h | 2 +- include/opal.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/opal-msg.c b/core/opal-msg.c index 47c5a12..cd35162 100644 --- a/core/opal-msg.c +++ b/core/opal-msg.c @@ -36,7 +36,7 @@ static LIST_HEAD(msg_pending_list); static struct lock opal_msg_lock = LOCK_UNLOCKED; -int _opal_queue_msg(enum OpalMessageType msg_type, void *data, +int _opal_queue_msg(enum opal_msg_type msg_type, void *data, void (*consumed)(void *data), size_t num_params, const u64 *params) { diff --git a/doc/opal-api/opal-messages.txt b/doc/opal-api/opal-messages.txt index 878ecc6..448e9c7 100644 --- a/doc/opal-api/opal-messages.txt +++ b/doc/opal-api/opal-messages.txt @@ -2,7 +2,7 @@ OAPL_MESSAGE ============ The host OS can use OPAL_GET_MSG to retrive messages queued by OPAL. The -messages are defined by enum OpalMessageType. The host is notified of there +messages are defined by enum opal_msg_type. The host is notified of there being messages to be consumed by the OPAL_EVENT_MSG_PENDING bit being set. An opal_msg is: diff --git a/include/opal-msg.h b/include/opal-msg.h index a271e18..a75bc4e 100644 --- a/include/opal-msg.h +++ b/include/opal-msg.h @@ -27,7 +27,7 @@ */ #define OPAL_MAX_ASYNC_COMP 8 -int _opal_queue_msg(enum OpalMessageType msg_type, void *data, +int _opal_queue_msg(enum opal_msg_type msg_type, void *data, void (*consumed)(void *data), size_t num_params, const u64 *params); diff --git a/include/opal.h b/include/opal.h index bf0365b..0a57bd0 100644 --- a/include/opal.h +++ b/include/opal.h @@ -407,7 +407,7 @@ enum OpalLPCAddressType { OPAL_LPC_FW = 2, }; -enum OpalMessageType { +enum opal_msg_type { OPAL_MSG_ASYNC_COMP = 0, /* params[0] = token, params[1] = rc, * additional params function-specific */ -- cgit v1.1