Changeset 3757 in Sophya for trunk/AddOn/TAcq/brparam.h
- Timestamp:
- Apr 30, 2010, 12:54:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brparam.h
r3681 r3757 97 97 // Taille des paquets apres reduction eventuelle (donc ds memory manager) 98 98 inline uint_4 MMgrPaquetSize() { return (fgreducpsize)?redpqsize:PaqSize; } 99 // Nombre de paquets dans chaque bloc de MMgr 100 inline uint_4 MMgrNbPaquet() { return nPaqZone; } 99 101 // Operation de conversion/mise en ordre des donnees a la reception 100 102 inline BRDataFmtConv GetDataConvFg() { return swapall; }; … … 105 107 inline uint_4 BlocPerFile() { return NBlocPerFile; } 106 108 // 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; } 108 112 109 113 // Taille des paquets recus sur PCIExpress 110 114 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; } 111 121 112 122 // Identification source ciel … … 147 157 uint_4 redpqsize; 148 158 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) 149 167 150 168 // Identification source observee dans le ciel … … 209 227 // Taille des paquets apres reduction eventuelle (donc ds memory manager) 210 228 inline uint_4 MMgrPaquetSize() { return param_->MMgrPaquetSize(); } 229 // Nombre de paquets dans chaque bloc de MMgr 230 inline uint_4 MMgrNbPaquet() { return param_->MMgrNbPaquet(); } 211 231 // Operation de conversion/mise en ordre des donnees a la reception 212 232 inline BRDataFmtConv GetDataConvFg() { return param_->GetDataConvFg(); }; … … 217 237 inline uint_4 BlocPerFile() { return param_->BlocPerFile(); } 218 238 // 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(); } 220 242 221 243 // Identification source ciel
Note:
See TracChangeset
for help on using the changeset viewer.