00001 // $Id: s_set_ml.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "typedefs.h" 00015 /* 00016 * N. Kurz 10-Jan-1996 00017 * 00018 * within this structure the setup information for one host in the multi-branch 00019 * multi-layer daq system is specified. 00020 * for each host in the system which resides in the hierarchy above a 00021 * branch master (meb) such a set of data must be provided through a 00022 * parsed user input file. 00023 */ 00024 00025 /* after allocating s_set_ml set in f_ut_set_ml_ini */ 00026 /* ps_set_ml->l_endian = 1; */ 00027 /* ps_set_ml->l_version = n; */ 00028 /* ps_set_ml->l_set_ml_lw = sizeof(s_set_ml)/4; */ 00029 /* ps_set_ml->l_fix_lw = ((int)&c_rd_hostname[0][0]-(int)ps_set_ml)/4; */ 00030 /* ps_set_ml->l_ml__n_rd_pipe = ML__N_RD_PIPE; */ 00031 /* ps_set_ml->l_short_len = 16; */ 00032 /* ps_set_ml->l_long_len = 128; */ 00033 typedef struct 00034 { 00035 INTU4 l_endian; /* set to 1 */ 00036 INTU4 l_version; /* increment in f_ut_status_ini after changes */ 00037 INTU4 l_set_ml_lw; /* sizeof(s_set_ml)/4 : total number of lw */ 00038 INTU4 l_fix_lw; /* (&c_rd_hostname-ps_set_ml)/4 : fixed number of longwords to read */ 00039 INTU4 l_ml__n_rd_pipe; /* set to ML__N_RD_PIPE */ 00040 INTU4 l_short_len; /* set to length of short strings (16) */ 00041 INTU4 l_long_len; /* set to length of long strings (128) */ 00042 00043 INTS4 l_n_rd_pipe; 00044 /* number of pipes to read. this variable must not be specified, */ 00045 /* instead it will be filled during loading the multi-layer setup */ 00046 /* for this host */ 00047 00048 INTS4 l_out_mode; 00049 /* 1: write data from all read pipes into next layer pipe */ 00050 /* 2: format events into event buffer streams */ 00051 /* 3: 1 + 2 */ 00052 00053 INTS4 l_ev_buf_len; 00054 /* length of single event buffer. only needed if l_out_mode = 2,3 */ 00055 00056 INTS4 l_n_ev_buf; 00057 /* number of event buffers in a stream. only if l_out_mode = 2,3 */ 00058 00059 INTS4 l_n_stream; 00060 /* number of streams. only needed if l_out_mode = 2,3 */ 00061 00062 INTS4 l_wr_pipe_base_addr; 00063 /* base address of write pipe. only needed if l_out_mode = 1,3 */ 00064 00065 INTS4 l_wr_pipe_len; 00066 /* size of write pipe (in bytes). only needed if l_out_mode = 1,3 */ 00067 00068 INTS4 l_wr_pipe_n_frag; 00069 /* number of fragments to reserve in the write pipe. only needed if */ 00070 /* l_out_mode = 1,3 */ 00071 00072 INTS4 l_rd_host_flg[ML__N_RD_PIPE]; 00073 /* 0: not to read from this host */ 00074 /* 1: pipe must be read from this node, node is branchmaster */ 00075 /* 2: pipe must be read from this node, node is NOT a branchmaster */ 00076 00077 INTS4 l_rd_pipe_base_addr[ML__N_RD_PIPE]; 00078 /* base address of the pipes to read, seen from this host */ 00079 00080 INTS4 l_rd_pipe_len[ML__N_RD_PIPE]; 00081 /* size of the pipes to read. this variable must not be specified, */ 00082 /* instead it will be filled from either a SBS setup file or from */ 00083 /* the write pipe specification (see below) of the coresponding */ 00084 /* host lying below the hierarchy of this host (in bytes) */ 00085 00086 INTS4 l_rd_pipe_n_frag[ML__N_RD_PIPE]; 00087 /* number of fragments to reserve in the read pipes. must also not */ 00088 /* be specified. see comment above for l_rd_pipe_len[] */ 00089 CHARS c_hostname[16]; 00090 /* net name of this host */ 00091 00092 /* ------------------ end of fixed block --------------------------*/ 00093 CHARS c_rd_hostname [ML__N_RD_PIPE][16]; 00094 /* netname of all hosts where this host have to read pipes */ 00095 00096 CHARS c_sbs_setup_path [ML__N_RD_PIPE][128]; 00097 /* paths/filenames of the SBS setup file of the hosts to read from. */ 00098 /* only needed if these hosts are SBS branch masters. in this case */ 00099 /* the read pipes are specified in the SBS setup file. the base */ 00100 /* address of the read pipes must always be specified nevertheless */ 00101 00102 00103 } s_set_ml;