Lines Matching defs:resources
38 #include "resources.h"
58 acpi_device_resource_t* resources;
79 ctx->resources[ctx->resource_i].writeable = mem.writeable;
80 ctx->resources[ctx->resource_i].base_address = mem.minimum;
81 ctx->resources[ctx->resource_i].alignment = mem.alignment;
82 ctx->resources[ctx->resource_i].address_length = mem.address_length;
95 ctx->resources[ctx->resource_i].writeable = true;
96 ctx->resources[ctx->resource_i].base_address = addr.min_address_fixed;
97 ctx->resources[ctx->resource_i].alignment = 0;
98 ctx->resources[ctx->resource_i].address_length = addr.address_length;
160 // call _CRS to count number of resources
171 // allocate resources
172 ctx.resources = calloc(ctx.resource_count, sizeof(acpi_device_resource_t));
173 if (!ctx.resources) {
178 free(ctx.resources);
182 // call _CRS again and fill in resources
186 free(ctx.resources);
191 dev->resources = ctx.resources;
196 zxlogf(TRACE, "acpi-bus[%s]: found %zd resources %zx irqs\n", device_get_name(dev->zxdev),
199 zxlogf(SPEW, "resources:\n");
202 dev->resources[i].base_address,
203 dev->resources[i].address_length,
204 dev->resources[i].alignment,
205 dev->resources[i].writeable);
239 acpi_device_resource_t* res = dev->resources + res_id;
582 // Report current resources to kernel PCI driver
585 zxlogf(ERROR, "acpi: WARNING: ACPI failed to report all current resources!\n");