Annotation of XNU/iokit/Families/IOFireWire/IOFireWireUserClient.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_IOFIREWIREUSERCLIENT_H
        !            31: #define _IOKIT_IOFIREWIREUSERCLIENT_H
        !            32: 
        !            33: #include <IOKit/IOUserClient.h>
        !            34: #include <IOKit/firewire/IOFWIsoch.h>
        !            35: 
        !            36: // Temporary place for these
        !            37: enum {
        !            38:     kFireWireRead = 0,
        !            39:     kFireWireWrite,
        !            40:     kFireWireCompareSwap,
        !            41:     kFireWireBusReset,
        !            42:     kFireWireTest,
        !            43:     kFireWireCycleTime,
        !            44:     kFireWireCompileDCL,
        !            45:     kFireWireRunDCL,
        !            46:     kFireWireStopDCL,
        !            47:     kNumFireWireMethods
        !            48: };
        !            49: 
        !            50: class IOFireWireDevice;
        !            51: 
        !            52: class IOFireWireUserClient : public IOUserClient
        !            53: {
        !            54:     OSDeclareDefaultStructors(IOFireWireUserClient)
        !            55: 
        !            56: private:
        !            57:     IOFireWireDevice * fOwner;
        !            58:     task_t             fTask;
        !            59:     IOExternalMethod   fMethods[ kNumFireWireMethods ];
        !            60:     IOExternalAsyncMethod fAsyncMethods[ kNumFireWireMethods ];
        !            61: 
        !            62:     static void kernPongProc(void *refcon, void * userProc, void * dclCommand);
        !            63: 
        !            64: public:
        !            65:     static IOFireWireUserClient *withTask(task_t owningTask);
        !            66: 
        !            67:     virtual IOReturn clientClose( void );
        !            68:     virtual IOReturn clientDied( void );
        !            69: 
        !            70:     virtual IOReturn clientMemoryForType( UInt32 type,
        !            71:         UInt32 * flags, IOMemoryDescriptor ** memory );
        !            72: 
        !            73:     virtual IOExternalMethod * getExternalMethodForIndex( UInt32 index );
        !            74:     virtual IOExternalAsyncMethod * getExternalAsyncMethodForIndex( UInt32 index );
        !            75:     virtual bool start( IOService * provider );
        !            76: 
        !            77:     virtual IOReturn Read(UInt32 addrHi, UInt32 addrLo, void *buf, UInt32 *size);
        !            78:     virtual IOReturn Write(UInt32 addrHi, UInt32 addrLo, void *buf, UInt32 size);
        !            79:     virtual IOReturn CompareSwap(UInt32 addrHi, UInt32 addrLo, UInt32 cmpVal, UInt32 newVal);
        !            80:     virtual IOReturn BusReset();
        !            81: 
        !            82:     virtual IOReturn message( UInt32 type, IOService * provider,
        !            83:                                void * argument );
        !            84: 
        !            85:     virtual IOReturn Test();
        !            86: 
        !            87:     virtual IOReturn CompileDCL(UInt32 dclStart, UInt32 dclBase,
        !            88:        UInt32 dclSize, UInt32 dataBase, UInt32 dataSize, UInt32 *program);
        !            89: 
        !            90:     virtual IOReturn RunDCL(OSAsyncReference asyncRef, UInt32 program);
        !            91: 
        !            92:     virtual IOReturn StopDCL(UInt32 program);
        !            93: 
        !            94: };
        !            95: 
        !            96: #endif /* ! _IOKIT_IOFIREWIREUSERCLIENT_H */
        !            97: 

unix.superglobalmegacorp.com

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