We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9213ad7 commit 4c2924bCopy full SHA for 4c2924b
arch/mips/include/asm/pci.h
@@ -83,6 +83,18 @@ static inline void pcibios_penalize_isa_irq(int irq, int active)
83
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
84
enum pci_mmap_state mmap_state, int write_combine);
85
86
+#define HAVE_ARCH_PCI_RESOURCE_TO_USER
87
+
88
+static inline void pci_resource_to_user(const struct pci_dev *dev, int bar,
89
+ const struct resource *rsrc, resource_size_t *start,
90
+ resource_size_t *end)
91
+{
92
+ phys_t size = resource_size(rsrc);
93
94
+ *start = fixup_bigphys_addr(rsrc->start, size);
95
+ *end = rsrc->start + size;
96
+}
97
98
/*
99
* Dynamic DMA mapping stuff.
100
* MIPS has everything mapped statically.
0 commit comments