Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 1 | #ifndef ARCH_H |
| 2 | #define ARCH_H |
| 3 | |
| 4 | enum { |
| 5 | arch_x86_64, |
| 6 | arch_i386, |
| 7 | arch_ppc, |
| 8 | arch_ia64, |
| 9 | arch_s390, |
| 10 | arch_alpha, |
Jens Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 11 | arch_sparc, |
| 12 | arch_sparc64, |
Kedar Sovani | a1ea676 | 2009-04-23 13:47:41 +0200 | [diff] [blame] | 13 | arch_arm, |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 14 | }; |
| 15 | |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 16 | #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 Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 28 | #elif defined(__sparc__) |
| 29 | #include "arch-sparc.h" |
| 30 | #elif defined(__sparc64__) |
| 31 | #include "arch-sparc64.h" |
Kedar Sovani | a1ea676 | 2009-04-23 13:47:41 +0200 | [diff] [blame] | 32 | #elif defined(__arm__) |
| 33 | #include "arch-arm.h" |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 34 | #else |
| 35 | #error "Unsupported arch" |
| 36 | #endif |
| 37 | |
Jens Axboe | 8f7e39d | 2008-06-01 19:45:10 +0200 | [diff] [blame] | 38 | #ifdef ARCH_HAVE_FFZ |
| 39 | #define ffz(bitmask) arch_ffz(bitmask) |
| 40 | #else |
| 41 | #include "../lib/ffz.h" |
| 42 | #endif |
| 43 | |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 44 | #endif |