Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison src/Application/SimParams.h @ 2:d872169e58fa
Minor changes -- mostly renaming structs and vars
| author | Me@portablequad |
|---|---|
| date | Wed, 30 Nov 2011 08:40:30 -0800 |
| parents | 8ea476474093 |
| children | 648207f2e38f |
comparison
equal
deleted
inserted
replaced
| 0:749bd53b527f | 1:458688fdb784 |
|---|---|
| 1 /* | 1 /* |
| 2 | 2 * Copyright 2011 OpenSourceStewardshipFoundation.org |
| 3 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org | |
| 4 | |
| 5 * Licensed under GNU General Public License version 2 | 3 * Licensed under GNU General Public License version 2 |
| 6 | |
| 7 */ | 4 */ |
| 8 | 5 |
| 9 | 6 #ifndef SIM_PARAMS_ |
| 10 | 7 #define SIM_PARAMS_ |
| 11 #ifndef MATRIX_MULT_H_ | |
| 12 | |
| 13 #define MATRIX_MULT_H_ | |
| 14 | |
| 15 | |
| 16 | 8 |
| 17 #include <stdio.h> | 9 #include <stdio.h> |
| 18 | |
| 19 #include <unistd.h> | 10 #include <unistd.h> |
| 20 | |
| 21 #include <malloc.h> | 11 #include <malloc.h> |
| 22 | 12 |
| 23 | |
| 24 | |
| 25 #include "../HWSim_lib/VMS/VMS_primitive_data_types.h" | 13 #include "../HWSim_lib/VMS/VMS_primitive_data_types.h" |
| 26 | |
| 27 #include "ParamHelper/Param.h" | 14 #include "ParamHelper/Param.h" |
| 28 | 15 |
| 29 | 16 |
| 30 | |
| 31 //============================== Structures ============================== | 17 //============================== Structures ============================== |
| 32 | 18 typedef struct |
| 33 | |
| 34 | |
| 35 typedef | |
| 36 | |
| 37 struct | |
| 38 | |
| 39 { uint8 *guestApp; | 19 { uint8 *guestApp; |
| 40 | |
| 41 uint8 *systemCode; | 20 uint8 *systemCode; |
| 42 | |
| 43 int32 numNodes; | 21 int32 numNodes; |
| 44 | |
| 45 } | 22 } |
| 46 | |
| 47 SimulationResults; | 23 SimulationResults; |
| 48 | 24 |
| 49 | 25 typedef struct |
| 50 | |
| 51 | |
| 52 | |
| 53 typedef | |
| 54 | |
| 55 struct | |
| 56 | |
| 57 { uint8 *guestApp; | 26 { uint8 *guestApp; |
| 58 | |
| 59 uint8 *systemCode; | 27 uint8 *systemCode; |
| 60 | |
| 61 int32 numNodes; | 28 int32 numNodes; |
| 62 | |
| 63 SimulationResults *simResults; | 29 SimulationResults *simResults; |
| 64 | |
| 65 } | 30 } |
| 66 | |
| 67 SimulationParams; | 31 SimulationParams; |
| 68 | 32 |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 //============================== Functions ================================ | 33 //============================== Functions ================================ |
| 76 | 34 void |
| 77 | 35 printSimResults( SimulationResults simResults ); |
| 78 | 36 |
| 79 void | 37 void |
| 80 | |
| 81 printSimResults( SimulationResults simResults ); | |
| 82 | |
| 83 | |
| 84 | |
| 85 void | |
| 86 | |
| 87 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); | 38 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); |
| 88 | |
| 89 | 39 |
| 90 | 40 |
| 91 //=========================================================================== | 41 //=========================================================================== |
| 92 | 42 |
| 43 #endif /**/ | |
| 93 | 44 |
| 94 | |
| 95 #endif /*MATRIX_MULT_H_*/ | |
| 96 |
