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. */
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__ */
struct acpi_gpio enable_gpio
Definition: chip.h:14
unsigned int reset_delay_ms
Definition: chip.h:23
struct acpi_gpio reset_gpio
Definition: chip.h:21
unsigned int enable_off_delay_ms
Definition: chip.h:18
unsigned int enable_delay_ms
Definition: chip.h:16
unsigned int reset_off_delay_ms
Definition: chip.h:25