ipmi_cc.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistribution of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistribution in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. *
  15. * Neither the name of Sun Microsystems, Inc. or the names of
  16. * contributors may be used to endorse or promote products derived
  17. * from this software without specific prior written permission.
  18. *
  19. * This software is provided "AS IS," without a warranty of any kind.
  20. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
  21. * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
  22. * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
  23. * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
  24. * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
  25. * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
  26. * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
  27. * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
  28. * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
  29. * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
  30. * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  31. */
  32. #ifndef IPMI_CC_H
  33. #define IPMI_CC_H
  34. /*
  35. Thu Jan 11 09:32:41 2007
  36. francois.isabelle@ca.kontron.com
  37. I just noticed that most modules refer to IPMI completion codes using
  38. hard coded values ...
  39. */
  40. /*
  41. * CC
  42. * See IPMI specification table 5-2 Generic Completion Codes
  43. */
  44. #define IPMI_CC_OK 0x00
  45. #define IPMI_CC_NODE_BUSY 0xc0
  46. #define IPMI_CC_INV_CMD 0xc1
  47. #define IPMI_CC_INV_CMD_FOR_LUN 0xc2
  48. #define IPMI_CC_TIMEOUT 0xc3
  49. #define IPMI_CC_OUT_OF_SPACE 0xc4
  50. #define IPMI_CC_RES_CANCELED 0xc5
  51. #define IPMI_CC_REQ_DATA_TRUNC 0xc6
  52. #define IPMI_CC_REQ_DATA_INV_LENGTH 0xc7
  53. #define IPMI_CC_REQ_DATA_FIELD_EXCEED 0xc8
  54. #define IPMI_CC_PARAM_OUT_OF_RANGE 0xc9
  55. #define IPMI_CC_CANT_RET_NUM_REQ_BYTES 0xca
  56. #define IPMI_CC_REQ_DATA_NOT_PRESENT 0xcb
  57. #define IPMI_CC_INV_DATA_FIELD_IN_REQ 0xcc
  58. #define IPMI_CC_ILL_SENSOR_OR_RECORD 0xcd
  59. #define IPMI_CC_RESP_COULD_NOT_BE_PRV 0xce
  60. #define IPMI_CC_CANT_RESP_DUPLI_REQ 0xcf
  61. #define IPMI_CC_CANT_RESP_SDRR_UPDATE 0xd0
  62. #define IPMI_CC_CANT_RESP_FIRM_UPDATE 0xd1
  63. #define IPMI_CC_CANT_RESP_BMC_INIT 0xd2
  64. #define IPMI_CC_DESTINATION_UNAVAILABLE 0xd3
  65. #define IPMI_CC_INSUFFICIENT_PRIVILEGES 0xd4
  66. #define IPMI_CC_NOT_SUPPORTED_PRESENT_STATE 0xd5
  67. #define IPMI_CC_ILLEGAL_COMMAND_DISABLED 0xd6
  68. #define IPMI_CC_UNSPECIFIED_ERROR 0xff
  69. #endif /*IPMI_CC_H*/