1 #ifndef __ASM_SH64_HARDWARE_H
2 #define __ASM_SH64_HARDWARE_H
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
9 * include/asm-sh64/hardware.h
11 * Copyright (C) 2002 Stuart Menefy
12 * Copyright (C) 2003 Paul Mundt
14 * Defitions of the locations of registers in the physical address space.
17 #define PHYS_PERIPHERAL_BLOCK 0x09000000
18 #define PHYS_DMAC_BLOCK 0x0e000000
19 #define PHYS_PCI_BLOCK 0x60000000
22 #include <linux/types.h>
26 u8 perr_flags; /* P-port Error flags */
27 u8 merr_flags; /* Module Error flags */
28 u16 mod_vers; /* Module Version */
29 u16 mod_id; /* Module ID */
30 u8 bot_mb; /* Bottom Memory block */
31 u8 top_mb; /* Top Memory block */
34 static inline struct vcr_info sh64_get_vcr_info(unsigned long base)
36 unsigned long long tmp;
38 tmp = sh64_in64(base);
40 return *((struct vcr_info *)&tmp);
43 #endif /* __ASSEMBLY__ */
45 #endif /* __ASM_SH64_HARDWARE_H */