Annotation of kernel/bsd/dev/ppc/drvUSBCMD/uimpriv.h, revision 1.1.1.1

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: /*
                     26:        File:           UIMpriv.h
                     27: 
                     28:        Contains:       Barry Twycross
                     29: 
                     30:        Version:        Neptune 1.0
                     31: 
                     32:        Copyright:      � 1997-1998 by Apple Computer, Inc., all rights reserved.
                     33: 
                     34:        File Ownership:
                     35: 
                     36:                DRI:                            Barry Twycross
                     37: 
                     38:                Other Contact:          xxx put other contact here xxx
                     39: 
                     40:                Technology:                     USB
                     41: 
                     42:        Writers:
                     43: 
                     44:                (TC)    Tom Clark
                     45:                (DF)    David Ferguson
                     46:                (GG)    Guillermo Gallegos
                     47:                (BT)    Barry Twycross
                     48: 
                     49:        Change History (most recent first):
                     50: 
                     51:         <USB25>         8/31/98        BT              Add isoc pipes
                     52:         <USB24>         8/13/98        BT              Add multibus support
                     53:         <USB23>         8/12/98        BT              Move root hub into UIM again
                     54:         <USB22>         7/10/98        TC              Back out <USB21>
                     55:         <USB21>         6/30/98        BT              Move RH sim to UIM
                     56:         <USB20>         6/14/98        DF              Add ResetRootHubSimulation function prototype
                     57:         <USB19>          6/5/98        BT              Use UIM time
                     58:         <USB18>          5/5/98        GG              Change Buffersize from short to unsigned long in
                     59:                                                                        uimBulkTransfer.
                     60:         <USB17>         4/23/98        BT              Add reset portsuspend change
                     61:         <USB16>         4/20/98        BT              Add abort pipe
                     62:         <USB15>         4/16/98        BT              Add over current prototype
                     63:         <USB14>         4/14/98        BT              Add back ControlEDDelete, EDDelete doesn't work for control
                     64:                                                                        endpoints
                     65:         <USB13>          4/9/98        BT              Use USB.h
                     66:                <12>     3/19/98        BT              Split UIM into UIM and root hub parts
                     67:                <11>     3/18/98        BT              Add clear port enable change feature
                     68:                <10>     3/11/98        BT              Int simulation for root hub.
                     69:                 <9>      3/5/98        BT              Add int transactions
                     70:                 <8>     2/23/98        BT              Simulate root hub to not corrupt reqCount
                     71:                 <7>      2/2/98        BT              Add bulk stuff
                     72:                 <6>     1/26/98        BT              Hack in clear enpoint stall
                     73:                 <5>     1/19/98        BT              More root hub sim
                     74:                 <4>     1/13/98        BT              Change uslPacket to uslControlPacket, get ready for int
                     75:                                                                        transactions
                     76:                 <3>    12/19/97        BT              UIM now a Shared lib
                     77: */
                     78: 
                     79: #ifndef __UIMPRIVH__
                     80: #define __UIMPRIVH__
                     81: 
                     82: #include "Library/uslpriv.h"
                     83: 
                     84: #if 0
                     85: enum{
                     86:        uimKBadRef = kUSBNoTran
                     87: 
                     88:        };
                     89: #endif
                     90: 
                     91: OSStatus UIMControlEDCreate(
                     92:        UInt32 bus,
                     93:        UInt8                                           functionNumber,
                     94:        UInt8                                           endpointNumber,
                     95:        UInt16                                          maxPacketSize,
                     96:        UInt8                                           speed);
                     97: 
                     98: OSStatus UIMControlEDDelete(
                     99:        UInt32 bus,
                    100:        short                                           functionNumber,
                    101:        short                                           endpointNumber);
                    102:        
                    103: OSStatus UIMInterruptEDCreate(
                    104:        UInt32 bus,
                    105:        UInt8                                           functionNumber,
                    106:        UInt8                                           endpointNumber,
                    107:        UInt16                                          maxPacketSize,
                    108:        UInt8                                           speed);
                    109: 
                    110: OSStatus UIMIsocEDCreate(
                    111:        UInt32 bus,
                    112:        UInt8                                           functionNumber,
                    113:        UInt8                                           endpointNumber,
                    114:        UInt8                                           direction,      
                    115:        UInt16                                          maxPacketSize);
                    116: 
                    117: OSStatus UIMBulkEDCreate(
                    118:        UInt32 bus,
                    119:        UInt8                                           functionNumber,
                    120:        UInt8                                           endpointNumber,
                    121:        UInt8                                           direction,      
                    122:        UInt8                                           maxPacketSize);
                    123: 
                    124: OSStatus UIMControlTransfer(
                    125:        UInt32 bus,
                    126:        UInt32                                          refcon,
                    127:        CallBackFuncPtr                         handler,
                    128:        UInt32                                          CBP,
                    129:        Boolean                                         bufferRounding,
                    130:        short                                           functionNumber,
                    131:        short                                           endpointNumber,
                    132:        short                                           bufferSize,
                    133:        short                                           direction);
                    134: 
                    135: OSStatus UIMEDDelete(
                    136:        UInt32 bus,
                    137:        short                                           functionNumber,
                    138:        short                                           endpointNumber,
                    139:        short                                           direction);
                    140: 
                    141: OSStatus UIMBulkTransfer(
                    142:        UInt32 bus,
                    143:        UInt32                                          refcon,
                    144:        CallBackFuncPtr                         handler,
                    145:        UInt32                                          CBP,
                    146:        Boolean                                         bufferRounding,
                    147:        short                                           functionNumber,
                    148:        short                                           endpointNumber,
                    149:        UInt32                                          bufferSize,
                    150:        short                                           direction);
                    151: 
                    152: OSStatus UIMIntTransfer(
                    153:        UInt32 bus,
                    154:        short                                           functionNumber,
                    155:        short                                           endpointNumber,
                    156:        UInt32                                          refcon,
                    157:        CallBackFuncPtr                         handler,
                    158:        UInt32                                          CBP,
                    159:        Boolean                                         bufferRounding,
                    160:        short                                           bufferSize);
                    161: 
                    162: OSStatus UIMIsocTransfer(
                    163:        UInt32 bus,
                    164:        short                                           functionNumber,
                    165:        short                                           endpointNumber,
                    166:        short                                           direction,
                    167:        UInt32                                          frameStart, 
                    168:        UInt32                                          refcon,
                    169:        IsocCallBackFuncPtr                     handler,
                    170:        void                                            *buffer,
                    171:        UInt32                                          numFrames,
                    172:        USBIsocFrame                            *frames);
                    173: 
                    174: OSStatus UIMClearEndPointStall(
                    175:        UInt32 bus,
                    176:        short                                           functionNumber,
                    177:        short                                           endpointNumber,
                    178:        short                                           direction);
                    179: 
                    180: OSStatus UIMAbortEndpoint(
                    181:        UInt32 bus,
                    182:        short                                           functionNumber,
                    183:        short                                           endpointNumber,
                    184:        short                                           direction);
                    185: 
                    186: 
                    187: 
                    188: OSStatus UIMResetRootHub (UInt32 bus);
                    189: 
                    190: UInt64 UIMGetCurrentFrame(UInt32 bus);
                    191: 
                    192: void UIMPollRootHubSim(void);
                    193: 
                    194: 
                    195: #endif /*__UIMPRIVH__ */

unix.superglobalmegacorp.com

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