projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ACPICA: Resources: Provide common part for struct acpi_resource_address structures.
[linux-block.git]
/
arch
/
ia64
/
pci
/
pci.c
diff --git
a/arch/ia64/pci/pci.c
b/arch/ia64/pci/pci.c
index 291a582777cf3dd0320f4757ea1f9c1fc39dd17c..46920aaa7e9e8b18060713e4e4c78a56c9d69cc7 100644
(file)
--- a/
arch/ia64/pci/pci.c
+++ b/
arch/ia64/pci/pci.c
@@
-188,12
+188,12
@@
static u64 add_io_space(struct pci_root_info *info,
name = (char *)(iospace + 1);
name = (char *)(iospace + 1);
- min = addr->minimum;
- max = min + addr->address_length - 1;
+ min = addr->
address.
minimum;
+ max = min + addr->address
.address
_length - 1;
if (addr->info.io.translation_type == ACPI_SPARSE_TRANSLATION)
sparse = 1;
if (addr->info.io.translation_type == ACPI_SPARSE_TRANSLATION)
sparse = 1;
- space_nr = new_space(addr->translation_offset, sparse);
+ space_nr = new_space(addr->
address.
translation_offset, sparse);
if (space_nr == ~0)
goto free_resource;
if (space_nr == ~0)
goto free_resource;
@@
-247,7
+247,7
@@
static acpi_status resource_to_window(struct acpi_resource *resource,
if (ACPI_SUCCESS(status) &&
(addr->resource_type == ACPI_MEMORY_RANGE ||
addr->resource_type == ACPI_IO_RANGE) &&
if (ACPI_SUCCESS(status) &&
(addr->resource_type == ACPI_MEMORY_RANGE ||
addr->resource_type == ACPI_IO_RANGE) &&
- addr->address_length &&
+ addr->address
.address
_length &&
addr->producer_consumer == ACPI_PRODUCER)
return AE_OK;
addr->producer_consumer == ACPI_PRODUCER)
return AE_OK;
@@
-284,7
+284,7
@@
static acpi_status add_window(struct acpi_resource *res, void *data)
if (addr.resource_type == ACPI_MEMORY_RANGE) {
flags = IORESOURCE_MEM;
root = &iomem_resource;
if (addr.resource_type == ACPI_MEMORY_RANGE) {
flags = IORESOURCE_MEM;
root = &iomem_resource;
- offset = addr.translation_offset;
+ offset = addr.
address.
translation_offset;
} else if (addr.resource_type == ACPI_IO_RANGE) {
flags = IORESOURCE_IO;
root = &ioport_resource;
} else if (addr.resource_type == ACPI_IO_RANGE) {
flags = IORESOURCE_IO;
root = &ioport_resource;
@@
-297,8
+297,8
@@
static acpi_status add_window(struct acpi_resource *res, void *data)
resource = &info->res[info->res_num];
resource->name = info->name;
resource->flags = flags;
resource = &info->res[info->res_num];
resource->name = info->name;
resource->flags = flags;
- resource->start = addr.minimum + offset;
- resource->end = resource->start + addr.address_length - 1;
+ resource->start = addr.
address.
minimum + offset;
+ resource->end = resource->start + addr.address
.address
_length - 1;
info->res_offset[info->res_num] = offset;
if (insert_resource(root, resource)) {
info->res_offset[info->res_num] = offset;
if (insert_resource(root, resource)) {