ARPDAS_QNX6 1.0
|
#include "subbusd_int.h"
Go to the source code of this file.
Classes | |
struct | sbd_request_t |
Defines | |
#define | SB_SERUSB_MAX_REQUEST 256 |
#define | SBDR_TYPE_INTERNAL 0 |
#define | SBDR_TYPE_CLIENT 1 |
#define | SBDR_TYPE_MAX 1 |
#define | SBDR_STATUS_QUEUED 0 |
#define | SBDR_STATUS_SENT 1 |
#define | SUBBUSD_MAX_REQUESTS 20 |
Functions | |
int | int_attach (int rcvid, subbusd_req_t *req, char *sreq) |
int | int_detach (int rcvid, subbusd_req_t *req, char *sreq) |
#define SB_SERUSB_MAX_REQUEST 256 |
SB_SERUSB_MAX_REQUEST is the maximum allowable string for a serialized command or response over the USB. The longest request will be for the multi-read command, and we may see fit to extend this size. The multi-read response may also be even longer, but we do not necessarily have to allocate buffer space for the entire response, since we can process it as it comes in.
Definition at line 15 of file serusb.h.
Referenced by enqueue_sbreq(), incoming_sbreq(), int_attach(), int_detach(), and sb_read_usb().
#define SBDR_STATUS_QUEUED 0 |
Definition at line 28 of file serusb.h.
Referenced by enqueue_sbreq(), and process_request().
#define SBDR_STATUS_SENT 1 |
Definition at line 29 of file serusb.h.
Referenced by process_request().
#define SBDR_TYPE_CLIENT 1 |
Definition at line 26 of file serusb.h.
Referenced by dequeue_request(), incoming_sbreq(), and process_request().
#define SBDR_TYPE_INTERNAL 0 |
Definition at line 25 of file serusb.h.
Referenced by dequeue_request(), init_subbus(), process_interrupt(), process_request(), and sb_timeout().
#define SUBBUSD_MAX_REQUESTS 20 |
Definition at line 37 of file serusb.h.
Referenced by dequeue_request(), enqueue_sbreq(), and process_request().
int int_attach | ( | int | rcvid, |
subbusd_req_t * | req, | ||
char * | sreq | ||
) |
Definition at line 7 of file interrupt.c.
References subbusd_req_data2::address, carddef::bitno, subbusd_req_data2::cardID, subbusd_req_t::d2, subbusd_req_t::data, subbusd_req_data2::event, expint_attach(), nl_error, subbusd_req_data2::region, and SB_SERUSB_MAX_REQUEST.
int int_detach | ( | int | rcvid, |
subbusd_req_t * | req, | ||
char * | sreq | ||
) |
Definition at line 23 of file interrupt.c.
References subbusd_req_data2::cardID, subbusd_req_t::d2, subbusd_req_t::data, expint_detach(), and SB_SERUSB_MAX_REQUEST.