coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/device.h
>
4
5
#ifndef _IMPI_CHIP_H_
6
#define _IPMI_CHIP_H_
7
8
#include <
stdint.h
>
9
10
struct
drivers_ipmi_config
{
11
u8
bmc_i2c_address
;
12
u8
have_nv_storage
;
13
u8
nv_storage_device_address
;
14
u8
have_gpe
;
15
u8
gpe_interrupt
;
16
u8
have_apic
;
17
u32
apic_interrupt
;
18
/* Device to use for GPIO operations */
19
DEVTREE_CONST
struct
device
*
gpio_dev
;
20
/*
21
* Jumper GPIO for enabling / disabling BMC/IPMI
22
* If present, the jumper overrides the devicetree.
23
*/
24
u32
bmc_jumper_gpio
;
25
/* "POST complete" GPIO and polarity */
26
u32
post_complete_gpio
;
27
bool
post_complete_invert
;
28
/*
29
* Wait for BMC to boot.
30
* This can be used if the BMC takes a long time to boot after PoR:
31
* AST2400 on Supermicro X11SSH: 34 s
32
*/
33
bool
wait_for_bmc
;
34
/*
35
* The timeout in seconds to wait for the IPMI service to be loaded.
36
* Will be used if wait_for_bmc is true.
37
*/
38
u16
bmc_boot_timeout
;
39
unsigned
int
uid
;
/* Auto-filled by ipmi_ssdt() */
40
};
41
42
#endif
/* _IMPI_CHIP_H_ */
device.h
DEVTREE_CONST
#define DEVTREE_CONST
Definition:
stddef.h:30
stdint.h
u32
uint32_t u32
Definition:
stdint.h:51
u16
uint16_t u16
Definition:
stdint.h:48
u8
uint8_t u8
Definition:
stdint.h:45
device
Definition:
device.h:107
drivers_ipmi_config
Definition:
chip.h:10
drivers_ipmi_config::bmc_i2c_address
u8 bmc_i2c_address
Definition:
chip.h:11
drivers_ipmi_config::uid
unsigned int uid
Definition:
chip.h:39
drivers_ipmi_config::wait_for_bmc
bool wait_for_bmc
Definition:
chip.h:33
drivers_ipmi_config::have_apic
u8 have_apic
Definition:
chip.h:16
drivers_ipmi_config::post_complete_gpio
u32 post_complete_gpio
Definition:
chip.h:26
drivers_ipmi_config::post_complete_invert
bool post_complete_invert
Definition:
chip.h:27
drivers_ipmi_config::gpio_dev
DEVTREE_CONST struct device * gpio_dev
Definition:
chip.h:19
drivers_ipmi_config::nv_storage_device_address
u8 nv_storage_device_address
Definition:
chip.h:13
drivers_ipmi_config::have_gpe
u8 have_gpe
Definition:
chip.h:14
drivers_ipmi_config::bmc_boot_timeout
u16 bmc_boot_timeout
Definition:
chip.h:38
drivers_ipmi_config::have_nv_storage
u8 have_nv_storage
Definition:
chip.h:12
drivers_ipmi_config::apic_interrupt
u32 apic_interrupt
Definition:
chip.h:17
drivers_ipmi_config::bmc_jumper_gpio
u32 bmc_jumper_gpio
Definition:
chip.h:24
drivers_ipmi_config::gpe_interrupt
u8 gpe_interrupt
Definition:
chip.h:15
src
drivers
ipmi
chip.h
Generated by
1.9.1