blob: f8421f7ad63a8b0c79ad3dc5e2fd6b64e2832203 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_SH_TYPES_H
2#define __ASM_SH_TYPES_H
3
Paul Mundta8bd4682009-06-14 23:25:27 +09004#include <asm-generic/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6/*
7 * These aren't exported outside the kernel to avoid name space clashes
8 */
9#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#ifndef __ASSEMBLY__
11
Paul Mundt5a4f7c62007-11-20 18:08:06 +090012#ifdef CONFIG_SUPERH32
Paul Mundt2bcfffa2009-05-09 16:02:08 +090013typedef u16 insn_size_t;
Paul Mundt43bc61d2009-08-15 01:57:36 +090014typedef u32 reg_size_t;
Paul Mundt5a4f7c62007-11-20 18:08:06 +090015#else
Paul Mundt2bcfffa2009-05-09 16:02:08 +090016typedef u32 insn_size_t;
Paul Mundt43bc61d2009-08-15 01:57:36 +090017typedef u64 reg_size_t;
Paul Mundt5a4f7c62007-11-20 18:08:06 +090018#endif
19
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#endif /* __ASSEMBLY__ */
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#endif /* __KERNEL__ */
22
23#endif /* __ASM_SH_TYPES_H */