Blame view
include/linux/goldfish.h
566 Bytes
425f3740c
|
1 2 3 4 |
#ifndef __LINUX_GOLDFISH_H #define __LINUX_GOLDFISH_H /* Helpers for Goldfish virtual platform */ |
07d783fd8
|
5 6 |
static inline void gf_write_ptr(const void *ptr, void __iomem *portl, void __iomem *porth) |
425f3740c
|
7 |
{ |
07d783fd8
|
8 |
writel((u32)(unsigned long)ptr, portl); |
8d9e9857c
|
9 |
#ifdef CONFIG_64BIT |
07d783fd8
|
10 |
writel((unsigned long)ptr >> 32, porth); |
425f3740c
|
11 12 |
#endif } |
07d783fd8
|
13 14 15 16 17 18 19 20 21 |
static inline void gf_write_dma_addr(const dma_addr_t addr, void __iomem *portl, void __iomem *porth) { writel((u32)addr, portl); #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT writel(addr >> 32, porth); #endif } |
425f3740c
|
22 |
#endif /* __LINUX_GOLDFISH_H */ |