diff options
author | Mark A. Greer <mgreer@mvista.com> | 2006-09-19 04:05:08 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-09-20 05:09:58 (GMT) |
commit | b2c5f61920eeee9c4e78698de4fde4586fe5ae79 (patch) | |
tree | 53927c324413786b34db4f0e79cd0aa436d3f930 /arch/powerpc/boot/types.h | |
parent | a4dc7ff08915a2035aa6d6decc53fa1deaa410bb (diff) | |
download | linux-b2c5f61920eeee9c4e78698de4fde4586fe5ae79.tar.xz |
[POWERPC] Start arch/powerpc/boot code reorganization
This abstracts the operations used in the bootwrapper, and defines
the operations needed for the bootwrapper to run on an OF platform.
The operations have been divided up into platform ops (platform_ops),
firmware ops (fw_ops), device tree ops (dt_ops), and console ops
(console_ops).
The proper operations will be hooked up at runtime to provide the
functionality that you need.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/types.h')
-rw-r--r-- | arch/powerpc/boot/types.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/powerpc/boot/types.h b/arch/powerpc/boot/types.h new file mode 100644 index 0000000..79d26e7 --- /dev/null +++ b/arch/powerpc/boot/types.h @@ -0,0 +1,23 @@ +#ifndef _TYPES_H_ +#define _TYPES_H_ + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32; +typedef unsigned long long u64; + +#define min(x,y) ({ \ + typeof(x) _x = (x); \ + typeof(y) _y = (y); \ + (void) (&_x == &_y); \ + _x < _y ? _x : _y; }) + +#define max(x,y) ({ \ + typeof(x) _x = (x); \ + typeof(y) _y = (y); \ + (void) (&_x == &_y); \ + _x > _y ? _x : _y; }) + +#endif /* _TYPES_H_ */ |