mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
15bbb300fc
This patch adds id_table for each dfl private feature driver, it allows to reuse same private feature driver to match and support multiple dfl private features. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Wu Hao <hao.wu@intel.com> Acked-by: Moritz Fischer <mdf@kernel.org> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Moritz Fischer <mdf@kernel.org> Link: https://lore.kernel.org/r/1564914022-3710-6-git-send-email-hao.wu@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Header file for FPGA Management Engine (FME) Driver
|
|
*
|
|
* Copyright (C) 2017-2018 Intel Corporation, Inc.
|
|
*
|
|
* Authors:
|
|
* Kang Luwei <luwei.kang@intel.com>
|
|
* Xiao Guangrong <guangrong.xiao@linux.intel.com>
|
|
* Wu Hao <hao.wu@intel.com>
|
|
* Joseph Grecco <joe.grecco@intel.com>
|
|
* Enno Luebbers <enno.luebbers@intel.com>
|
|
* Tim Whisonant <tim.whisonant@intel.com>
|
|
* Ananda Ravuri <ananda.ravuri@intel.com>
|
|
* Henry Mitchel <henry.mitchel@intel.com>
|
|
*/
|
|
|
|
#ifndef __DFL_FME_H
|
|
#define __DFL_FME_H
|
|
|
|
/**
|
|
* struct dfl_fme - dfl fme private data
|
|
*
|
|
* @mgr: FME's FPGA manager platform device.
|
|
* @region_list: linked list of FME's FPGA regions.
|
|
* @bridge_list: linked list of FME's FPGA bridges.
|
|
* @pdata: fme platform device's pdata.
|
|
*/
|
|
struct dfl_fme {
|
|
struct platform_device *mgr;
|
|
struct list_head region_list;
|
|
struct list_head bridge_list;
|
|
struct dfl_feature_platform_data *pdata;
|
|
};
|
|
|
|
extern const struct dfl_feature_ops fme_pr_mgmt_ops;
|
|
extern const struct dfl_feature_id fme_pr_mgmt_id_table[];
|
|
|
|
#endif /* __DFL_FME_H */
|