blob: 013455f117b2204ee3e65d010589f94a32cd4eb9 [file] [log] [blame]
/* -*- mode: c; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* vi: set ts=8 sw=8 sts=8: */
/*************************************************************************/ /*!
@Codingstyle LinuxKernel
@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
@License MIT
The contents of this file are subject to the MIT license as set out below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
This License is also included in this distribution in the file called
"MIT-COPYING".
EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ /**************************************************************************/
#ifndef _APOLLO_DRV_H
#define _APOLLO_DRV_H
#include "tc_drv_internal.h"
#include "apollo_regs.h"
#if defined(SUPPORT_RGX) && defined(SUPPORT_APOLLO_FPGA)
#error Define either SUPPORT_RGX or SUPPORT_APOLLO_FGPA, not both
#endif
int apollo_init(struct tc_device *tc, struct pci_dev *pdev,
int core_clock, int mem_clock, int sys_clock,
int pdp_mem_size, int secure_mem_size,
int mem_latency, int mem_wresp_latency);
int apollo_cleanup(struct tc_device *tc);
int apollo_register_pdp_device(struct tc_device *tc);
int apollo_register_ext_device(struct tc_device *tc);
void apollo_enable_interrupt_register(struct tc_device *tc,
int interrupt_id);
void apollo_disable_interrupt_register(struct tc_device *tc,
int interrupt_id);
irqreturn_t apollo_irq_handler(int irq, void *data);
int apollo_sys_info(struct tc_device *tc, u32 *tmp, u32 *pll);
int apollo_sys_strings(struct tc_device *tc,
char *str_fpga_rev, size_t size_fpga_rev,
char *str_tcf_core_rev, size_t size_tcf_core_rev,
char *str_tcf_core_target_build_id,
size_t size_tcf_core_target_build_id,
char *str_pci_ver, size_t size_pci_ver,
char *str_macro_ver, size_t size_macro_ver);
#endif /* _APOLLO_DRV_H */