mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 06:20:54 +07:00
8d9e9857c5
We should be checking for a 64bit platform not 64bit DMA address types in the case of Goldfish. The Goldfish virtual platform is either 32/32 or 64/64. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 lines
311 B
C
16 lines
311 B
C
#ifndef __LINUX_GOLDFISH_H
|
|
#define __LINUX_GOLDFISH_H
|
|
|
|
/* Helpers for Goldfish virtual platform */
|
|
|
|
static inline void gf_write64(unsigned long data,
|
|
void __iomem *portl, void __iomem *porth)
|
|
{
|
|
writel((u32)data, portl);
|
|
#ifdef CONFIG_64BIT
|
|
writel(data>>32, porth);
|
|
#endif
|
|
}
|
|
|
|
#endif /* __LINUX_GOLDFISH_H */
|