tool/CommandCrc.cpp
branchstable-1.5
changeset 2672 b9cda70ec8b0
parent 2667 0d7936701e60
child 2674 3be68a020748
equal deleted inserted replaced
2671:5d7a83195c80 2672:b9cda70ec8b0
    65     return str.str();
    65     return str.str();
    66 }
    66 }
    67 
    67 
    68 /****************************************************************************/
    68 /****************************************************************************/
    69 
    69 
    70 #define NUM_PORTS (4)
       
    71 #define REG_SIZE  (20)
    70 #define REG_SIZE  (20)
    72 
    71 
    73 void CommandCrc::execute(const StringVector &args)
    72 void CommandCrc::execute(const StringVector &args)
    74 {
    73 {
    75     bool reset = false;
    74     bool reset = false;
   122         }
   121         }
   123         return;
   122         return;
   124     }
   123     }
   125 
   124 
   126     cout << "   |";
   125     cout << "   |";
   127     for (unsigned int port = 0; port < NUM_PORTS; port++) {
   126     for (unsigned int port = 0; port < EC_MAX_PORTS; port++) {
   128         cout << "Port " << port << "         |";
   127         cout << "Port " << port << "         |";
   129     }
   128     }
   130     cout << endl;
   129     cout << endl;
   131 
   130 
   132     cout << "   |";
   131     cout << "   |";
   133     for (unsigned int port = 0; port < NUM_PORTS; port++) {
   132     for (unsigned int port = 0; port < EC_MAX_PORTS; port++) {
   134         cout << "CRC PHY FWD LNK|";
   133         cout << "CRC PHY FWD LNK|";
   135     }
   134     }
   136     cout << endl;
   135     cout << endl;
   137 
   136 
   138     for (unsigned int i = 0; i < master.slave_count; i++) {
   137     for (unsigned int i = 0; i < master.slave_count; i++) {