Changeset 3757 in Sophya for trunk/AddOn/TAcq/brparam.h


Ignore:
Timestamp:
Apr 30, 2010, 12:54:25 AM (15 years ago)
Author:
ansari
Message:

Ajout classes de transfert DMA vers Ethernet et lecture ethernet, Reza 29/04/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brparam.h

    r3681 r3757  
    9797  // Taille des paquets apres reduction eventuelle (donc ds memory manager)
    9898  inline uint_4 MMgrPaquetSize() { return (fgreducpsize)?redpqsize:PaqSize; }
     99  // Nombre de paquets dans chaque bloc de MMgr
     100  inline uint_4 MMgrNbPaquet() { return nPaqZone; }
    99101  // Operation de conversion/mise en ordre des donnees a la reception
    100102  inline BRDataFmtConv GetDataConvFg() { return swapall; };
     
    105107  inline uint_4 BlocPerFile() { return NBlocPerFile; }
    106108  // Nombre maximum de blocs MMgr traites
    107   inline uint_4 MaxNbBlocs() { return NbFiles*NBlocPerFile; }
     109  inline uint_8 MaxNbBlocs() { return (uint_8)NbFiles*(uint_8)NBlocPerFile; }
     110  // Nombre maximum paquets traites
     111  inline uint_8 MaxNbPaquets() { return MaxNbBlocs()*(uint_8)nPaqZone; }
    108112
    109113  // Taille des paquets recus sur PCIExpress
    110114  inline uint_4 PatternSize() { return ((PaqSize-(BRHDRSIZE+BRTRLSIZE))/4); }
     115
     116  // Liste des machines cibles pour transfert sur ethernet
     117  inline void SetEthTargets(vector<string>& targs) { eths_targets=targs; return; }
     118  inline vector<string>& GetEthTargets() { return eths_targets; }
     119  // Nombre de liens ethernet comme source de donnees (paquets)
     120  inline int NbEthLinks() { return ethr_nlink; }
    111121
    112122  // Identification source ciel
     
    147157  uint_4 redpqsize;
    148158  uint_4 reducoffset;
     159
     160  // ---- Variables specifiques em mode transfert DMA vers Ethernet
     161  int tcpportid;
     162  // Cote Send DMA -> Ethernet
     163  bool pci2eth_fgdirect;   // true -> direct transfer DMA to Ethernet 
     164  vector< string > eths_targets;   // Liste des machines cibles pour les transferts DMA -> ethernet
     165  // Cote reception
     166  int ethr_nlink;    // Nombre total de source d'envoi (= nb total de fibre de fibre)
    149167
    150168  // Identification source observee dans le ciel
     
    209227  // Taille des paquets apres reduction eventuelle (donc ds memory manager)
    210228  inline uint_4 MMgrPaquetSize() { return param_->MMgrPaquetSize(); }
     229  // Nombre de paquets dans chaque bloc de MMgr
     230  inline uint_4 MMgrNbPaquet() { return param_->MMgrNbPaquet(); }
    211231  // Operation de conversion/mise en ordre des donnees a la reception
    212232  inline BRDataFmtConv GetDataConvFg() { return param_->GetDataConvFg(); };
     
    217237  inline uint_4 BlocPerFile() { return param_->BlocPerFile(); }
    218238  // Nombre maximum de blocs MMgr traites
    219   inline uint_4 MaxNbBlocs() { return param_->MaxNbBlocs(); }
     239  inline uint_8 MaxNbBlocs() { return param_->MaxNbBlocs(); }
     240  // Nombre maximum paquets traites
     241  inline uint_8 MaxNbPaquets() { return param_->MaxNbPaquets(); }
    220242
    221243  // Identification source ciel
Note: See TracChangeset for help on using the changeset viewer.