#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
static int pnp_reserve_irq[16] = {[0 ... 15] = -1 };
static int pnp_reserve_dma[8] = {[0 ... 7] = -1 };
static int pnp_reserve_io[16] = {[0 ... 15] = -1 };
static int pnp_reserve_mem[16] = {[0 ... 15] = -1 };
static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type,
unsigned int option_flags)
struct pnp_option *option;
option = kzalloc(sizeof(struct pnp_option), GFP_KERNEL);
option->flags = option_flags;
list_add_tail(&option->list, &dev->options);
int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags,
pnp_irq_mask_t *map, unsigned char flags)
struct pnp_option *option;
option = pnp_build_option(dev, IORESOURCE_IRQ, option_flags);