160727d8bSWarner Losh /*- 2*71e3c308SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 3*71e3c308SPedro F. Giffuni * 44b7624a5SPeter Grehan * Copyright 2003 by Peter Grehan. All rights reserved. 54b7624a5SPeter Grehan * 64b7624a5SPeter Grehan * Redistribution and use in source and binary forms, with or without 74b7624a5SPeter Grehan * modification, are permitted provided that the following conditions 84b7624a5SPeter Grehan * are met: 94b7624a5SPeter Grehan * 1. Redistributions of source code must retain the above copyright 104b7624a5SPeter Grehan * notice, this list of conditions and the following disclaimer. 114b7624a5SPeter Grehan * 2. Redistributions in binary form must reproduce the above copyright 124b7624a5SPeter Grehan * notice, this list of conditions and the following disclaimer in the 134b7624a5SPeter Grehan * documentation and/or other materials provided with the distribution. 144b7624a5SPeter Grehan * 3. The name of the author may not be used to endorse or promote products 154b7624a5SPeter Grehan * derived from this software without specific prior written permission. 164b7624a5SPeter Grehan * 174b7624a5SPeter Grehan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 184b7624a5SPeter Grehan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 194b7624a5SPeter Grehan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 204b7624a5SPeter Grehan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 214b7624a5SPeter Grehan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 224b7624a5SPeter Grehan * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 234b7624a5SPeter Grehan * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 244b7624a5SPeter Grehan * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 254b7624a5SPeter Grehan * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 264b7624a5SPeter Grehan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 274b7624a5SPeter Grehan * SUCH DAMAGE. 284b7624a5SPeter Grehan */ 294b7624a5SPeter Grehan 304b7624a5SPeter Grehan #ifndef _POWERPC_POWERMAC_GRACKLEVAR_H_ 314b7624a5SPeter Grehan #define _POWERPC_POWERMAC_GRACKLEVAR_H_ 324b7624a5SPeter Grehan 334b7624a5SPeter Grehan struct grackle_softc { 349a35e64eSNathan Whitehorn struct ofw_pci_softc pci_sc; 354b7624a5SPeter Grehan vm_offset_t sc_addr; 364b7624a5SPeter Grehan vm_offset_t sc_data; 374b7624a5SPeter Grehan }; 384b7624a5SPeter Grehan 394b7624a5SPeter Grehan /* 404b7624a5SPeter Grehan * Apple uses address map B for the MPC106 414b7624a5SPeter Grehan */ 424b7624a5SPeter Grehan #define GRACKLE_ADDR 0xFEC00000 434b7624a5SPeter Grehan #define GRACKLE_DATA 0xFEE00000 444b7624a5SPeter Grehan 454b7624a5SPeter Grehan /* 464b7624a5SPeter Grehan * The high bit of the config word is 'Enable'. This should always be 474b7624a5SPeter Grehan * set. 484b7624a5SPeter Grehan */ 494b7624a5SPeter Grehan #define GRACKLE_CFG_ENABLE 0x80000000 504b7624a5SPeter Grehan 514b7624a5SPeter Grehan #endif /* _POWERPC_POWERMAC_GRACKLEVAR_H_ */ 52