author | hgs |
Fri, 06 Aug 2010 11:24:47 +0800 | |
changeset 34 | 2fcc881ba6f5 |
parent 29 | 59aa7d6e3e0f |
child 40 | 2bf7d1df7393 |
permissions | -rw-r--r-- |
0
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
26 | 2 |
* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
0
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* Universal Serial Bus Interface Manager |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
* |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
*/ |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
|
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#ifndef __USBMAN_IBY__ |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#define __USBMAN_IBY__ |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
|
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
REM *** The following iby files are always included, whether usb is supported |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
REM *** by the device or not. |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
|
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
#include <c32.iby> |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
#include <ecom.iby> |
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
|
26 | 28 |
// If __USB_DEBUG__ is defined pull in debug versions of the |
29 |
// USB DLLs and Plugins regardless of the ROM type |
|
30 |
#ifdef __USB_DEBUG__ |
|
31 |
define USB_DIR UDEB |
|
32 |
#define USB_PLUGIN ECOM_PLUGIN_UDEB |
|
33 |
#else |
|
34 |
define USB_DIR BUILD_DIR |
|
35 |
#define USB_PLUGIN ECOM_PLUGIN |
|
36 |
#endif |
|
37 |
||
38 |
||
39 |
// *** Check we have been given a sensible set of buildrom options |
|
40 |
#if defined (__OBEX_OVER_USB__) && (defined (__TEST_USB_ZLP__) || defined (__USBMAN_DUMMYCC__)) |
|
41 |
#error Defining both OBEX over USB _and_ Zero Length Packet testing or dummy class controllers does not make sense. |
|
42 |
#endif |
|
43 |
||
44 |
// *** USBMAN.DLL is the client side. It is always included in the ROM, |
|
45 |
// *** whether USB is supported by the device or not, so that client |
|
46 |
// *** applications can link against it regardless. |
|
47 |
file=ABI_DIR\USB_DIR\usbman.dll usbman.dll |
|
48 |
||
49 |
// The main backup registration file. Plug-ins should use its own backup registration file in order to back its perfered data. |
|
50 |
data=ZPRIVATE\101fe1db\backup_registration.xml private\101fe1db\backup_registration.xml |
|
51 |
||
52 |
||
53 |
#if defined(_DEBUG) || defined (__USB_DEBUG__) |
|
54 |
#include "commsdebugutility.iby" |
|
55 |
#endif |
|
56 |
||
57 |
// *** Now for things which should only be included if the device supports |
|
58 |
// *** USB, to save ROM space... |
|
59 |
#if !defined(__USB) || !defined(EUSBC) |
|
60 |
REM Feature USB is not included in this ROM (usbman.iby) |
|
61 |
#else //defined(__USB) && defined(EUSBC) |
|
62 |
||
63 |
#include <usbacm.iby> |
|
64 |
||
28 | 65 |
#include <usbncm.iby> |
66 |
||
26 | 67 |
#ifndef __OBEX_OVER_USB__ |
68 |
#ifndef __TEST_USB_ZLP__ |
|
69 |
#ifdef __EXAMPLE_OBEX_CC__ |
|
70 |
// *** OBEX Class Controller plugin. |
|
71 |
USB_PLUGIN(obexclasscontroller.dll,1027433a.rsc) |
|
72 |
// *** All the files needed by Obex Class Controller |
|
73 |
// *** The executable that the class controller links to |
|
74 |
file=ABI_DIR\BUILD_DIR\classControllerServerSession.exe sys\bin\classControllerServerSession.exe |
|
75 |
// *** The dll that the class controller uses as a client |
|
76 |
file=ABI_DIR\BUILD_DIR\classControllerClientSession.dll sys\bin\classControllerClientSession.dll |
|
77 |
#endif //__EXAMPLE_OBEX_CC__ |
|
78 |
#endif //__TEST_USB_ZLP__ |
|
79 |
#endif //__OBEX_OVER_USB__ |
|
80 |
||
81 |
// *** 'buildrom -D__USBMAN_DUMMYCC__' will use the dummy Class Controller |
|
82 |
// *** build of USBSVR for testing purposes. |
|
83 |
// *** Note: DummyCC never includes OTG code. |
|
84 |
#ifdef __USBMAN_DUMMYCC__ |
|
85 |
#include <dummyccinifiles.iby> |
|
86 |
file=ABI_DIR\USB_DIR\t_usbman_dummycc.exe usbsvr.exe |
|
87 |
#else |
|
88 |
// |
|
89 |
// Configuration of OTG or Client. |
|
90 |
// |
|
91 |
#if defined(SYMBIAN_ENABLE_USB_OTG_HOST) |
|
92 |
||
93 |
#if defined(SYMBIAN_INCLUDE_USB_OTG_HOST) |
|
94 |
REM Feature USB Host (and related OTG) is included in this ROM (usbman.iby) |
|
95 |
file=ABI_DIR\USB_DIR\usbsvrotg.exe usbsvr.exe |
|
96 |
#include <fdf.iby> |
|
97 |
REM Host Mass Storage binaries |
|
98 |
#ifdef WITH_MASS_STORAGE |
|
99 |
#include <usbhostmsmm.iby> |
|
100 |
#include <msfdc.iby> |
|
101 |
#endif |
|
102 |
#else |
|
103 |
REM Feature USB Host (and related OTG) is NOT included in this ROM (usbman.iby) |
|
104 |
file=ABI_DIR\USB_DIR\usbsvr.exe usbsvr.exe |
|
105 |
#endif // SYMBIAN_INCLUDE_USB_OTG_HOST |
|
106 |
||
107 |
#else |
|
108 |
||
109 |
REM SYMBIAN_ENABLE_USB_OTG_HOST is not defined - so we fall back to building in the |
|
110 |
REM non-OTG usbsvr.exe |
|
111 |
file=ABI_DIR\USB_DIR\usbsvr.exe usbsvr.exe |
|
112 |
||
113 |
#endif // SYMBIAN_ENABLE_USB_OTG_HOST |
|
114 |
||
115 |
#endif |
|
116 |
||
117 |
file=ABI_DIR\USB_DIR\usbclasscontroller.dll usbclasscontroller.dll |
|
118 |
file=ABI_DIR\USB_DIR\usbmanextensionplugin.dll usbmanextensionplugin.dll |
|
119 |
||
120 |
#ifdef WITH_REFERENCE_USB_CHARGING_PLUGIN |
|
121 |
// *** Reference battery charging plug-in |
|
122 |
#if defined(SYMBIAN_ENABLE_USB_OTG_HOST) && defined (SYMBIAN_INCLUDE_USB_OTG_HOST) |
|
123 |
USB_PLUGIN(usbbatterychargingpluginotg.dll,usbbatterychargingpluginotg.rsc) |
|
124 |
#else |
|
125 |
USB_PLUGIN(usbbatterychargingplugin.dll,usbbatterychargingplugin.rsc) |
|
126 |
#endif |
|
127 |
#endif |
|
128 |
||
129 |
// *** WHCM Class Controller - used for OBEX over USB. |
|
130 |
USB_PLUGIN(whcmclasscontroller.dll,101fbf23.rsc) |
|
131 |
||
132 |
// *** Mass Storage Class Controller. |
|
133 |
USB_PLUGIN(msclasscontroller.dll,10204bbb.rsc) |
|
134 |
data=ZPRIVATE\10204bbb\usbms.rsc PRIVATE\101fe1db\usbms.rsc |
|
135 |
#ifdef WITH_MASS_STORAGE_EXAMPLE_APP |
|
136 |
file=ABI_DIR\USB_DIR\usbmsexampleapp.exe usbmsexampleapp.exe |
|
137 |
#endif |
|
138 |
||
139 |
// *** OBEX Class Controller. This is test code, used for descriptor checking |
|
140 |
// *** only. |
|
141 |
// USB_PLUGIN(Obexclasscontroller.dll,101fbf27.rsc) |
|
142 |
||
143 |
#ifdef SYMBIAN_INCLUDE_USB_RNDIS |
|
144 |
// *** RNDIS Class Controller. |
|
145 |
||
146 |
#include <ether802.iby> |
|
147 |
||
148 |
USB_PLUGIN(rndisclasscontroller.dll, rndisclasscontroller.rsc) |
|
149 |
USB_PLUGIN(rndisproviders.dll, rndisproviders.rsc) |
|
150 |
||
151 |
// RNDIS IAP ID Backup registration file |
|
152 |
data=ZPRIVATE\101fe1db\backup_registration_rndis.xml private\101fe1db\backup_registration_rndis.xml |
|
153 |
||
154 |
file=ABI_DIR\USB_DIR\rndispkt.drv System\Libs\rndispkt.drv |
|
155 |
file=ABI_DIR\USB_DIR\rndismessages.dll System\Libs\rndismessages.dll |
|
156 |
file=ABI_DIR\USB_DIR\rndisagt.agt System\Libs\rndisagt.agt |
|
157 |
#endif // SYMBIAN_INCLUDE_USB_RNDIS |
|
158 |
||
159 |
#endif // !defined(__USB) || !defined(EUSBC) |
|
0
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
160 |
|
c9bc50fca66e
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
161 |
#endif // __USBMAN_IBY__ |