pci.h (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) | pci.h (15d45cce3a0e0716fa49c768f887c6406dfb91f7) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 */ 6#ifndef _ASM_PCI_H 7#define _ASM_PCI_H 8 --- 70 unchanged lines hidden (view full) --- 79 enum pci_mmap_state mmap_state, int write_combine); 80 81#define HAVE_ARCH_PCI_RESOURCE_TO_USER 82 83static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, 84 const struct resource *rsrc, resource_size_t *start, 85 resource_size_t *end) 86{ | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 */ 6#ifndef _ASM_PCI_H 7#define _ASM_PCI_H 8 --- 70 unchanged lines hidden (view full) --- 79 enum pci_mmap_state mmap_state, int write_combine); 80 81#define HAVE_ARCH_PCI_RESOURCE_TO_USER 82 83static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, 84 const struct resource *rsrc, resource_size_t *start, 85 resource_size_t *end) 86{ |
87 phys_t size = resource_size(rsrc); | 87 phys_addr_t size = resource_size(rsrc); |
88 89 *start = fixup_bigphys_addr(rsrc->start, size); 90 *end = rsrc->start + size; 91} 92 93/* 94 * Dynamic DMA mapping stuff. 95 * MIPS has everything mapped statically. --- 62 unchanged lines hidden --- | 88 89 *start = fixup_bigphys_addr(rsrc->start, size); 90 *end = rsrc->start + size; 91} 92 93/* 94 * Dynamic DMA mapping stuff. 95 * MIPS has everything mapped statically. --- 62 unchanged lines hidden --- |