To install the PnP driver in the linux kernel, the following steps need to be
followed:

1) copy ./linux/include/linux/pnp.h into the linux header file collection
   (normaly /usr/src/linux/include/linux)

2) make a directory /usr/src/linux/drivers/pnp
   copy ./linux/drivers/pnp/* into it.

3) Modify the line in /usr/src/linux/drivers/Makefile saying:

   SUB_DIRS     := block char net #streams

   to read:

   SUB_DIRS     := pnp block char net #streams

   This will cause pnp/pnp.o to be linked into the kernel.

4) add the following to the end of /usr/src/linux/arch/i386/kernel/irq.c:

/* return true if the IRQ can be used */
int is_irq_available(int irq, unsigned long irqflags)
{
    struct irqaction *p = irq_action[irq];
    return irq>0 && irq<16 && (
		       !p ||
			       ((p->flags & irqflags & SA_SHIRQ) &&
				!((p->flags^irqflags) & SA_INTERRUPT))
			       );
}

5) add the following to the end of /usr/src/linux/kernel/dma.c:

/* return true if the DMA channel is available */
int is_dma_available(unsigned int dmanr)
{
    return dmanr<MAX_DMA_CHANNELS && !dma_chan_busy[dmanr].lock;
}

6) make the following changes to /usr/src/linux/fs/filesystems.c:

above the line "extern void device_setup(void);"
add the line "extern void pnp_init(void);"

above the line "    device_setup();"
add the line "    pnp_init();"

7) Change the section in /usr/src/linux/Makefile reading:

   DRIVERS         =drivers/block/block.a \
                    drivers/char/char.a

   to the following:

   DRIVERS         =drivers/block/block.a \
                    drivers/char/char.a \
                    drivers/pnp/pnp.o

8) Recompile the kernel, install and reboot. A message should appear at boot up
indicating that the PnP subsystem was loaded. It might also say something
about PnP-BIOS having been accessed, or may say something about ISA cards
having been discovered.

9) Look at /proc/pnp for a list of the logical devices discovered in your BIOS
and attached on PnP ISA cards. These should be configurable through the use of
./tools/pnpconfig (which needs making).
