ARPDAS_QNX6 1.0
|
#include <stdlib.h>
#include <errno.h>
#include <sys/neutrino.h>
#include <hw/inout.h>
#include "nortlib.h"
#include "subbus.h"
#include "sc104.h"
Go to the source code of this file.
Defines | |
#define | MAX_IRQ_104 12 |
Functions | |
static int | read_one_irq (char **s) |
void | process_IRQs (char *t) |
static int | int_init (int irq, unsigned short enable, int bit, int coid, short code, int value) |
static void | int_reset (int iid, unsigned short mask) |
void | expint_init (int coid, short code, int value) |
void | expint_reset (void) |
void | expint_svc (void) |
Variables | |
static int | expint_iid = -1 |
int | expint_irq = 9 |
static unsigned short | irq104 [MAX_IRQ_104] |
#define MAX_IRQ_104 12 |
Definition at line 15 of file hint.c.
Referenced by int_init().
void expint_init | ( | int | coid, |
short | code, | ||
int | value | ||
) |
Definition at line 82 of file hint.c.
References expint_iid, expint_irq, and int_init().
Referenced by init_subbus().
void expint_reset | ( | void | ) |
Definition at line 86 of file hint.c.
References expint_iid, and int_reset().
void expint_svc | ( | void | ) |
Definition at line 90 of file hint.c.
References expint_iid, expint_irq, and service_expint().
static int int_init | ( | int | irq, |
unsigned short | enable, | ||
int | bit, | ||
int | coid, | ||
short | code, | ||
int | value | ||
) | [static] |
Definition at line 38 of file hint.c.
References expint_irq, irq104, MAX_IRQ_104, nl_error, SB_SYSCON104, and subbus_subfunction.
Referenced by expint_init().
static void int_reset | ( | int | iid, |
unsigned short | mask | ||
) | [static] |
Definition at line 74 of file hint.c.
References SB_SYSCON104, and subbus_subfunction.
Referenced by expint_reset().
void process_IRQs | ( | char * | t | ) |
Definition at line 32 of file hint.c.
References expint_irq, and read_one_irq().
Referenced by sc104_init_options().
static int read_one_irq | ( | char ** | s | ) | [static] |
Definition at line 20 of file hint.c.
Referenced by process_IRQs().
int expint_iid = -1 [static] |
Definition at line 12 of file hint.c.
Referenced by expint_init(), expint_reset(), and expint_svc().
int expint_irq = 9 |
Definition at line 13 of file hint.c.
Referenced by expint_init(), expint_svc(), int_init(), and process_IRQs().
unsigned short irq104[MAX_IRQ_104] [static] |
{ 0, 0, 0, 0x21, 0x22, 0x23, 0x24, 0x25, 0, 0x20, 0x26, 0x27 }
Definition at line 16 of file hint.c.
Referenced by int_init().