ARPDAS_QNX6 1.0
|
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 LIBRARY_SUB SB_SYSCON104 |
Definition at line 7 of file sc104.h.
Referenced by incoming_sbreq().
#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_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 SUBBUS_FEATURES |
(SBF_WD | (SIC*SBF_HW_CNTS) | (SET_FAIL*SBF_SET_FAIL) | \ (LG_RAM*SBF_LG_RAM) | (SYSCON*(SBF_READ_FAIL|SBF_CMDSTROBE)) | \ (SICFUNC*SBF_SIC) | (READSWITCH*SBF_READ_SW) | (NVRAM*SBF_NVRAM))
Definition at line 139 of file sc104.h.
Referenced by incoming_sbreq().
#define WAIT_COUNT 5 |
Definition at line 109 of file sc104.h.
Referenced by read_ack(), and write_ack().
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().
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().
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().
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().
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().
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().