"Renfroe, Patrick B (Contractor-NTA)" a �crit :

> I have an ISA board using interrupt 5.  I am trying to set up an interrupt
> handler for this board that uses system interrupt 13.  The following code
> was used to do this in dos.
>
> /* Port addresses for the 8259A interrupt controller  */
>
> #define INT_MASK_PORT           0x0021
> #define INT_CONTROLLER          0x0020
> #define SPECIFIC_EOI_IR5        0x0065
>
> /******************************************************/
>
> void interrupt HS_Int_Handler (...) {
> .
> .
> handler code
> .
> .
> }
>
> Orig_Int_13_Handler = dos_getvect (13);
> _dos_setvect (13, HS_Int_Handler);
> outportb (INT_MASK_PORT, inportb (INT_MASK_PORT) & ~IRQ_5);
> outportb (INT_CONTROLLER, SPECIFIC_EOI_IR5);
> _enable();
> .
> .
> .
> collect data
> .
> .
> .
> //Disable interrupt from HS
> outportb (INT_MASK_PORT, inportb (INT_MASK_PORT) | IRQ_5);
> _dos_setvect (13, Orig_Int_13_Handler);
> outportb(INT_CONTROLLER, SPECIFIC_EOI_IR5);
> _enable
>
> How do I do this in rtlinux??
>
> Thanks for any help,
> Patrick
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

Hi

Here's a piece of help

#include <asm/io.h>

#define ADR     0Xxxxxxxxx

char cVal;

inportb    => cVal = inb (ADR);
outportb  => outb (cVal, ADR);

 - Nicolas
begin:vcard 
n:FLORIAN;Nicolas
x-mozilla-html:FALSE
org:GRME-Est;Bureau d'Etudes
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;3424
fn:Nicolas FLORIAN
end:vcard

Reply via email to