-# Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
from Common.Misc import *\r
from StringIO import StringIO\r
from struct import pack\r
+from Common.DataType import *\r
\r
class VAR_CHECK_PCD_VARIABLE_TAB_CONTAINER(object):\r
def __init__(self):\r
self.ValidData = True\r
self.updateStorageWidth()\r
def updateStorageWidth(self):\r
- if self.PcdDataType == "UINT8" or self.PcdDataType == "BOOLEAN":\r
+ if self.PcdDataType == TAB_UINT8 or self.PcdDataType == "BOOLEAN":\r
self.StorageWidth = 1\r
- elif self.PcdDataType == "UINT16":\r
+ elif self.PcdDataType == TAB_UINT16:\r
self.StorageWidth = 2\r
- elif self.PcdDataType == "UINT32":\r
+ elif self.PcdDataType == TAB_UINT32:\r
self.StorageWidth = 4\r
- elif self.PcdDataType == "UINT64":\r
+ elif self.PcdDataType == TAB_UINT64:\r
self.StorageWidth = 8\r
else:\r
self.StorageWidth = 0\r