|
|
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: Hub.h
27:
28: Contains: Definitions for the USB hub driver
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: xxx put technology here xxx
41:
42: Writers:
43:
44: (BT) Barry Twycross
45: (CJK) Craig Keithley
46:
47: Change History (most recent first):
48:
49: <USB16> 9/10/98 BT Add are we finished
50: <USB15> 6/30/98 BT Some defs moved to usb.i
51: <USB14> 5/28/98 CJK change file creater to 'MPS '
52: <USB13> 4/14/98 BT Do removed devices when killed
53: <12> 4/2/98 BT Fix hub features to set
54: <11> 2/8/98 BT Power allocation stuff
55: <10> 1/26/98 CJK Change to use USBDeviceDescriptor (instead of just
56: devicedescriptor)
57: <9> 1/26/98 BT Mangle names after design review
58: <8> 1/19/98 BT More root hub sim
59: <7> 12/22/97 BT StartRootHub moving to USL
60: <6> 12/18/97 BT CHanges to dispatch table.
61: <5> 12/18/97 BT Add expert notify to entry
62: <4> 12/18/97 BT Move device descriptor to USL.h
63: <3> 12/17/97 BT Bring my hub.h in from the USL.
64: <2> 12/4/97 CJK Add BBS file header
65: <1> 12/4/97 CJK First checked in
66: */
67:
68: #ifndef __HUBH__
69: #define __HUBH__
70:
71:
72:
73: #define OFFSET(ty, fl) ((UInt32) &(((ty *)0)->fl))
74:
75: long x(long y);
76: Boolean bit(long value, long mask);
77: Boolean immediateError(OSStatus err);
78:
79:
80: // A.W made it static, so no need for it here OSStatus HubAreWeFinishedYet(void);
81: // A.W. this seems unused anywhere in source code void hubExpertNotify(void *exNote);
82:
83:
84: void HubDriverEntry(USBDeviceRef device, USBDeviceDescriptorPtr pDesc, UInt32 busPowerAvailable);
85: void Hub2DriverEntry(USBDeviceRef device, USBDeviceDescriptorPtr pDesc, UInt32 busPowerAvailable);
86: // A.W made it static, so no need for it here OSStatus killHub(USBDeviceRef device);
87:
88: #endif
89:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.