X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fmachdep.h;h=da7746738aee723ad331a7bb20b796a337894307;hb=138a0128c01899ee8492858a50856b90d0d9d815;hp=2723b423f6757be06a7fbf55c5612fc52926142a;hpb=cf66c897d7fa07f57452b1a369aec37d97b11e31;p=powerpc.git diff --git a/include/asm-ppc/machdep.h b/include/asm-ppc/machdep.h index 2723b423f6..da7746738a 100644 --- a/include/asm-ppc/machdep.h +++ b/include/asm-ppc/machdep.h @@ -2,7 +2,6 @@ #ifndef _PPC_MACHDEP_H #define _PPC_MACHDEP_H -#include #include #include @@ -19,6 +18,18 @@ struct pci_dev; struct seq_file; struct file; +/* + * This is for compatibility with ARCH=powerpc. + */ +#define machine_is(x) __MACHINE_IS_##x +#define __MACHINE_IS_powermac 0 +#define __MACHINE_IS_chrp 0 +#ifdef CONFIG_PPC_PREP +#define __MACHINE_IS_prep 1 +#else +#define __MACHINE_IS_prep 0 +#endif + /* We export this macro for external modules like Alsa to know if * ppc_md.feature_call is implemented or not */