blob: 28c6632638c7c61dd32d1edff73c865fe85b4737 [file] [log] [blame]
Jens Axboeebac4652005-12-08 15:25:21 +01001#ifndef ARCH_H
2#define ARCH_H
3
4enum {
5 arch_x86_64,
6 arch_i386,
7 arch_ppc,
8 arch_ia64,
9 arch_s390,
10 arch_alpha,
Jens Axboe697a6062008-05-31 00:04:45 +020011 arch_sparc,
12 arch_sparc64,
Kedar Sovania1ea6762009-04-23 13:47:41 +020013 arch_arm,
Jens Axboeebac4652005-12-08 15:25:21 +010014};
15
Jens Axboeebac4652005-12-08 15:25:21 +010016#if defined(__i386__)
17#include "arch-x86.h"
18#elif defined(__x86_64__)
19#include "arch-x86_64.h"
20#elif defined(__powerpc__) || defined(__powerpc64__)
21#include "arch-ppc.h"
22#elif defined(__ia64__)
23#include "arch-ia64.h"
24#elif defined(__alpha__)
25#include "arch-alpha.h"
26#elif defined(__s390x__) || defined(__s390__)
27#include "arch-s390.h"
Jens Axboe697a6062008-05-31 00:04:45 +020028#elif defined(__sparc__)
29#include "arch-sparc.h"
30#elif defined(__sparc64__)
31#include "arch-sparc64.h"
Kedar Sovania1ea6762009-04-23 13:47:41 +020032#elif defined(__arm__)
33#include "arch-arm.h"
Jens Axboeebac4652005-12-08 15:25:21 +010034#else
35#error "Unsupported arch"
36#endif
37
Jens Axboe8f7e39d2008-06-01 19:45:10 +020038#ifdef ARCH_HAVE_FFZ
39#define ffz(bitmask) arch_ffz(bitmask)
40#else
41#include "../lib/ffz.h"
42#endif
43
Jens Axboeebac4652005-12-08 15:25:21 +010044#endif