|
Packit |
ac2ffc |
/*
|
|
Packit |
ac2ffc |
* Copyright (c) 2018 Quanta Computer Inc. All rights reserved.
|
|
Packit |
ac2ffc |
*
|
|
Packit |
ac2ffc |
* Redistribution and use in source and binary forms, with or without
|
|
Packit |
ac2ffc |
* modification, are permitted provided that the following conditions
|
|
Packit |
ac2ffc |
* are met:
|
|
Packit |
ac2ffc |
*
|
|
Packit |
ac2ffc |
* Redistribution of source code must retain the above copyright
|
|
Packit |
ac2ffc |
* notice, this list of conditions and the following disclaimer.
|
|
Packit |
ac2ffc |
*
|
|
Packit |
ac2ffc |
* Redistribution in binary form must reproduce the above copyright
|
|
Packit |
ac2ffc |
* notice, this list of conditions and the following disclaimer in the
|
|
Packit |
ac2ffc |
* documentation and/or other materials provided with the distribution.
|
|
Packit |
ac2ffc |
*
|
|
Packit |
ac2ffc |
* Neither the name of Quanta Computer Inc. or the names of
|
|
Packit |
ac2ffc |
* contributors may be used to endorse or promote products derived
|
|
Packit |
ac2ffc |
* from this software without specific prior written permission.
|
|
Packit |
ac2ffc |
*
|
|
Packit |
ac2ffc |
* This software is provided "AS IS," without a warranty of any kind.
|
|
Packit |
ac2ffc |
* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
|
|
Packit |
ac2ffc |
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
|
|
Packit |
ac2ffc |
* PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
|
|
Packit |
ac2ffc |
* Quanta Computer Inc. AND ITS LICENSORS SHALL NOT BE LIABLE
|
|
Packit |
ac2ffc |
* FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
|
Packit |
ac2ffc |
* OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
|
|
Packit |
ac2ffc |
* Quanta Computer Inc. OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
|
|
Packit |
ac2ffc |
* OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
|
|
Packit |
ac2ffc |
* PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
|
|
Packit |
ac2ffc |
* LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
|
|
Packit |
ac2ffc |
* EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
Packit |
ac2ffc |
*/
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
#ifndef IPMI_QUANTAOEM_H
|
|
Packit |
ac2ffc |
#define IPMI_QUANTAOEM_H
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
#if HAVE_CONFIG_H
|
|
Packit |
ac2ffc |
# include <config.h>
|
|
Packit |
ac2ffc |
#endif
|
|
Packit |
ac2ffc |
#include <ipmitool/ipmi.h>
|
|
Packit |
ac2ffc |
#include <ipmitool/ipmi_sdr.h>
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
#define OEM_QCT_NETFN 0x36
|
|
Packit |
ac2ffc |
#define OEM_QCT_GET_INFO 0x65
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
typedef enum
|
|
Packit |
ac2ffc |
{
|
|
Packit |
ac2ffc |
OEM_QCT_PLATFORM_UNKNOWN = 0,
|
|
Packit |
ac2ffc |
OEM_QCT_PLATFORM_GRANTLEY,
|
|
Packit |
ac2ffc |
OEM_QCT_PLATFORM_PURLEY
|
|
Packit |
ac2ffc |
} qct_platform_t;
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
qct_platform_t oem_qct_get_platform_id(struct ipmi_intf *intf);
|
|
Packit |
ac2ffc |
char *oem_qct_get_evt_desc(struct ipmi_intf *intf, struct sel_event_record *rec);
|
|
Packit |
ac2ffc |
|
|
Packit |
ac2ffc |
#endif /*IPMI_QUANTAOEM_H*/
|