aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/deltalake/ipmi.h
blob: 310ff27248ba3fbe1b6f57edcba34be24126a655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef DELTALAKE_IPMI_H
#define DELTALAKE_IPMI_H

#include <stdint.h>

#define IPMI_NETFN_OEM			0x30
#define   IPMI_OEM_SET_PPIN		0x77
#define   IPMI_OEM_GET_PCIE_CONFIG	0xf4

#define PCIE_CONFIG_UNKNOWN	0x0
#define PCIE_CONFIG_A		0x1
#define PCIE_CONFIG_B		0x2
#define PCIE_CONFIG_C		0x3
#define PCIE_CONFIG_D		0x4

struct ppin_req {
	uint32_t cpu0_lo;
	uint32_t cpu0_hi;
	uint32_t cpu1_lo;
	uint32_t cpu1_hi;
} __packed;

enum cb_err ipmi_set_ppin(struct ppin_req *req);
enum cb_err ipmi_get_pcie_config(uint8_t *config);
#endif