]>
Commit | Line | Data |
---|---|---|
7725ccfd JH |
1 | /* |
2 | * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. | |
3 | * All rights reserved | |
4 | * www.brocade.com | |
5 | * | |
6 | * Linux driver for Brocade Fibre Channel Host Bus Adapter. | |
7 | * | |
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 | |
11 | * | |
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. | |
16 | */ | |
17 | ||
18 | #ifndef __BFA_DEFS_TSENSOR_H__ | |
19 | #define __BFA_DEFS_TSENSOR_H__ | |
20 | ||
21 | #include <bfa_os_inc.h> | |
22 | #include <defs/bfa_defs_types.h> | |
23 | ||
24 | /** | |
25 | * Temperature sensor status values | |
26 | */ | |
27 | enum bfa_tsensor_status { | |
af901ca1 | 28 | BFA_TSENSOR_STATUS_UNKNOWN = 1, /* unknown status */ |
7725ccfd JH |
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 */ | |
33 | }; | |
34 | ||
35 | /** | |
36 | * Temperature sensor attribute | |
37 | */ | |
38 | struct bfa_tsensor_attr_s { | |
39 | enum bfa_tsensor_status status; /* temperature sensor status */ | |
40 | u32 value; /* current temperature in celsius */ | |
41 | }; | |
42 | ||
43 | #endif /* __BFA_DEFS_TSENSOR_H__ */ |