
#include <stdio.h>
#include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <malloc.h>
#include <fcntl.h>
#include <dos.h>

#include <dos/dos.h>
#include <isapnp/isapnp.h>

#include <hw/8254/8254.h>		/* 8254 timer */

void isa_pnp_write_irq(unsigned int i,int irq) {
	if (i >= 2) return;
	if (irq < 0) irq = 0;
	isa_pnp_write_data_register(0x70 + (i*2),irq);
	t8254_wait(t8254_us2ticks(250));
}

void isa_pnp_write_irq_mode(unsigned int i,unsigned int im) {
	if (i >= 2) return;
	isa_pnp_write_data_register(0x70 + (i*2) + 1,im);
	t8254_wait(t8254_us2ticks(250));
}

