~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/ohare.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_POWERPC_OHARE_H
  3 #define _ASM_POWERPC_OHARE_H
  4 #ifdef __KERNEL__
  5 /*
  6  * ohare.h: definitions for using the "O'Hare" I/O controller chip.
  7  *
  8  * Copyright (C) 1997 Paul Mackerras.
  9  *
 10  * BenH: Changed to match those of heathrow (but not all of them). Please
 11  *       check if I didn't break anything (especially the media bay).
 12  */
 13 
 14 /* offset from ohare base for feature control register */
 15 #define OHARE_MBCR      0x34
 16 #define OHARE_FCR       0x38
 17 
 18 /*
 19  * Bits in feature control register.
 20  * These were mostly derived by experiment on a powerbook 3400
 21  * and may differ for other machines.
 22  */
 23 #define OH_SCC_RESET            1
 24 #define OH_BAY_POWER_N          2       /* a guess */
 25 #define OH_BAY_PCI_ENABLE       4       /* a guess */
 26 #define OH_BAY_IDE_ENABLE       8
 27 #define OH_BAY_FLOPPY_ENABLE    0x10
 28 #define OH_IDE0_ENABLE          0x20
 29 #define OH_IDE0_RESET_N         0x40    /* a guess */
 30 #define OH_BAY_DEV_MASK         0x1c
 31 #define OH_BAY_RESET_N          0x80
 32 #define OH_IOBUS_ENABLE         0x100   /* IOBUS seems to be IDE */
 33 #define OH_SCC_ENABLE           0x200
 34 #define OH_MESH_ENABLE          0x400
 35 #define OH_FLOPPY_ENABLE        0x800
 36 #define OH_SCCA_IO              0x4000
 37 #define OH_SCCB_IO              0x8000
 38 #define OH_VIA_ENABLE           0x10000 /* Is apparently wrong, to be verified */
 39 #define OH_IDE1_RESET_N         0x800000
 40 
 41 /*
 42  * Bits to set in the feature control register on PowerBooks.
 43  */
 44 #define PBOOK_FEATURES          (OH_IDE_ENABLE | OH_SCC_ENABLE | \
 45                                  OH_MESH_ENABLE | OH_SCCA_IO | OH_SCCB_IO)
 46 
 47 /*
 48  * A magic value to put into the feature control register of the
 49  * "ohare" I/O controller on Starmaxes to enable the IDE CD interface.
 50  * Contributed by Harry Eaton.
 51  */
 52 #define STARMAX_FEATURES        0xbeff7a
 53 
 54 #endif /* __KERNEL__ */
 55 #endif /* _ASM_POWERPC_OHARE_H */
 56 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php