|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: /* ! 25: * Copyright (c) 1997 Apple Computer, Inc. ! 26: * ! 27: * ! 28: * HISTORY ! 29: * ! 30: * Simon Douglas 22 Oct 97 ! 31: * - first checked in. ! 32: */ ! 33: ! 34: ! 35: #import <driverkit/ppc/IODeviceTreeBus.h> ! 36: #import <driverkit/ppc/IOPCIDevice.h> ! 37: ! 38: ! 39: @interface IOPCIBridge : IODeviceTreeBus ! 40: { ! 41: id parentBridge; // or nil ! 42: UInt8 primaryBus; ! 43: int __reserved[ 4 ]; ! 44: } ! 45: - (IOReturn) configWriteLong:(IOPCIDevice *)device ! 46: offset:(UInt32)offset value:(UInt32)value; ! 47: - (IOReturn) configReadLong:(IOPCIDevice *)device ! 48: offset:(UInt32)offset value:(UInt32 *)value; ! 49: - (LogicalAddress) getIOAperture; ! 50: - getDeviceUnitStr:(IOPCIDevice *)device name:(char *)name maxLength:(int)len; ! 51: ! 52: // implemented by subclasses ! 53: - (IOReturn) mapRegisters:device; ! 54: - (volatile UInt32 *) setConfigAddress:(IOPCIDevice *)device offset:(UInt32)offset; ! 55: - (LogicalAddress) getIOAperture; ! 56: ! 57: @end ! 58: ! 59: @interface IOMacRiscPCIBridge : IOPCIBridge ! 60: { ! 61: @private ! 62: volatile UInt32 * configAddr; ! 63: volatile UInt32 * configData; ! 64: volatile UInt32 * ioAperture; ! 65: int ___reserved[ 4 ]; ! 66: } ! 67: ! 68: - (BOOL) isVCI; ! 69: ! 70: @end ! 71: ! 72: @interface IOMacRiscVCIBridge : IOMacRiscPCIBridge ! 73: { ! 74: } ! 75: @end ! 76: ! 77: @interface IOGracklePCIBridge : IOPCIBridge ! 78: { ! 79: @private ! 80: volatile UInt32 * configAddr; ! 81: volatile UInt32 * configData; ! 82: volatile UInt32 * ioAperture; ! 83: int ___reserved[ 4 ]; ! 84: } ! 85: @end ! 86:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.