Zephyr API 3.6.99
|
Public Platform Environment Control Interface driver APIs. More...
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/device.h>
#include <zephyr/syscalls/peci.h>
Go to the source code of this file.
Data Structures | |
struct | peci_buf |
PECI buffer structure. More... | |
struct | peci_msg |
PECI transaction packet format. More... | |
Enumerations | |
enum | peci_error_code { PECI_GENERAL_SENSOR_ERROR = 0x8000 , PECI_UNDERFLOW_SENSOR_ERROR = 0x8002 , PECI_OVERFLOW_SENSOR_ERROR = 0x8003 } |
PECI error codes. More... | |
enum | peci_command_code { PECI_CMD_PING = 0x00 , PECI_CMD_GET_TEMP0 = 0x01 , PECI_CMD_GET_TEMP1 = 0x02 , PECI_CMD_RD_PCI_CFG0 = 0x61 , PECI_CMD_RD_PCI_CFG1 = 0x62 , PECI_CMD_WR_PCI_CFG0 = 0x65 , PECI_CMD_WR_PCI_CFG1 = 0x66 , PECI_CMD_RD_PKG_CFG0 = 0xA1 , PECI_CMD_RD_PKG_CFG1 = 0xA , PECI_CMD_WR_PKG_CFG0 = 0xA5 , PECI_CMD_WR_PKG_CFG1 = 0xA6 , PECI_CMD_RD_IAMSR0 = 0xB1 , PECI_CMD_RD_IAMSR1 = 0xB2 , PECI_CMD_WR_IAMSR0 = 0xB5 , PECI_CMD_WR_IAMSR1 = 0xB6 , PECI_CMD_RD_PCI_CFG_LOCAL0 = 0xE1 , PECI_CMD_RD_PCI_CFG_LOCAL1 = 0xE2 , PECI_CMD_WR_PCI_CFG_LOCAL0 = 0xE5 , PECI_CMD_WR_PCI_CFG_LOCAL1 = 0xE6 , PECI_CMD_GET_DIB = 0xF7 } |
PECI commands. More... | |
Functions | |
int | peci_config (const struct device *dev, uint32_t bitrate) |
Configures the PECI interface. | |
int | peci_enable (const struct device *dev) |
Enable PECI interface. | |
int | peci_disable (const struct device *dev) |
Disable PECI interface. | |
int | peci_transfer (const struct device *dev, struct peci_msg *msg) |
Performs a PECI transaction. | |
Public Platform Environment Control Interface driver APIs.