diff options
author | Shannon Nelson <shannon.nelson@amd.com> | 2023-04-19 10:04:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-21 08:29:13 +0100 |
commit | d24c28278a01dc4c80d1470533c667cf406f0e88 (patch) | |
tree | 66d382ebcc74538c1336d680550a929142b2f374 /include/linux/pds | |
parent | 10659034c622738bc1bfab8a76fc576c52d5acce (diff) |
pds_core: publish events to the clients
When the Core device gets an event from the device, or notices
the device FW to be up or down, it needs to send those events
on to the clients that have an event handler. Add the code to
pass along the events to the clients.
The entry points pdsc_register_notify() and pdsc_unregister_notify()
are EXPORTed for other drivers that want to listen for these events.
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pds')
-rw-r--r-- | include/linux/pds/pds_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pds/pds_common.h b/include/linux/pds/pds_common.h index 4b37675fde3e..060331486d50 100644 --- a/include/linux/pds/pds_common.h +++ b/include/linux/pds/pds_common.h @@ -60,6 +60,8 @@ enum pds_core_logical_qtype { PDS_CORE_QTYPE_MAX = 16 /* don't change - used in struct size */ }; +int pdsc_register_notify(struct notifier_block *nb); +void pdsc_unregister_notify(struct notifier_block *nb); void *pdsc_get_pf_struct(struct pci_dev *vf_pdev); int pds_client_register(struct pci_dev *pf_pdev, char *devname); int pds_client_unregister(struct pci_dev *pf_pdev, u16 client_id); |