2 * ohare.h: definitions for using the "O'Hare" I/O controller chip.
4 * Copyright (C) 1997 Paul Mackerras.
7 /* offset from ohare base for feature control register */
8 #define OHARE_FEATURE_REG 0x38
11 * Bits in feature control register.
12 * These were mostly derived by experiment on a powerbook 3400
13 * and may differ for other machines.
15 #define OH_SCC_RESET 1
16 #define OH_BAY_RESET 2 /* a guess */
17 #define OH_BAY_PCI_ENABLE 4 /* a guess */
18 #define OH_BAY_IDE_ENABLE 8
19 #define OH_BAY_FLOPPY_ENABLE 0x10
20 #define OH_IDE_ENABLE 0x20
21 #define OH_IDE_POWER 0x40 /* a guess */
22 #define OH_BAY_ENABLE 0x80
23 #define OH_IDE_RESET 0x100 /* 0-based, a guess */
24 #define OH_SCC_ENABLE 0x200
25 #define OH_MESH_ENABLE 0x400
26 #define OH_FLOPPY_ENABLE 0x800
27 #define OH_SCCA_IO 0x4000
28 #define OH_SCCB_IO 0x8000
29 #define OH_VIA_ENABLE 0x10000
30 #define OH_IDECD_POWER 0x800000
33 * Bits to set in the feature control register on PowerBooks.
35 #define PBOOK_FEATURES (OH_IDE_ENABLE | OH_SCC_ENABLE | \
36 OH_MESH_ENABLE | OH_SCCA_IO | OH_SCCB_IO)
39 * A magic value to put into the feature control register of the
40 * "ohare" I/O controller on Starmaxes to enable the IDE CD interface.
41 * Contributed by Harry Eaton.
43 #define STARMAX_FEATURES 0xbeff7a