aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/base.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-06-27 18:56:54 -0400
committerAndi Kleen <andi@basil.nowhere.org>2008-07-16 17:27:05 -0400
commit940e98dbc616f1df7b63b73858a966969baf261d (patch)
tree23d8a266017d983abbb2737e6f674e69104d16ab /drivers/pnp/base.h
parent87e4acf3ebc02c9d0a2f7a37b655c49176c4d765 (diff)
PNP: add pnp_resource_type() internal interface
Given a struct resource, this returns the type (IO, MEM, IRQ, DMA). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r--drivers/pnp/base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index 6f60097c4212..4c2a62564994 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -46,6 +46,7 @@ int pnp_check_dma(struct pnp_dev *dev, struct resource *res);
46void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); 46void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc);
47 47
48void pnp_init_resource(struct resource *res); 48void pnp_init_resource(struct resource *res);
49int pnp_resource_type(struct resource *res);
49 50
50struct pnp_resource *pnp_get_pnp_resource(struct pnp_dev *dev, 51struct pnp_resource *pnp_get_pnp_resource(struct pnp_dev *dev,
51 unsigned int type, unsigned int num); 52 unsigned int type, unsigned int num);