diff options
Diffstat (limited to 'arch/mips/include/asm/pci.h')
| -rw-r--r-- | arch/mips/include/asm/pci.h | 17 | 
1 files changed, 12 insertions, 5 deletions
diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index f194c08bd05..974b0e30896 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h @@ -73,16 +73,23 @@ extern unsigned long PCIBIOS_MIN_MEM;  extern void pcibios_set_master(struct pci_dev *dev); -static inline void pcibios_penalize_isa_irq(int irq, int active) -{ -	/* We don't do dynamic PCI IRQ allocation */ -} -  #define HAVE_PCI_MMAP  extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,  	enum pci_mmap_state mmap_state, int write_combine); +#define HAVE_ARCH_PCI_RESOURCE_TO_USER + +static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, +		const struct resource *rsrc, resource_size_t *start, +		resource_size_t *end) +{ +	phys_t size = resource_size(rsrc); + +	*start = fixup_bigphys_addr(rsrc->start, size); +	*end = rsrc->start + size; +} +  /*   * Dynamic DMA mapping stuff.   * MIPS has everything mapped statically.  | 
