hc
2023-10-25 6c2073b7aa40e29d0eca7d571dd7bc590c7ecaa7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_PCI_64_H
#define _ASM_X86_PCI_64_H
 
#ifdef __KERNEL__
 
#ifdef CONFIG_CALGARY_IOMMU
static inline void *pci_iommu(struct pci_bus *bus)
{
   struct pci_sysdata *sd = bus->sysdata;
   return sd->iommu;
}
 
static inline void set_pci_iommu(struct pci_bus *bus, void *val)
{
   struct pci_sysdata *sd = bus->sysdata;
   sd->iommu = val;
}
#endif /* CONFIG_CALGARY_IOMMU */
 
extern int (*pci_config_read)(int seg, int bus, int dev, int fn,
                 int reg, int len, u32 *value);
extern int (*pci_config_write)(int seg, int bus, int dev, int fn,
                  int reg, int len, u32 value);
 
#endif /* __KERNEL__ */
 
#endif /* _ASM_X86_PCI_64_H */