diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:31 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:28 -0400 |
commit | 0a977f15469457d9a19eed992caf71995c674064 (patch) | |
tree | 8f20c1f93782908112dba5cf835bb0110eb1ffb1 /drivers/pnp/base.h | |
parent | 784f01d5bdeae7d7005ede17305306b042ba2617 (diff) |
PNP: add pnp_get_pnp_resource()
In some places, we need to get the struct pnp_resource, not just
the struct resource, because ISAPNP needs to store the register
index in the pnp_resource.
I don't like pnp_get_pnp_resource() and hope that it is temporary,
but we need it for a little while.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r-- | drivers/pnp/base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index 1d6bb351d323..49b4138f3476 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -21,6 +21,9 @@ void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); | |||
21 | 21 | ||
22 | void pnp_init_resource(struct resource *res); | 22 | void pnp_init_resource(struct resource *res); |
23 | 23 | ||
24 | struct pnp_resource *pnp_get_pnp_resource(struct pnp_dev *dev, | ||
25 | unsigned int type, unsigned int num); | ||
26 | |||
24 | #define PNP_MAX_PORT 40 | 27 | #define PNP_MAX_PORT 40 |
25 | #define PNP_MAX_MEM 24 | 28 | #define PNP_MAX_MEM 24 |
26 | #define PNP_MAX_IRQ 2 | 29 | #define PNP_MAX_IRQ 2 |