Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fpga: dfl: move dfl_device_id to mod_devicetable.h

In order to support MODULE_DEVICE_TABLE() for dfl device driver, this
patch moves struct dfl_device_id to mod_devicetable.h

Some brief description for DFL (Device Feature List) is added to make
the DFL known to the whole kernel.

Reviewed-by: Tom Rix <trix@redhat.com>
Acked-by: Wu Hao <hao.wu@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20210107043714.991646-5-mdf@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xu Yilun and committed by
Greg Kroah-Hartman
9326eecd e08b9e6d

+25 -12
+1 -12
drivers/fpga/dfl.h
··· 22 22 #include <linux/interrupt.h> 23 23 #include <linux/iopoll.h> 24 24 #include <linux/io-64-nonatomic-lo-hi.h> 25 + #include <linux/mod_devicetable.h> 25 26 #include <linux/platform_device.h> 26 27 #include <linux/slab.h> 27 28 #include <linux/uuid.h> ··· 524 523 FME_ID = 0, 525 524 PORT_ID = 1, 526 525 DFL_ID_MAX, 527 - }; 528 - 529 - /** 530 - * struct dfl_device_id - dfl device identifier 531 - * @type: DFL FIU type of the device. See enum dfl_id_type. 532 - * @feature_id: feature identifier local to its DFL FIU type. 533 - * @driver_data: driver specific data. 534 - */ 535 - struct dfl_device_id { 536 - u16 type; 537 - u16 feature_id; 538 - unsigned long driver_data; 539 526 }; 540 527 541 528 /**
+24
include/linux/mod_devicetable.h
··· 846 846 kernel_ulong_t driver_data; 847 847 }; 848 848 849 + /* 850 + * DFL (Device Feature List) 851 + * 852 + * DFL defines a linked list of feature headers within the device MMIO space to 853 + * provide an extensible way of adding features. Software can walk through these 854 + * predefined data structures to enumerate features. It is now used in the FPGA. 855 + * See Documentation/fpga/dfl.rst for more information. 856 + * 857 + * The dfl bus type is introduced to match the individual feature devices (dfl 858 + * devices) for specific dfl drivers. 859 + */ 860 + 861 + /** 862 + * struct dfl_device_id - dfl device identifier 863 + * @type: DFL FIU type of the device. See enum dfl_id_type. 864 + * @feature_id: feature identifier local to its DFL FIU type. 865 + * @driver_data: driver specific data. 866 + */ 867 + struct dfl_device_id { 868 + __u16 type; 869 + __u16 feature_id; 870 + kernel_ulong_t driver_data; 871 + }; 872 + 849 873 #endif /* LINUX_MOD_DEVICETABLE_H */