blob: 9f9cd3a42ab1667f009f7658798eb2c731e1ab4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __ASM_SANDBOX_IO_H
#define __ASM_SANDBOX_IO_H
#define IO_SPACE_LIMIT 0xffff
/* pacify static analyzers */
#define PCI_IOBASE ((void __iomem *)__pci_iobase)
extern unsigned char __pci_iobase[IO_SPACE_LIMIT];
#include <asm-generic/io.h>
#include <asm-generic/bitio.h>
static inline void *phys_to_virt(unsigned long phys)
{
return (void *)phys;
}
static inline unsigned long virt_to_phys(volatile void *mem)
{
return (unsigned long)mem;
}
#endif /* __ASM_SANDBOX_IO_H */
|