
HLS generated driver along with manually written layer 2. Driver tcl update pending Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
// ==============================================================
|
|
// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
|
|
// Version: 2015.1
|
|
// Copyright (C) 2015 Xilinx Inc. All rights reserved.
|
|
//
|
|
// ==============================================================
|
|
|
|
#ifndef __linux__
|
|
|
|
#include "xstatus.h"
|
|
#include "xparameters.h"
|
|
#include "xv_hscaler.h"
|
|
|
|
extern XV_hscaler_Config XV_hscaler_ConfigTable[];
|
|
|
|
XV_hscaler_Config *XV_hscaler_LookupConfig(u16 DeviceId) {
|
|
XV_hscaler_Config *ConfigPtr = NULL;
|
|
|
|
int Index;
|
|
|
|
for (Index = 0; Index < XPAR_XV_HSCALER_NUM_INSTANCES; Index++) {
|
|
if (XV_hscaler_ConfigTable[Index].DeviceId == DeviceId) {
|
|
ConfigPtr = &XV_hscaler_ConfigTable[Index];
|
|
break;
|
|
}
|
|
}
|
|
|
|
return ConfigPtr;
|
|
}
|
|
|
|
int XV_hscaler_Initialize(XV_hscaler *InstancePtr, u16 DeviceId) {
|
|
XV_hscaler_Config *ConfigPtr;
|
|
|
|
Xil_AssertNonvoid(InstancePtr != NULL);
|
|
|
|
ConfigPtr = XV_hscaler_LookupConfig(DeviceId);
|
|
if (ConfigPtr == NULL) {
|
|
InstancePtr->IsReady = 0;
|
|
return (XST_DEVICE_NOT_FOUND);
|
|
}
|
|
|
|
return XV_hscaler_CfgInitialize(InstancePtr, ConfigPtr);
|
|
}
|
|
|
|
#endif
|