move Drivers -> drivers
[AROS.git] / arch / i386-pc / drivers / parallel.hidd / parallel_init.c
blobd65f16adc6878e33e1d5e67e7207bd37887de28d
1 /*
2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Parallel hidd initialization code.
6 Lang: English.
7 */
8 #include <stddef.h>
9 #include <exec/types.h>
10 #include <exec/alerts.h>
12 #include <aros/system.h>
13 #include <aros/symbolsets.h>
15 #include <hidd/irq.h>
17 #include <proto/oop.h>
18 #include <proto/exec.h>
20 #include "parallel_intern.h"
22 #include LC_LIBDEFS_FILE
24 #undef SDEBUG
25 #undef DEBUG
26 #define DEBUG 0
27 #include <aros/debug.h>
29 #if 0
30 /* Code that was commented out in the init function before converting to
31 * use of genmodule
33 csd->irqhidd = OOP_NewObject(NULL, CLID_Hidd_IRQ, NULL);
35 if (csd->irqhidd)
37 HIDDT_IRQ_Handler *irq;
39 /* Install COM1 and COM3 interrupt */
40 irq = AllocMem(sizeof(HIDDT_IRQ_Handler), MEMF_CLEAR|MEMF_PUBLIC);
41 if(!irq)
43 kprintf(" ERROR: Cannot install Parallel\n");
44 Alert( AT_DeadEnd | AN_IntrMem );
46 irq->h_Node.ln_Pri=127; /* Set the highest pri */
47 irq->h_Code = parallel_int_7;
48 irq->h_Data = (APTR)csd;
49 HIDD_IRQ_AddHandler(csd->irqhidd, irq, vHidd_IRQ_Parallel1);
51 D(bug(" Got Interrupts\n"));
52 #endif