OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include "ipmi.h"
#include "libutil.h"
#include "plat_class.h"
#include "plat_m2.h"
#include "plat_led.h"
#include "plat_power_seq.h"
#include <logging/log.h>
Macros | |
#define | DRIVE_PWR_OFF 0 /* normal device power off/on */ |
#define | DRIVE_PWR_ON 1 |
#define | DRIVE_GET_STATE 3 |
#define | DRIVE_PWR_OFF_BY_PWRDIS 4 /* power off/on device by PWRDIS pin */ |
#define | DRIVE_PWR_ON_BY_PWRDIS 5 |
#define | DRIVE_PWR_OFF_ALL 6 /* power off/on device by PWRDIS/12V/3V3 */ |
#define | DRIVE_PWR_ON_ALL 7 |
#define | DRIVE_PWR_OFF_BY_12V_3V3 8 /* power off/on device by 12V/3V3 */ |
#define | DRIVE_PWR_ON_BY_12V_3V3 9 |
Functions | |
LOG_MODULE_REGISTER (plat_ipmi) | |
uint32_t | get_iana (uint8_t *iana_buf) |
void | OEM_1S_GET_BOARD_ID (ipmi_msg *msg) |
void | OEM_1S_SET_SSD_LED (ipmi_msg *msg) |
void | OEM_1S_GET_SSD_STATUS (ipmi_msg *msg) |
void | OEM_1S_GET_SET_M2 (ipmi_msg *msg) |
#define DRIVE_GET_STATE 3 |
#define DRIVE_PWR_OFF 0 /* normal device power off/on */ |
#define DRIVE_PWR_OFF_ALL 6 /* power off/on device by PWRDIS/12V/3V3 */ |
#define DRIVE_PWR_OFF_BY_12V_3V3 8 /* power off/on device by 12V/3V3 */ |
#define DRIVE_PWR_OFF_BY_PWRDIS 4 /* power off/on device by PWRDIS pin */ |
#define DRIVE_PWR_ON 1 |
#define DRIVE_PWR_ON_ALL 7 |
#define DRIVE_PWR_ON_BY_12V_3V3 9 |
#define DRIVE_PWR_ON_BY_PWRDIS 5 |
uint32_t get_iana | ( | uint8_t * | iana_buf | ) |
LOG_MODULE_REGISTER | ( | plat_ipmi | ) |
void OEM_1S_GET_BOARD_ID | ( | ipmi_msg * | msg | ) |
void OEM_1S_GET_SET_M2 | ( | ipmi_msg * | msg | ) |
void OEM_1S_GET_SSD_STATUS | ( | ipmi_msg * | msg | ) |
void OEM_1S_SET_SSD_LED | ( | ipmi_msg * | msg | ) |