Andrew Jeffery | 4fe996c | 2018-02-27 12:16:48 +1030 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 */ |
| 2 | /* Copyright (C) 2018 IBM Corp. */ |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 3 | |
| 4 | #ifndef MBOXD_MSG_H |
| 5 | #define MBOXD_MSG_H |
| 6 | |
Suraj Jitindar Singh | 5a3a066 | 2017-04-27 11:55:26 +1000 | [diff] [blame] | 7 | #include "common.h" |
Andrew Jeffery | cc0bd3c | 2018-03-22 16:47:56 +1030 | [diff] [blame] | 8 | #include "mbox.h" |
Suraj Jitindar Singh | 5a3a066 | 2017-04-27 11:55:26 +1000 | [diff] [blame] | 9 | |
Suraj Jitindar Singh | 5a3a066 | 2017-04-27 11:55:26 +1000 | [diff] [blame] | 10 | #define NO_BMC_EVENT false |
| 11 | #define SET_BMC_EVENT true |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 12 | |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 13 | int set_bmc_events(struct mbox_context *context, uint8_t bmc_event, |
| 14 | bool write_back); |
| 15 | int clr_bmc_events(struct mbox_context *context, uint8_t bmc_event, |
| 16 | bool write_back); |
| 17 | int dispatch_mbox(struct mbox_context *context); |
| 18 | int init_mbox_dev(struct mbox_context *context); |
| 19 | void free_mbox_dev(struct mbox_context *context); |
| 20 | |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 21 | #endif /* MBOXD_MSG_H */ |