ARPDAS_QNX6 1.0
Defines | Functions
sc104.h File Reference
#include <sys/dispatch.h>
#include "subbusd.h"
#include "subbus.h"
Include dependency graph for sc104.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LIBRARY_SUB   SB_SYSCON104
#define SUBBUS_VERSION   0x400
#define SBF_SIC   1
#define SBF_LG_RAM   2
#define SBF_HW_CNTS   4
#define SBF_WD   8
#define SBF_SET_FAIL   0x10
#define SBF_READ_FAIL   0x20
#define SBF_READ_SW   0x40
#define SBF_NVRAM   0x80
#define SBF_CMDSTROBE   0x100
#define PCICC   0
#define SIC   0
#define SYSCON   1
#define SICFUNC   0
#define SC104   1
#define READSWITCH   1
#define NVRAM   0
#define SC_SB_RESET   0x310
#define SC_SB_LOWA   0x308
#define SC_SB_LOWB   0x30A
#define SC_SB_LOWC   0x30C
#define SC_SB_LOWCTRL   0x30E
#define SC_SB_HIGHA   0x309
#define SC_SB_HIGHB   0x30B
#define SC_SB_HIGHC   0x30D
#define SC_SB_HIGHCTRL   0x30F
#define SC_SB_CONFIG   0x0C1C0
#define SC_CMDENBL   0x318
#define SC_DISARM   0x311
#define SC_TICK   0x319
#define SC_LAMP   0x317
#define SC_SWITCHES   0x316
#define WAIT_COUNT   5
#define SET_FAIL   1
#define LG_RAM   0
#define SUBBUS_FEATURES

Functions

void process_IRQs (char *t)
int int_attach (int rcvid, subbusd_req_t *req)
int int_detach (int rcvid, subbusd_req_t *req)
int service_expint (message_context_t *ctp, int code, unsigned flags, void *handle)
void expint_init (int coid, short code, int value)
void sc104_init_options (int argc, char **argv)

Define Documentation

#define LG_RAM   0

Definition at line 136 of file sc104.h.

#define LIBRARY_SUB   SB_SYSCON104

Definition at line 7 of file sc104.h.

Referenced by incoming_sbreq().

#define NVRAM   0

Definition at line 61 of file sc104.h.

#define PCICC   0

Definition at line 55 of file sc104.h.

#define READSWITCH   1

Definition at line 60 of file sc104.h.

#define SBF_CMDSTROBE   0x100

Definition at line 21 of file sc104.h.

#define SBF_HW_CNTS   4

Definition at line 15 of file sc104.h.

#define SBF_LG_RAM   2

Definition at line 14 of file sc104.h.

#define SBF_NVRAM   0x80

Definition at line 20 of file sc104.h.

#define SBF_READ_FAIL   0x20

Definition at line 18 of file sc104.h.

#define SBF_READ_SW   0x40

Definition at line 19 of file sc104.h.

#define SBF_SET_FAIL   0x10

Definition at line 17 of file sc104.h.

#define SBF_SIC   1

Definition at line 13 of file sc104.h.

#define SBF_WD   8

Definition at line 16 of file sc104.h.

#define SC104   1

Definition at line 59 of file sc104.h.

#define SC_CMDENBL   0x318

Definition at line 103 of file sc104.h.

Referenced by set_cmdenbl().

#define SC_DISARM   0x311

Definition at line 104 of file sc104.h.

Referenced by disarm_sic().

#define SC_LAMP   0x317

Definition at line 106 of file sc104.h.

Referenced by read_failure(), and set_failure().

#define SC_SB_CONFIG   0x0C1C0

Definition at line 102 of file sc104.h.

Referenced by init_subbus().

#define SC_SB_HIGHA   0x309

Definition at line 98 of file sc104.h.

#define SC_SB_HIGHB   0x30B

Definition at line 99 of file sc104.h.

#define SC_SB_HIGHC   0x30D

Definition at line 100 of file sc104.h.

#define SC_SB_HIGHCTRL   0x30F

Definition at line 101 of file sc104.h.

Referenced by init_subbus().

#define SC_SB_LOWA   0x308

Definition at line 94 of file sc104.h.

Referenced by read_ack(), and write_ack().

#define SC_SB_LOWB   0x30A

Definition at line 95 of file sc104.h.

Referenced by read_ack(), and write_ack().

#define SC_SB_LOWC   0x30C

Definition at line 96 of file sc104.h.

Referenced by read_ack(), set_cmdstrobe(), and write_ack().

#define SC_SB_LOWCTRL   0x30E

Definition at line 97 of file sc104.h.

Referenced by init_subbus(), and set_cmdstrobe().

#define SC_SB_RESET   0x310

Definition at line 93 of file sc104.h.

Referenced by init_subbus().

#define SC_SWITCHES   0x316

Definition at line 108 of file sc104.h.

Referenced by read_switches().

#define SC_TICK   0x319

Definition at line 105 of file sc104.h.

Referenced by tick_sic().

#define SET_FAIL   1

Definition at line 110 of file sc104.h.

#define SIC   0

Definition at line 56 of file sc104.h.

#define SICFUNC   0

Definition at line 58 of file sc104.h.

#define SUBBUS_FEATURES
#define SUBBUS_VERSION   0x400

Definition at line 8 of file sc104.h.

#define SYSCON   1

Definition at line 57 of file sc104.h.

#define WAIT_COUNT   5

Definition at line 109 of file sc104.h.

Referenced by read_ack(), and write_ack().


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:

int int_attach ( int  rcvid,
subbusd_req_t req 
)

Definition at line 50 of file interrupt.c.

References carddef::address, subbusd_req_data2::address, carddef::bitno, carddef::cardID, subbusd_req_data2::cardID, subbusd_req_t::d2, subbusd_req_t::data, subbusd_req_data2::event, expint_attach(), nl_error, subbusd_req_data2::region, sbwra, and service_expint().

Referenced by incoming_sbreq().

Here is the call graph for this function:

Here is the caller graph for this function:

int int_detach ( int  rcvid,
subbusd_req_t req 
)

Definition at line 78 of file interrupt.c.

References subbusd_req_data2::cardID, subbusd_req_t::d2, subbusd_req_t::data, expint_detach(), nl_error, and sbwra.

Referenced by incoming_sbreq().

Here is the call graph for this function:

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:

void sc104_init_options ( int  argc,
char **  argv 
)

Definition at line 7 of file sc104init.c.

References nl_error, opt_string, OPTIND_RESET, and process_IRQs().

Here is the call graph for this function:

int service_expint ( message_context_t *  ctp,
int  code,
unsigned  flags,
void *  handle 
)

Definition at line 8 of file interrupt.c.

References region::address, region::bits, carddef::cardID, region::def, carddef::event, expint_detach(), MAX_REGIONS, nl_assert, nl_error, carddef::owner, regions, and sbrb().

Referenced by expint_svc(), init_subbus(), and int_attach().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines