diff options
| author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2003-04-07 19:42:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-07 19:42:58 -0700 |
| commit | 55bf1ffd972a75aa2dc4a656eff120b89ca5f602 (patch) | |
| tree | 8ec76d78a14b862ab134b207d40b1fe3e9d411d4 | |
| parent | 4f4f9a6f7c4685ff4f3d0e8e44dd49e530e1be31 (diff) | |
[PATCH] header for pc9800 type detection
| -rw-r--r-- | include/asm-i386/pc9800.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/asm-i386/pc9800.h b/include/asm-i386/pc9800.h new file mode 100644 index 000000000000..1268f351515e --- /dev/null +++ b/include/asm-i386/pc9800.h @@ -0,0 +1,27 @@ +/* + * PC-9800 machine types. + * + * Copyright (C) 1999 TAKAI Kosuke <tak@kmc.kyoto-u.ac.jp> + * (Linux/98 Project) + */ + +#ifndef _ASM_PC9800_H_ +#define _ASM_PC9800_H_ + +#include <asm/pc9800_sca.h> +#include <asm/types.h> + +#define __PC9800SCA(type, pa) (*(type *) phys_to_virt(pa)) +#define __PC9800SCA_TEST_BIT(pa, n) \ + ((__PC9800SCA(u8, pa) & (1U << (n))) != 0) + +#define PC9800_HIGHRESO_P() __PC9800SCA_TEST_BIT(PC9800SCA_BIOS_FLAG, 3) +#define PC9800_8MHz_P() __PC9800SCA_TEST_BIT(PC9800SCA_BIOS_FLAG, 7) + + /* 0x2198 is 98 21 on memory... */ +#define PC9800_9821_P() (__PC9800SCA(u16, PC9821SCA_ROM_ID) == 0x2198) + +/* Note PC9821_...() are valid only when PC9800_9821_P() was true. */ +#define PC9821_IDEIF_DOUBLE_P() __PC9800SCA_TEST_BIT(PC9821SCA_ROM_FLAG4, 4) + +#endif |
