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.
17 #ifndef __BFA_DEFS_POM_H__
18 #define __BFA_DEFS_POM_H__
20 #include <bfa_os_inc.h>
21 #include <defs/bfa_defs_types.h>
24 * POM health status levels for each attributes.
26 enum bfa_pom_entry_health
{
27 BFA_POM_HEALTH_NOINFO
= 1, /* no information */
28 BFA_POM_HEALTH_NORMAL
= 2, /* health is normal */
29 BFA_POM_HEALTH_WARNING
= 3, /* warning level */
30 BFA_POM_HEALTH_ALARM
= 4, /* alarming level */
34 * Reading of temperature/voltage/current/power
36 struct bfa_pom_entry_s
{
37 enum bfa_pom_entry_health health
; /* POM entry health */
38 u32 curr_value
; /* current value */
39 u32 thr_warn_high
; /* threshold warning high */
40 u32 thr_warn_low
; /* threshold warning low */
41 u32 thr_alarm_low
; /* threshold alaram low */
42 u32 thr_alarm_high
; /* threshold alarm high */
48 struct bfa_pom_attr_s
{
49 struct bfa_pom_entry_s temperature
; /* centigrade */
50 struct bfa_pom_entry_s voltage
; /* volts */
51 struct bfa_pom_entry_s curr
; /* milli amps */
52 struct bfa_pom_entry_s txpower
; /* micro watts */
53 struct bfa_pom_entry_s rxpower
; /* micro watts */
56 #endif /* __BFA_DEFS_POM_H__ */