ARPDAS_QNX6 1.0
Defines | Functions | Variables
hint.c File Reference
#include <stdlib.h>
#include <errno.h>
#include <sys/neutrino.h>
#include <hw/inout.h>
#include "nortlib.h"
#include "subbus.h"
#include "sc104.h"
Include dependency graph for hint.c:

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 Documentation

#define MAX_IRQ_104   12

Definition at line 15 of file hint.c.

Referenced by int_init().


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void expint_reset ( void  )

Definition at line 86 of file hint.c.

References expint_iid, and int_reset().

Here is the call graph for this function:

void expint_svc ( void  )

Definition at line 90 of file hint.c.

References expint_iid, expint_irq, and service_expint().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int read_one_irq ( char **  s) [static]

Definition at line 20 of file hint.c.

Referenced by process_IRQs().

Here is the caller graph for this function:


Variable Documentation

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]
Initial value:
 {
  0, 0, 0, 0x21, 0x22, 0x23, 0x24, 0x25, 0, 0x20, 0x26, 0x27
}

Definition at line 16 of file hint.c.

Referenced by int_init().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines