GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-3-0

Constituent: mem     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

MEM.h File Reference

public interface to memory dump/load More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  _MEM_Descriptor
 Memory descriptor. More...


Defines

#define MEM_MAP_NAME(__e__)
 Evaluate a memory map code to a text string.

#define MEM_PCI_CONFIG_BYTES   (256)
 Size in bytes of the PCI configuration space.

#define MEM_REGISTER_SET_BYTES   (768)
 Size in bytes of a register dump.


Typedefs

typedef unsigned int MEM_Status
 Typedef for return status of memory functions.

typedef enum _MEM_Memmap MEM_Memmap
 Typedef for memory map selection.

typedef _MEM_Descriptor MEM_Descriptor
 Typedef for # _MEM_Descriptor.


Enumerations

enum  _MEM_Memmap {
  MEM_MEMMAP_MEMORY,
  MEM_MEMMAP_PCI_CFG,
  MEM_MEMMAP_REGISTER
}
 Memory map selection. More...


Functions

void MEM_CreateDescriptor (MEM_Descriptor *md, const MEM_Memmap, const caddr_t, const size_t)
 Create generic memory descriptor.

MEM_Status MEM_CreateDescriptorFromDumpCommand (MEM_Descriptor *, const void *)
 Create memory descriptor from a memory dump command.


Detailed Description

public interface to memory dump/load

Memory library. For use in boot and operation code.

Log
MEM.h,v
Revision 1.11 2005/05/02 18:30:55 dmay add #ifdef __cplusplus; change some comments

Revision 1.10 2005/02/28 21:08:35 dmay removed unused MEM_CreateDescriptorFromLoadCommand

Revision 1.9 2005/02/23 19:52:41 dmay increase CPU register set size to 768 bytes

Revision 1.8 2004/12/08 17:25:27 dmay removed PCI fields from MEM_Descriptor

Revision 1.7 2004/07/19 16:05:24 dmay no longer include MEMCMD.h

Revision 1.6 2004/06/29 14:09:38 dmay restructure MEM_Descriptor move memory dump functions to MEM_dump.h

Revision 1.5 2004/06/17 20:00:31 dmay remove load data from memory descriptors

Revision 1.4 2004/05/03 20:09:33 dmay Added MemLoad data and PCI config data to memory descriptors Combined MEM_CreateXxxDescriptor functions into single MEM_CreateDescriptor function

Revision 1.3 2004/03/23 20:07:28 dmay increase MEM_REGISTER_SET_BYTES from 512 to 640

Revision 1.2 2004/03/11 13:35:50 ray added wrapped indcator to dumps

Revision 1.1.1.1 2004/01/09 12:52:27 ray Create package MEM


Define Documentation

#define MEM_MAP_NAME __e__   ) 
 

Value:

(((__e__)==MEM_MEMMAP_MEMORY)?"Memory": \
                            (((__e__)==MEM_MEMMAP_PCI_CFG)?"PCI Config": \
                            (((__e__)==MEM_MEMMAP_REGISTER)?"Register": \
                                                            "Unknown Map")))
Evaluate a memory map code to a text string.

#define MEM_REGISTER_SET_BYTES   (768)
 

Size in bytes of a register dump.

This is the size of a CPU register dump. There are 32 32-bit GPRs, 32 64-bit FPRs and 68 32-bit SPRs. That adds up to 656 bytes (164 words). A little extra space is allocated here (768 bytes, 192 words) in case a register or two was missed and needs to be added later.

For Memory Dump commands, a snapshot of the processor register values are gathered and stored in the dump context at the time the dump is started. The register values are then retrieved from the context as the dump progresses.


Typedef Documentation

MEM_Memmap
 

Typedef for memory map selection.

Typedef for _MEM_Memmap enumeration.

MEM_Status
 

Typedef for return status of memory functions.

Type for memory library return status codes.


Enumeration Type Documentation

enum _MEM_Memmap
 

Memory map selection.

Enumerated types to select a memory map. This is derived from the memory dump and load telecommands and describes three types of memory accesses made by the LAT memory system:

MEMORY - regular byte-accessable RAM-like memories with no alignment requirements.

PCI_CFG - PCI configuration space.

REGISTER - PPCI memory-mapped registers. Memory map may contains "holes", so generic non-aligned bytes access not always allowed.


Function Documentation

void MEM_CreateDescriptor MEM_Descriptor md,
const  MEM_Memmap,
const  caddr_t,
const  size_t
 

Create generic memory descriptor.

void MEM_CreateDescriptorFromDumpCommand MEM_Descriptor ,
const void * 
 

Create memory descriptor from a memory dump command.


Generated on Sun Jul 17 08:41:52 2005 by doxygen 1.3.3