GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-6-0
Constituent: mem     Tag: sun-gcc
#include <string.h>
#include "CDM/CDM_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCBD/LCBD.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/FPA.h"
#include "PBS/INT.ih"
#include "PBS/MBA.h"
#include "PBS/MTX.h"
#include "PBS/WUT.h"
#include "MEM/MEM_cmdxtrn.h"
#include "MEM/MEM_dump.h"
#include "MEM/MEM_load.h"
#include "MEM/MEM_map.h"
#include "MEM/MEM_msgs.h"
#include "MEM/MEM_pubdefs.h"
#include "MEM_DB/MEM_DB_schema.h"
#include "MEM_control.h"
#include "Memmap.h"
Include dependency graph for MEM_control.c:
Defines | |
#define | INT_FAKE_OK |
Acknowledges that we realize interrupts can't be disabled on host machines. | |
Functions | |
static void * | mem_surom_read (void *dest_p, const void *source_p, const size_t nbytes, void *context_p, size_t *bytes_read_p) |
RAD750 SUROM read callback function. | |
void * | MEM_readSurom (void *dst_p, const void *src_p, const unsigned int num_bytes) |
Read RAD750 SUROM. | |
static unsigned int | mem_map_init (MEM_Control *ctl_p) |
Init the memory map for dumps and loads. | |
static unsigned int | mem_pool_init (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p, unsigned int num_pkt, unsigned int pkt_bytes) |
Initialize an FPA pool. | |
static unsigned int | mem_pool_free (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p) |
Free an FPA pool. | |
static unsigned int | mem_create_control_block (void) |
Allocate and adopt a MEM control information block. | |
static unsigned int | mem_lock_access (MEM_Control *ctl_p) |
Lock access to a MEM control block. | |
static unsigned int | mem_unlock_access (MEM_Control *ctl_p, unsigned int status) |
Unlock access to a MEM control block. | |
static unsigned int | mem_change_state (MEM_Control *ctl_p, unsigned int valid_states, MEM_Control_State new_state) |
Change the state of the MEM functions. | |
unsigned int | MEM_initialize (ITC_Task *task_p, ITC_TaskID tid) |
Initialize the MEM application-level functions. | |
unsigned int | MEM_init (void) |
Initialize the MEM application-level functions using CDM. | |
unsigned int | MEM_shutdown (void) |
Shutdown the MEM functions. | |
unsigned int | MEM_updateStats (MEM_Control *ctl_p, unsigned int msg_status, unsigned int fcode) |
Common routine to update MEM command statistics. | |
unsigned int | MEM_getInfo (MEM_Info *info_p) |
Get current state of the MEM application-level functions. | |
Variables | |
MEM_Control * | Mem_control_p = NULL |
Pointer to the MEM control information block. | |
unsigned char | mem_sim_ram_buf [1024] |
Buffer of simulated RAM for memory dumps and loads. |
** CVS $Id: MEM_control.c,v 1.23 2005/11/08 20:40:52 dmay Exp $ **
Control functions for the application-level portion of the MEM package. These functions are used within the context of another task, so they do not actually start and configure a task of their own.
|
Change the state of the MEM functions.
|
|
Allocate and adopt a MEM control information block.
|
|
Get current state of the MEM application-level functions.
|
|
Initialize the MEM application-level functions using CDM. This function is a wrapper for MEM_initialize() that uses CDM to determine its parameters.
|
|
Initialize the MEM application-level functions. This function initializes the application-level portion of the MEM package and transitions it to the INITIALIZED state. It should be the first MEM function called when using the MEM package. At the application level, there is no MEM task. Instead, the handlers for the MEM telecommands are attached to another task. If a valid value is provided for either the task_p or the tid parameter, then this function will attach the MEM command handlers to the corresponding task. If neither parameter is specified (by setting task_p to NULL and tid to -1), then it is assumed that the controlling task will attach the MEM command handlers.
|
|
Lock access to a MEM control block.
|
|
Init the memory map for dumps and loads.
|
|
Free an FPA pool.
|
|
Initialize an FPA pool.
|
|
Read RAD750 SUROM.
|
|
Shutdown the MEM functions. This function shuts down the MEM package and transitions it back to the UNINITIALIZED state. It can be called only if the current MEM state is INITIALIZED, INIT_FAIL, or SHUTDOWN_FAIL.
|
|
RAD750 SUROM read callback function. RAD750 SUROM read function that is suitable for use as a memory map table entry callback function.
|
|
Unlock access to a MEM control block.
|
|
Common routine to update MEM command statistics.
|
|
Pointer to the MEM control information block. Pointer to the control block (state) for the MEM application-level functions. |
|
Initial value: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 } This buffer simulates the RAD750 RAM in a host environment. |