ARPDAS_QNX6 1.0
Functions | Variables
expint.c File Reference
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include "nortlib.h"
#include "subbusd_int.h"
Include dependency graph for expint.c:

Go to the source code of this file.

Functions

static void delete_card (card_def **cdp)
static card_def ** find_card (char *cardID, unsigned short address)
int expint_attach (int rcvid, char *cardID, unsigned short address, int region, struct sigevent *event, card_def **card)
int expint_detach (int rcvid, char *cardID, unsigned short *addr, unsigned int *bn)

Variables

card_defcarddefs
region regions [MAX_REGIONS]

Function Documentation

static void delete_card ( card_def **  cdp) [static]

Definition at line 31 of file expint.c.

References carddef::bitno, region::bits, region::def, carddef::next, nl_error, and carddef::reg_id.

Referenced by expint_detach().

Here is the caller graph for this function:

int expint_attach ( int  rcvid,
char *  cardID,
unsigned short  address,
int  region,
struct sigevent *  event,
card_def **  card 
)
Returns:
On success, returns zero and sets *card to new card_def. errno codes on failure.

Definition at line 60 of file expint.c.

References region::address, carddef::address, carddef::bitno, region::bits, carddefs, carddef::cardID, CardID_MAX, region::def, carddef::event, find_card(), MAX_REGIONS, carddef::next, nl_error, carddef::owner, and carddef::reg_id.

Referenced by int_attach().

Here is the call graph for this function:

Here is the caller graph for this function:

int expint_detach ( int  rcvid,
char *  cardID,
unsigned short *  addr,
unsigned int *  bn 
)

Definition at line 134 of file expint.c.

References delete_card(), find_card(), and nl_error.

Referenced by int_detach(), process_interrupt(), and service_expint().

Here is the call graph for this function:

Here is the caller graph for this function:

static card_def** find_card ( char *  cardID,
unsigned short  address 
) [static]

Definition at line 43 of file expint.c.

References carddef::address, carddef::cardID, CardID_MAX, and carddef::next.

Referenced by expint_attach(), and expint_detach().

Here is the caller graph for this function:


Variable Documentation

Definition at line 28 of file expint.c.

Referenced by expint_attach(), and process_interrupt().

region regions[MAX_REGIONS]

Definition at line 29 of file expint.c.

Referenced by service_expint().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines