diff options
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 | }; | ||