projects
/
petitboot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ui/ncurses: Add nc-subset selection screen
[petitboot]
/
discover
/
ipmi.h
diff --git
a/discover/ipmi.h
b/discover/ipmi.h
index 0ed6068f1a5395e447c58d2b1b5b0212b162822c..83f29107e276ef5545d0288c4acf5f90eabb18bd 100644
(file)
--- a/
discover/ipmi.h
+++ b/
discover/ipmi.h
@@
-4,15
+4,39
@@
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
+enum ipmi_netfn {
+ IPMI_NETFN_CHASSIS = 0x0,
+ IPMI_NETFN_SE = 0x04,
+};
+
+enum ipmi_cmd {
+ IPMI_CMD_CHASSIS_SET_SYSTEM_BOOT_OPTIONS = 0x08,
+ IPMI_CMD_CHASSIS_GET_SYSTEM_BOOT_OPTIONS = 0x09,
+ IPMI_CMD_SENSOR_SET = 0x30,
+};
+
enum ipmi_bootdev {
enum ipmi_bootdev {
- IPMI_BOOTDEV_NONE = 0x0,
- IPMI_BOOTDEV_NETWORK = 0x1,
+ IPMI_BOOTDEV_NONE = 0x0
0
,
+ IPMI_BOOTDEV_NETWORK = 0x
0
1,
IPMI_BOOTDEV_DISK = 0x2,
IPMI_BOOTDEV_SAFE = 0x3,
IPMI_BOOTDEV_CDROM = 0x5,
IPMI_BOOTDEV_SETUP = 0x6,
};
IPMI_BOOTDEV_DISK = 0x2,
IPMI_BOOTDEV_SAFE = 0x3,
IPMI_BOOTDEV_CDROM = 0x5,
IPMI_BOOTDEV_SETUP = 0x6,
};
+enum ipmi_sensor_ids {
+ IPMI_SENSOR_ID_OS_BOOT = 0x1F,
+};
+
+struct ipmi;
+
bool ipmi_present(void);
bool ipmi_present(void);
+bool ipmi_bootdev_is_valid(int x);
+struct ipmi *ipmi_open(void *ctx);
+
+int ipmi_transaction(struct ipmi *ipmi, uint8_t netfn, uint8_t cmd,
+ uint8_t *req_buf, uint16_t req_len,
+ uint8_t *resp_buf, uint16_t *resp_len,
+ int timeout_ms);
#endif /* _IPMI_H */
#endif /* _IPMI_H */