mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
In certain scenarios (such as VF migration), VF driver needs to interact
with PF driver.
Add a helper to allow VF driver access to PF xe_device.
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20251127093934.1462188-3-michal.winiarski@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
(cherry picked from commit 8b3cce3ad9)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
16 lines
278 B
C
16 lines
278 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PCI_H_
|
|
#define _XE_PCI_H_
|
|
|
|
struct pci_dev;
|
|
|
|
int xe_register_pci_driver(void);
|
|
void xe_unregister_pci_driver(void);
|
|
struct xe_device *xe_pci_to_pf_device(struct pci_dev *pdev);
|
|
|
|
#endif
|