coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpi_pld.h File Reference
#include <acpi/acpi.h>
#include <stdint.h>
Include dependency graph for acpi_pld.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  acpi_pld_group
 
struct  acpi_pld
 

Macros

#define ACPI_PLD_GROUP(__token, __position)
 
#define ACPI_PLD_TYPE_A(__panel, __horiz, __grp)
 
#define ACPI_PLD_TYPE_C(__panel, __horiz, __grp)
 

Enumerations

enum  acpi_pld_panel {
  PLD_PANEL_TOP , PLD_PANEL_BOTTOM , PLD_PANEL_LEFT , PLD_PANEL_RIGHT ,
  PLD_PANEL_FRONT , PLD_PANEL_BACK , PLD_PANEL_UNKNOWN
}
 
enum  acpi_pld_vertical_position { PLD_VERTICAL_POSITION_UPPER , PLD_VERTICAL_POSITION_CENTER , PLD_VERTICAL_POSITION_LOWER }
 
enum  acpi_pld_horizontal_position { PLD_HORIZONTAL_POSITION_LEFT , PLD_HORIZONTAL_POSITION_CENTER , PLD_HORIZONTAL_POSITION_RIGHT }
 
enum  acpi_pld_shape {
  PLD_SHAPE_ROUND , PLD_SHAPE_OVAL , PLD_SHAPE_SQUARE , PLD_SHAPE_VERTICAL_RECTANGLE ,
  PLD_SHAPE_HORIZONTAL_RECTANGLE , PLD_SHAPE_VERTICAL_TRAPEZOID , PLD_SHAPE_HORIZONTAL_TRAPEZOID , PLD_SHAPE_UNKNOWN ,
  PLD_SHAPE_CHAMFERED
}
 
enum  acpi_pld_orientation { PLD_ORIENTATION_HORIZONTAL , PLD_ORIENTATION_VERTICAL }
 
enum  acpi_pld_rotate {
  PLD_ROTATE_0 , PLD_ROTATE_45 , PLD_ROTATE_90 , PLD_ROTATE_135 ,
  PLD_ROTATE_180 , PLD_ROTATE_225 , PLD_ROTATE_270 , PLD_ROTATE_315
}
 

Functions

int acpi_pld_fill_usb (struct acpi_pld *pld, enum acpi_upc_type type, struct acpi_pld_group *group)
 
int acpi_pld_to_buffer (const struct acpi_pld *pld, uint8_t *buf, int buf_len)
 

Macro Definition Documentation

◆ ACPI_PLD_GROUP

#define ACPI_PLD_GROUP (   __token,
  __position 
)
Value:
{ \
.token = __token, \
.position = __position, \
}

Definition at line 65 of file acpi_pld.h.

◆ ACPI_PLD_TYPE_A

#define ACPI_PLD_TYPE_A (   __panel,
  __horiz,
  __grp 
)
Value:
{ \
.visible = true, \
.panel = PLD_PANEL_##__panel, \
.horizontal_position = PLD_HORIZONTAL_POSITION_##__horiz, \
.group = __grp, \
}
@ PLD_SHAPE_HORIZONTAL_RECTANGLE
Definition: acpi_pld.h:42

Definition at line 80 of file acpi_pld.h.

◆ ACPI_PLD_TYPE_C

#define ACPI_PLD_TYPE_C (   __panel,
  __horiz,
  __grp 
)
Value:
{ \
.visible = true, \
.panel = PLD_PANEL_##__panel, \
.shape = PLD_SHAPE_OVAL, \
.horizontal_position = PLD_HORIZONTAL_POSITION_##__horiz, \
.group = __grp, \
}
@ PLD_SHAPE_OVAL
Definition: acpi_pld.h:39

Definition at line 89 of file acpi_pld.h.

Enumeration Type Documentation

◆ acpi_pld_horizontal_position

Enumerator
PLD_HORIZONTAL_POSITION_LEFT 
PLD_HORIZONTAL_POSITION_CENTER 
PLD_HORIZONTAL_POSITION_RIGHT 

Definition at line 31 of file acpi_pld.h.

◆ acpi_pld_orientation

Enumerator
PLD_ORIENTATION_HORIZONTAL 
PLD_ORIENTATION_VERTICAL 

Definition at line 49 of file acpi_pld.h.

◆ acpi_pld_panel

Enumerator
PLD_PANEL_TOP 
PLD_PANEL_BOTTOM 
PLD_PANEL_LEFT 
PLD_PANEL_RIGHT 
PLD_PANEL_FRONT 
PLD_PANEL_BACK 
PLD_PANEL_UNKNOWN 

Definition at line 9 of file acpi_pld.h.

◆ acpi_pld_rotate

Enumerator
PLD_ROTATE_0 
PLD_ROTATE_45 
PLD_ROTATE_90 
PLD_ROTATE_135 
PLD_ROTATE_180 
PLD_ROTATE_225 
PLD_ROTATE_270 
PLD_ROTATE_315 

Definition at line 54 of file acpi_pld.h.

◆ acpi_pld_shape

Enumerator
PLD_SHAPE_ROUND 
PLD_SHAPE_OVAL 
PLD_SHAPE_SQUARE 
PLD_SHAPE_VERTICAL_RECTANGLE 
PLD_SHAPE_HORIZONTAL_RECTANGLE 
PLD_SHAPE_VERTICAL_TRAPEZOID 
PLD_SHAPE_HORIZONTAL_TRAPEZOID 
PLD_SHAPE_UNKNOWN 
PLD_SHAPE_CHAMFERED 

Definition at line 37 of file acpi_pld.h.

◆ acpi_pld_vertical_position

Enumerator
PLD_VERTICAL_POSITION_UPPER 
PLD_VERTICAL_POSITION_CENTER 
PLD_VERTICAL_POSITION_LOWER 

Definition at line 19 of file acpi_pld.h.

Function Documentation

◆ acpi_pld_fill_usb()

◆ acpi_pld_to_buffer()