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-or-later */
2 
3 #ifndef __DRIVERS_UART_ACPI_H__
4 #define __DRIVERS_UART_ACPI_H__
5 
6 #include <acpi/acpi_device.h>
7 
9  const char *hid; /* ACPI _HID (required) */
10  const char *cid; /* ACPI _CID */
11  const char *name; /* ACPI Device Name */
12  const char *desc; /* Device Description */
13  unsigned int uid; /* ACPI _UID */
14  unsigned int wake; /* Wake GPE */
15  const char *compat_string; /* Compatible string for _HID=PRP0001 */
16  struct acpi_irq irq; /* PIRQ */
17  struct acpi_gpio irq_gpio; /* GPIO to be used instead of PIRQ */
18  struct acpi_uart uart; /* UART device information */
19 
20  /* Disable reset and enable GPIO export in _CRS */
22 
23  /* Does the device have a power resource? */
25 
26  /* GPIO used to take device out of reset or to put it into reset. */
27  struct acpi_gpio reset_gpio;
28  /* Delay to be inserted after device is taken out of reset. */
29  unsigned int reset_delay_ms;
30  /* Delay to be inserted after device is put into reset. */
31  unsigned int reset_off_delay_ms;
32 
33  /* GPIO used to enable device. */
34  struct acpi_gpio enable_gpio;
35  /* Delay to be inserted after device is enabled. */
36  unsigned int enable_delay_ms;
37  /* Delay to be inserted after device is disabled. */
38  unsigned int enable_off_delay_ms;
39 
40  /* GPIO used to stop operation of device. */
41  struct acpi_gpio stop_gpio;
42  /* Delay to be inserted after disabling stop. */
43  unsigned int stop_delay_ms;
44  /* Delay to be inserted after enabling stop. */
45  unsigned int stop_off_delay_ms;
46 };
47 
48 #endif /* __DRIVERS_UART_ACPI_H__ */
unsigned int uid
Definition: chip.h:13
bool disable_gpio_export_in_crs
Definition: chip.h:21
unsigned int stop_delay_ms
Definition: chip.h:43
const char * cid
Definition: chip.h:10
struct acpi_uart uart
Definition: chip.h:18
struct acpi_irq irq
Definition: chip.h:16
struct acpi_gpio irq_gpio
Definition: chip.h:17
unsigned int reset_delay_ms
Definition: chip.h:29
unsigned int enable_delay_ms
Definition: chip.h:36
const char * name
Definition: chip.h:11
const char * hid
Definition: chip.h:9
unsigned int wake
Definition: chip.h:14
unsigned int enable_off_delay_ms
Definition: chip.h:38
unsigned int reset_off_delay_ms
Definition: chip.h:31
struct acpi_gpio enable_gpio
Definition: chip.h:34
const char * desc
Definition: chip.h:12
unsigned int stop_off_delay_ms
Definition: chip.h:45
struct acpi_gpio reset_gpio
Definition: chip.h:27
struct acpi_gpio stop_gpio
Definition: chip.h:41
const char * compat_string
Definition: chip.h:15