Skip to content

Commit

Permalink
Have single ze_handle_t and update .rst docs
Browse files Browse the repository at this point in the history
Signed-off-by: Neil R. Spruit <[email protected]>
  • Loading branch information
nrspruit committed Nov 22, 2024
1 parent a9d2c83 commit 4305b2a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
6 changes: 0 additions & 6 deletions include/ze_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2609,12 +2609,6 @@ typedef struct _ze_dditable_driver_t
ze_fabric_edge_exp_dditable_t * FabricEdgeExp;
} ze_dditable_driver_t;

/// @brief Handle with pointer to Dispatch Container allocated by the driver at the beginning of every ZE handle
typedef struct _ze_handle_t
{
ze_dditable_driver_t *pDispatch; // [in] pointer to _ze_dditable_t_ object related to this handle
} ze_handle_t;

#if defined(__cplusplus)
} // extern "C"
#endif
Expand Down
36 changes: 36 additions & 0 deletions include/ze_ddi_common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
*
* Copyright (C) 2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* @file ze_ddi_common.h
* @version v1.12-r1.11.11
*
*/
#ifndef _ZE_DDI_COMMON_H
#define _ZE_DDI_COMMON_H
#if defined(__cplusplus)
#pragma once
#endif
#include "ze_ddi.h"
#include "zet_ddi.h"
#include "zes_ddi.h"

#if defined(__cplusplus)
extern "C" {
#endif

/// @brief Handle with pointers to Dispatch Tables allocated by the driver at the beginning of every L0 object handle.
typedef struct _ze_handle_t
{
ze_dditable_driver_t *pCore; // [in] pointer to _ze_dditable_t_ object related to this handle
zet_dditable_driver_t *pTools; // [in] pointer to _zet_dditable_t_ object related to this handle
zes_dditable_driver_t *pSysman; // [in] pointer to _zes_dditable_t_ object related to this handle
} ze_handle_t;

#if defined(__cplusplus)
} // extern "C"
#endif

#endif // _ZE_DDI_COMMON_H
6 changes: 0 additions & 6 deletions include/zes_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2013,12 +2013,6 @@ typedef struct _zes_dditable_driver_t
zes_vf_management_exp_dditable_t * VFManagementExp;
} zes_dditable_driver_t;

/// @brief Handle with pointer to Dispatch Container allocated by the driver at the beginning of every ZES handle
typedef struct _zes_handle_t
{
zes_dditable_driver_t *pDispatch; // [in] pointer to _zes_dditable_t_ object related to this handle
} zes_handle_t;

#if defined(__cplusplus)
} // extern "C"
#endif
Expand Down
6 changes: 0 additions & 6 deletions include/zet_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1190,12 +1190,6 @@ typedef struct _zet_dditable_driver_t
zet_debug_dditable_t * Debug;
} zet_dditable_driver_t;

/// @brief Handle with pointer to Dispatch Container allocated by the driver at the beginning of every ZET handle
typedef struct _zet_handle_t
{
zet_dditable_driver_t *pDispatch; // [in] pointer to _zet_dditable_t_ object related to this handle
} zet_handle_t;

#if defined(__cplusplus)
} // extern "C"
#endif
Expand Down

0 comments on commit 4305b2a

Please sign in to comment.