/* SPDX-License-Identifier: GPL-2.0 */1/*2* Header file for FPGA Management Engine (FME) Partial Reconfiguration Driver3*4* Copyright (C) 2017-2018 Intel Corporation, Inc.5*6* Authors:7* Kang Luwei <[email protected]>8* Xiao Guangrong <[email protected]>9* Wu Hao <[email protected]>10* Joseph Grecco <[email protected]>11* Enno Luebbers <[email protected]>12* Tim Whisonant <[email protected]>13* Ananda Ravuri <[email protected]>14* Henry Mitchel <[email protected]>15*/1617#ifndef __DFL_FME_PR_H18#define __DFL_FME_PR_H1920#include <linux/platform_device.h>2122/**23* struct dfl_fme_region - FME fpga region data structure24*25* @region: platform device of the FPGA region.26* @node: used to link fme_region to a list.27* @port_id: indicate which port this region connected to.28*/29struct dfl_fme_region {30struct platform_device *region;31struct list_head node;32int port_id;33};3435/**36* struct dfl_fme_region_pdata - platform data for FME region platform device.37*38* @mgr: platform device of the FPGA manager.39* @br: platform device of the FPGA bridge.40* @region_id: region id (same as port_id).41*/42struct dfl_fme_region_pdata {43struct platform_device *mgr;44struct platform_device *br;45int region_id;46};4748/**49* struct dfl_fme_bridge - FME fpga bridge data structure50*51* @br: platform device of the FPGA bridge.52* @node: used to link fme_bridge to a list.53*/54struct dfl_fme_bridge {55struct platform_device *br;56struct list_head node;57};5859/**60* struct dfl_fme_br_pdata - platform data for FME bridge platform device.61*62* @cdev: container device.63* @port_id: port id.64*/65struct dfl_fme_br_pdata {66struct dfl_fpga_cdev *cdev;67int port_id;68};6970/**71* struct dfl_fme_mgr_pdata - platform data for FME manager platform device.72*73* @ioaddr: mapped io address for FME manager platform device.74*/75struct dfl_fme_mgr_pdata {76void __iomem *ioaddr;77};7879#define DFL_FPGA_FME_MGR "dfl-fme-mgr"80#define DFL_FPGA_FME_BRIDGE "dfl-fme-bridge"81#define DFL_FPGA_FME_REGION "dfl-fme-region"8283#endif /* __DFL_FME_PR_H */848586