diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-06-27 18:57:06 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:06 -0400 |
commit | 169aaffe885c56745188e7913f212a67beaa3b80 (patch) | |
tree | c673df17aab31ab453c6552aac917c022c55a7d2 /drivers/pnp/resource.c | |
parent | 7aefff51854ccd33599c40b4e360d94cb2b7622f (diff) |
PNP: increase I/O port & memory option address sizes
ACPI Address Space Descriptors can be up to 64 bits wide.
We should keep track of the whole thing when parsing resource
options, so this patch changes PNP port and mem option
fields from "unsigned short" and "unsigned int" to
"resource_size_t".
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/resource.c')
-rw-r--r-- | drivers/pnp/resource.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index 55a57cded24a..391828c7f207 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c | |||
@@ -143,8 +143,11 @@ int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, | |||
143 | option->port = data; | 143 | option->port = data; |
144 | 144 | ||
145 | dev_dbg(&dev->dev, " io " | 145 | dev_dbg(&dev->dev, " io " |
146 | "min %#x max %#x align %d size %d flags %#x\n", | 146 | "min %#llx max %#llx align %lld size %lld flags %#x\n", |
147 | data->min, data->max, data->align, data->size, data->flags); | 147 | (unsigned long long) data->min, |
148 | (unsigned long long) data->max, | ||
149 | (unsigned long long) data->align, | ||
150 | (unsigned long long) data->size, data->flags); | ||
148 | return 0; | 151 | return 0; |
149 | } | 152 | } |
150 | 153 | ||
@@ -162,8 +165,11 @@ int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, | |||
162 | option->mem = data; | 165 | option->mem = data; |
163 | 166 | ||
164 | dev_dbg(&dev->dev, " mem " | 167 | dev_dbg(&dev->dev, " mem " |
165 | "min %#x max %#x align %d size %d flags %#x\n", | 168 | "min %#llx max %#llx align %lld size %lld flags %#x\n", |
166 | data->min, data->max, data->align, data->size, data->flags); | 169 | (unsigned long long) data->min, |
170 | (unsigned long long) data->max, | ||
171 | (unsigned long long) data->align, | ||
172 | (unsigned long long) data->size, data->flags); | ||
167 | return 0; | 173 | return 0; |
168 | } | 174 | } |
169 | 175 | ||