#include <string.h>
#include <hipc/scfg.h>
#include <hipc/usoc.h>
#include <hipc/usocutils.h>
#include "CFGrt.h"
#include "CFGrt_scfg.h"
#include "hipcsvs_rt.h"
Go to the source code of this file.
Macros | |
#define | PBANK_PAGE_SIZE sizeof(struct STRUprm) |
#define | QUEUE_ITEM_SIZE sizeof(struct STRUlog) |
#define | QUEUE_N_SLOT 4 |
Functions | |
void | hipcsvsRtInit (void) |
static enum HIPC_errno | send_cast (struct HIPC_usoc *const so_p) |
enum HIPC_errno | hipcsvsRtRun (struct HIPC_usoc *const so_p, hipc_msgd *const mdq_p) |
void | hipcMain (struct HIPC_usoc *const so_p) |
Variables | |
struct HIPC_pbank | hipcsvsRt_pbank |
struct HIPC_queue | hipcsvsRt_queue |
#define PBANK_PAGE_SIZE sizeof(struct STRUprm) |
Definition at line 11 of file hipcsvs_rt.c.
Referenced by hipcsvsRtInit(), and hipcsvsRtRun().
#define QUEUE_ITEM_SIZE sizeof(struct STRUlog) |
Definition at line 12 of file hipcsvs_rt.c.
Referenced by hipcsvsRtInit(), and send_cast().
#define QUEUE_N_SLOT 4 |
Definition at line 13 of file hipcsvs_rt.c.
void hipcsvsRtInit | ( | void | ) |
Definition at line 18 of file hipcsvs_rt.c.
References hipcPbankInit(), hipcQueueInit(), hipcsvsRt_pbank, hipcsvsRt_queue, PBANK_PAGE_SIZE, and QUEUE_ITEM_SIZE.
|
static |
Definition at line 32 of file hipcsvs_rt.c.
References HIPC_MESSAGE_TYPE_CAST, HIPC_MSGHDR_SIZE, HIPC_SUCCESS, hipcQueueEmpty(), hipcQueuePop(), hipcsvsRt_queue, hipcUsocWrite(), and QUEUE_ITEM_SIZE.
Referenced by hipcsvsRtRun().
enum HIPC_errno hipcsvsRtRun | ( | struct HIPC_usoc *const | so_p, |
hipc_msgd *const | mdq_p | ||
) |
Definition at line 58 of file hipcsvs_rt.c.
References HIPC_ERR_S_INV_MSG_TYPE, HIPC_ERR_S_INV_STRUNO, HIPC_ERR_S_INV_UDATA, HIPC_ERR_S_IO_READ, HIPC_ERR_S_PBANK_STAT_MISMATCH, HIPC_MESSAGE_TYPE_BYE, HIPC_MESSAGE_TYPE_GET, HIPC_MESSAGE_TYPE_PUT, HIPC_MSGHDR_SIZE, HIPC_PBANK_STAT_GROUND, HIPC_PBANK_STAT_REQUESTED, HIPC_SUCCESS, hipcGenmdQuit, hipcGenmdSuccess, hipcGenmdSuccessToGet(), hipcMsgdBdyPtr, hipcMsgdBdySize(), hipcMsgdHdrPtr, hipcMsgdSetBdyForPut(), hipcMsgdStruno(), hipcMsgdType(), hipcPbankGetStat(), hipcPbankGetWritablePage(), hipcPbankSwitchComplete(), hipcPbankSwitchRequest(), hipcsvsRt_pbank, hipcUsocRead(), hipcUsocReadReady(), hipcUsocWriteMsgd(), PBANK_PAGE_SIZE, and send_cast().
void hipcMain | ( | struct HIPC_usoc *const | so_p | ) |
Definition at line 168 of file hipcsvs_rt.c.
References HIPC_ERR_S_IO_READ, HIPC_ERR_S_IO_WRITE, HIPC_ERR_S_V_UNINIT_MSG, HIPC_SUCCESS, hipcGenmdQuit, hipcsvsLedRun(), hipcsvsRtRun(), hipcUsocAcceptSimple(), and hipcUsocWriteMsgd().
struct HIPC_pbank hipcsvsRt_pbank |
Definition at line 15 of file hipcsvs_rt.c.
struct HIPC_queue hipcsvsRt_queue |
Definition at line 16 of file hipcsvs_rt.c.
Referenced by hipcsvsRtInit(), runMockServer(), and send_cast().