summaryrefslogtreecommitdiffstats
path: root/include/linux/pnp.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 16:34:14 -0600
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:23 -0400
commitb90eca0a61ebd010036242e29610bc6a909e3f19 (patch)
tree7f92620157786997dc0123b75b8c38b61e8dd2be /include/linux/pnp.h
parentd948a8daa059cf5b3e7f002e7b92acf00fc70c49 (diff)
PNP: add pnp_get_resource() interface
This adds a pnp_get_resource() that works the same way as platform_get_resource(). This will enable us to consolidate many pnp_resource_table references in one place, which will make it easier to make the table dynamic. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/pnp.h')
-rw-r--r--include/linux/pnp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index e8187d9faf0..b5fd03854fa 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -25,6 +25,7 @@ struct pnp_dev;
/*
* Resource Management
*/
+struct resource *pnp_get_resource(struct pnp_dev *, unsigned int, unsigned int);
/* Use these instead of directly reading pnp_dev to get resource information */
#define pnp_port_start(dev,bar) ((dev)->res.port_resource[(bar)].start)