bfa_defs_pom.h 1.7 KB

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