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
#ifndef __DRIVERS_PCIE_RTD3_DEVICE_CHIP_H__
4
#define __DRIVERS_PCIE_RTD3_DEVICE_CHIP_H__
5
6
#include <
acpi/acpi_device.h
>
7
8
/* Adds a GPIO controlled ACPI PowerResource for a PCIe device. */
9
struct
drivers_pcie_rtd3_device_config
{
10
/* Name of ACPI node for the device */
11
const
char
*
name
;
12
13
/* GPIO used to enable device. */
14
struct
acpi_gpio
enable_gpio
;
15
/* Delay to be inserted after device is enabled. */
16
unsigned
int
enable_delay_ms
;
17
/* Delay to be inserted after device is disabled. */
18
unsigned
int
enable_off_delay_ms
;
19
20
/* GPIO used to take device out of reset or to put it into reset. */
21
struct
acpi_gpio
reset_gpio
;
22
/* Delay to be inserted after device is taken out of reset. */
23
unsigned
int
reset_delay_ms
;
24
/* Delay to be inserted after device is put into reset. */
25
unsigned
int
reset_off_delay_ms
;
26
};
27
28
#endif
/* __DRIVERS_PCIE_RTD3_DEVICE_CHIP_H__ */
acpi_device.h
acpi_gpio
Definition:
acpi_device.h:164
drivers_pcie_rtd3_device_config
Definition:
chip.h:9
drivers_pcie_rtd3_device_config::enable_gpio
struct acpi_gpio enable_gpio
Definition:
chip.h:14
drivers_pcie_rtd3_device_config::reset_delay_ms
unsigned int reset_delay_ms
Definition:
chip.h:23
drivers_pcie_rtd3_device_config::reset_gpio
struct acpi_gpio reset_gpio
Definition:
chip.h:21
drivers_pcie_rtd3_device_config::name
const char * name
Definition:
chip.h:11
drivers_pcie_rtd3_device_config::enable_off_delay_ms
unsigned int enable_off_delay_ms
Definition:
chip.h:18
drivers_pcie_rtd3_device_config::enable_delay_ms
unsigned int enable_delay_ms
Definition:
chip.h:16
drivers_pcie_rtd3_device_config::reset_off_delay_ms
unsigned int reset_off_delay_ms
Definition:
chip.h:25
src
drivers
pcie
rtd3
device
chip.h
Generated by
1.9.1