2024-06-12 07:32:49 +00:00
|
|
|
# constants declarated for all proyect
|
|
|
|
|
|
|
|
|
|
|
|
STR_XSM_SIZE = 16
|
|
|
|
STR_SM_SIZE = 32
|
|
|
|
STR_SIZE = 64
|
|
|
|
STR_BIG_SIZE = 128
|
2024-07-15 14:23:14 +00:00
|
|
|
STR_EXTEND_SIZE = 256
|
2024-07-18 15:21:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Algorithms for build hids
|
|
|
|
HID_ALGO1 = [
|
|
|
|
"manufacturer",
|
|
|
|
"model",
|
|
|
|
"chassis",
|
|
|
|
"serialNumber",
|
|
|
|
"sku"
|
|
|
|
]
|
|
|
|
|
2024-11-28 11:21:26 +00:00
|
|
|
LEGACY_DPP = [
|
|
|
|
"manufacturer",
|
|
|
|
"model",
|
|
|
|
"chassis",
|
|
|
|
"serialNumber",
|
|
|
|
"sku",
|
|
|
|
"type",
|
|
|
|
"version"
|
|
|
|
]
|
|
|
|
|
2024-07-18 15:21:22 +00:00
|
|
|
ALGOS = {
|
|
|
|
"hidalgo1": HID_ALGO1,
|
2024-11-28 11:21:26 +00:00
|
|
|
"legacy_dpp": LEGACY_DPP
|
2024-07-18 15:21:22 +00:00
|
|
|
}
|
2024-09-18 16:01:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
CHASSIS_DH = {
|
|
|
|
'Tower': {'desktop', 'low-profile', 'tower', 'server'},
|
|
|
|
'Docking': {'docking'},
|
|
|
|
'AllInOne': {'all-in-one'},
|
|
|
|
'Microtower': {'mini-tower', 'space-saving', 'mini'},
|
|
|
|
'PizzaBox': {'pizzabox'},
|
|
|
|
'Lunchbox': {'lunchbox'},
|
|
|
|
'Stick': {'stick'},
|
|
|
|
'Netbook': {'notebook', 'sub-notebook'},
|
|
|
|
'Handheld': {'handheld'},
|
|
|
|
'Laptop': {'portable', 'laptop'},
|
|
|
|
'Convertible': {'convertible'},
|
|
|
|
'Detachable': {'detachable'},
|
|
|
|
'Tablet': {'tablet'},
|
|
|
|
'Virtual': {'_virtual'},
|
|
|
|
}
|
2024-09-25 10:51:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
DATASTORAGEINTERFACE = [
|
|
|
|
'ATA',
|
|
|
|
'USB',
|
|
|
|
'PCI',
|
|
|
|
'NVME',
|
|
|
|
]
|