2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #ifndef __BFA_DEFS_TSENSOR_H__
19 #define __BFA_DEFS_TSENSOR_H__
21 #include <bfa_os_inc.h>
22 #include <defs/bfa_defs_types.h>
25 * Temperature sensor status values
27 enum bfa_tsensor_status
{
28 BFA_TSENSOR_STATUS_UNKNOWN
= 1, /* unknown status */
29 BFA_TSENSOR_STATUS_FAULTY
= 2, /* sensor is faulty */
30 BFA_TSENSOR_STATUS_BELOW_MIN
= 3, /* temperature below mininum */
31 BFA_TSENSOR_STATUS_NOMINAL
= 4, /* normal temperature */
32 BFA_TSENSOR_STATUS_ABOVE_MAX
= 5, /* temperature above maximum */
36 * Temperature sensor attribute
38 struct bfa_tsensor_attr_s
{
39 enum bfa_tsensor_status status
; /* temperature sensor status */
40 u32 value
; /* current temperature in celsius */
43 #endif /* __BFA_DEFS_TSENSOR_H__ */