mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Change: System name QMB700 -> MQM8700
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-qmb700
|
||||
!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-mqm8700
|
||||
@@ -1 +1 @@
|
||||
!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-mlnx-qmb700 ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu
|
||||
!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-mlnx-mqm8700 ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu
|
||||
@@ -23,15 +23,15 @@
|
||||
############################################################
|
||||
include $(ONL)/make/config.amd64.mk
|
||||
|
||||
MODULE := libonlp-x86-64-mlnx-qmb700
|
||||
MODULE := libonlp-x86-64-mlnx-mqm8700
|
||||
include $(BUILDER)/standardinit.mk
|
||||
|
||||
DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_qmb700 onlplib
|
||||
DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_mqm8700 onlplib
|
||||
DEPENDMODULE_HEADERS := sff
|
||||
|
||||
include $(BUILDER)/dependmodules.mk
|
||||
|
||||
SHAREDLIB := libonlp-x86-64-mlnx-qmb700.so
|
||||
SHAREDLIB := libonlp-x86-64-mlnx-mqm8700.so
|
||||
$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
|
||||
include $(BUILDER)/so.mk
|
||||
.DEFAULT_GOAL := $(SHAREDLIB)
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inclusive Makefile for the libonlp-x86-64-mlnx-qmb700-r0 module.
|
||||
# Inclusive Makefile for the libonlp-x86-64-mlnx-mqm8700-r0 module.
|
||||
#
|
||||
# Autogenerated 2015-12-23 23:45:22.249911
|
||||
#
|
||||
###############################################################################
|
||||
libonlp-x86-64-mlnx-qmb700-r0_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
libonlp-x86-64-mlnx-mqm8700-r0_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inclusive Makefile for the libonlp-x86-64-mlnx-qmb700 module.
|
||||
# Inclusive Makefile for the libonlp-x86-64-mlnx-mqm8700 module.
|
||||
#
|
||||
# Autogenerated 2016-10-13 22:58:39.095824
|
||||
#
|
||||
###############################################################################
|
||||
libonlp-x86-64-mlnx-qmb700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
libonlp-x86-64-mlnx-mqm8700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inclusive Makefile for the x86_64_mlnx_qmb700 module.
|
||||
# Inclusive Makefile for the x86_64_mlnx_mqm8700 module.
|
||||
#
|
||||
# Autogenerated 2015-12-23 23:45:22.262891
|
||||
#
|
||||
###############################################################################
|
||||
x86_64_mlnx_qmb700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
x86_64_mlnx_mqm8700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
@@ -29,7 +29,7 @@ include $(ONL)/make/config.amd64.mk
|
||||
MODULE := onlpdump
|
||||
include $(BUILDER)/standardinit.mk
|
||||
|
||||
DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_qmb700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
|
||||
DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_mqm8700 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
|
||||
|
||||
include $(BUILDER)/dependmodules.mk
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
name: x86_64_mlnx_mqm8700
|
||||
@@ -4,6 +4,6 @@
|
||||
#
|
||||
###############################################################################
|
||||
include ../../init.mk
|
||||
MODULE := x86_64_mlnx_qmb700
|
||||
AUTOMODULE := x86_64_mlnx_qmb700
|
||||
MODULE := x86_64_mlnx_mqm8700
|
||||
AUTOMODULE := x86_64_mlnx_mqm8700
|
||||
include $(BUILDER)/definemodule.mk
|
||||
@@ -1,6 +1,6 @@
|
||||
###############################################################################
|
||||
#
|
||||
# x86_64_mlnx_qmb700 README
|
||||
# x86_64_mlnx_mqm8700 README
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
###############################################################################
|
||||
#
|
||||
# x86_64_mlnx_qmb700 Autogeneration
|
||||
# x86_64_mlnx_mqm8700 Autogeneration
|
||||
#
|
||||
###############################################################################
|
||||
x86_64_mlnx_qmb700_AUTO_DEFS := module/auto/x86_64_mlnx_qmb700.yml
|
||||
x86_64_mlnx_qmb700_AUTO_DIRS := module/inc/x86_64_mlnx_qmb700 module/src
|
||||
x86_64_mlnx_mqm8700_AUTO_DEFS := module/auto/x86_64_mlnx_mqm8700.yml
|
||||
x86_64_mlnx_mqm8700_AUTO_DIRS := module/inc/x86_64_mlnx_mqm8700 module/src
|
||||
include $(BUILDER)/auto.mk
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
###############################################################################
|
||||
#
|
||||
# x86_64_mlnx_qmb700 Autogeneration Definitions.
|
||||
# x86_64_mlnx_mqm8700 Autogeneration Definitions.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
cdefs: &cdefs
|
||||
- X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING:
|
||||
doc: "Include or exclude logging."
|
||||
default: 1
|
||||
- X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT:
|
||||
doc: "Default enabled log options."
|
||||
default: AIM_LOG_OPTIONS_DEFAULT
|
||||
- X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT:
|
||||
doc: "Default enabled log bits."
|
||||
default: AIM_LOG_BITS_DEFAULT
|
||||
- X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT:
|
||||
doc: "Default enabled custom log bits."
|
||||
default: 0
|
||||
- X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB:
|
||||
doc: "Default all porting macros to use the C standard libraries."
|
||||
default: 1
|
||||
- X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS:
|
||||
doc: "Include standard library headers for stdlib porting macros."
|
||||
default: x86_64_mlnx_qmb700_CONFIG_PORTING_STDLIB
|
||||
- X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI:
|
||||
default: x86_64_mlnx_mqm8700_CONFIG_PORTING_STDLIB
|
||||
- X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI:
|
||||
doc: "Include generic uCli support."
|
||||
default: 0
|
||||
- X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION:
|
||||
- X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION:
|
||||
doc: "Assume chassis fan direction is the same as the PSU fan direction."
|
||||
default: 0
|
||||
|
||||
|
||||
definitions:
|
||||
cdefs:
|
||||
X86_64_MLNX_QMB700_CONFIG_HEADER:
|
||||
X86_64_MLNX_MQM8700_CONFIG_HEADER:
|
||||
defs: *cdefs
|
||||
basename: x86_64_mlnx_qmb700_config
|
||||
basename: x86_64_mlnx_mqm8700_config
|
||||
|
||||
portingmacro:
|
||||
x86_64_mlnx_qmb700:
|
||||
x86_64_mlnx_mqm8700:
|
||||
macros:
|
||||
- malloc
|
||||
- free
|
||||
@@ -3,7 +3,7 @@
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
/* <--auto.start.xmacro(ALL).define> */
|
||||
/* <auto.end.xmacro(ALL).define> */
|
||||
@@ -0,0 +1,137 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* @file
|
||||
* @brief x86_64_mlnx_mqm8700 Configuration Header
|
||||
*
|
||||
* @addtogroup x86_64_mlnx_mqm8700-config
|
||||
* @{
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_MQM8700_CONFIG_H__
|
||||
#define __X86_64_MLNX_MQM8700_CONFIG_H__
|
||||
|
||||
#ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG
|
||||
#include <global_custom_config.h>
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_INCLUDE_CUSTOM_CONFIG
|
||||
#include <x86_64_mlnx_mqm8700_custom_config.h>
|
||||
#endif
|
||||
|
||||
/* <auto.start.cdefs(X86_64_MLNX_MQM8700_CONFIG_HEADER).header> */
|
||||
#include <AIM/aim.h>
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING
|
||||
*
|
||||
* Include or exclude logging. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
*
|
||||
* Default enabled log options. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT
|
||||
*
|
||||
* Default enabled log bits. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
*
|
||||
* Default enabled custom log bits. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB
|
||||
*
|
||||
* Default all porting macros to use the C standard libraries. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
*
|
||||
* Include standard library headers for stdlib porting macros. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI
|
||||
*
|
||||
* Include generic uCli support. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
*
|
||||
* Assume chassis fan direction is the same as the PSU fan direction. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
#define X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* All compile time options can be queried or displayed
|
||||
*/
|
||||
|
||||
/** Configuration settings structure. */
|
||||
typedef struct x86_64_mlnx_mqm8700_config_settings_s {
|
||||
/** name */
|
||||
const char* name;
|
||||
/** value */
|
||||
const char* value;
|
||||
} x86_64_mlnx_mqm8700_config_settings_t;
|
||||
|
||||
/** Configuration settings table. */
|
||||
/** x86_64_mlnx_mqm8700_config_settings table. */
|
||||
extern x86_64_mlnx_mqm8700_config_settings_t x86_64_mlnx_mqm8700_config_settings[];
|
||||
|
||||
/**
|
||||
* @brief Lookup a configuration setting.
|
||||
* @param setting The name of the configuration option to lookup.
|
||||
*/
|
||||
const char* x86_64_mlnx_mqm8700_config_lookup(const char* setting);
|
||||
|
||||
/**
|
||||
* @brief Show the compile-time configuration.
|
||||
* @param pvs The output stream.
|
||||
*/
|
||||
int x86_64_mlnx_mqm8700_config_show(struct aim_pvs_s* pvs);
|
||||
|
||||
/* <auto.end.cdefs(X86_64_MLNX_MQM8700_CONFIG_HEADER).header> */
|
||||
|
||||
#include "x86_64_mlnx_mqm8700_porting.h"
|
||||
|
||||
#endif /* __X86_64_MLNX_MQM8700_CONFIG_H__ */
|
||||
/* @} */
|
||||
@@ -0,0 +1,26 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* x86_64_mlnx_mqm8700 Doxygen Header
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_MQM8700_DOX_H__
|
||||
#define __X86_64_MLNX_MQM8700_DOX_H__
|
||||
|
||||
/**
|
||||
* @defgroup x86_64_mlnx_mqm8700 x86_64_mlnx_mqm8700 - x86_64_mlnx_mqm8700 Description
|
||||
*
|
||||
|
||||
The documentation overview for this module should go here.
|
||||
|
||||
*
|
||||
* @{
|
||||
*
|
||||
* @defgroup x86_64_mlnx_mqm8700-x86_64_mlnx_mqm8700 Public Interface
|
||||
* @defgroup x86_64_mlnx_mqm8700-config Compile Time Configuration
|
||||
* @defgroup x86_64_mlnx_mqm8700-porting Porting Macros
|
||||
*
|
||||
* @}
|
||||
*
|
||||
*/
|
||||
|
||||
#endif /* __X86_64_MLNX_MQM8700_DOX_H__ */
|
||||
@@ -0,0 +1,107 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* @file
|
||||
* @brief x86_64_mlnx_mqm8700 Porting Macros.
|
||||
*
|
||||
* @addtogroup x86_64_mlnx_mqm8700-porting
|
||||
* @{
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_MQM8700_PORTING_H__
|
||||
#define __X86_64_MLNX_MQM8700_PORTING_H__
|
||||
|
||||
|
||||
/* <auto.start.portingmacro(ALL).define> */
|
||||
#if X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <memory.h>
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_MALLOC
|
||||
#if defined(GLOBAL_MALLOC)
|
||||
#define X86_64_MLNX_MQM8700_MALLOC GLOBAL_MALLOC
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_MALLOC malloc
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_MALLOC is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_FREE
|
||||
#if defined(GLOBAL_FREE)
|
||||
#define X86_64_MLNX_MQM8700_FREE GLOBAL_FREE
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_FREE free
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_FREE is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_MEMSET
|
||||
#if defined(GLOBAL_MEMSET)
|
||||
#define X86_64_MLNX_MQM8700_MEMSET GLOBAL_MEMSET
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_MEMSET memset
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_MEMSET is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_MEMCPY
|
||||
#if defined(GLOBAL_MEMCPY)
|
||||
#define X86_64_MLNX_MQM8700_MEMCPY GLOBAL_MEMCPY
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_MEMCPY memcpy
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_MEMCPY is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_STRNCPY
|
||||
#if defined(GLOBAL_STRNCPY)
|
||||
#define X86_64_MLNX_MQM8700_STRNCPY GLOBAL_STRNCPY
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_STRNCPY strncpy
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_STRNCPY is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_VSNPRINTF
|
||||
#if defined(GLOBAL_VSNPRINTF)
|
||||
#define X86_64_MLNX_MQM8700_VSNPRINTF GLOBAL_VSNPRINTF
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_VSNPRINTF vsnprintf
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_VSNPRINTF is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_SNPRINTF
|
||||
#if defined(GLOBAL_SNPRINTF)
|
||||
#define X86_64_MLNX_MQM8700_SNPRINTF GLOBAL_SNPRINTF
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_SNPRINTF snprintf
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_SNPRINTF is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_MQM8700_STRLEN
|
||||
#if defined(GLOBAL_STRLEN)
|
||||
#define X86_64_MLNX_MQM8700_STRLEN GLOBAL_STRLEN
|
||||
#elif X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_MQM8700_STRLEN strlen
|
||||
#else
|
||||
#error The macro X86_64_MLNX_MQM8700_STRLEN is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* <auto.end.portingmacro(ALL).define> */
|
||||
|
||||
|
||||
#endif /* __X86_64_MLNX_MQM8700_PORTING_H__ */
|
||||
/* @} */
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
###############################################################################
|
||||
THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
x86_64_mlnx_qmb700_INCLUDES := -I $(THIS_DIR)inc
|
||||
x86_64_mlnx_qmb700_INTERNAL_INCLUDES := -I $(THIS_DIR)src
|
||||
x86_64_mlnx_qmb700_DEPENDMODULE_ENTRIES := init:x86_64_mlnx_qmb700 ucli:x86_64_mlnx_qmb700
|
||||
x86_64_mlnx_mqm8700_INCLUDES := -I $(THIS_DIR)inc
|
||||
x86_64_mlnx_mqm8700_INTERNAL_INCLUDES := -I $(THIS_DIR)src
|
||||
x86_64_mlnx_mqm8700_DEPENDMODULE_ENTRIES := init:x86_64_mlnx_mqm8700 ucli:x86_64_mlnx_mqm8700
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
###############################################################################
|
||||
|
||||
ucli:
|
||||
@../../../../tools/uclihandlers.py x86_64_mlnx_qmb700_ucli.c
|
||||
@../../../../tools/uclihandlers.py x86_64_mlnx_mqm8700_ucli.c
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
LIBRARY := x86_64_mlnx_qmb700
|
||||
LIBRARY := x86_64_mlnx_mqm8700
|
||||
$(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
include $(BUILDER)/lib.mk
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef __PLATFORM_LIB_H__
|
||||
#define __PLATFORM_LIB_H__
|
||||
|
||||
#include "x86_64_mlnx_qmb700_log.h"
|
||||
#include "x86_64_mlnx_mqm8700_log.h"
|
||||
|
||||
#define CHASSIS_PSU_COUNT 2
|
||||
#define CHASSIS_TOTAL_FAN_COUNT 14
|
||||
@@ -34,10 +34,10 @@
|
||||
#include <onlp/platformi/thermali.h>
|
||||
#include "platform_lib.h"
|
||||
#include <mlnx_common/mlnx_common.h>
|
||||
#include "x86_64_mlnx_qmb700_int.h"
|
||||
#include "x86_64_mlnx_qmb700_log.h"
|
||||
#include "x86_64_mlnx_mqm8700_int.h"
|
||||
#include "x86_64_mlnx_mqm8700_log.h"
|
||||
|
||||
#define ONL_PLATFORM_NAME "x86-64-mlnx-qmb700-r0"
|
||||
#define ONL_PLATFORM_NAME "x86-64-mlnx-mqm8700-r0"
|
||||
|
||||
int mc_get_platform_info(mlnx_platform_info_t* mlnx_platform)
|
||||
{
|
||||
@@ -0,0 +1,81 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
/* <auto.start.cdefs(X86_64_MLNX_MQM8700_CONFIG_HEADER).source> */
|
||||
#define __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(_x) #_x
|
||||
#define __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(_x)
|
||||
x86_64_mlnx_mqm8700_config_settings_t x86_64_mlnx_mqm8700_config_settings[] =
|
||||
{
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
{ __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) },
|
||||
#else
|
||||
{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
{ NULL, NULL }
|
||||
};
|
||||
#undef __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE
|
||||
#undef __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME
|
||||
|
||||
const char*
|
||||
x86_64_mlnx_mqm8700_config_lookup(const char* setting)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; x86_64_mlnx_mqm8700_config_settings[i].name; i++) {
|
||||
if(strcmp(x86_64_mlnx_mqm8700_config_settings[i].name, setting)) {
|
||||
return x86_64_mlnx_mqm8700_config_settings[i].value;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
x86_64_mlnx_mqm8700_config_show(struct aim_pvs_s* pvs)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; x86_64_mlnx_mqm8700_config_settings[i].name; i++) {
|
||||
aim_printf(pvs, "%s = %s\n", x86_64_mlnx_mqm8700_config_settings[i].name, x86_64_mlnx_mqm8700_config_settings[i].value);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/* <auto.end.cdefs(x86_64_mlnx_mqm8700_CONFIG_HEADER).source> */
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
/* <--auto.start.enum(ALL).source> */
|
||||
/* <auto.end.enum(ALL).source> */
|
||||
@@ -0,0 +1,12 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* x86_64_mlnx_mqm8700 Internal Header
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_MQM8700_INT_H__
|
||||
#define __X86_64_MLNX_MQM8700_INT_H__
|
||||
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
|
||||
#endif /* __X86_64_MLNX_MQM8700_INT_H__ */
|
||||
@@ -0,0 +1,18 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
#include "x86_64_mlnx_mqm8700_log.h"
|
||||
/*
|
||||
* x86_64_mlnx_mqm8700 log struct.
|
||||
*/
|
||||
AIM_LOG_STRUCT_DEFINE(
|
||||
X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT,
|
||||
X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT,
|
||||
NULL, /* Custom log map */
|
||||
X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
);
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_QMB700_LOG_H__
|
||||
#define __X86_64_MLNX_QMB700_LOG_H__
|
||||
#ifndef __X86_64_MLNX_MQM8700_LOG_H__
|
||||
#define __X86_64_MLNX_MQM8700_LOG_H__
|
||||
|
||||
#define AIM_LOG_MODULE_NAME x86_64_mlnx_qmb700
|
||||
#define AIM_LOG_MODULE_NAME x86_64_mlnx_mqm8700
|
||||
#include <AIM/aim_log.h>
|
||||
|
||||
#endif /* __X86_64_MLNX_QMB700_LOG_H__ */
|
||||
#endif /* __X86_64_MLNX_MQM8700_LOG_H__ */
|
||||
@@ -0,0 +1,24 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
#include "x86_64_mlnx_mqm8700_log.h"
|
||||
|
||||
static int
|
||||
datatypes_init__(void)
|
||||
{
|
||||
#define x86_64_mlnx_mqm8700_ENUMERATION_ENTRY(_enum_name, _desc) AIM_DATATYPE_MAP_REGISTER(_enum_name, _enum_name##_map, _desc, AIM_LOG_INTERNAL);
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700.x>
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __x86_64_mlnx_mqm8700_module_init__(void)
|
||||
{
|
||||
AIM_LOG_STRUCT_REGISTER();
|
||||
datatypes_init__();
|
||||
}
|
||||
|
||||
int __onlp_platform_version__ = 1;
|
||||
@@ -0,0 +1,50 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h>
|
||||
|
||||
#if x86_64_mlnx_mqm8700_CONFIG_INCLUDE_UCLI == 1
|
||||
|
||||
#include <uCli/ucli.h>
|
||||
#include <uCli/ucli_argparse.h>
|
||||
#include <uCli/ucli_handler_macros.h>
|
||||
|
||||
static ucli_status_t
|
||||
x86_64_mlnx_mqm8700_ucli_ucli__config__(ucli_context_t* uc)
|
||||
{
|
||||
UCLI_HANDLER_MACRO_MODULE_CONFIG(x86_64_mlnx_mqm8700)
|
||||
}
|
||||
|
||||
/* <auto.ucli.handlers.start> */
|
||||
/* <auto.ucli.handlers.end> */
|
||||
|
||||
static ucli_module_t
|
||||
x86_64_mlnx_mqm8700_ucli_module__ =
|
||||
{
|
||||
"x86_64_mlnx_mqm8700_ucli",
|
||||
NULL,
|
||||
x86_64_mlnx_mqm8700_ucli_ucli_handlers__,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
ucli_node_t*
|
||||
x86_64_mlnx_mqm8700_ucli_node_create(void)
|
||||
{
|
||||
ucli_node_t* n;
|
||||
ucli_module_init(&x86_64_mlnx_mqm8700_ucli_module__);
|
||||
n = ucli_node_create("x86_64_mlnx_mqm8700", NULL, &x86_64_mlnx_mqm8700_ucli_module__);
|
||||
ucli_node_subnode_add(n, ucli_module_log_node_create("x86_64_mlnx_mqm8700"));
|
||||
return n;
|
||||
}
|
||||
|
||||
#else
|
||||
void*
|
||||
x86_64_mlnx_mqm8700_ucli_node_create(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inclusive Makefile for the x86_64_mlnx_mqm8700 module.
|
||||
#
|
||||
# Autogenerated 2015-12-23 23:45:56.754200
|
||||
#
|
||||
###############################################################################
|
||||
x86_64_mlnx_mqm8700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
include $(x86_64_mlnx_mqm8700_BASEDIR)/module/make.mk
|
||||
include $(x86_64_mlnx_mqm8700_BASEDIR)/module/auto/make.mk
|
||||
include $(x86_64_mlnx_mqm8700_BASEDIR)/module/src/make.mk
|
||||
|
||||
@@ -1 +1 @@
|
||||
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-qmb700 REVISION=r0
|
||||
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-mqm8700 REVISION=r0
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# platform-config for Mellanox qmb700
|
||||
# platform-config for Mellanox mqm8700
|
||||
#
|
||||
######################################################################
|
||||
|
||||
x86-64-mlnx-qmb700-r0:
|
||||
x86-64-mlnx-mqm8700-r0:
|
||||
|
||||
grub:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.mellanox import *
|
||||
|
||||
class OnlPlatform_x86_64_mlnx_qmb700_r0(OnlPlatformMellanox,
|
||||
class OnlPlatform_x86_64_mlnx_mqm8700_r0(OnlPlatformMellanox,
|
||||
OnlPlatformPortConfig_32x100):
|
||||
PLATFORM='x86-64-mlnx-qmb700-r0'
|
||||
MODEL="QMB700"
|
||||
PLATFORM='x86-64-mlnx-mqm8700-r0'
|
||||
MODEL="MQM8700"
|
||||
SYS_OBJECT_ID=".700.1"
|
||||
|
||||
def baseconfig(self):
|
||||
@@ -1 +0,0 @@
|
||||
name: x86_64_mlnx_qmb700
|
||||
@@ -1,137 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* @file
|
||||
* @brief x86_64_mlnx_qmb700 Configuration Header
|
||||
*
|
||||
* @addtogroup x86_64_mlnx_qmb700-config
|
||||
* @{
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_QMB700_CONFIG_H__
|
||||
#define __X86_64_MLNX_QMB700_CONFIG_H__
|
||||
|
||||
#ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG
|
||||
#include <global_custom_config.h>
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_INCLUDE_CUSTOM_CONFIG
|
||||
#include <x86_64_mlnx_qmb700_custom_config.h>
|
||||
#endif
|
||||
|
||||
/* <auto.start.cdefs(X86_64_MLNX_QMB700_CONFIG_HEADER).header> */
|
||||
#include <AIM/aim.h>
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING
|
||||
*
|
||||
* Include or exclude logging. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING
|
||||
#define X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
*
|
||||
* Default enabled log options. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
#define X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT
|
||||
*
|
||||
* Default enabled log bits. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT
|
||||
#define X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
*
|
||||
* Default enabled custom log bits. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
#define X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB
|
||||
*
|
||||
* Default all porting macros to use the C standard libraries. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB
|
||||
#define X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
*
|
||||
* Include standard library headers for stdlib porting macros. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
#define X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI
|
||||
*
|
||||
* Include generic uCli support. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI
|
||||
#define X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
*
|
||||
* Assume chassis fan direction is the same as the PSU fan direction. */
|
||||
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
#define X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* All compile time options can be queried or displayed
|
||||
*/
|
||||
|
||||
/** Configuration settings structure. */
|
||||
typedef struct x86_64_mlnx_qmb700_config_settings_s {
|
||||
/** name */
|
||||
const char* name;
|
||||
/** value */
|
||||
const char* value;
|
||||
} x86_64_mlnx_qmb700_config_settings_t;
|
||||
|
||||
/** Configuration settings table. */
|
||||
/** x86_64_mlnx_qmb700_config_settings table. */
|
||||
extern x86_64_mlnx_qmb700_config_settings_t x86_64_mlnx_qmb700_config_settings[];
|
||||
|
||||
/**
|
||||
* @brief Lookup a configuration setting.
|
||||
* @param setting The name of the configuration option to lookup.
|
||||
*/
|
||||
const char* x86_64_mlnx_qmb700_config_lookup(const char* setting);
|
||||
|
||||
/**
|
||||
* @brief Show the compile-time configuration.
|
||||
* @param pvs The output stream.
|
||||
*/
|
||||
int x86_64_mlnx_qmb700_config_show(struct aim_pvs_s* pvs);
|
||||
|
||||
/* <auto.end.cdefs(X86_64_MLNX_QMB700_CONFIG_HEADER).header> */
|
||||
|
||||
#include "x86_64_mlnx_qmb700_porting.h"
|
||||
|
||||
#endif /* __X86_64_MLNX_QMB700_CONFIG_H__ */
|
||||
/* @} */
|
||||
@@ -1,26 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* x86_64_mlnx_qmb700 Doxygen Header
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_QMB700_DOX_H__
|
||||
#define __X86_64_MLNX_QMB700_DOX_H__
|
||||
|
||||
/**
|
||||
* @defgroup x86_64_mlnx_qmb700 x86_64_mlnx_qmb700 - x86_64_mlnx_qmb700 Description
|
||||
*
|
||||
|
||||
The documentation overview for this module should go here.
|
||||
|
||||
*
|
||||
* @{
|
||||
*
|
||||
* @defgroup x86_64_mlnx_qmb700-x86_64_mlnx_qmb700 Public Interface
|
||||
* @defgroup x86_64_mlnx_qmb700-config Compile Time Configuration
|
||||
* @defgroup x86_64_mlnx_qmb700-porting Porting Macros
|
||||
*
|
||||
* @}
|
||||
*
|
||||
*/
|
||||
|
||||
#endif /* __X86_64_MLNX_QMB700_DOX_H__ */
|
||||
@@ -1,107 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* @file
|
||||
* @brief x86_64_mlnx_qmb700 Porting Macros.
|
||||
*
|
||||
* @addtogroup x86_64_mlnx_qmb700-porting
|
||||
* @{
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_QMB700_PORTING_H__
|
||||
#define __X86_64_MLNX_QMB700_PORTING_H__
|
||||
|
||||
|
||||
/* <auto.start.portingmacro(ALL).define> */
|
||||
#if X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <memory.h>
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_MALLOC
|
||||
#if defined(GLOBAL_MALLOC)
|
||||
#define X86_64_MLNX_QMB700_MALLOC GLOBAL_MALLOC
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_MALLOC malloc
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_MALLOC is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_FREE
|
||||
#if defined(GLOBAL_FREE)
|
||||
#define X86_64_MLNX_QMB700_FREE GLOBAL_FREE
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_FREE free
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_FREE is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_MEMSET
|
||||
#if defined(GLOBAL_MEMSET)
|
||||
#define X86_64_MLNX_QMB700_MEMSET GLOBAL_MEMSET
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_MEMSET memset
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_MEMSET is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_MEMCPY
|
||||
#if defined(GLOBAL_MEMCPY)
|
||||
#define X86_64_MLNX_QMB700_MEMCPY GLOBAL_MEMCPY
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_MEMCPY memcpy
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_MEMCPY is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_STRNCPY
|
||||
#if defined(GLOBAL_STRNCPY)
|
||||
#define X86_64_MLNX_QMB700_STRNCPY GLOBAL_STRNCPY
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_STRNCPY strncpy
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_STRNCPY is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_VSNPRINTF
|
||||
#if defined(GLOBAL_VSNPRINTF)
|
||||
#define X86_64_MLNX_QMB700_VSNPRINTF GLOBAL_VSNPRINTF
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_VSNPRINTF vsnprintf
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_VSNPRINTF is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_SNPRINTF
|
||||
#if defined(GLOBAL_SNPRINTF)
|
||||
#define X86_64_MLNX_QMB700_SNPRINTF GLOBAL_SNPRINTF
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_SNPRINTF snprintf
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_SNPRINTF is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef X86_64_MLNX_QMB700_STRLEN
|
||||
#if defined(GLOBAL_STRLEN)
|
||||
#define X86_64_MLNX_QMB700_STRLEN GLOBAL_STRLEN
|
||||
#elif X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB == 1
|
||||
#define X86_64_MLNX_QMB700_STRLEN strlen
|
||||
#else
|
||||
#error The macro X86_64_MLNX_QMB700_STRLEN is required but cannot be defined.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* <auto.end.portingmacro(ALL).define> */
|
||||
|
||||
|
||||
#endif /* __X86_64_MLNX_QMB700_PORTING_H__ */
|
||||
/* @} */
|
||||
@@ -1,81 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
|
||||
/* <auto.start.cdefs(X86_64_MLNX_QMB700_CONFIG_HEADER).source> */
|
||||
#define __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(_x) #_x
|
||||
#define __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(_x)
|
||||
x86_64_mlnx_qmb700_config_settings_t x86_64_mlnx_qmb700_config_settings[] =
|
||||
{
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_PORTING_STDLIB(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
#ifdef X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION
|
||||
{ __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) },
|
||||
#else
|
||||
{ X86_64_MLNX_QMB700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME), "__undefined__" },
|
||||
#endif
|
||||
{ NULL, NULL }
|
||||
};
|
||||
#undef __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_VALUE
|
||||
#undef __X86_64_MLNX_QMB700_CONFIG_STRINGIFY_NAME
|
||||
|
||||
const char*
|
||||
x86_64_mlnx_qmb700_config_lookup(const char* setting)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; x86_64_mlnx_qmb700_config_settings[i].name; i++) {
|
||||
if(strcmp(x86_64_mlnx_qmb700_config_settings[i].name, setting)) {
|
||||
return x86_64_mlnx_qmb700_config_settings[i].value;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
x86_64_mlnx_qmb700_config_show(struct aim_pvs_s* pvs)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; x86_64_mlnx_qmb700_config_settings[i].name; i++) {
|
||||
aim_printf(pvs, "%s = %s\n", x86_64_mlnx_qmb700_config_settings[i].name, x86_64_mlnx_qmb700_config_settings[i].value);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/* <auto.end.cdefs(x86_64_mlnx_qmb700_CONFIG_HEADER).source> */
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* x86_64_mlnx_qmb700 Internal Header
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __X86_64_MLNX_QMB700_INT_H__
|
||||
#define __X86_64_MLNX_QMB700_INT_H__
|
||||
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
|
||||
|
||||
#endif /* __X86_64_MLNX_QMB700_INT_H__ */
|
||||
@@ -1,18 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
|
||||
#include "x86_64_mlnx_qmb700_log.h"
|
||||
/*
|
||||
* x86_64_mlnx_qmb700 log struct.
|
||||
*/
|
||||
AIM_LOG_STRUCT_DEFINE(
|
||||
X86_64_MLNX_QMB700_CONFIG_LOG_OPTIONS_DEFAULT,
|
||||
X86_64_MLNX_QMB700_CONFIG_LOG_BITS_DEFAULT,
|
||||
NULL, /* Custom log map */
|
||||
X86_64_MLNX_QMB700_CONFIG_LOG_CUSTOM_BITS_DEFAULT
|
||||
);
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
|
||||
#include "x86_64_mlnx_qmb700_log.h"
|
||||
|
||||
static int
|
||||
datatypes_init__(void)
|
||||
{
|
||||
#define x86_64_mlnx_qmb700_ENUMERATION_ENTRY(_enum_name, _desc) AIM_DATATYPE_MAP_REGISTER(_enum_name, _enum_name##_map, _desc, AIM_LOG_INTERNAL);
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700.x>
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __x86_64_mlnx_qmb700_module_init__(void)
|
||||
{
|
||||
AIM_LOG_STRUCT_REGISTER();
|
||||
datatypes_init__();
|
||||
}
|
||||
|
||||
int __onlp_platform_version__ = 1;
|
||||
@@ -1,50 +0,0 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
#include <x86_64_mlnx_qmb700/x86_64_mlnx_qmb700_config.h>
|
||||
|
||||
#if x86_64_mlnx_qmb700_CONFIG_INCLUDE_UCLI == 1
|
||||
|
||||
#include <uCli/ucli.h>
|
||||
#include <uCli/ucli_argparse.h>
|
||||
#include <uCli/ucli_handler_macros.h>
|
||||
|
||||
static ucli_status_t
|
||||
x86_64_mlnx_qmb700_ucli_ucli__config__(ucli_context_t* uc)
|
||||
{
|
||||
UCLI_HANDLER_MACRO_MODULE_CONFIG(x86_64_mlnx_qmb700)
|
||||
}
|
||||
|
||||
/* <auto.ucli.handlers.start> */
|
||||
/* <auto.ucli.handlers.end> */
|
||||
|
||||
static ucli_module_t
|
||||
x86_64_mlnx_qmb700_ucli_module__ =
|
||||
{
|
||||
"x86_64_mlnx_qmb700_ucli",
|
||||
NULL,
|
||||
x86_64_mlnx_qmb700_ucli_ucli_handlers__,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
ucli_node_t*
|
||||
x86_64_mlnx_qmb700_ucli_node_create(void)
|
||||
{
|
||||
ucli_node_t* n;
|
||||
ucli_module_init(&x86_64_mlnx_qmb700_ucli_module__);
|
||||
n = ucli_node_create("x86_64_mlnx_qmb700", NULL, &x86_64_mlnx_qmb700_ucli_module__);
|
||||
ucli_node_subnode_add(n, ucli_module_log_node_create("x86_64_mlnx_qmb700"));
|
||||
return n;
|
||||
}
|
||||
|
||||
#else
|
||||
void*
|
||||
x86_64_mlnx_qmb700_ucli_node_create(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inclusive Makefile for the x86_64_mlnx_qmb700 module.
|
||||
#
|
||||
# Autogenerated 2015-12-23 23:45:56.754200
|
||||
#
|
||||
###############################################################################
|
||||
x86_64_mlnx_qmb700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
include $(x86_64_mlnx_qmb700_BASEDIR)/module/make.mk
|
||||
include $(x86_64_mlnx_qmb700_BASEDIR)/module/auto/make.mk
|
||||
include $(x86_64_mlnx_qmb700_BASEDIR)/module/src/make.mk
|
||||
|
||||
Reference in New Issue
Block a user