Add new allocation functions which can be activated by domain info flags. They store the groups pointer in struct msi_device_data.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -56,6 +56,8 @@ struct irq_data; · 55 unmodified lines | |||
| 56 | struct msi_desc; | 56 | struct msi_desc; |
| 57 | struct pci_dev; | 57 | struct pci_dev; |
| 58 | struct platform_msi_priv_data; | 58 | struct platform_msi_priv_data; |
| 59 | struct attribute_group; | ||
| 60 | |||
| 59 | void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); | 61 | void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); |
| 60 | #ifdef CONFIG_GENERIC_MSI_IRQ | 62 | #ifdef CONFIG_GENERIC_MSI_IRQ |
| 61 | void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); | 63 | void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); |
| @@ -174,9 +176,11 @@ struct msi_desc { · 112 unmodified lines | |||
| 174 | /** | 176 | /** |
| 175 | * msi_device_data - MSI per device data | 177 | * msi_device_data - MSI per device data |
| 176 | * @properties: MSI properties which are interesting to drivers | 178 | * @properties: MSI properties which are interesting to drivers |
| 179 | * @attrs: Pointer to the sysfs attribute group | ||
| 177 | */ | 180 | */ |
| 178 | struct msi_device_data { | 181 | struct msi_device_data { |
| 179 | unsigned long properties; | 182 | unsigned long properties; |
| 183 | const struct attribute_group **attrs; | ||
| 180 | }; | 184 | }; |
| 181 | 185 | ||
| 182 | int msi_setup_device_data(struct device *dev); | 186 | int msi_setup_device_data(struct device *dev); |