PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
devices.c File Reference
Include dependency graph for devices.c:

Go to the source code of this file.

Data Structures

struct  acpi_id_t
 
struct  acpi_ids_t
 

Functions

static uint64_t acpi_id_object_to_string (aml_object_t *idObject, char *out, size_t outSize)
 
static uint64_t acpi_sta_get_flags (aml_object_t *device, acpi_sta_flags_t *out)
 
static uint64_t acpi_ids_push (acpi_ids_t *ids, const char *hid, const char *cid, const char *path)
 
static uint64_t acpi_ids_push_if_absent (acpi_ids_t *ids, const char *hid, const char *path)
 
static uint64_t acpi_ids_push_device (acpi_ids_t *ids, aml_object_t *device, const char *path)
 
static aml_object_tacpi_sb_init (void)
 
static uint64_t acpi_device_init_children (acpi_ids_t *ids, aml_object_t *device, const char *path)
 
static int acpi_id_compare (const void *left, const void *right)
 
static void acpi_device_cfg_free (acpi_device_cfg_t *cfg)
 
static uint64_t acpi_device_configure (const char *name)
 
uint64_t acpi_devices_init (void)
 Enumerate, configure and load modules for ACPI devices.
 
acpi_device_cfg_tacpi_device_cfg_lookup (const char *name)
 Retrieves the ACPI device configuration for a device by its name.
 
uint64_t acpi_device_cfg_get_port (acpi_device_cfg_t *cfg, uint64_t index, port_t *out)
 Retrieves an the nth IO port assigned to an ACPI device.
 

Function Documentation

◆ acpi_id_object_to_string()

static uint64_t acpi_id_object_to_string ( aml_object_t idObject,
char *  out,
size_t  outSize 
)
static

Definition at line 27 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_sta_get_flags()

static uint64_t acpi_sta_get_flags ( aml_object_t device,
acpi_sta_flags_t out 
)
static

Definition at line 53 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_ids_push()

static uint64_t acpi_ids_push ( acpi_ids_t ids,
const char *  hid,
const char *  cid,
const char *  path 
)
static

Definition at line 97 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_ids_push_if_absent()

static uint64_t acpi_ids_push_if_absent ( acpi_ids_t ids,
const char *  hid,
const char *  path 
)
static

Definition at line 126 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_ids_push_device()

static uint64_t acpi_ids_push_device ( acpi_ids_t ids,
aml_object_t device,
const char *  path 
)
static

Definition at line 139 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_sb_init()

static aml_object_t * acpi_sb_init ( void  )
static

Definition at line 193 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_device_init_children()

static uint64_t acpi_device_init_children ( acpi_ids_t ids,
aml_object_t device,
const char *  path 
)
static

Definition at line 232 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_id_compare()

static int acpi_id_compare ( const void *  left,
const void *  right 
)
static

Definition at line 288 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_device_cfg_free()

static void acpi_device_cfg_free ( acpi_device_cfg_t cfg)
static

Definition at line 325 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpi_device_configure()

static uint64_t acpi_device_configure ( const char *  name)
static

Definition at line 347 of file devices.c.

Here is the call graph for this function:
Here is the caller graph for this function: