// ==============================================================
// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2017.2
// Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
// 
// ==============================================================

#ifndef __linux__

#include "xstatus.h"
#include "xparameters.h"
#include "ximage_filter.h"

extern XImage_filter_Config XImage_filter_ConfigTable[];

XImage_filter_Config *XImage_filter_LookupConfig(u16 DeviceId) {
	XImage_filter_Config *ConfigPtr = NULL;

	int Index;

	for (Index = 0; Index < XPAR_XIMAGE_FILTER_NUM_INSTANCES; Index++) {
		if (XImage_filter_ConfigTable[Index].DeviceId == DeviceId) {
			ConfigPtr = &XImage_filter_ConfigTable[Index];
			break;
		}
	}

	return ConfigPtr;
}

int XImage_filter_Initialize(XImage_filter *InstancePtr, u16 DeviceId) {
	XImage_filter_Config *ConfigPtr;

	Xil_AssertNonvoid(InstancePtr != NULL);

	ConfigPtr = XImage_filter_LookupConfig(DeviceId);
	if (ConfigPtr == NULL) {
		InstancePtr->IsReady = 0;
		return (XST_DEVICE_NOT_FOUND);
	}

	return XImage_filter_CfgInitialize(InstancePtr, ConfigPtr);
}

#endif

