diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ipmi.h | 2 | ||||
| -rw-r--r-- | include/linux/ipmi_smi.h | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index 1f9f56e28851..76d2acbfa7c6 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h | |||
| @@ -237,7 +237,7 @@ int ipmi_set_maintenance_mode(ipmi_user_t user, int mode); | |||
| 237 | * The first user that sets this to TRUE will receive all events that | 237 | * The first user that sets this to TRUE will receive all events that |
| 238 | * have been queued while no one was waiting for events. | 238 | * have been queued while no one was waiting for events. |
| 239 | */ | 239 | */ |
| 240 | int ipmi_set_gets_events(ipmi_user_t user, int val); | 240 | int ipmi_set_gets_events(ipmi_user_t user, bool val); |
| 241 | 241 | ||
| 242 | /* | 242 | /* |
| 243 | * Called when a new SMI is registered. This will also be called on | 243 | * Called when a new SMI is registered. This will also be called on |
diff --git a/include/linux/ipmi_smi.h b/include/linux/ipmi_smi.h index 8ea3fe0b9759..bd349240d50e 100644 --- a/include/linux/ipmi_smi.h +++ b/include/linux/ipmi_smi.h | |||
| @@ -109,12 +109,19 @@ struct ipmi_smi_handlers { | |||
| 109 | events from the BMC we are attached to. */ | 109 | events from the BMC we are attached to. */ |
| 110 | void (*request_events)(void *send_info); | 110 | void (*request_events)(void *send_info); |
| 111 | 111 | ||
| 112 | /* Called by the upper layer when some user requires that the | ||
| 113 | interface watch for events, received messages, watchdog | ||
| 114 | pretimeouts, or not. Used by the SMI to know if it should | ||
| 115 | watch for these. This may be NULL if the SMI does not | ||
| 116 | implement it. */ | ||
| 117 | void (*set_need_watch)(void *send_info, bool enable); | ||
| 118 | |||
| 112 | /* Called when the interface should go into "run to | 119 | /* Called when the interface should go into "run to |
| 113 | completion" mode. If this call sets the value to true, the | 120 | completion" mode. If this call sets the value to true, the |
| 114 | interface should make sure that all messages are flushed | 121 | interface should make sure that all messages are flushed |
| 115 | out and that none are pending, and any new requests are run | 122 | out and that none are pending, and any new requests are run |
| 116 | to completion immediately. */ | 123 | to completion immediately. */ |
| 117 | void (*set_run_to_completion)(void *send_info, int run_to_completion); | 124 | void (*set_run_to_completion)(void *send_info, bool run_to_completion); |
| 118 | 125 | ||
| 119 | /* Called to poll for work to do. This is so upper layers can | 126 | /* Called to poll for work to do. This is so upper layers can |
| 120 | poll for operations during things like crash dumps. */ | 127 | poll for operations during things like crash dumps. */ |
| @@ -125,7 +132,7 @@ struct ipmi_smi_handlers { | |||
| 125 | setting. The message handler does the mode handling. Note | 132 | setting. The message handler does the mode handling. Note |
| 126 | that this is called from interrupt context, so it cannot | 133 | that this is called from interrupt context, so it cannot |
| 127 | block. */ | 134 | block. */ |
| 128 | void (*set_maintenance_mode)(void *send_info, int enable); | 135 | void (*set_maintenance_mode)(void *send_info, bool enable); |
| 129 | 136 | ||
| 130 | /* Tell the handler that we are using it/not using it. The | 137 | /* Tell the handler that we are using it/not using it. The |
| 131 | message handler get the modules that this handler belongs | 138 | message handler get the modules that this handler belongs |
