ipmi_sdradd.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Redistribution and use in source and binary forms, with or without
  3. * modification, are permitted provided that the following conditions
  4. * are met:
  5. *
  6. * Redistribution of source code must retain the above copyright
  7. * notice, this list of conditions and the following disclaimer.
  8. *
  9. * Redistribution in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * Neither the name of Sun Microsystems, Inc. or the names of
  14. * contributors may be used to endorse or promote products derived
  15. * from this software without specific prior written permission.
  16. *
  17. * This software is provided "AS IS," without a warranty of any kind.
  18. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
  19. * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
  20. * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
  21. * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
  22. * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
  23. * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
  24. * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
  25. * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
  26. * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
  27. * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
  28. * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  29. */
  30. #ifndef IPMI_SDRADD_H
  31. #define IPMI_SDRADD_H
  32. /*
  33. * Methods to add SDRs to repository from built-in sensors or files
  34. */
  35. int
  36. ipmi_sdr_add_from_sensors(struct ipmi_intf *intf, int maxslot);
  37. int
  38. ipmi_sdr_add_from_file(struct ipmi_intf *intf, const char *ifile);
  39. int
  40. ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList);
  41. #endif /* IPMI_SDRADD_H */