ipmi_ekanalyzer.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (c) 2007 Kontron Canada, Inc. All Rights Reserved.
  3. *
  4. * Base on code from
  5. * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. *
  11. * Redistribution of source code must retain the above copyright
  12. * notice, this list of conditions and the following disclaimer.
  13. *
  14. * Redistribution in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * Neither the name of Sun Microsystems, Inc. or the names of
  19. * contributors may be used to endorse or promote products derived
  20. * from this software without specific prior written permission.
  21. *
  22. * This software is provided "AS IS," without a warranty of any kind.
  23. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
  24. * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
  25. * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
  26. * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
  27. * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
  28. * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
  29. * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
  30. * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
  31. * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
  32. * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
  33. * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  34. */
  35. #ifndef IPMI_EKANALYZER_H
  36. #define IPMI_EKANALYZER_H
  37. #include <inttypes.h>
  38. #include <ipmitool/ipmi.h>
  39. #include <ipmitool/ipmi_fru.h>
  40. #define RTM_FRU_FILE 0x00
  41. #define A1_AMC_FRU_FILE 0x01
  42. #define A2_AMC_FRU_FILE 0x02
  43. #define A3_AMC_FRU_FILE 0x03
  44. #define A4_AMC_FRU_FILE 0x04
  45. #define B1_AMC_FRU_FILE 0x05
  46. #define B2_AMC_FRU_FILE 0x06
  47. #define B3_AMC_FRU_FILE 0x07
  48. #define B4_AMC_FRU_FILE 0x08
  49. #define ON_CARRIER_FRU_FILE 0x09
  50. #define CONFIG_FILE 0x0A
  51. #define SHELF_MANAGER_FRU_FILE 0x0B
  52. #define MIN_ARGUMENT 0x02
  53. #define RTM_IPMB_L 0x90
  54. #define MAX_FILE_NUMBER 8
  55. /* this voltag is specified in AMC.0 specification Table 3-10 */
  56. #define AMC_VOLTAGE 12 /*volts*/
  57. #define SIZE_OF_GUID 16
  58. #define FRU_RADIAL_IPMB0_LINK_MAPPING 0x15
  59. int ipmi_ekanalyzer_main(struct ipmi_intf *, int, char **);
  60. #endif /* IPMI_EKANALYZER_H */