rdc_field_t replaces uint32_t; centralize field data

Make the RDC use the new rdc_field_t enum instead of uint32_t.
This will help prevent invalid field types from being passed in.

Also, centralize where data related to fields is kept. This will
reduce the number of places where changes are required each
time a new field is added.

Finally, cleaned up several cpplint issues.

Change-Id: I48e4512e18c164411d8b09ae3d4bed99fba359ec
Esse commit está contido em:
Chris Freehill
2020-07-24 19:40:48 -05:00
commit 5950ebadc4
43 arquivos alterados com 459 adições e 388 exclusões
+3 -3
Ver Arquivo
@@ -19,8 +19,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef RDC_LIB_RDCWATCHTABLE_H_
#define RDC_LIB_RDCWATCHTABLE_H_
#ifndef INCLUDE_RDC_LIB_RDCWATCHTABLE_H_
#define INCLUDE_RDC_LIB_RDCWATCHTABLE_H_
#include <memory>
#include <vector>
@@ -57,4 +57,4 @@ typedef std::shared_ptr<RdcWatchTable> RdcWatchTablePtr;
} // namespace rdc
} // namespace amd
#endif // RDC_LIB_RDCWATCHTABLE_H_
#endif // INCLUDE_RDC_LIB_RDCWATCHTABLE_H_