bfa_defs_tsensor.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_TSENSOR_H__
  18. #define __BFA_DEFS_TSENSOR_H__
  19. #include <bfa_os_inc.h>
  20. #include <defs/bfa_defs_types.h>
  21. /**
  22. * Temperature sensor status values
  23. */
  24. enum bfa_tsensor_status {
  25. BFA_TSENSOR_STATUS_UNKNOWN = 1, /* unknown status */
  26. BFA_TSENSOR_STATUS_FAULTY = 2, /* sensor is faulty */
  27. BFA_TSENSOR_STATUS_BELOW_MIN = 3, /* temperature below mininum */
  28. BFA_TSENSOR_STATUS_NOMINAL = 4, /* normal temperature */
  29. BFA_TSENSOR_STATUS_ABOVE_MAX = 5, /* temperature above maximum */
  30. };
  31. /**
  32. * Temperature sensor attribute
  33. */
  34. struct bfa_tsensor_attr_s {
  35. enum bfa_tsensor_status status; /* temperature sensor status */
  36. u32 value; /* current temperature in celsius */
  37. };
  38. #endif /* __BFA_DEFS_TSENSOR_H__ */