35 #if CONFIG(HAVE_ACPI_TABLES)
36 static void generic_ssdt(
const struct device *dev)
41 if (!scope || !
name) {
149 const char *mutex =
"MTX0";
225 for (
int j = 0; j < 8; j++) {
226 char act[6] =
"^ACT0";
266 for (
int j = 0; j < 8; j++) {
267 char act[6] =
"^ACT0";
293 static const char *generic_acpi_name(
const struct device *dev)
303 #if CONFIG(HAVE_ACPI_TABLES)
304 .acpi_fill_ssdt = generic_ssdt,
305 .acpi_name = generic_acpi_name,
const char * acpi_device_name(const struct device *dev)
const char * acpi_device_scope(const struct device *dev)
void acpigen_emit_namestring(const char *namepath)
void acpigen_write_store(void)
void acpigen_write_integer(uint64_t data)
void acpigen_pop_len(void)
void acpigen_write_scope(const char *name)
void acpigen_write_acquire(const char *name, const uint16_t val)
void acpigen_write_if_lequal_op_int(uint8_t op, uint64_t val)
void acpigen_write_name_integer(const char *name, uint64_t val)
void acpigen_emit_byte(unsigned char b)
void acpigen_write_indexfield(const char *idx, const char *data, struct fieldlist *l, size_t count, uint8_t flags)
void acpigen_write_release(const char *name)
void acpigen_write_field(const char *name, const struct fieldlist *l, size_t count, uint8_t flags)
void acpigen_write_device(const char *name)
void acpigen_write_mutex(const char *name, const uint8_t flags)
void acpigen_write_opregion(const struct opregion *opreg)
void acpigen_write_method(const char *name, int nargs)
void acpigen_write_name_string(const char *name, const char *string)
#define printk(level,...)
void assign_resources(struct bus *bus)
Assign the computed resources to the devices on the bus.
struct resource * new_resource(struct device *dev, unsigned int index)
See if a resource structure already exists for a given index and if not allocate one.
void report_resource_stored(struct device *dev, const struct resource *resource, const char *comment)
Print the resource that was just stored.
const char * dev_path(const struct device *dev)
#define FIELDLIST_OFFSET(X)
#define OPREGION(rname, space, offset, len)
#define FIELDLIST_NAMESTR(X, Y)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
void scan_static_bus(struct device *bus)
DEVTREE_CONST struct device * children
void(* read_resources)(struct device *dev)
enum device_path_type type
struct device_operations * ops
DEVTREE_CONST struct bus * link_list
DEVTREE_CONST struct resource * resource_list
DEVTREE_CONST struct resource * next
struct chip_operations superio_common_ops
static void enable_dev(struct device *dev)
static void generic_set_resources(struct device *dev)
static struct device_operations ops
static void generic_read_resources(struct device *dev)