Skip to content

Commit

Permalink
initial 64 bit changes
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Bauer <[email protected]>
  • Loading branch information
IgnoreWarnings authored and n-eiling committed May 6, 2024
1 parent 5317244 commit 34adec6
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 258 deletions.
4 changes: 2 additions & 2 deletions orig/axis_switch_v1_0/src/xaxis_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@
*
******************************************************************************/
s32 XAxisScr_CfgInitialize(XAxis_Switch *InstancePtr,
XAxis_Switch_Config *CfgPtr, u32 EffectiveAddr)
XAxis_Switch_Config *CfgPtr, u64 EffectiveAddr)
{
/* Verify arguments. */
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(CfgPtr != NULL);
Xil_AssertNonvoid(EffectiveAddr != (u32)0x0);
Xil_AssertNonvoid(EffectiveAddr != (u64)0x0);

/* Setup the instance */
(void)memset((void *)InstancePtr, 0, sizeof(XAxis_Switch));
Expand Down
6 changes: 3 additions & 3 deletions orig/axis_switch_v1_0/src/xaxis_switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ extern "C" {
typedef struct {
u16 DeviceId; /**< DeviceId is the unique ID of the AXI4-
* Stream Switch core */
u32 BaseAddress; /**< BaseAddress is the physical base address
* of the core's registers */
u64 BaseAddress; /**< BaseAddress is the physical base address
* of the core's registers */
u8 MaxNumSI; /**< Maximum number of Slave interfaces */
u8 MaxNumMI; /**< Maximum number of Master interfaces */
} XAxis_Switch_Config;
Expand Down Expand Up @@ -184,7 +184,7 @@ XAxis_Switch_Config *XAxisScr_LookupConfig(u16 DeviceId);

/* Initialization and control functions in xaxis_switch.c */
s32 XAxisScr_CfgInitialize(XAxis_Switch *InstancePtr,
XAxis_Switch_Config *CfgPtr, u32 EffectiveAddr);
XAxis_Switch_Config *CfgPtr, u64 EffectiveAddr);

void XAxisScr_MiPortEnable(XAxis_Switch *InstancePtr, u8 MiIndex,
u8 SiIndex);
Expand Down
Loading

0 comments on commit 34adec6

Please sign in to comment.