io.h (a5bb207ada5b6631906818ed0b7f62a5475cafcc) io.h (20e3267601f95ff62d7a3116a17a680e9f5cbcc9)
1/*
2 * arch/arm/include/asm/io.h
3 *
4 * Copyright (C) 1996-2000 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 445 unchanged lines hidden (view full) ---

454
455/*
456 * Convert a virtual cached pointer to an uncached pointer
457 */
458#define xlate_dev_kmem_ptr(p) p
459
460#include <asm-generic/io.h>
461
1/*
2 * arch/arm/include/asm/io.h
3 *
4 * Copyright (C) 1996-2000 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 445 unchanged lines hidden (view full) ---

454
455/*
456 * Convert a virtual cached pointer to an uncached pointer
457 */
458#define xlate_dev_kmem_ptr(p) p
459
460#include <asm-generic/io.h>
461
462struct bio_vec;
463extern bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,
464 const struct bio_vec *vec2);
465#define ARCH_BIOVEC_PHYS_MERGEABLE(vec1, vec2) \
466 (!xen_domain() || xen_biovec_phys_mergeable(vec1, vec2))
467
468#ifdef CONFIG_MMU
469#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
470extern int valid_phys_addr_range(phys_addr_t addr, size_t size);
471extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
472extern int devmem_is_allowed(unsigned long pfn);
473#endif
474
475/*
476 * Register ISA memory and port locations for glibc iopl/inb/outb
477 * emulation.
478 */
479extern void register_isa_ports(unsigned int mmio, unsigned int io,
480 unsigned int io_shift);
481
482#endif /* __KERNEL__ */
483#endif /* __ASM_ARM_IO_H */
462#define ARCH_BIOVEC_PHYS_MERGEABLE(vec1, vec2) \
463 (!xen_domain() || xen_biovec_phys_mergeable(vec1, vec2))
464
465#ifdef CONFIG_MMU
466#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
467extern int valid_phys_addr_range(phys_addr_t addr, size_t size);
468extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
469extern int devmem_is_allowed(unsigned long pfn);
470#endif
471
472/*
473 * Register ISA memory and port locations for glibc iopl/inb/outb
474 * emulation.
475 */
476extern void register_isa_ports(unsigned int mmio, unsigned int io,
477 unsigned int io_shift);
478
479#endif /* __KERNEL__ */
480#endif /* __ASM_ARM_IO_H */