LATconstants.py

Go to the documentation of this file.
00001 #!/usr/local/bin/python
00002 #
00003 #                               Copyright 2005
00004 #                                     by
00005 #                        The Board of Trustees of the
00006 #                     Leland Stanford Junior University.
00007 #                            All rights reserved.
00008 #
00009 
00010 __facility__ = "Online"
00011 __abstract__ = "LAT related constants"
00012 __author__   = "S. Tuvi <Stuvi@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online"
00013 __date__     = "2005/12/20 00:00:00"
00014 __updated__  = "$Date: 2006/03/07 23:10:14 $"
00015 __version__  = "$Revision: 1.8 $"
00016 __release__  = "$Name: HEAD $"
00017 __credits__  = "SLAC"
00018 
00019 import LICOS.copyright_SLAC
00020 
00021 import os
00022 
00023 ## Online root environment variable
00024 ONLINE_ROOT_ENV = "ONLINE_ROOT"
00025 
00026 ## Online root path prefix
00027 ONLINE_ROOT = os.environ[ONLINE_ROOT_ENV]
00028 
00029 ## LICOS Scripts root path
00030 LICOS_SCRIPTS_ROOT = "LICOS_Scripts"
00031 
00032 ## LICOS Config root path
00033 LICOS_CONFIG_ROOT = "LICOS_Config"
00034 
00035 ## Root directories relative to $ONLINE_ROOT
00036 ROOT_DIRS = ['LICOS', LICOS_SCRIPTS_ROOT, LICOS_CONFIG_ROOT]
00037 
00038 ## Number of towers
00039 N_TOWERS      = 16
00040 
00041 ## Number of ACD free boards
00042 N_FREE_BOARDS = 12
00043 
00044 ## Base directory where LICOS_Config package is located
00045 LICOS_CONFIG_BASE = os.path.expandvars("$%s/%s" % (ONLINE_ROOT_ENV, LICOS_CONFIG_ROOT))
00046 
00047 ## Directory where LHK configuration files are located
00048 LICOS_CONFIG_LHK  = os.path.join(LICOS_CONFIG_BASE, "lhk")
00049 
00050 ## Directory where script configuration files are located
00051 LICOS_CONFIG_APPS = os.path.join(LICOS_CONFIG_BASE, "apps")
00052 
00053 ## Base directory where LICOS_Scripts package is located
00054 LICOS_SCRIPTS_BASE = os.path.expandvars("$%s/%s" % (ONLINE_ROOT_ENV, LICOS_SCRIPTS_ROOT))
00055 
00056 ## XSL style sheet used in the generation of test reports
00057 LICOS_TEST_REPORT_XSL = os.path.join(LICOS_SCRIPTS_BASE, "lib/reportStyle.xsl")
00058 
00059 ## Prefix for the XML version of the rcReport.out generated by the pipeline
00060 # Deprecated, the pipeline changes the prefix too frequently.
00061 # LICOS_Scripts should use the rcReport.xml soft link that is created by the pipeline
00062 #PIPELINE_RUN_REPORT_PREFIX = 'updateELogDB-licos-v3r5p1'
00063 PIPELINE_RUN_REPORT_PREFIX = ''
00064 
00065 # enums from FILE traveler document.  Used in FILE and LFS commands
00066 ## Boot device enum
00067 FSW_DEVICE_BOOT  = 0
00068 ## RAM disk device enum
00069 FSW_DEVICE_RAM   = 1
00070 ## SIB EEPROM partition 0 enum
00071 FSW_DEVICE_EE0   = 2
00072 ## SIB EEPROM partition 1 enum
00073 FSW_DEVICE_EE1   = 3
00074 ## Host temp file system enum
00075 FSW_DEVICE_TMP   = 4
00076 ## User-defined device 0 enum
00077 FSW_DEVICE_USR0  = 5
00078 ## User-defined device 1 enum
00079 FSW_DEVICE_USR1  = 6
00080 ## Device names used in directory listings
00081 FSW_DEVICE_NAMES = ["boot", "ram", "ee0", "ee1", "tmp", "usr0", "usr1"  ]
00082 ## SIU unit enum
00083 FSW_UNIT_SIU     = 0
00084 ## EPU 0 unit enum
00085 FSW_UNIT_EPU0    = 1
00086 ## EPU 1 unit enum
00087 FSW_UNIT_EPU1    = 2
00088 ## EPU 2 unit enum
00089 FSW_UNIT_EPU2    = 3
00090 ## EPU 3 unit enum
00091 FSW_UNIT_EPU3    = 4
00092 ## Unit names used in directory listings
00093 FSW_UNIT_NAMES = [ 'SIU', 'EPU0', 'EPU1', 'EPU2', 'EPU3' ]
00094 ## FSW allowed directory range, [FSW_GUIDE], 5.2.2, fig 5
00095 FSW_DIR_RANGE = range(0,111)
00096 ## ROOT directory = 127 : [FSW_GUIDE], 5.2.2, in text.
00097 FSW_DIR_ROOT  = 0x7f
00098 
00099 # Following enums from http://www.slac.stanford.edu/exp/glast/flight/web/a_cat/prod/WOC/hide/MEM/cmd/LMEMDUMPMEM/00a__F.CDEST-dest.shtml
00100 ## FSW 1553 destination enum.  Used in LMEMDUMPMEM
00101 FSW_DEST_1553 = 0
00102 ## FSW SSR destination enum.  Used in LMEMDUMPMEM
00103 FSW_DEST_SSR  = 1
00104 ## FSW destination names
00105 FSW_DEST_NAMES = ['1553', 'SSR ']
00106 
00107 # memory pool enums from MEM user manual Traveler
00108 ## FSW System memory pool
00109 FSW_POOL_SYSTEM = 0
00110 ## FSW Application memory pool
00111 FSW_POOL_APPLICATION = 1
00112 
00113 
00114 # Comments from MEMMGT_001.py from FSW:
00115 # 0x00300000 - 0x00C00000 is the RAM address space that is initialized by PBC.
00116 # 0x00010000 - 0x00300000 is RAM address space that is not used by RTOS in SBC.
00117 ## Start of PBC memory address space
00118 RAM_PBC_START = 0x00300000
00119 ## End of PBC memory address space
00120 RAM_PBC_STOP  = 0x00C00000
00121 ## Start of SBC memory address space
00122 RAM_SBC_START = 0x00010000
00123 ## End of SBC memory address space
00124 RAM_SBC_STOP  = 0x00300000
00125 ## Start of SUROM memory address space
00126 MEM_SUROM_START = 0xFFF00000
00127 ## End of SUROM memory address space
00128 MEM_SUROM_STOP  = 0xFFF40000
00129 
00130 # As per verbal agreement with Tony Waite (051108) INT can have
00131 #   directories 8-15 for it's own use.  Note:  Any directory > 15
00132 #   needs to be created
00133 ## LATC configuration file directory
00134 INT_DIR_LATC     = 10
00135 ## LCI configuration file directory
00136 INT_DIR_LCI      = 11
00137 ## LHK configuration file directory
00138 INT_DIR_LHK      = 13
00139 
00140 ## Standard Command/Response timeout
00141 STANDARD_TIMEOUT = 60
00142 ## Long Command/response timeout
00143 LONG_TIMEOUT     = 3*STANDARD_TIMEOUT
00144 ## Short Command/Response timeout
00145 SHORT_TIMEOUT    = 3
00146 
00147 ## standard LAT epoch, '2001-01-01 00:00:00'
00148 LAT_EPOCH        = 978307200

Generated on Thu Apr 27 20:52:42 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO