diff options
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r-- | drivers/pnp/base.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index c91315826da2..1667ac3ca45b 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -46,27 +46,15 @@ int pnp_check_dma(struct pnp_dev *dev, struct resource *res); | |||
46 | char *pnp_resource_type_name(struct resource *res); | 46 | char *pnp_resource_type_name(struct resource *res); |
47 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); | 47 | void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); |
48 | 48 | ||
49 | void pnp_init_resource(struct resource *res); | 49 | void pnp_free_resources(struct pnp_dev *dev); |
50 | int pnp_resource_type(struct resource *res); | 50 | int pnp_resource_type(struct resource *res); |
51 | 51 | ||
52 | struct pnp_resource *pnp_get_pnp_resource(struct pnp_dev *dev, | ||
53 | unsigned int type, unsigned int num); | ||
54 | |||
55 | #define PNP_MAX_PORT 40 | ||
56 | #define PNP_MAX_MEM 24 | ||
57 | #define PNP_MAX_IRQ 2 | ||
58 | #define PNP_MAX_DMA 2 | ||
59 | |||
60 | struct pnp_resource { | 52 | struct pnp_resource { |
53 | struct list_head list; | ||
61 | struct resource res; | 54 | struct resource res; |
62 | }; | 55 | }; |
63 | 56 | ||
64 | struct pnp_resource_table { | 57 | void pnp_free_resource(struct pnp_resource *pnp_res); |
65 | struct pnp_resource port[PNP_MAX_PORT]; | ||
66 | struct pnp_resource mem[PNP_MAX_MEM]; | ||
67 | struct pnp_resource dma[PNP_MAX_DMA]; | ||
68 | struct pnp_resource irq[PNP_MAX_IRQ]; | ||
69 | }; | ||
70 | 58 | ||
71 | struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq, | 59 | struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq, |
72 | int flags); | 60 | int flags); |