Chameleon

Chameleon Svn Source Tree

Root/branches/Chimera/i386/include/IOKit/firewire/IOFWLocalIsochPort.h

1/*
2 * Copyright (c) 1998-2002 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-2002 Apple Computer, Inc. All rights reserved.
24 *
25 * IOFWIsochPort is an abstract object that represents hardware on the bus
26 * (locally or remotely) that sends or receives isochronous packets.
27 * Local ports are implemented by the local device driver,
28 * Remote ports are implemented by the driver for the remote device.
29 *
30 * HISTORY
31 *
32 * $Log: IOFWLocalIsochPort.h,v $
33 * Revision 1.10 2004/06/10 20:57:36 niels
34 * *** empty log message ***
35 *
36 * Revision 1.9 2003/08/30 00:16:44 collin
37 * *** empty log message ***
38 *
39 * Revision 1.8 2003/08/15 04:36:55 niels
40 * *** empty log message ***
41 *
42 * Revision 1.7 2003/07/29 22:49:22 niels
43 * *** empty log message ***
44 *
45 * Revision 1.6 2003/07/21 06:52:58 niels
46 * merge isoch to TOT
47 *
48 * Revision 1.5.14.1 2003/07/01 20:54:07 niels
49 * isoch merge
50 *
51 */
52
53
54#ifndef _IOKIT_IOFWLOCALISOCHPORT_H
55#define _IOKIT_IOFWLOCALISOCHPORT_H
56
57#import <IOKit/firewire/IOFireWireFamilyCommon.h>
58#import <IOKit/firewire/IOFWIsochPort.h>
59
60class IOFireWireController;
61class IODCLProgram;
62
63/*! @class IOFWLocalIsochPort
64*/
65class IOFWLocalIsochPort : public IOFWIsochPort
66{
67 OSDeclareDefaultStructors(IOFWLocalIsochPort)
68
69protected:
70
71IOFireWireController *fControl;
72IODCLProgram *fProgram;
73
74/*! @struct ExpansionData
75@discussion This structure will be used to expand the capablilties of the class in the future.
76*/
77struct ExpansionData
78{
79} ;
80
81ExpansionData *fExpansion ;
82
83protected :
84
85virtual void free ( void ) ;
86
87public:
88
89virtual bool init (
90IODCLProgram *program,
91IOFireWireController *control ) ;
92
93// Return maximum speed and channels supported
94// (bit n set = chan n supported)
95virtual IOReturn getSupported (
96IOFWSpeed &maxSpeed,
97UInt64 &chanSupported ) ;
98
99// Allocate hardware resources for port
100virtual IOReturn allocatePort (
101IOFWSpeed speed,
102UInt32 chan ) ;
103virtual IOReturn releasePort ( void ) ;// Free hardware resources
104virtual IOReturn start ( void ) ;// Start port processing packets
105virtual IOReturn stop ( void ) ;// Stop processing packets
106
107/*! @function notify
108@abstract Informs hardware of a change to the DCL program.
109@param notificationType Type of change.
110@param dclCommandList List of DCL commands that have been changed.
111@param numDCLCommands Number of commands in list.
112@result IOKit error code. */
113virtual IOReturn notify(
114IOFWDCLNotificationType notificationType,
115DCLCommand ** dclCommandList,
116UInt32 numDCLCommands ) ;
117static voidprintDCLProgram (
118const DCLCommand *dcl,
119UInt32count = 0,
120void (*printFN)( const char *format, ...) = NULL,
121unsignedlineDelayMS = 0 ) ;
122IOReturnsetIsochResourceFlags (
123IOFWIsochResourceFlagsflags ) ;
124IODCLProgram *getProgramRef() const ;
125
126IOReturnsynchronizeWithIO() ;
127
128private:
129
130OSMetaClassDeclareReservedUnused ( IOFWLocalIsochPort, 0 ) ;
131OSMetaClassDeclareReservedUnused ( IOFWLocalIsochPort, 1 ) ;
132};
133
134#endif /* ! _IOKIT_IOFWLOCALISOCHPORT_H */
135
136

Archive Download this file

Revision: 2225