Blame include/ipmitool/ipmi_ekanalyzer.h

Packit Service ed0f68
/*
Packit Service ed0f68
 * Copyright (c) 2007 Kontron Canada, Inc.  All Rights Reserved.
Packit Service ed0f68
 *
Packit Service ed0f68
 * Base on code from
Packit Service ed0f68
 * Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
Packit Service ed0f68
 *
Packit Service ed0f68
 * Redistribution and use in source and binary forms, with or without
Packit Service ed0f68
 * modification, are permitted provided that the following conditions
Packit Service ed0f68
 * are met:
Packit Service ed0f68
 *
Packit Service ed0f68
 * Redistribution of source code must retain the above copyright
Packit Service ed0f68
 * notice, this list of conditions and the following disclaimer.
Packit Service ed0f68
 *
Packit Service ed0f68
 * Redistribution in binary form must reproduce the above copyright
Packit Service ed0f68
 * notice, this list of conditions and the following disclaimer in the
Packit Service ed0f68
 * documentation and/or other materials provided with the distribution.
Packit Service ed0f68
 *
Packit Service ed0f68
 * Neither the name of Sun Microsystems, Inc. or the names of
Packit Service ed0f68
 * contributors may be used to endorse or promote products derived
Packit Service ed0f68
 * from this software without specific prior written permission.
Packit Service ed0f68
 *
Packit Service ed0f68
 * This software is provided "AS IS," without a warranty of any kind.
Packit Service ed0f68
 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
Packit Service ed0f68
 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
Packit Service ed0f68
 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
Packit Service ed0f68
 * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
Packit Service ed0f68
 * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
Packit Service ed0f68
 * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
Packit Service ed0f68
 * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
Packit Service ed0f68
 * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
Packit Service ed0f68
 * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
Packit Service ed0f68
 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
Packit Service ed0f68
 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Packit Service ed0f68
 */
Packit Service ed0f68
Packit Service ed0f68
#ifndef IPMI_EKANALYZER_H
Packit Service ed0f68
#define IPMI_EKANALYZER_H
Packit Service ed0f68
Packit Service ed0f68
#include <inttypes.h>
Packit Service ed0f68
#include <ipmitool/ipmi.h>
Packit Service ed0f68
#include <ipmitool/ipmi_fru.h>
Packit Service ed0f68
Packit Service ed0f68
#define RTM_FRU_FILE             0x00
Packit Service ed0f68
#define A1_AMC_FRU_FILE          0x01
Packit Service ed0f68
#define A2_AMC_FRU_FILE          0x02
Packit Service ed0f68
#define A3_AMC_FRU_FILE          0x03
Packit Service ed0f68
#define A4_AMC_FRU_FILE          0x04
Packit Service ed0f68
#define B1_AMC_FRU_FILE          0x05
Packit Service ed0f68
#define B2_AMC_FRU_FILE          0x06
Packit Service ed0f68
#define B3_AMC_FRU_FILE          0x07
Packit Service ed0f68
#define B4_AMC_FRU_FILE          0x08
Packit Service ed0f68
#define ON_CARRIER_FRU_FILE      0x09
Packit Service ed0f68
#define CONFIG_FILE              0x0A
Packit Service ed0f68
#define SHELF_MANAGER_FRU_FILE   0x0B
Packit Service ed0f68
Packit Service ed0f68
#define MIN_ARGUMENT             0x02
Packit Service ed0f68
#define RTM_IPMB_L               0x90
Packit Service ed0f68
Packit Service ed0f68
#define MAX_FILE_NUMBER          8
Packit Service ed0f68
/* this voltag is specified in AMC.0 specification Table 3-10 */
Packit Service ed0f68
#define AMC_VOLTAGE                  12 /*volts*/
Packit Service ed0f68
Packit Service ed0f68
#define SIZE_OF_GUID             16
Packit Service ed0f68
#define FRU_RADIAL_IPMB0_LINK_MAPPING 0x15
Packit Service ed0f68
Packit Service ed0f68
int ipmi_ekanalyzer_main(struct ipmi_intf *, int, char **);
Packit Service ed0f68
Packit Service ed0f68
#endif /* IPMI_EKANALYZER_H */