62 lines
1.6 KiB
C
62 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2013--2014 Intel Corporation. All Rights Reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version
|
|
* 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef CSS2600_H
|
|
#define CSS2600_H
|
|
|
|
#include <linux/ioport.h>
|
|
#include <linux/list.h>
|
|
|
|
#include "cssapi.h"
|
|
#include "css2600-pdata.h"
|
|
#include "css2600-bus.h"
|
|
|
|
#define CSS2600_NAME "css2600"
|
|
|
|
#define CSS2600_FIRMWARE "css2600.bin"
|
|
#define CSS2401_FIRMWARE "shisp_2401a0_v21_bxtpoc.bin"
|
|
|
|
#define CSS2600_HW_MRFLD_2401 0x1478
|
|
#define CSS2600_HW_BXT 0x4008 /* For A0 only */
|
|
#define CSS2600_HW_BXT_FPGA 0x9488
|
|
|
|
struct pci_dev;
|
|
struct list_head;
|
|
struct firmware;
|
|
|
|
#define NR_OF_MMU_RESOURCES 2
|
|
|
|
struct css2600_device {
|
|
struct pci_dev *pdev;
|
|
struct list_head devices;
|
|
struct css2600_bus_device *isys_iommu, *isys;
|
|
struct css2600_bus_device *psys_iommu, *psys;
|
|
struct css2600_bus_device *buttress;
|
|
const struct firmware *fw;
|
|
void __iomem *base;
|
|
};
|
|
|
|
#include <linux/version.h>
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
|
|
/* FIXME: remove once no need to support old kernels */
|
|
static inline void reinit_completion(struct completion *x)
|
|
{
|
|
x->done = 0;
|
|
}
|
|
#define list_last_entry(ptr, type, member) \
|
|
list_entry((ptr)->prev, type, member)
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0) */
|
|
|
|
#endif
|