1139825Simp/*- 2116964Sgrehan * Copyright 2003 by Peter Grehan. All rights reserved. 3116964Sgrehan * 4116964Sgrehan * Redistribution and use in source and binary forms, with or without 5116964Sgrehan * modification, are permitted provided that the following conditions 6116964Sgrehan * are met: 7116964Sgrehan * 1. Redistributions of source code must retain the above copyright 8116964Sgrehan * notice, this list of conditions and the following disclaimer. 9116964Sgrehan * 2. Redistributions in binary form must reproduce the above copyright 10116964Sgrehan * notice, this list of conditions and the following disclaimer in the 11116964Sgrehan * documentation and/or other materials provided with the distribution. 12116964Sgrehan * 3. The name of the author may not be used to endorse or promote products 13116964Sgrehan * derived from this software without specific prior written permission. 14116964Sgrehan * 15116964Sgrehan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16116964Sgrehan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17116964Sgrehan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18116964Sgrehan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19116964Sgrehan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 20116964Sgrehan * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21116964Sgrehan * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22116964Sgrehan * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23116964Sgrehan * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24116964Sgrehan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25116964Sgrehan * SUCH DAMAGE. 26116964Sgrehan * 27116964Sgrehan * $FreeBSD$ 28116964Sgrehan */ 29116964Sgrehan 30116964Sgrehan#ifndef _POWERPC_POWERMAC_GRACKLEVAR_H_ 31116964Sgrehan#define _POWERPC_POWERMAC_GRACKLEVAR_H_ 32116964Sgrehan 33116964Sgrehanstruct grackle_softc { 34230993Snwhitehorn struct ofw_pci_softc pci_sc; 35116964Sgrehan vm_offset_t sc_addr; 36116964Sgrehan vm_offset_t sc_data; 37116964Sgrehan}; 38116964Sgrehan 39116964Sgrehan/* 40116964Sgrehan * Apple uses address map B for the MPC106 41116964Sgrehan */ 42116964Sgrehan#define GRACKLE_ADDR 0xFEC00000 43116964Sgrehan#define GRACKLE_DATA 0xFEE00000 44116964Sgrehan 45116964Sgrehan/* 46116964Sgrehan * The high bit of the config word is 'Enable'. This should always be 47116964Sgrehan * set. 48116964Sgrehan */ 49116964Sgrehan#define GRACKLE_CFG_ENABLE 0x80000000 50116964Sgrehan 51116964Sgrehan#endif /* _POWERPC_POWERMAC_GRACKLEVAR_H_ */ 52