1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_VIRTIO_PCI_ADMIN_H 3 #define _LINUX_VIRTIO_PCI_ADMIN_H 4 5 #include <linux/types.h> 6 #include <linux/pci.h> 7 8 #ifdef CONFIG_VIRTIO_PCI_ADMIN_LEGACY 9 bool virtio_pci_admin_has_legacy_io(struct pci_dev *pdev); 10 int virtio_pci_admin_legacy_common_io_write(struct pci_dev *pdev, u8 offset, 11 u8 size, u8 *buf); 12 int virtio_pci_admin_legacy_common_io_read(struct pci_dev *pdev, u8 offset, 13 u8 size, u8 *buf); 14 int virtio_pci_admin_legacy_device_io_write(struct pci_dev *pdev, u8 offset, 15 u8 size, u8 *buf); 16 int virtio_pci_admin_legacy_device_io_read(struct pci_dev *pdev, u8 offset, 17 u8 size, u8 *buf); 18 int virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev, 19 u8 req_bar_flags, u8 *bar, 20 u64 *bar_offset); 21 #endif 22 23 #endif /* _LINUX_VIRTIO_PCI_ADMIN_H */ 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.