1#!/usr/bin/env python2
2# Copyright 2020 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Hardware states
7HW_STATE_NORMAL = 'NORMAL'
8HW_STATE_ACCEPTABLE = 'ACCEPTABLE'
9HW_STATE_NEED_REPLACEMENT = 'NEED_REPLACEMENT'
10HW_STATE_NOT_DETECTED = 'NOT_DETECTED'
11HW_STATE_UNKNOWN = 'UNKNOWN'
12
13# Labels for hardware parts
14DUT_STORAGE_STATE_PREFIX = 'storage_state'
15SERVO_USB_STATE_PREFIX = 'servo_usb_state'
16
17# RPM states
18RPM_STATE_LABEL_PREFIX = 'rpm_state'
19RPM_STATE_UNKNOWN = 'UNKNOWN'
20# Config not provided
21RPM_STATE_MISSING_CONFIG = 'MISSING_CONFIG'
22# Config is incorrect or not working
23RPM_STATE_WRONG_CONFIG = 'WRONG_CONFIG'
24# Config present and working as expected
25RPM_STATE_WORKING = 'WORKING'
26RPM_STATES_SUPPORTED = (
27        RPM_STATE_UNKNOWN,
28        RPM_STATE_MISSING_CONFIG,
29        RPM_STATE_WRONG_CONFIG,
30        RPM_STATE_WORKING,
31)
32