Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / fpga / dfl-fme-pr.h
blob096a699089d30c92237c40708fd3f98f2d81ae01
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Header file for FPGA Management Engine (FME) Partial Reconfiguration Driver
5 * Copyright (C) 2017-2018 Intel Corporation, Inc.
7 * Authors:
8 * Kang Luwei <luwei.kang@intel.com>
9 * Xiao Guangrong <guangrong.xiao@linux.intel.com>
10 * Wu Hao <hao.wu@intel.com>
11 * Joseph Grecco <joe.grecco@intel.com>
12 * Enno Luebbers <enno.luebbers@intel.com>
13 * Tim Whisonant <tim.whisonant@intel.com>
14 * Ananda Ravuri <ananda.ravuri@intel.com>
15 * Henry Mitchel <henry.mitchel@intel.com>
18 #ifndef __DFL_FME_PR_H
19 #define __DFL_FME_PR_H
21 #include <linux/platform_device.h>
23 /**
24 * struct dfl_fme_region - FME fpga region data structure
26 * @region: platform device of the FPGA region.
27 * @node: used to link fme_region to a list.
28 * @port_id: indicate which port this region connected to.
30 struct dfl_fme_region {
31 struct platform_device *region;
32 struct list_head node;
33 int port_id;
36 /**
37 * struct dfl_fme_region_pdata - platform data for FME region platform device.
39 * @mgr: platform device of the FPGA manager.
40 * @br: platform device of the FPGA bridge.
41 * @region_id: region id (same as port_id).
43 struct dfl_fme_region_pdata {
44 struct platform_device *mgr;
45 struct platform_device *br;
46 int region_id;
49 /**
50 * struct dfl_fme_bridge - FME fpga bridge data structure
52 * @br: platform device of the FPGA bridge.
53 * @node: used to link fme_bridge to a list.
55 struct dfl_fme_bridge {
56 struct platform_device *br;
57 struct list_head node;
60 /**
61 * struct dfl_fme_bridge_pdata - platform data for FME bridge platform device.
63 * @cdev: container device.
64 * @port_id: port id.
66 struct dfl_fme_br_pdata {
67 struct dfl_fpga_cdev *cdev;
68 int port_id;
71 /**
72 * struct dfl_fme_mgr_pdata - platform data for FME manager platform device.
74 * @ioaddr: mapped io address for FME manager platform device.
76 struct dfl_fme_mgr_pdata {
77 void __iomem *ioaddr;
80 #define DFL_FPGA_FME_MGR "dfl-fme-mgr"
81 #define DFL_FPGA_FME_BRIDGE "dfl-fme-bridge"
82 #define DFL_FPGA_FME_REGION "dfl-fme-region"
84 #endif /* __DFL_FME_PR_H */