// This file is automatically generated by rmconfig - DO NOT EDIT!
//
// Private HAL support for halgen.
//
// Profile:  shipping-gpus-openrm
// Template: templates/gt_hal_private.h
//
// Chips:    TU10X, GA100, GA102, GA103, GA104, GA106, GA107, AD10X, GH10X, GB100, GB102, GB10B, GB110, GB112, GB202, GB203, GB205, GB206, GB207, GB20B, GB20C, T234D, T26XD
//

//
// This file is included in several .c files for chips hal register and engines
// hal function assignment. The macros RMCFG_ENGINE_SETUP and RMCFG_HAL_SETUP_xxx
// are used to provide different content for those .c files.
//

#ifndef _G_RMCFG_HAL_PRIVATE_H_
#define _G_RMCFG_HAL_PRIVATE_H_

#include "g_hal.h"

// establish the per-chip RMCFG_HAL_SETUP_chip #defines as needed.
#if defined(RMCFG_ENGINE_SETUP)

// setup all enabled chip families
#if defined(RMCFG_HAL_SETUP_ALL)
#  define RMCFG_HAL_SETUP_TU10X          1
#  define RMCFG_HAL_SETUP_GA10X          1
#  define RMCFG_HAL_SETUP_AD10X          1
#  define RMCFG_HAL_SETUP_GH10X          1
#  define RMCFG_HAL_SETUP_GB10X          1
#  define RMCFG_HAL_SETUP_GB20X          1
#  define RMCFG_HAL_SETUP_T23XD          1
#  define RMCFG_HAL_SETUP_T26XD          1
#endif   // RMCFG_HAL_SETUP_ALL

//
// setup all enabled chips in each enabled family
//

#if defined(RMCFG_HAL_SETUP_TU10X)
#  define RMCFG_HAL_SETUP_TU102          1
#  define RMCFG_HAL_SETUP_TU104          1
#  define RMCFG_HAL_SETUP_TU106          1
#  define RMCFG_HAL_SETUP_TU116          1
#  define RMCFG_HAL_SETUP_TU117          1
#endif // TU10X

#if defined(RMCFG_HAL_SETUP_GA10X)
#  define RMCFG_HAL_SETUP_GA100          1
#  define RMCFG_HAL_SETUP_GA102          1
#  define RMCFG_HAL_SETUP_GA103          1
#  define RMCFG_HAL_SETUP_GA104          1
#  define RMCFG_HAL_SETUP_GA106          1
#  define RMCFG_HAL_SETUP_GA107          1
#endif // GA10X

#if defined(RMCFG_HAL_SETUP_AD10X)
#  define RMCFG_HAL_SETUP_AD102          1
#  define RMCFG_HAL_SETUP_AD103          1
#  define RMCFG_HAL_SETUP_AD104          1
#  define RMCFG_HAL_SETUP_AD106          1
#  define RMCFG_HAL_SETUP_AD107          1
#endif // AD10X

#if defined(RMCFG_HAL_SETUP_GH10X)
#  define RMCFG_HAL_SETUP_GH100          1
#endif // GH10X

#if defined(RMCFG_HAL_SETUP_GB10X)
#  define RMCFG_HAL_SETUP_GB100          1
#  define RMCFG_HAL_SETUP_GB102          1
#  define RMCFG_HAL_SETUP_GB10B          1
#  define RMCFG_HAL_SETUP_GB110          1
#  define RMCFG_HAL_SETUP_GB112          1
#endif // GB10X

#if defined(RMCFG_HAL_SETUP_GB20X)
#  define RMCFG_HAL_SETUP_GB202          1
#  define RMCFG_HAL_SETUP_GB203          1
#  define RMCFG_HAL_SETUP_GB205          1
#  define RMCFG_HAL_SETUP_GB206          1
#  define RMCFG_HAL_SETUP_GB207          1
#  define RMCFG_HAL_SETUP_GB20B          1
#  define RMCFG_HAL_SETUP_GB20C          1
#endif // GB20X

#if defined(RMCFG_HAL_SETUP_T23XD)
#  define RMCFG_HAL_SETUP_T234D          1
#endif // T23XD

#if defined(RMCFG_HAL_SETUP_T26XD)
#  define RMCFG_HAL_SETUP_T264D          1
#endif // T26XD

#endif  // RMCFG_ENGINE_SETUP

// pull in private headers for each engine
#include "g_rpc_private.h"
#include "g_rpcstructurecopy_private.h"


//
// per-GPU structure with an interface init function for each engine
//

// registerHalModule function declaration
NV_STATUS registerHalModule(NvU32, const HAL_IFACE_SETUP *);

#if defined(RMCFG_HAL_SETUP_TU102)

static const HAL_IFACE_SETUP halIface_TU102 = {

    rpcHalIfacesSetup_TU102,
    rpcstructurecopyHalIfacesSetup_TU102,

};

NV_STATUS registerHalModule_TU102(void)
{
    return registerHalModule(HAL_IMPL_TU102, &halIface_TU102);
}

#endif  // TU10X or TU102

#if defined(RMCFG_HAL_SETUP_TU104)

static const HAL_IFACE_SETUP halIface_TU104 = {

    rpcHalIfacesSetup_TU104,
    rpcstructurecopyHalIfacesSetup_TU104,

};

NV_STATUS registerHalModule_TU104(void)
{
    return registerHalModule(HAL_IMPL_TU104, &halIface_TU104);
}

#endif  // TU10X or TU104

#if defined(RMCFG_HAL_SETUP_TU106)

static const HAL_IFACE_SETUP halIface_TU106 = {

    rpcHalIfacesSetup_TU106,
    rpcstructurecopyHalIfacesSetup_TU106,

};

NV_STATUS registerHalModule_TU106(void)
{
    return registerHalModule(HAL_IMPL_TU106, &halIface_TU106);
}

#endif  // TU10X or TU106

#if defined(RMCFG_HAL_SETUP_TU116)

static const HAL_IFACE_SETUP halIface_TU116 = {

    rpcHalIfacesSetup_TU116,
    rpcstructurecopyHalIfacesSetup_TU116,

};

NV_STATUS registerHalModule_TU116(void)
{
    return registerHalModule(HAL_IMPL_TU116, &halIface_TU116);
}

#endif  // TU10X or TU116

#if defined(RMCFG_HAL_SETUP_TU117)

static const HAL_IFACE_SETUP halIface_TU117 = {

    rpcHalIfacesSetup_TU117,
    rpcstructurecopyHalIfacesSetup_TU117,

};

NV_STATUS registerHalModule_TU117(void)
{
    return registerHalModule(HAL_IMPL_TU117, &halIface_TU117);
}

#endif  // TU10X or TU117

#if defined(RMCFG_HAL_SETUP_GA100)

static const HAL_IFACE_SETUP halIface_GA100 = {

    rpcHalIfacesSetup_GA100,
    rpcstructurecopyHalIfacesSetup_GA100,

};

NV_STATUS registerHalModule_GA100(void)
{
    return registerHalModule(HAL_IMPL_GA100, &halIface_GA100);
}

#endif  // GA10X or GA100

#if defined(RMCFG_HAL_SETUP_GA102)

static const HAL_IFACE_SETUP halIface_GA102 = {

    rpcHalIfacesSetup_GA102,
    rpcstructurecopyHalIfacesSetup_GA102,

};

NV_STATUS registerHalModule_GA102(void)
{
    return registerHalModule(HAL_IMPL_GA102, &halIface_GA102);
}

#endif  // GA10X or GA102

#if defined(RMCFG_HAL_SETUP_GA103)

static const HAL_IFACE_SETUP halIface_GA103 = {

    rpcHalIfacesSetup_GA103,
    rpcstructurecopyHalIfacesSetup_GA103,

};

NV_STATUS registerHalModule_GA103(void)
{
    return registerHalModule(HAL_IMPL_GA103, &halIface_GA103);
}

#endif  // GA10X or GA103

#if defined(RMCFG_HAL_SETUP_GA104)

static const HAL_IFACE_SETUP halIface_GA104 = {

    rpcHalIfacesSetup_GA104,
    rpcstructurecopyHalIfacesSetup_GA104,

};

NV_STATUS registerHalModule_GA104(void)
{
    return registerHalModule(HAL_IMPL_GA104, &halIface_GA104);
}

#endif  // GA10X or GA104

#if defined(RMCFG_HAL_SETUP_GA106)

static const HAL_IFACE_SETUP halIface_GA106 = {

    rpcHalIfacesSetup_GA106,
    rpcstructurecopyHalIfacesSetup_GA106,

};

NV_STATUS registerHalModule_GA106(void)
{
    return registerHalModule(HAL_IMPL_GA106, &halIface_GA106);
}

#endif  // GA10X or GA106

#if defined(RMCFG_HAL_SETUP_GA107)

static const HAL_IFACE_SETUP halIface_GA107 = {

    rpcHalIfacesSetup_GA107,
    rpcstructurecopyHalIfacesSetup_GA107,

};

NV_STATUS registerHalModule_GA107(void)
{
    return registerHalModule(HAL_IMPL_GA107, &halIface_GA107);
}

#endif  // GA10X or GA107

#if defined(RMCFG_HAL_SETUP_AD102)

static const HAL_IFACE_SETUP halIface_AD102 = {

    rpcHalIfacesSetup_AD102,
    rpcstructurecopyHalIfacesSetup_AD102,

};

NV_STATUS registerHalModule_AD102(void)
{
    return registerHalModule(HAL_IMPL_AD102, &halIface_AD102);
}

#endif  // AD10X or AD102

#if defined(RMCFG_HAL_SETUP_AD103)

static const HAL_IFACE_SETUP halIface_AD103 = {

    rpcHalIfacesSetup_AD103,
    rpcstructurecopyHalIfacesSetup_AD103,

};

NV_STATUS registerHalModule_AD103(void)
{
    return registerHalModule(HAL_IMPL_AD103, &halIface_AD103);
}

#endif  // AD10X or AD103

#if defined(RMCFG_HAL_SETUP_AD104)

static const HAL_IFACE_SETUP halIface_AD104 = {

    rpcHalIfacesSetup_AD104,
    rpcstructurecopyHalIfacesSetup_AD104,

};

NV_STATUS registerHalModule_AD104(void)
{
    return registerHalModule(HAL_IMPL_AD104, &halIface_AD104);
}

#endif  // AD10X or AD104

#if defined(RMCFG_HAL_SETUP_AD106)

static const HAL_IFACE_SETUP halIface_AD106 = {

    rpcHalIfacesSetup_AD106,
    rpcstructurecopyHalIfacesSetup_AD106,

};

NV_STATUS registerHalModule_AD106(void)
{
    return registerHalModule(HAL_IMPL_AD106, &halIface_AD106);
}

#endif  // AD10X or AD106

#if defined(RMCFG_HAL_SETUP_AD107)

static const HAL_IFACE_SETUP halIface_AD107 = {

    rpcHalIfacesSetup_AD107,
    rpcstructurecopyHalIfacesSetup_AD107,

};

NV_STATUS registerHalModule_AD107(void)
{
    return registerHalModule(HAL_IMPL_AD107, &halIface_AD107);
}

#endif  // AD10X or AD107

#if defined(RMCFG_HAL_SETUP_GH100)

static const HAL_IFACE_SETUP halIface_GH100 = {

    rpcHalIfacesSetup_GH100,
    rpcstructurecopyHalIfacesSetup_GH100,

};

NV_STATUS registerHalModule_GH100(void)
{
    return registerHalModule(HAL_IMPL_GH100, &halIface_GH100);
}

#endif  // GH10X or GH100

#if defined(RMCFG_HAL_SETUP_GB100)

static const HAL_IFACE_SETUP halIface_GB100 = {

    rpcHalIfacesSetup_GB100,
    rpcstructurecopyHalIfacesSetup_GB100,

};

NV_STATUS registerHalModule_GB100(void)
{
    return registerHalModule(HAL_IMPL_GB100, &halIface_GB100);
}

#endif  // GB10X or GB100

#if defined(RMCFG_HAL_SETUP_GB102)

static const HAL_IFACE_SETUP halIface_GB102 = {

    rpcHalIfacesSetup_GB102,
    rpcstructurecopyHalIfacesSetup_GB102,

};

NV_STATUS registerHalModule_GB102(void)
{
    return registerHalModule(HAL_IMPL_GB102, &halIface_GB102);
}

#endif  // GB10X or GB102

#if defined(RMCFG_HAL_SETUP_GB10B)

static const HAL_IFACE_SETUP halIface_GB10B = {

    rpcHalIfacesSetup_GB10B,
    rpcstructurecopyHalIfacesSetup_GB10B,

};

NV_STATUS registerHalModule_GB10B(void)
{
    return registerHalModule(HAL_IMPL_GB10B, &halIface_GB10B);
}

#endif  // GB10X or GB10B

#if defined(RMCFG_HAL_SETUP_GB110)

static const HAL_IFACE_SETUP halIface_GB110 = {

    rpcHalIfacesSetup_GB110,
    rpcstructurecopyHalIfacesSetup_GB110,

};

NV_STATUS registerHalModule_GB110(void)
{
    return registerHalModule(HAL_IMPL_GB110, &halIface_GB110);
}

#endif  // GB10X or GB110

#if defined(RMCFG_HAL_SETUP_GB112)

static const HAL_IFACE_SETUP halIface_GB112 = {

    rpcHalIfacesSetup_GB112,
    rpcstructurecopyHalIfacesSetup_GB112,

};

NV_STATUS registerHalModule_GB112(void)
{
    return registerHalModule(HAL_IMPL_GB112, &halIface_GB112);
}

#endif  // GB10X or GB112

#if defined(RMCFG_HAL_SETUP_GB202)

static const HAL_IFACE_SETUP halIface_GB202 = {

    rpcHalIfacesSetup_GB202,
    rpcstructurecopyHalIfacesSetup_GB202,

};

NV_STATUS registerHalModule_GB202(void)
{
    return registerHalModule(HAL_IMPL_GB202, &halIface_GB202);
}

#endif  // GB20X or GB202

#if defined(RMCFG_HAL_SETUP_GB203)

static const HAL_IFACE_SETUP halIface_GB203 = {

    rpcHalIfacesSetup_GB203,
    rpcstructurecopyHalIfacesSetup_GB203,

};

NV_STATUS registerHalModule_GB203(void)
{
    return registerHalModule(HAL_IMPL_GB203, &halIface_GB203);
}

#endif  // GB20X or GB203

#if defined(RMCFG_HAL_SETUP_GB205)

static const HAL_IFACE_SETUP halIface_GB205 = {

    rpcHalIfacesSetup_GB205,
    rpcstructurecopyHalIfacesSetup_GB205,

};

NV_STATUS registerHalModule_GB205(void)
{
    return registerHalModule(HAL_IMPL_GB205, &halIface_GB205);
}

#endif  // GB20X or GB205

#if defined(RMCFG_HAL_SETUP_GB206)

static const HAL_IFACE_SETUP halIface_GB206 = {

    rpcHalIfacesSetup_GB206,
    rpcstructurecopyHalIfacesSetup_GB206,

};

NV_STATUS registerHalModule_GB206(void)
{
    return registerHalModule(HAL_IMPL_GB206, &halIface_GB206);
}

#endif  // GB20X or GB206

#if defined(RMCFG_HAL_SETUP_GB207)

static const HAL_IFACE_SETUP halIface_GB207 = {

    rpcHalIfacesSetup_GB207,
    rpcstructurecopyHalIfacesSetup_GB207,

};

NV_STATUS registerHalModule_GB207(void)
{
    return registerHalModule(HAL_IMPL_GB207, &halIface_GB207);
}

#endif  // GB20X or GB207

#if defined(RMCFG_HAL_SETUP_GB20B)

static const HAL_IFACE_SETUP halIface_GB20B = {

    rpcHalIfacesSetup_GB20B,
    rpcstructurecopyHalIfacesSetup_GB20B,

};

NV_STATUS registerHalModule_GB20B(void)
{
    return registerHalModule(HAL_IMPL_GB20B, &halIface_GB20B);
}

#endif  // GB20X or GB20B

#if defined(RMCFG_HAL_SETUP_GB20C)

static const HAL_IFACE_SETUP halIface_GB20C = {

    rpcHalIfacesSetup_GB20C,
    rpcstructurecopyHalIfacesSetup_GB20C,

};

NV_STATUS registerHalModule_GB20C(void)
{
    return registerHalModule(HAL_IMPL_GB20C, &halIface_GB20C);
}

#endif  // GB20X or GB20C

#if defined(RMCFG_HAL_SETUP_T234D)

static const HAL_IFACE_SETUP halIface_T234D = {

    rpcHalIfacesSetup_T234D,
    rpcstructurecopyHalIfacesSetup_T234D,

};

NV_STATUS registerHalModule_T234D(void)
{
    return registerHalModule(HAL_IMPL_T234D, &halIface_T234D);
}

#endif  // T23XD or T234D

#if defined(RMCFG_HAL_SETUP_T264D)

static const HAL_IFACE_SETUP halIface_T264D = {

    rpcHalIfacesSetup_T264D,
    rpcstructurecopyHalIfacesSetup_T264D,

};

NV_STATUS registerHalModule_T264D(void)
{
    return registerHalModule(HAL_IMPL_T264D, &halIface_T264D);
}

#endif  // T26XD or T264D



#endif  // _G_RMCFG_HAL_PRIVATE_H_
