2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Parallel hidd initialization code.
9 #include <exec/types.h>
10 #include <exec/alerts.h>
12 #include <aros/system.h>
13 #include <aros/symbolsets.h>
17 #include <proto/oop.h>
18 #include <proto/exec.h>
20 #include "parallel_intern.h"
22 #include LC_LIBDEFS_FILE
27 #include <aros/debug.h>
30 /* Code that was commented out in the init function before converting to
33 csd
->irqhidd
= OOP_NewObject(NULL
, CLID_Hidd_IRQ
, NULL
);
37 HIDDT_IRQ_Handler
*irq
;
39 /* Install COM1 and COM3 interrupt */
40 irq
= AllocMem(sizeof(HIDDT_IRQ_Handler
), MEMF_CLEAR
|MEMF_PUBLIC
);
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"));