xref: /OK3568_Linux_fs/kernel/drivers/fpga/dfl-fme.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Header file for FPGA Management Engine (FME) Driver
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2017-2018 Intel Corporation, Inc.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Authors:
8*4882a593Smuzhiyun  *   Kang Luwei <luwei.kang@intel.com>
9*4882a593Smuzhiyun  *   Xiao Guangrong <guangrong.xiao@linux.intel.com>
10*4882a593Smuzhiyun  *   Wu Hao <hao.wu@intel.com>
11*4882a593Smuzhiyun  *   Joseph Grecco <joe.grecco@intel.com>
12*4882a593Smuzhiyun  *   Enno Luebbers <enno.luebbers@intel.com>
13*4882a593Smuzhiyun  *   Tim Whisonant <tim.whisonant@intel.com>
14*4882a593Smuzhiyun  *   Ananda Ravuri <ananda.ravuri@intel.com>
15*4882a593Smuzhiyun  *   Henry Mitchel <henry.mitchel@intel.com>
16*4882a593Smuzhiyun  */
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #ifndef __DFL_FME_H
19*4882a593Smuzhiyun #define __DFL_FME_H
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /**
22*4882a593Smuzhiyun  * struct dfl_fme - dfl fme private data
23*4882a593Smuzhiyun  *
24*4882a593Smuzhiyun  * @mgr: FME's FPGA manager platform device.
25*4882a593Smuzhiyun  * @region_list: linked list of FME's FPGA regions.
26*4882a593Smuzhiyun  * @bridge_list: linked list of FME's FPGA bridges.
27*4882a593Smuzhiyun  * @pdata: fme platform device's pdata.
28*4882a593Smuzhiyun  */
29*4882a593Smuzhiyun struct dfl_fme {
30*4882a593Smuzhiyun 	struct platform_device *mgr;
31*4882a593Smuzhiyun 	struct list_head region_list;
32*4882a593Smuzhiyun 	struct list_head bridge_list;
33*4882a593Smuzhiyun 	struct dfl_feature_platform_data *pdata;
34*4882a593Smuzhiyun };
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun extern const struct dfl_feature_ops fme_pr_mgmt_ops;
37*4882a593Smuzhiyun extern const struct dfl_feature_id fme_pr_mgmt_id_table[];
38*4882a593Smuzhiyun extern const struct dfl_feature_ops fme_global_err_ops;
39*4882a593Smuzhiyun extern const struct dfl_feature_id fme_global_err_id_table[];
40*4882a593Smuzhiyun extern const struct attribute_group fme_global_err_group;
41*4882a593Smuzhiyun extern const struct dfl_feature_ops fme_perf_ops;
42*4882a593Smuzhiyun extern const struct dfl_feature_id fme_perf_id_table[];
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun #endif /* __DFL_FME_H */
45