diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:27 -0400 |
commit | 02d83b5da3efa3c278ce87db2637f3dd6837166d (patch) | |
tree | bd3de850c6a761de0584b5c82e22659b9f4a7482 /drivers/pnp/base.h | |
parent | 8766ad0ce8621aa6f0e4a91ef355509cc3364d5b (diff) |
PNP: make pnp_resource_table private to PNP core
There are no remaining references to the PNP_MAX_* constants or
the pnp_resource_table structure outside of the PNP core. Make
them private to the PNP core.
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index e739d4bba423..b888a5fb6b7f 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -20,3 +20,15 @@ int pnp_check_dma(struct pnp_dev *dev, struct resource *res); | |||
20 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); | 20 | 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 | |||
24 | #define PNP_MAX_PORT 40 | ||
25 | #define PNP_MAX_MEM 24 | ||
26 | #define PNP_MAX_IRQ 2 | ||
27 | #define PNP_MAX_DMA 2 | ||
28 | |||
29 | struct pnp_resource_table { | ||
30 | struct resource port_resource[PNP_MAX_PORT]; | ||
31 | struct resource mem_resource[PNP_MAX_MEM]; | ||
32 | struct resource dma_resource[PNP_MAX_DMA]; | ||
33 | struct resource irq_resource[PNP_MAX_IRQ]; | ||
34 | }; | ||