Annotation of XNU/iokit/IOKit/firewire/IOFireWireBus.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * The contents of this file constitute Original Code as defined in and
        !             7:  * are subject to the Apple Public Source License Version 1.1 (the
        !             8:  * "License").  You may not use this file except in compliance with the
        !             9:  * License.  Please obtain a copy of the License at
        !            10:  * http://www.apple.com/publicsource and read it before using this file.
        !            11:  * 
        !            12:  * This Original Code and all software distributed under the License are
        !            13:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            14:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            15:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            16:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            17:  * License for the specific language governing rights and limitations
        !            18:  * under the License.
        !            19:  * 
        !            20:  * @APPLE_LICENSE_HEADER_END@
        !            21:  */
        !            22: /*
        !            23:  * Copyright (c) 1999 Apple Computer, Inc.  All rights reserved.
        !            24:  *
        !            25:  * HISTORY
        !            26:  *
        !            27:  */
        !            28: 
        !            29: 
        !            30: #ifndef _IOKIT_IOFIREWIREBUS_H
        !            31: #define _IOKIT_IOFIREWIREBUS_H
        !            32: 
        !            33: #include <IOKit/IOService.h>
        !            34: #include <IOKit/firewire/IOFWIsochChannel.h>
        !            35: 
        !            36: class IOFWIsochPort;
        !            37: struct DCLCommandStruct;
        !            38: 
        !            39: class IOFireWireBus : public IOService
        !            40: {
        !            41:     OSDeclareAbstractStructors(IOFireWireBus)
        !            42: 
        !            43: public:
        !            44: 
        !            45:     typedef void (CallUserProc)(void *refcon, void * userProc, void * dclCommand);
        !            46:     typedef struct _DCLTaskInfo {
        !            47:         task_t fTask;  // Task DCL addresses are valid in
        !            48:         vm_address_t fDCLBaseAddr;
        !            49:         UInt32 fDCLSize;       // In bytes
        !            50:         vm_address_t fDataBaseAddr;
        !            51:         UInt32 fDataSize;
        !            52:         CallUserProc *fCallUser; // Routine to handle DCLCallCommandProcs
        !            53:         void *fCallRefCon;     // Refcon for user call
        !            54:     } DCLTaskInfo;
        !            55: 
        !            56:     // Create an Isochronous Channel object
        !            57:     virtual IOFWIsochChannel *createIsochChannel(
        !            58:        bool doIRM, UInt32 bandwidth, IOFWSpeed prefSpeed,
        !            59:        FWIsochChannelForceStopNotificationProc stopProc=NULL,
        !            60:        void *stopRefCon=NULL) = 0;
        !            61:  
        !            62:    // Create a local isochronous port to run the given DCL program
        !            63:     virtual IOFWIsochPort *createLocalIsochPort(bool talking,
        !            64:         DCLCommandStruct *opcodes, DCLTaskInfo *info = 0,
        !            65:        UInt32 startEvent = 0, UInt32 startState = 0, UInt32 startMask = 0) = 0;
        !            66: };
        !            67: 
        !            68: #endif /* ! _IOKIT_IOFIREWIREBUS_H */
        !            69: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.