diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pnp/support.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/drivers/pnp/support.c b/drivers/pnp/support.c index 95b076c18c07..7f594ccf4958 100644 --- a/drivers/pnp/support.c +++ b/drivers/pnp/support.c | |||
@@ -63,28 +63,46 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) | |||
63 | for (i = 0; i < PNP_MAX_IRQ; i++) { | 63 | for (i = 0; i < PNP_MAX_IRQ; i++) { |
64 | res = pnp_get_resource(dev, IORESOURCE_IRQ, i); | 64 | res = pnp_get_resource(dev, IORESOURCE_IRQ, i); |
65 | if (res && !(res->flags & IORESOURCE_UNSET)) | 65 | if (res && !(res->flags & IORESOURCE_UNSET)) |
66 | dev_dbg(&dev->dev, " irq %lld flags %#lx\n", | 66 | dev_dbg(&dev->dev, " irq %lld flags %#lx%s%s\n", |
67 | (unsigned long long) res->start, res->flags); | 67 | (unsigned long long) res->start, res->flags, |
68 | res->flags & IORESOURCE_DISABLED ? | ||
69 | " DISABLED" : "", | ||
70 | res->flags & IORESOURCE_AUTO ? | ||
71 | " AUTO" : ""); | ||
68 | } | 72 | } |
69 | for (i = 0; i < PNP_MAX_DMA; i++) { | 73 | for (i = 0; i < PNP_MAX_DMA; i++) { |
70 | res = pnp_get_resource(dev, IORESOURCE_DMA, i); | 74 | res = pnp_get_resource(dev, IORESOURCE_DMA, i); |
71 | if (res && !(res->flags & IORESOURCE_UNSET)) | 75 | if (res && !(res->flags & IORESOURCE_UNSET)) |
72 | dev_dbg(&dev->dev, " dma %lld flags %#lx\n", | 76 | dev_dbg(&dev->dev, " dma %lld flags %#lx%s%s\n", |
73 | (unsigned long long) res->start, res->flags); | 77 | (unsigned long long) res->start, res->flags, |
78 | res->flags & IORESOURCE_DISABLED ? | ||
79 | " DISABLED" : "", | ||
80 | res->flags & IORESOURCE_AUTO ? | ||
81 | " AUTO" : ""); | ||
74 | } | 82 | } |
75 | for (i = 0; i < PNP_MAX_PORT; i++) { | 83 | for (i = 0; i < PNP_MAX_PORT; i++) { |
76 | res = pnp_get_resource(dev, IORESOURCE_IO, i); | 84 | res = pnp_get_resource(dev, IORESOURCE_IO, i); |
77 | if (res && !(res->flags & IORESOURCE_UNSET)) | 85 | if (res && !(res->flags & IORESOURCE_UNSET)) |
78 | dev_dbg(&dev->dev, " io %#llx-%#llx flags %#lx\n", | 86 | dev_dbg(&dev->dev, " io %#llx-%#llx flags %#lx" |
87 | "%s%s\n", | ||
79 | (unsigned long long) res->start, | 88 | (unsigned long long) res->start, |
80 | (unsigned long long) res->end, res->flags); | 89 | (unsigned long long) res->end, res->flags, |
90 | res->flags & IORESOURCE_DISABLED ? | ||
91 | " DISABLED" : "", | ||
92 | res->flags & IORESOURCE_AUTO ? | ||
93 | " AUTO" : ""); | ||
81 | } | 94 | } |
82 | for (i = 0; i < PNP_MAX_MEM; i++) { | 95 | for (i = 0; i < PNP_MAX_MEM; i++) { |
83 | res = pnp_get_resource(dev, IORESOURCE_MEM, i); | 96 | res = pnp_get_resource(dev, IORESOURCE_MEM, i); |
84 | if (res && !(res->flags & IORESOURCE_UNSET)) | 97 | if (res && !(res->flags & IORESOURCE_UNSET)) |
85 | dev_dbg(&dev->dev, " mem %#llx-%#llx flags %#lx\n", | 98 | dev_dbg(&dev->dev, " mem %#llx-%#llx flags %#lx" |
99 | "%s%s\n", | ||
86 | (unsigned long long) res->start, | 100 | (unsigned long long) res->start, |
87 | (unsigned long long) res->end, res->flags); | 101 | (unsigned long long) res->end, res->flags, |
102 | res->flags & IORESOURCE_DISABLED ? | ||
103 | " DISABLED" : "", | ||
104 | res->flags & IORESOURCE_AUTO ? | ||
105 | " AUTO" : ""); | ||
88 | } | 106 | } |
89 | #endif | 107 | #endif |
90 | } | 108 | } |