4 * Copyright (C) 2008 Paul Mundt
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
15 * You really shouldn't be using read() or write() on /dev/mem. This
16 * might go away in the future.
18 int valid_phys_addr_range(unsigned long addr
, size_t count
)
20 if (addr
< __MEMORY_START
)
22 if (addr
+ count
> __pa(high_memory
))
28 int valid_mmap_phys_addr_range(unsigned long pfn
, size_t size
)