interrupt.h File Reference

Back to the index.

Classes | Macros | Functions
interrupt.h File Reference
#include "misc.h"

Go to the source code of this file.

Classes

struct  interrupt
 

Macros

#define INTERRUPT_ASSERT(istruct)   (istruct).interrupt_assert(&(istruct))
 
#define INTERRUPT_DEASSERT(istruct)   (istruct).interrupt_deassert(&(istruct))
 
#define INTERRUPT_CONNECT(name, istruct)
 
#define INTERRUPT_CONNECT_EXCLUSIVE(name, istruct)
 

Functions

void interrupt_handler_register (struct interrupt *templ)
 
void interrupt_handler_remove (const char *name)
 
int interrupt_handler_lookup (const char *name, struct interrupt *templ)
 
void interrupt_connect (struct interrupt *i, int exclusive)
 
void interrupt_disconnect (struct interrupt *i, int exclusive)
 

Macro Definition Documentation

◆ INTERRUPT_ASSERT

#define INTERRUPT_ASSERT (   istruct)    (istruct).interrupt_assert(&(istruct))

◆ INTERRUPT_CONNECT

#define INTERRUPT_CONNECT (   name,
  istruct 
)

◆ INTERRUPT_CONNECT_EXCLUSIVE

#define INTERRUPT_CONNECT_EXCLUSIVE (   name,
  istruct 
)
Value:
{ \
interrupt_handler_lookup(name, &(istruct)); \
interrupt_connect(&(istruct), 1); \
}

Definition at line 82 of file interrupt.h.

◆ INTERRUPT_DEASSERT

#define INTERRUPT_DEASSERT (   istruct)    (istruct).interrupt_deassert(&(istruct))

Function Documentation

◆ interrupt_connect()

void interrupt_connect ( struct interrupt i,
int  exclusive 
)

Definition at line 205 of file interrupt.cc.

References interrupt::name.

◆ interrupt_disconnect()

void interrupt_disconnect ( struct interrupt i,
int  exclusive 
)

Definition at line 246 of file interrupt.cc.

References interrupt::name.

◆ interrupt_handler_lookup()

int interrupt_handler_lookup ( const char *  name,
struct interrupt templ 
)

Definition at line 166 of file interrupt.cc.

References interrupt::interrupt_assert.

◆ interrupt_handler_register()

void interrupt_handler_register ( struct interrupt templ)

◆ interrupt_handler_remove()

void interrupt_handler_remove ( const char *  name)

Definition at line 119 of file interrupt.cc.


Generated on Sun Sep 30 2018 16:05:18 for GXemul by doxygen 1.8.13