aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/base.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-06-27 18:57:06 -0400
committerAndi Kleen <andi@basil.nowhere.org>2008-07-16 17:27:06 -0400
commit169aaffe885c56745188e7913f212a67beaa3b80 (patch)
treec673df17aab31ab453c6552aac917c022c55a7d2 /drivers/pnp/base.h
parent7aefff51854ccd33599c40b4e360d94cb2b7622f (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/base.h')
-rw-r--r--drivers/pnp/base.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index a9ee0a9fec77..afbeee5b8af6 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -20,10 +20,10 @@ int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
20void pnp_remove_card_device(struct pnp_dev *dev); 20void pnp_remove_card_device(struct pnp_dev *dev);
21 21
22struct pnp_port { 22struct pnp_port {
23 unsigned short min; /* min base number */ 23 resource_size_t min; /* min base number */
24 unsigned short max; /* max base number */ 24 resource_size_t max; /* max base number */
25 unsigned char align; /* align boundary */ 25 resource_size_t align; /* align boundary */
26 unsigned char size; /* size of range */ 26 resource_size_t size; /* size of range */
27 unsigned char flags; /* port flags */ 27 unsigned char flags; /* port flags */
28 unsigned char pad; /* pad */ 28 unsigned char pad; /* pad */
29 struct pnp_port *next; /* next port */ 29 struct pnp_port *next; /* next port */
@@ -46,10 +46,10 @@ struct pnp_dma {
46}; 46};
47 47
48struct pnp_mem { 48struct pnp_mem {
49 unsigned int min; /* min base number */ 49 resource_size_t min; /* min base number */
50 unsigned int max; /* max base number */ 50 resource_size_t max; /* max base number */
51 unsigned int align; /* align boundary */ 51 resource_size_t align; /* align boundary */
52 unsigned int size; /* size of range */ 52 resource_size_t size; /* size of range */
53 unsigned char flags; /* memory flags */ 53 unsigned char flags; /* memory flags */
54 unsigned char pad; /* pad */ 54 unsigned char pad; /* pad */
55 struct pnp_mem *next; /* next memory resource */ 55 struct pnp_mem *next; /* next memory resource */