author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 11:08:29 +0300 | |
changeset 247 | d8d70de2bd36 |
parent 201 | 43365a9b78a3 |
child 245 | 647ab20fee2e |
permissions | -rw-r--r-- |
152
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
1 |
// Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 2 |
// All rights reserved. |
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// e32\include\u32hal.h |
|
15 |
// |
|
16 |
// WARNING: This file contains some APIs which are internal and are subject |
|
17 |
// to change without notice. Such APIs should therefore not be used |
|
18 |
// outside the Kernel and Hardware Services package. |
|
19 |
// |
|
20 |
||
21 |
#ifndef __U32HAL_H__ |
|
22 |
#define __U32HAL_H__ |
|
23 |
||
24 |
#include <e32cmn.h> |
|
25 |
||
26 |
// |
|
27 |
// Classes used for in functions |
|
28 |
// |
|
29 |
||
30 |
/** |
|
31 |
Used for TVariantInfoV01::iLedCapabilities |
|
32 |
@publishedPartner |
|
33 |
@released |
|
34 |
*/ |
|
35 |
const TUint KLedMaskRed1=0x00000001; |
|
36 |
||
37 |
/** |
|
38 |
Used for TVariantInfoV01::iLedCapabilities |
|
39 |
@publishedPartner |
|
40 |
@released |
|
41 |
*/ |
|
42 |
const TUint KLedMaskGreen1=0x00000002; |
|
43 |
||
44 |
/** |
|
45 |
Used for TVariantInfoV01::iLedCapabilities |
|
46 |
@publishedPartner |
|
47 |
@released |
|
48 |
*/ |
|
49 |
const TUint KLedMaskYellow1=0x00000004; |
|
50 |
||
51 |
/** |
|
52 |
Used for TSupplyInfoV1.iFlags |
|
53 |
@publishedPartner |
|
54 |
@deprecated Unused by Symbian code |
|
55 |
*/ |
|
56 |
const TUint KSupplyFlagSoundWarning=0x00000001; |
|
57 |
||
58 |
/** |
|
59 |
Used for TSupplyInfoV1.iFlags |
|
60 |
@publishedPartner |
|
61 |
@deprecated Unused by Symbian code |
|
62 |
*/ |
|
63 |
const TUint KSupplyFlagBacklightWarning=0x00000002; |
|
64 |
||
65 |
/** |
|
66 |
Used for TSupplyInfoV1.iFlags |
|
67 |
@publishedPartner |
|
68 |
@deprecated Unused by Symbian code |
|
69 |
*/ |
|
70 |
const TUint KSupplyFlagTimeChanged=0x80000000; |
|
71 |
||
72 |
/** |
|
73 |
@internalComponent |
|
74 |
@deprecated Unused by Symbian code |
|
75 |
*/ |
|
76 |
class TClearSetMask |
|
77 |
{ |
|
78 |
public: |
|
79 |
TUint iClearMask; |
|
80 |
TUint iSetMask; |
|
81 |
}; |
|
82 |
||
83 |
/** |
|
84 |
@internalTechnology |
|
85 |
@deprecated Unused by Symbian code |
|
86 |
*/ |
|
87 |
enum TSupplyStatus |
|
88 |
{ |
|
89 |
EZero,EVeryLow,ELow,EGood |
|
90 |
}; |
|
91 |
||
92 |
/** |
|
93 |
@internalTechnology |
|
94 |
@deprecated Unused by Symbian code |
|
95 |
*/ |
|
96 |
class TSupplyInfoV1 |
|
97 |
{ |
|
98 |
public: |
|
99 |
SInt64 iMainBatteryInsertionTime; |
|
100 |
TSupplyStatus iMainBatteryStatus; |
|
101 |
SInt64 iMainBatteryInUseMicroSeconds; |
|
102 |
TInt iCurrentConsumptionMilliAmps; |
|
103 |
TInt iMainBatteryConsumedMilliAmpSeconds; |
|
104 |
TInt iMainBatteryMilliVolts; |
|
105 |
TInt iMainBatteryMaxMilliVolts; |
|
106 |
TSupplyStatus iBackupBatteryStatus; |
|
107 |
TInt iBackupBatteryMilliVolts; |
|
108 |
TInt iBackupBatteryMaxMilliVolts; |
|
109 |
TBool iExternalPowerPresent; |
|
110 |
SInt64 iExternalPowerInUseMicroSeconds; |
|
111 |
TUint iFlags; |
|
112 |
}; |
|
113 |
||
114 |
/** |
|
115 |
@internalTechnology |
|
116 |
@deprecated Unused by Symbian code |
|
117 |
*/ |
|
118 |
typedef TPckgBuf<TSupplyInfoV1> TSupplyInfoV1Buf; |
|
119 |
||
120 |
/** |
|
121 |
@publishedPartner |
|
122 |
@deprecated Unused by Symbian code |
|
123 |
*/ |
|
124 |
class TMouseProperties |
|
125 |
{ |
|
126 |
public: |
|
127 |
TUint8 iSpeed; |
|
128 |
TUint8 iAcceleration; |
|
129 |
}; |
|
130 |
||
131 |
/** |
|
132 |
@internalTechnology Used by Symbian base ports |
|
133 |
@deprecated Unused by Symbian code |
|
134 |
*/ |
|
135 |
class TSoundInfoV1 |
|
136 |
{ |
|
137 |
public: |
|
138 |
TBool iKeyClickEnabled; |
|
139 |
TBool iKeyClickLoud; |
|
140 |
TBool iKeyClickOverridden; |
|
141 |
TBool iPointerClickEnabled; |
|
142 |
TBool iPointerClickLoud; |
|
143 |
TBool iBeepEnabled; |
|
144 |
TBool iBeepLoud; |
|
145 |
TBool iSoundDriverEnabled; |
|
146 |
TBool iSoundDriverLoud; |
|
147 |
TBool iSoundEnabled; |
|
148 |
}; |
|
149 |
||
150 |
/** |
|
151 |
@internalTechnology |
|
152 |
@deprecated Unused by Symbian code |
|
153 |
*/ |
|
154 |
typedef TPckgBuf<TSoundInfoV1> TSoundInfoV1Buf; |
|
155 |
||
156 |
/** |
|
157 |
@internalTechnology Used by Symbian base ports |
|
158 |
*/ |
|
159 |
class TOnOffInfoV1 |
|
160 |
{ |
|
161 |
public: |
|
162 |
TBool iPointerSwitchesOn; |
|
163 |
TBool iCaseOpenSwitchesOn; |
|
164 |
TBool iCaseCloseSwitchesOff; |
|
165 |
}; |
|
166 |
||
167 |
/** |
|
168 |
@internalTechnology |
|
169 |
@deprecated Unused by Symbian code |
|
170 |
*/ |
|
171 |
typedef TPckgBuf<TOnOffInfoV1> TOnOffInfoV1Buf; |
|
172 |
||
173 |
/** |
|
174 |
@internalTechnology |
|
175 |
@removed Unused by Symbian code |
|
176 |
*/ |
|
177 |
enum TUserMediaFunction {EUserMediaRemount,EUserMediaNotifyChange}; |
|
178 |
||
179 |
||
180 |
||
181 |
||
182 |
// |
|
183 |
// Hal function enumerations |
|
184 |
// |
|
185 |
||
186 |
/** |
|
187 |
@publishedPartner |
|
188 |
@released |
|
189 |
||
190 |
Defines the set of HAL groups. |
|
191 |
||
192 |
Each HAL group has an associated HAL handler. Note that the |
|
193 |
HAL handlers for EHalGroupKernel and EHalGroupEmulator are internal |
|
194 |
to Symbian OS. |
|
195 |
||
196 |
See the Base Porting Guide documentation in the developer library for |
|
197 |
more information on HAL groups. |
|
198 |
*/ |
|
199 |
enum THalFunctionGroup |
|
200 |
{ |
|
201 |
/** |
|
202 |
@internalComponent |
|
203 |
||
204 |
The HAL group associated with kernel related information; for example |
|
205 |
the reason for the most recent system boot. |
|
206 |
||
207 |
The function-ids associated with this HAL group are defined by the set |
|
208 |
of TKernelHalFunction enum values. |
|
209 |
*/ |
|
210 |
EHalGroupKernel=0, |
|
211 |
||
212 |
||
213 |
/** |
|
214 |
The HAL group associated with Variant specific hardware. |
|
215 |
||
216 |
This HAL handler is implemented by the Variant, specifically by |
|
217 |
the base port's implementation of Asic::VariantHal(). |
|
218 |
||
219 |
The function-ids associated with this HAL group are defined by the set |
|
220 |
of TVariantHalFunction enum values. See the individual function-ids for |
|
221 |
the associated capabilities. |
|
222 |
||
223 |
@see TVariantHalFunction |
|
224 |
@see Asic::VariantHal() |
|
225 |
*/ |
|
226 |
EHalGroupVariant=1, |
|
227 |
||
228 |
||
229 |
/** |
|
230 |
The HAL group associated with the media driver. |
|
231 |
||
232 |
It is used internally by the media driver LDD. |
|
233 |
||
234 |
The function-ids associated with this HAL group are defined by the set |
|
235 |
of TMediaHalFunction enum values. See the individual function-ids for |
|
236 |
the associated capabilities. |
|
237 |
||
238 |
@see TMediaHalFunction |
|
239 |
*/ |
|
240 |
EHalGroupMedia=2, |
|
241 |
||
242 |
||
243 |
/** |
|
244 |
The HAL group associated with power handling. |
|
245 |
||
246 |
This HAL handler is implemented by the power model. |
|
247 |
||
248 |
The function-ids associated with this HAL group are defined by the set |
|
249 |
of TPowerHalFunction enum values. See the individual function-ids for |
|
250 |
the associated capabilities. |
|
251 |
||
252 |
@see TPowerHalFunction |
|
253 |
*/ |
|
254 |
EHalGroupPower=3, |
|
255 |
||
256 |
||
257 |
/** |
|
258 |
The HAL group associated with the main screen display. |
|
259 |
||
260 |
This HAL handler is implemented by the screen (i.e. LCD or video driver). |
|
261 |
||
262 |
The function-ids associated with this HAL group are defined by the set |
|
263 |
of TDisplayHalFunction enum values. See the individual function-ids for |
|
264 |
the associated capabilities. |
|
265 |
||
266 |
@see TDisplayHalFunction |
|
267 |
*/ |
|
268 |
EHalGroupDisplay=4, |
|
269 |
||
270 |
||
271 |
/** |
|
272 |
The HAL group associated with the digitiser (i.e. pen or stylus). |
|
273 |
||
274 |
This HAL handler is implemented by the digitiser. |
|
275 |
||
276 |
The function-ids associated with this HAL group are defined by the set |
|
277 |
of TDigitiserHalFunction enum values. See the individual function-ids for |
|
278 |
the associated capabilities. |
|
279 |
||
280 |
@see TDigitiserHalFunction |
|
281 |
*/ |
|
282 |
EHalGroupDigitiser=5, |
|
283 |
||
284 |
||
285 |
/** |
|
286 |
The HAL group associated with a sound driver. |
|
287 |
||
288 |
This group is provided by Symbian OS for backwards compatibility with |
|
289 |
the Psion Series 5MX devices. |
|
290 |
||
291 |
The function-ids associated with this HAL group are defined by the set |
|
292 |
of TSoundHalFunction enum values. See the individual function-ids for |
|
293 |
the associated capabilities. |
|
294 |
||
295 |
@see TSoundHalFunction |
|
296 |
*/ |
|
297 |
EHalGroupSound=6, |
|
298 |
||
299 |
||
300 |
/** |
|
301 |
The HAL group associated with a mouse-type device. |
|
302 |
||
303 |
In Symbian OS, the the only example of a mouse device is in the emulator, |
|
304 |
and this is a port of Symbian OS maintained by Symbian. |
|
305 |
||
306 |
The function-ids associated with this HAL group are defined by the set |
|
307 |
of TMouseHalFunction enum values. See the individual function-ids for |
|
308 |
the associated capabilities. |
|
309 |
||
310 |
@see TMouseHalFunction |
|
311 |
*/ |
|
312 |
EHalGroupMouse=7, |
|
313 |
||
314 |
||
315 |
/** |
|
316 |
@internalComponent |
|
317 |
||
318 |
The HAL group associated with the emulator. |
|
319 |
||
320 |
The function-ids associated with this HAL group are defined by the set |
|
321 |
of TEmulatorHalFunction enum values. |
|
322 |
*/ |
|
323 |
EHalGroupEmulator=8, |
|
324 |
||
325 |
||
326 |
/** |
|
327 |
The HAL group associated with the keyboard. |
|
328 |
||
329 |
This HAL handler is implemented by the keyboard driver. |
|
330 |
||
331 |
The function-ids associated with this HAL group are defined by the set |
|
332 |
of TKeyboardHalFunction enum values. See the individual function-ids for |
|
333 |
the associated capabilities. |
|
334 |
||
335 |
@see TKeyboardHalFunction |
|
336 |
*/ |
|
337 |
EHalGroupKeyboard=9, |
|
338 |
||
339 |
/* |
|
340 |
The HAL group associated with the virtual memory system. |
|
341 |
||
342 |
The function-ids associated with this HAL group are defined by the set |
|
343 |
of TVMHalFunction enum values. |
|
344 |
||
345 |
@see TVMHalFunction |
|
346 |
*/ |
|
347 |
EHalGroupVM=10, |
|
348 |
||
349 |
/* |
|
350 |
The HAL group associated with the RAM Zone configuration. |
|
351 |
||
352 |
The function-ids associated with this HAL group are defined by the set |
|
353 |
of TRamHalFunction enum values. |
|
354 |
||
355 |
@see TRamHalFunction |
|
356 |
*/ |
|
357 |
EHalGroupRam=11, |
|
358 |
||
359 |
/** |
|
360 |
Reserved for platform specific use. |
|
361 |
*/ |
|
362 |
EHalGroupPlatformSpecific1=29, |
|
363 |
||
364 |
/** |
|
365 |
Reserved for platform specific use. |
|
366 |
*/ |
|
367 |
EHalGroupPlatformSpecific2=30 |
|
368 |
}; |
|
369 |
||
370 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
371 |
/** |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
372 |
@internalComponent |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
373 |
*/ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
374 |
struct SCpuStates |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
375 |
{ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
376 |
TUint32 iTA; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
377 |
TUint32 iIA; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
378 |
TUint32 iCU; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
379 |
TUint32 iGD; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
380 |
TInt iDC; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
381 |
TUint32 iSC; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
382 |
TUint32 iRC; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
383 |
TUint32 iCCS; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
384 |
TUint8 iPO; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
385 |
TUint8 iSpare1; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
386 |
TUint8 iSpare2; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
387 |
TUint8 iSpare3; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
388 |
TUint32 iPODC; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
389 |
TInt iDS[8]; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
390 |
TUint32 iUDC[8]; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
391 |
TUint32 iUAC[8]; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
392 |
TUint32 iOP[8]; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
393 |
TUint32 iF[8]; |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
394 |
}; |
0 | 395 |
|
396 |
||
397 |
/** |
|
398 |
@internalComponent |
|
399 |
*/ |
|
400 |
enum TKernelHalFunction |
|
401 |
{ |
|
402 |
EKernelHalMemoryInfo, |
|
403 |
EKernelHalRomInfo, |
|
404 |
EKernelHalStartupReason, |
|
405 |
EKernelHalFaultReason, |
|
406 |
EKernelHalExceptionId, |
|
407 |
EKernelHalExceptionInfo, |
|
408 |
EKernelHalCpuInfo, |
|
409 |
EKernelHalPageSizeInBytes, |
|
410 |
EKernelHalTickPeriod, |
|
411 |
EKernelHalMemModelInfo, |
|
412 |
EKernelHalFastCounterFrequency, |
|
413 |
EKernelHalNTickPeriod, |
|
414 |
EKernelHalHardwareFloatingPoint, |
|
415 |
EKernelHalGetNonsecureClockOffset, |
|
416 |
EKernelHalSetNonsecureClockOffset, |
|
417 |
EKernelHalSmpSupported, |
|
418 |
EKernelHalNumLogicalCpus, |
|
419 |
EKernelHalSupervisorBarrier, |
|
420 |
EKernelHalFloatingPointSystemId, |
|
421 |
EKernelHalLockThreadToCpu, |
|
422 |
EKernelHalConfigFlags, |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
423 |
EKernelHalCpuStates, |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
424 |
EKernelHalSetNumberOfCpus, |
0 | 425 |
}; |
426 |
||
427 |
||
428 |
||
429 |
||
430 |
/** |
|
431 |
@publishedPartner |
|
432 |
@released |
|
433 |
||
434 |
The set of function-ids that are associated with the EHalGroupVariant |
|
435 |
HAL group. |
|
436 |
||
437 |
Each enum value represents a specific characteristic of the Variant, |
|
438 |
and is passed as the second parameter to |
|
439 |
the HAL handler function dealing with this group. |
|
440 |
||
441 |
@see EHalGroupVariant |
|
442 |
*/ |
|
443 |
enum TVariantHalFunction |
|
444 |
{ |
|
445 |
/** |
|
446 |
Gets Variant specifc information. |
|
447 |
||
448 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
449 |
||
450 |
- TInt aFunction : This enum value. |
|
451 |
||
452 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
453 |
TVariantInfoV01 structure. The HAL function needs to fill the members of |
|
454 |
this structure with the appropriate information. |
|
455 |
||
456 |
- TAny* a2 : NULL. |
|
457 |
||
458 |
An example of this function can be found in the Variant template; |
|
459 |
see the function: |
|
460 |
@code |
|
461 |
Template::VariantHal() |
|
462 |
@endcode |
|
463 |
in |
|
464 |
@code |
|
465 |
...\template\template_variant\specific\variant.cpp |
|
466 |
@endcode |
|
467 |
||
468 |
@see TVariantInfoV01 |
|
469 |
@see TPckgBuf |
|
470 |
*/ |
|
471 |
EVariantHalVariantInfo, |
|
472 |
||
473 |
||
474 |
/** |
|
475 |
Sets the debug port number. |
|
476 |
||
477 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
478 |
||
479 |
- TInt aFunction : This enum value. |
|
480 |
||
481 |
- TAny* a1 : A TInt value containing the debug port number. |
|
482 |
||
483 |
- TAny* a2 : NULL. |
|
484 |
||
485 |
An example of this function can be found in the Variant template; |
|
486 |
see the function: |
|
487 |
@code |
|
488 |
Template::VariantHal() |
|
489 |
@endcode |
|
490 |
in |
|
491 |
@code |
|
492 |
...\template\template_variant\specific\variant.cpp |
|
493 |
@endcode |
|
494 |
*/ |
|
495 |
EVariantHalDebugPortSet, |
|
496 |
||
497 |
||
498 |
/** |
|
499 |
Gets the debug port number. |
|
500 |
||
501 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
502 |
||
503 |
- TInt aFunction : This enum value. |
|
504 |
||
505 |
- TAny* a1 : A TInt value into which the HAL handler puts the debug port value |
|
506 |
||
507 |
- TAny* a2 : NULL. |
|
508 |
||
509 |
An example of this function can be found in the Variant template; |
|
510 |
see the function: |
|
511 |
@code |
|
512 |
Template::VariantHal() |
|
513 |
@endcode |
|
514 |
in |
|
515 |
@code |
|
516 |
...\template\template_variant\specific\variant.cpp |
|
517 |
@endcode |
|
518 |
*/ |
|
519 |
EVariantHalDebugPortGet, |
|
520 |
||
521 |
||
522 |
/** |
|
523 |
Sets the current state of each LED. |
|
524 |
||
525 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
526 |
||
527 |
- TInt aFunction : This enum value. |
|
528 |
||
529 |
- TAny* a1 : A TUint value containing the bitmask that |
|
530 |
describes the state of the LEDs. For each bit in the mask, 0 = OFF, 1 = ON. |
|
531 |
||
532 |
- TAny* a2 : NULL. |
|
533 |
||
534 |
An example of this function can be found in the Variant template; |
|
535 |
see the function: |
|
536 |
@code |
|
537 |
Template::VariantHal() |
|
538 |
@endcode |
|
539 |
in |
|
540 |
@code |
|
541 |
...\template\template_variant\specific\variant.cpp |
|
542 |
@endcode |
|
543 |
*/ |
|
544 |
EVariantHalLedMaskSet, |
|
545 |
||
546 |
||
547 |
/** |
|
548 |
Gets the current state of each LED. |
|
549 |
||
550 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
551 |
||
552 |
- TInt aFunction : This enum value. |
|
553 |
||
554 |
- TAny* a1 : A TUint value into which the HAL handler puts the bitmask that |
|
555 |
describes the state of the LEDs. For each bit in the mask, 0 = OFF, 1 = ON. |
|
556 |
||
557 |
- TAny* a2 : NULL. |
|
558 |
||
559 |
An example of this function can be found in the Variant template; |
|
560 |
see the function: |
|
561 |
@code |
|
562 |
Template::VariantHal() |
|
563 |
@endcode |
|
564 |
in |
|
565 |
@code |
|
566 |
...\template\template_variant\specific\variant.cpp |
|
567 |
@endcode |
|
568 |
*/ |
|
569 |
EVariantHalLedMaskGet, |
|
570 |
||
571 |
||
572 |
/** |
|
573 |
Gets the current state of any Variant specific switches. |
|
574 |
||
575 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
576 |
||
577 |
- TInt aFunction : This enum value. |
|
578 |
||
579 |
- TAny* a1 : A TUint value into which the HAL handler puts the bits that |
|
580 |
describe the state of the switches. The meaning of the switches is entirely |
|
581 |
hardware dependent. |
|
582 |
||
583 |
- TAny* a2 : NULL. |
|
584 |
||
585 |
An example of this function can be found in the Variant template; |
|
586 |
see the function: |
|
587 |
@code |
|
588 |
Template::VariantHal() |
|
589 |
@endcode |
|
590 |
in |
|
591 |
@code |
|
592 |
...\template\template_variant\specific\variant.cpp |
|
593 |
@endcode |
|
594 |
*/ |
|
595 |
EVariantHalSwitches, |
|
596 |
||
597 |
||
598 |
/** |
|
599 |
Restarts the system. |
|
600 |
||
601 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
602 |
||
603 |
- TInt aFunction : This enum value. |
|
604 |
||
605 |
- TAny* a1 : A TUint value containing the bits defining the custom restart reasons |
|
606 |
that can be passed to Kern::Restart(). |
|
607 |
||
608 |
- TAny* a2 : NULL. |
|
609 |
||
610 |
An example of this function can be found in the Variant template; |
|
611 |
see the function: |
|
612 |
@code |
|
613 |
Template::VariantHal() |
|
614 |
@endcode |
|
615 |
in |
|
616 |
@code |
|
617 |
...\template\template_variant\specific\variant.cpp |
|
618 |
@endcode |
|
619 |
||
620 |
@capability PowerMgmt |
|
621 |
||
622 |
@see Kern::Restart() |
|
623 |
*/ |
|
624 |
EVariantHalCustomRestart, |
|
625 |
||
626 |
||
627 |
/** |
|
628 |
Gets the reason for the system restart. |
|
629 |
||
630 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
631 |
||
632 |
- TInt aFunction : This enum value. |
|
633 |
||
634 |
- TAny* a1 : A TInt value into which the handler will put a value |
|
635 |
representing the restart reason. |
|
636 |
||
637 |
- TAny* a2 : NULL. |
|
638 |
||
639 |
An example of this function can be found in the Variant template; |
|
640 |
see the function: |
|
641 |
@code |
|
642 |
Template::VariantHal() |
|
643 |
@endcode |
|
644 |
in the file |
|
645 |
@code |
|
646 |
...\template\template_variant\specific\variant.cpp |
|
647 |
@endcode |
|
648 |
*/ |
|
649 |
EVariantHalCustomRestartReason, |
|
650 |
||
651 |
||
652 |
/** |
|
653 |
Gets the current state of the case. |
|
654 |
||
655 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
656 |
||
657 |
- TInt aFunction : This enum value. |
|
658 |
||
659 |
- TAny* a1 : A TUint value into which the HAL handler puts a value representing the case state. |
|
660 |
Possible values are 0 for closed, and 1 for open. |
|
661 |
||
662 |
- TAny* a2 : NULL. |
|
663 |
||
664 |
An example of this function can be found in the Variant template; |
|
665 |
see the function: |
|
666 |
@code |
|
667 |
Template::VariantHal() |
|
668 |
@endcode |
|
669 |
in |
|
670 |
@code |
|
671 |
...\template\template_variant\specific\variant.cpp |
|
672 |
@endcode |
|
673 |
*/ |
|
674 |
EVariantHalCaseState, |
|
675 |
||
676 |
||
677 |
/** |
|
678 |
Gets the number of screens on this platform. |
|
679 |
||
680 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
681 |
||
682 |
- TInt aFunction : This enum value. |
|
683 |
||
684 |
- TAny* a1 : This is a pointer to TInt that will contain the number of screens |
|
685 |
||
686 |
- TAny* a2 : NULL. |
|
687 |
||
688 |
*/ |
|
689 |
EVariantHalCurrentNumberOfScreens, |
|
690 |
||
691 |
/** |
|
692 |
Sets the startup reason for the system restart. |
|
693 |
||
694 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
695 |
||
696 |
- TInt aFunction : This enum value. |
|
697 |
||
698 |
- TAny* a1 : A TUint value containing the bits defining the startup mode |
|
699 |
that will be passed to Kern::Restart(). |
|
700 |
||
701 |
- TAny* a2 : NULL. |
|
702 |
||
703 |
An example of this function can be found in the Variant template; |
|
704 |
see the function: |
|
705 |
@code |
|
706 |
Template::VariantHal() |
|
707 |
@endcode |
|
708 |
in |
|
709 |
@code |
|
710 |
...\template\template_variant\specific\variant.cpp |
|
711 |
@endcode |
|
712 |
||
713 |
@capability WriteDeviceData |
|
714 |
||
715 |
@see Kern::Restart() |
|
716 |
*/ |
|
717 |
EVariantHalPersistStartupMode, |
|
718 |
||
719 |
/** |
|
720 |
Gets the startup mode after a system restart. |
|
721 |
||
722 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
723 |
||
724 |
- TInt aFunction : This enum value. |
|
725 |
||
726 |
- TAny* a1 : A TInt that will hold the returned value |
|
727 |
||
728 |
- TAny* a2 : NULL. |
|
729 |
||
730 |
An example of this function can be found in the Variant template; |
|
731 |
see the function: |
|
732 |
@code |
|
733 |
Template::VariantHal() |
|
734 |
@endcode |
|
735 |
in the file |
|
736 |
@code |
|
737 |
...\template\template_variant\specific\variant.cpp |
|
738 |
@endcode |
|
739 |
*/ |
|
740 |
EVariantHalGetPersistedStartupMode, |
|
741 |
||
742 |
/** |
|
743 |
Returns the maximum number of values that can be used to store the startup reason required for a custom restart. |
|
744 |
||
745 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
746 |
||
747 |
- TInt aFunction : This enum value. |
|
748 |
||
749 |
- TAny* a1 : A TInt that will hold the returned value |
|
750 |
||
751 |
- TAny* a2 : NULL. |
|
752 |
||
753 |
An example of this function can be found in the Variant template; |
|
754 |
see the function: |
|
755 |
@code |
|
756 |
Template::VariantHal() |
|
757 |
@endcode |
|
758 |
in |
|
759 |
@code |
|
760 |
...\template\template_variant\specific\variant.cpp |
|
761 |
@endcode |
|
762 |
*/ |
|
763 |
EVariantHalGetMaximumCustomRestartReasons, |
|
764 |
||
765 |
/** |
|
766 |
Returns the maximum number of values that can be used to store the startup mode required for a transition to |
|
767 |
a EPwRestart power state. |
|
768 |
||
769 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
770 |
||
771 |
- TInt aFunction : This enum value. |
|
772 |
||
773 |
- TAny* a1 : A TInt that will hold the returned value |
|
774 |
||
775 |
- TAny* a2 : NULL. |
|
776 |
||
777 |
An example of this function can be found in the Variant template; |
|
778 |
see the function: |
|
779 |
@code |
|
780 |
Template::VariantHal() |
|
781 |
@endcode |
|
782 |
in |
|
783 |
@code |
|
784 |
...\template\template_variant\specific\variant.cpp |
|
785 |
@endcode |
|
786 |
*/ |
|
787 |
EVariantHalGetMaximumRestartStartupModes, |
|
788 |
||
789 |
/** |
|
790 |
Returns a factor by which timeouts in test code should be expanded for |
|
791 |
exceptionally slow platforms (e.g. with cores implemented in FPGA). |
|
792 |
||
793 |
If this is not supported the factor should be assumed to be 1. |
|
794 |
*/ |
|
795 |
EVariantHalTimeoutExpansion, |
|
796 |
||
797 |
/** |
|
798 |
Returns a serial number as an Int |
|
799 |
*/ |
|
800 |
EVariantHalSerialNumber, |
|
801 |
||
802 |
/** |
|
803 |
Returns the interrupt used by sampling profiler - applicable for SMP only. |
|
804 |
Each CPU_i is interrupted by interrupt number ECpuProfilingInterrupt + i |
|
805 |
*/ |
|
806 |
EVariantHalProfilingDefaultInterruptBase |
|
807 |
||
808 |
}; |
|
809 |
||
810 |
||
811 |
||
812 |
||
813 |
/** |
|
814 |
@publishedPartner |
|
815 |
@released |
|
816 |
||
817 |
The set of function-ids that are associated with the EHalGroupMedia |
|
818 |
HAL group. |
|
819 |
||
820 |
Each enum value represents a specific characteristic of the media driver, |
|
821 |
and is passed as the second parameter to |
|
822 |
the HAL handler function dealing with this group. |
|
823 |
||
824 |
@see EHalGroupMedia |
|
825 |
*/ |
|
826 |
enum TMediaHalFunction |
|
827 |
{ |
|
828 |
/** |
|
829 |
Gets drive information. |
|
830 |
||
831 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
832 |
||
833 |
- TInt aFunction : This enum value. |
|
834 |
||
835 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
836 |
TDriveInfoV1 structure. The HAL function needs to fill the members of |
|
837 |
this structure with the appropriate information. |
|
838 |
||
839 |
- TAny* a2 : NULL. |
|
840 |
||
841 |
Note that the HAL handler is implemented by Symbian OS |
|
842 |
||
843 |
@see TDriveInfoV1 |
|
844 |
@see TPckgBuf |
|
845 |
*/ |
|
846 |
EMediaHalDriveInfo, |
|
847 |
||
848 |
/** |
|
849 |
@internalTechnology |
|
850 |
@test |
|
851 |
*/ |
|
852 |
EMediaHalGetROMConcurrencyInfo, |
|
853 |
||
854 |
/** |
|
855 |
@internalTechnology |
|
856 |
@test |
|
857 |
*/ |
|
858 |
EMediaHalGetCodeConcurrencyInfo, |
|
859 |
||
860 |
/** |
|
861 |
@internalTechnology |
|
862 |
@test |
|
863 |
*/ |
|
864 |
EMediaHalResetConcurrencyInfo, |
|
865 |
||
866 |
/** |
|
867 |
@internalTechnology |
|
868 |
@test |
|
869 |
*/ |
|
870 |
EMediaHalGetROMPagingBenchmark, |
|
871 |
||
872 |
/** |
|
873 |
@internalTechnology |
|
874 |
@test |
|
875 |
*/ |
|
876 |
EMediaHalGetCodePagingBenchmark, |
|
877 |
||
878 |
/** |
|
879 |
@internalTechnology |
|
880 |
@test |
|
881 |
*/ |
|
882 |
EMediaHalResetPagingBenchmark, |
|
883 |
||
884 |
/** |
|
885 |
@internalTechnology |
|
886 |
@test |
|
887 |
*/ |
|
888 |
EMediaHalGetDataConcurrencyInfo, |
|
889 |
||
890 |
/** |
|
891 |
@internalTechnology |
|
892 |
@test |
|
893 |
*/ |
|
894 |
EMediaHalGetDataInPagingBenchmark, |
|
895 |
||
896 |
/** |
|
897 |
@internalTechnology |
|
898 |
@test |
|
899 |
*/ |
|
900 |
EMediaHalGetDataOutPagingBenchmark, |
|
901 |
||
902 |
/** |
|
903 |
@internalTechnology |
|
904 |
@test |
|
905 |
*/ |
|
906 |
EMediaHalGetPagingInfo, |
|
907 |
}; |
|
908 |
||
909 |
||
910 |
||
911 |
||
912 |
/** |
|
913 |
@publishedPartner |
|
914 |
@released |
|
915 |
||
916 |
The set of function-ids that are associated with the EHalGroupPower |
|
917 |
HAL group. |
|
918 |
||
919 |
Each enum value represents a specific aspect of power handling on the device. |
|
920 |
||
921 |
@see EHalGroupPower |
|
922 |
*/ |
|
923 |
enum TPowerHalFunction |
|
924 |
{ |
|
925 |
||
926 |
/** |
|
927 |
This is used internally by Symbian |
|
928 |
*/ |
|
929 |
EPowerHalOnOffInfo, |
|
930 |
||
931 |
||
932 |
/** |
|
933 |
This is not currently used. |
|
934 |
*/ |
|
935 |
EPowerHalSupplyInfo, |
|
936 |
||
937 |
||
938 |
/** |
|
939 |
This is not currently used. |
|
940 |
||
941 |
@capability PowerMgmt |
|
942 |
*/ |
|
943 |
EPowerHalSetAutoSwitchOffBehavior, |
|
944 |
||
945 |
||
946 |
/** |
|
947 |
This is not currently used. |
|
948 |
*/ |
|
949 |
EPowerHalAutoSwitchOffBehavior, |
|
950 |
||
951 |
||
952 |
/** |
|
953 |
This is not currently used. |
|
954 |
||
955 |
@capability PowerMgmt |
|
956 |
*/ |
|
957 |
EPowerHalSetAutoSwitchOffTime, |
|
958 |
||
959 |
||
960 |
/** |
|
961 |
This is not currently used. |
|
962 |
*/ |
|
963 |
EPowerHalAutoSwitchOffTime, |
|
964 |
||
965 |
||
966 |
/** |
|
967 |
This is not currently used. |
|
968 |
||
969 |
@capability PowerMgmt |
|
970 |
*/ |
|
971 |
EPowerHalResetAutoSwitchOffTimer, |
|
972 |
||
973 |
||
974 |
/** |
|
975 |
Switches the device off. |
|
976 |
||
977 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
978 |
||
979 |
- TInt aFunction : This enum value. |
|
980 |
||
981 |
- TAny* a1 : NULL. |
|
982 |
||
983 |
- TAny* a2 : NULL. |
|
984 |
||
985 |
@capability PowerMgmt |
|
986 |
*/ |
|
987 |
EPowerHalSwitchOff, |
|
988 |
||
989 |
||
990 |
/** |
|
991 |
Sets whether touching the screen with a pen or stylus will cause |
|
992 |
the device to switch on. |
|
993 |
||
994 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
995 |
||
996 |
- TInt aFunction : This enum value. |
|
997 |
||
998 |
- TAny* a1 : A TBool that needs to be set to ETrue (if touching the screen |
|
999 |
is to cause a power on), or EFalse (if touching the screen is not to cause |
|
1000 |
a power on). |
|
1001 |
||
1002 |
- TAny* a2 : NULL. |
|
1003 |
||
1004 |
@capability WriteDeviceData |
|
1005 |
*/ |
|
1006 |
EPowerHalSetPointerSwitchesOn, |
|
1007 |
||
1008 |
||
1009 |
/** |
|
1010 |
Tests whether touching the screen with a pen or stylus will cause |
|
1011 |
the device to switch on. |
|
1012 |
||
1013 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1014 |
||
1015 |
- TInt aFunction : This enum value. |
|
1016 |
||
1017 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (if touching |
|
1018 |
the screen will cause a power on), or EFalse (if touching the screen will |
|
1019 |
not cause a power on). |
|
1020 |
||
1021 |
- TAny* a2 : NULL. |
|
1022 |
*/ |
|
1023 |
EPowerHalPointerSwitchesOn, |
|
1024 |
||
1025 |
||
1026 |
/** |
|
1027 |
Sets whether the opening of a 'device case' will cause |
|
1028 |
the device to switch on. |
|
1029 |
||
1030 |
Note that the meaning attached to a 'device case' depends on the hardware. |
|
1031 |
||
1032 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1033 |
||
1034 |
- TInt aFunction : This enum value. |
|
1035 |
||
1036 |
- TAny* a1 : A TBool that needs to be set to ETrue (if opening |
|
1037 |
the case is to cause a power on), or EFalse (if opening |
|
1038 |
the case is not to cause a power on). |
|
1039 |
||
1040 |
- TAny* a2 : NULL. |
|
1041 |
||
1042 |
@capability WriteDeviceData |
|
1043 |
*/ |
|
1044 |
EPowerHalSetCaseOpenSwitchesOn, |
|
1045 |
||
1046 |
||
1047 |
/** |
|
1048 |
Tests whether the opening of a 'device case' will cause |
|
1049 |
the device to switch on. |
|
1050 |
||
1051 |
Note that the meaning attached to a 'device case' depends on the hardware. |
|
1052 |
||
1053 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1054 |
||
1055 |
- TInt aFunction : This enum value. |
|
1056 |
||
1057 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (if opening |
|
1058 |
the case will cause a power on), or EFalse (if opening |
|
1059 |
the case will not cause a power on). |
|
1060 |
||
1061 |
- TAny* a2 : NULL. |
|
1062 |
*/ |
|
1063 |
EPowerHalCaseOpenSwitchesOn, |
|
1064 |
||
1065 |
||
1066 |
/** |
|
1067 |
Sets whether the closing of a 'device case' will cause |
|
1068 |
the device to switch off. |
|
1069 |
||
1070 |
Note that the meaning attached to a 'device case' depends on the hardware. |
|
1071 |
||
1072 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1073 |
||
1074 |
- TInt aFunction : This enum value. |
|
1075 |
||
1076 |
- TAny* a1 : A TBool that needs to be set to ETrue (if closing |
|
1077 |
the case is to cause a power off), or EFalse (if closing |
|
1078 |
the case is not to cause a power off). |
|
1079 |
||
1080 |
- TAny* a2 : NULL. |
|
1081 |
||
1082 |
@capability WriteDeviceData |
|
1083 |
*/ |
|
1084 |
EPowerHalSetCaseCloseSwitchesOff, |
|
1085 |
||
1086 |
||
1087 |
/** |
|
1088 |
Tests whether the closing of a 'device case' will cause |
|
1089 |
the device to switch off. |
|
1090 |
||
1091 |
Note that the meaning attached to a 'device case' depends on the hardware. |
|
1092 |
||
1093 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1094 |
||
1095 |
- TInt aFunction : This enum value. |
|
1096 |
||
1097 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (if closing |
|
1098 |
the case will cause a power off), or EFalse (if closing |
|
1099 |
the case will not cause a power off). |
|
1100 |
||
1101 |
- TAny* a2 : NULL. |
|
1102 |
*/ |
|
1103 |
EPowerHalCaseCloseSwitchesOff, |
|
1104 |
||
1105 |
||
1106 |
/** |
|
1107 |
This is not currently used. |
|
1108 |
||
1109 |
@capability PowerMgmt |
|
1110 |
*/ |
|
1111 |
EPowerHalSetBatteryType, |
|
1112 |
||
1113 |
||
1114 |
/** |
|
1115 |
This is not currently used. |
|
1116 |
*/ |
|
1117 |
EPowerHalBatteryType, |
|
1118 |
||
1119 |
||
1120 |
/** |
|
1121 |
This is not currently used. |
|
1122 |
||
1123 |
@capability PowerMgmt |
|
1124 |
*/ |
|
1125 |
EPowerHalSetBatteryCapacity, |
|
1126 |
||
1127 |
||
1128 |
/** |
|
1129 |
This is not currently used. |
|
1130 |
*/ |
|
1131 |
EPowerHalBatteryCapacity, |
|
1132 |
||
1133 |
||
1134 |
/** |
|
1135 |
This is not currently used. |
|
1136 |
*/ |
|
1137 |
EPowerHalAutoSwitchOffType, |
|
1138 |
||
1139 |
||
1140 |
/** |
|
1141 |
This is used internally by Symbian. |
|
1142 |
*/ |
|
1143 |
EPowerHalTestBootSequence, |
|
1144 |
||
1145 |
||
1146 |
/** |
|
1147 |
Tests whether a backup power supply is present or not. |
|
1148 |
||
1149 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1150 |
||
1151 |
- TInt aFunction : This enum value. |
|
1152 |
||
1153 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (if backup |
|
1154 |
power is present), or EFalse (if backup power is not present). |
|
1155 |
||
1156 |
- TAny* a2 : NULL. |
|
1157 |
*/ |
|
1158 |
EPowerHalBackupPresent, |
|
1159 |
||
1160 |
||
1161 |
/** |
|
1162 |
Tests whether accessory power is present or not. |
|
1163 |
||
1164 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1165 |
||
1166 |
- TInt aFunction : This enum value. |
|
1167 |
||
1168 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (if accessory |
|
1169 |
power is present), or EFalse (if accessory power is not present). |
|
1170 |
||
1171 |
- TAny* a2 : NULL. |
|
1172 |
*/ |
|
1173 |
EPowerHalAcessoryPowerPresent, |
|
1174 |
}; |
|
1175 |
||
1176 |
||
1177 |
||
1178 |
||
1179 |
/** |
|
1180 |
@publishedPartner |
|
1181 |
@released |
|
1182 |
||
1183 |
The set of function-ids that are associated with the EHalGroupDisplay |
|
1184 |
HAL group. |
|
1185 |
||
1186 |
Each enum value represents a specific characteristic of the hardware display, |
|
1187 |
i.e. the screen or the LCD, and is passed as the second parameter to |
|
1188 |
the HAL handler function dealing with this group. |
|
1189 |
||
1190 |
@see EHalGroupDisplay |
|
1191 |
*/ |
|
1192 |
enum TDisplayHalFunction |
|
1193 |
{ |
|
1194 |
||
1195 |
/** |
|
1196 |
Gets the screen display properties. |
|
1197 |
||
1198 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1199 |
||
1200 |
- TInt aFunction : This enum value. |
|
1201 |
||
1202 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1203 |
TScreenInfoV01 structure. The HAL function needs to fill the members of |
|
1204 |
this structure with the appropriate information. |
|
1205 |
||
1206 |
- TAny* a2 : NULL. |
|
1207 |
||
1208 |
For example: |
|
1209 |
@code |
|
1210 |
... |
|
1211 |
case EDisplayHalScreenInfo: |
|
1212 |
TPckgBuf<TScreenInfoV01> vPckg; |
|
1213 |
// Fill details |
|
1214 |
Kern::InfoCopy(*(TDes8*)a1,vPckg); |
|
1215 |
... |
|
1216 |
@endcode |
|
1217 |
||
1218 |
@see TScreenInfoV01 |
|
1219 |
@see TPckgBuf |
|
1220 |
*/ |
|
1221 |
EDisplayHalScreenInfo, |
|
1222 |
||
1223 |
||
1224 |
/** |
|
1225 |
Registers whether it is the Window Server's responsibility to turn |
|
1226 |
the screen display on or off. |
|
1227 |
||
1228 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1229 |
||
1230 |
- TInt aFunction : This enum value. |
|
1231 |
||
1232 |
- TAny* a1 : This is a TBool value that needs to be set to ETrue or EFalse. |
|
1233 |
||
1234 |
- TAny* a2 : NULL. |
|
1235 |
||
1236 |
For example: |
|
1237 |
@code |
|
1238 |
... |
|
1239 |
case EDisplayHalWsRegisterSwitchOnScreenHandling: |
|
1240 |
iWsSwitchOnScreen=(TBool)a1; |
|
1241 |
... |
|
1242 |
@endcode |
|
1243 |
||
1244 |
@see TBool |
|
1245 |
*/ |
|
1246 |
EDisplayHalWsRegisterSwitchOnScreenHandling, |
|
1247 |
||
1248 |
||
1249 |
/** |
|
1250 |
Requests that the Window Server turn the screen display on. |
|
1251 |
||
1252 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1253 |
||
1254 |
- TInt aFunction : This enum value. |
|
1255 |
||
1256 |
- TAny* a1 : NULL |
|
1257 |
||
1258 |
- TAny* a2 : NULL |
|
1259 |
*/ |
|
1260 |
EDisplayHalWsSwitchOnScreen, |
|
1261 |
||
1262 |
||
1263 |
/** |
|
1264 |
Gets the maximum screen display contrast value. |
|
1265 |
||
1266 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1267 |
||
1268 |
- TInt aFunction : This enum value. |
|
1269 |
||
1270 |
- TAny* a1 : A TInt value into which the HAL handler puts the maximum |
|
1271 |
display contrast value. |
|
1272 |
||
1273 |
- TAny* a2 : NULL |
|
1274 |
*/ |
|
1275 |
EDisplayHalMaxDisplayContrast, |
|
1276 |
||
1277 |
||
1278 |
/** |
|
1279 |
Sets the screen display contrast value. |
|
1280 |
||
1281 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1282 |
||
1283 |
- TInt aFunction : This enum value. |
|
1284 |
||
1285 |
- TAny* a1 : A TInt value containing the display contrast value. |
|
1286 |
Typically, this needs to lie within a range that is valid for the device. |
|
1287 |
||
1288 |
- TAny* a2 : NULL |
|
1289 |
||
1290 |
@capability WriteDeviceData |
|
1291 |
*/ |
|
1292 |
EDisplayHalSetDisplayContrast, |
|
1293 |
||
1294 |
||
1295 |
/** |
|
1296 |
Gets the screen display's current contrast value. |
|
1297 |
||
1298 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1299 |
||
1300 |
- TInt aFunction : This enum value. |
|
1301 |
||
1302 |
- TAny* a1 : A TInt value into which the HAL handler puts the |
|
1303 |
display contrast value. |
|
1304 |
||
1305 |
- TAny* a2 : NULL |
|
1306 |
*/ |
|
1307 |
EDisplayHalDisplayContrast, |
|
1308 |
||
1309 |
||
1310 |
/** |
|
1311 |
Sets the backlight behaviour. |
|
1312 |
||
1313 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1314 |
||
1315 |
- TInt aFunction : This enum value. |
|
1316 |
||
1317 |
- TAny* a1 : Not specified; depends on the manufacturer's implementation. |
|
1318 |
||
1319 |
- TAny* a2 : Not specified; depends on the manufacturer's implementation. |
|
1320 |
||
1321 |
@capability WriteDeviceData |
|
1322 |
*/ |
|
1323 |
EDisplayHalSetBacklightBehavior, |
|
1324 |
||
1325 |
||
1326 |
/** |
|
1327 |
Gets information about the backlight behaviour. |
|
1328 |
||
1329 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1330 |
||
1331 |
- TInt aFunction : This enum value. |
|
1332 |
||
1333 |
- TAny* a1 : Not specified; depends on the manufacturer's implementation. |
|
1334 |
||
1335 |
- TAny* a2 : Not specified; depends on the manufacturer's implementation. |
|
1336 |
*/ |
|
1337 |
EDisplayHalBacklightBehavior, |
|
1338 |
||
1339 |
||
1340 |
/** |
|
1341 |
Sets the backlight timeout value, i.e. the length of time that the backlight |
|
1342 |
will stay on. |
|
1343 |
||
1344 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1345 |
||
1346 |
- TInt aFunction : This enum value. |
|
1347 |
||
1348 |
- TAny* a1 : Not specified; depends on the manufacturer's implementation. |
|
1349 |
||
1350 |
- TAny* a2 : Not specified; depends on the manufacturer's implementation. |
|
1351 |
||
1352 |
@capability WriteDeviceData |
|
1353 |
*/ |
|
1354 |
EDisplayHalSetBacklightOnTime, |
|
1355 |
||
1356 |
||
1357 |
/** |
|
1358 |
Gets information about the backlight timeout value, i.e. the length |
|
1359 |
of time that the backlight will stay on. |
|
1360 |
||
1361 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1362 |
||
1363 |
- TInt aFunction : This enum value. |
|
1364 |
||
1365 |
- TAny* a1 : Not specified; depends on the manufacturer's implementation. |
|
1366 |
||
1367 |
- TAny* a2 : Not specified; depends on the manufacturer's implementation. |
|
1368 |
*/ |
|
1369 |
EDisplayHalBacklightOnTime, |
|
1370 |
||
1371 |
||
1372 |
/** |
|
1373 |
Sets the backlight on or off. |
|
1374 |
||
1375 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1376 |
||
1377 |
- TInt aFunction : This enum value. |
|
1378 |
||
1379 |
- TAny* a1 : A TBool that needs to be set to ETrue or EFalse. |
|
1380 |
||
1381 |
- TAny* a2 : NULL |
|
1382 |
||
1383 |
@capability WriteDeviceData |
|
1384 |
*/ |
|
1385 |
EDisplayHalSetBacklightOn, |
|
1386 |
||
1387 |
||
1388 |
/** |
|
1389 |
Gets the current state of the backlight. |
|
1390 |
||
1391 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1392 |
||
1393 |
- TInt aFunction : This enum value. |
|
1394 |
||
1395 |
- TAny* a1 : A TBool into which the HAL handler |
|
1396 |
puts ETrue (for On) or EFalse (for Off). |
|
1397 |
||
1398 |
- TAny* a2 : NULL |
|
1399 |
*/ |
|
1400 |
EDisplayHalBacklightOn, |
|
1401 |
||
1402 |
||
1403 |
/** |
|
1404 |
Gets the screen display's maximum brightness value. |
|
1405 |
||
1406 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1407 |
||
1408 |
- TInt aFunction : This enum value. |
|
1409 |
||
1410 |
- TAny* a1 : A TInt value into which the HAL handler puts the |
|
1411 |
maximum brightness value. |
|
1412 |
||
1413 |
- TAny* a2 : NULL |
|
1414 |
*/ |
|
1415 |
EDisplayHalMaxDisplayBrightness, |
|
1416 |
||
1417 |
||
1418 |
/** |
|
1419 |
Sets the screen display's brightness value. |
|
1420 |
||
1421 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1422 |
||
1423 |
- TInt aFunction : This enum value. |
|
1424 |
||
1425 |
- TAny* a1 : A TInt value containing the brightness value. |
|
1426 |
Typically, this needs to lie within a range that is valid for the device. |
|
1427 |
||
1428 |
- TAny* a2 : NULL |
|
1429 |
||
1430 |
@capability WriteDeviceData |
|
1431 |
*/ |
|
1432 |
EDisplayHalSetDisplayBrightness, |
|
1433 |
||
1434 |
||
1435 |
/** |
|
1436 |
Gets the screen display's current brightness value. |
|
1437 |
||
1438 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1439 |
||
1440 |
- TInt aFunction : This enum value. |
|
1441 |
||
1442 |
- TAny* a1 : A TInt value into which the HAL handler puts the |
|
1443 |
brightness value. |
|
1444 |
||
1445 |
- TAny* a2 : NULL |
|
1446 |
*/ |
|
1447 |
EDisplayHalDisplayBrightness, |
|
1448 |
// |
|
1449 |
||
1450 |
/** |
|
1451 |
Gets the number of available display modes. |
|
1452 |
||
1453 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1454 |
||
1455 |
- TInt aFunction : This enum value. |
|
1456 |
||
1457 |
- TAny* a1 : A TInt value into which the HAL handler puts the |
|
1458 |
number of display modes value. |
|
1459 |
||
1460 |
- TAny* a2 : NULL |
|
1461 |
*/ |
|
1462 |
EDisplayHalModeCount, |
|
1463 |
||
1464 |
||
1465 |
/** |
|
1466 |
Sets the display mode. |
|
1467 |
||
1468 |
This will normally update the information maintained by the screen driver |
|
1469 |
in the form of a TScreenInfoV01 struct. |
|
1470 |
||
1471 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1472 |
||
1473 |
- TInt aFunction : This enum value. |
|
1474 |
||
1475 |
- TAny* a1 : A TInt value containing a number representing the display mode. |
|
1476 |
Typically, this needs to lie within a range that is valid for the device. |
|
1477 |
For example, the value usually needs to be positive, and be less than |
|
1478 |
the number of display modes. |
|
1479 |
||
1480 |
- TAny* a2 : NULL |
|
1481 |
||
1482 |
@capability MultimediaDD |
|
1483 |
||
1484 |
@see TScreenInfoV01 |
|
1485 |
*/ |
|
1486 |
EDisplayHalSetMode, |
|
1487 |
||
1488 |
||
1489 |
/** |
|
1490 |
Gets the current screen display mode. |
|
1491 |
||
1492 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1493 |
||
1494 |
- TInt aFunction : This enum value. |
|
1495 |
||
1496 |
- TAny* a1 : A TInt value into which the HAL handler puts the |
|
1497 |
the current display mode value. |
|
1498 |
||
1499 |
- TAny* a2 : NULL |
|
1500 |
*/ |
|
1501 |
EDisplayHalMode, |
|
1502 |
||
1503 |
||
1504 |
/** |
|
1505 |
Sets a colour value for the specified palette entry. |
|
1506 |
||
1507 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1508 |
||
1509 |
- TInt aFunction : This enum value. |
|
1510 |
||
1511 |
- TAny* a1 : A TInt value that identifies the palette entry. The value |
|
1512 |
occupies the junior 8 bits of the integer. The senior 24 bits are all 0. |
|
1513 |
||
1514 |
- TAny* a2 : A TInt value containing the colour value; it represents |
|
1515 |
a standard Symbian OS RGB colour value, and occupies the junior 24 bits |
|
1516 |
of the integer. The senior 8 bits are not defined. |
|
1517 |
||
1518 |
@capability MultimediaDD |
|
1519 |
*/ |
|
1520 |
EDisplayHalSetPaletteEntry, |
|
1521 |
||
1522 |
||
1523 |
/** |
|
1524 |
Gets the colour value for the specified palette entry. |
|
1525 |
||
1526 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1527 |
||
1528 |
- TInt aFunction : This enum value. |
|
1529 |
||
1530 |
- TAny* a1 : A TInt value that identifies the palette entry. The value |
|
1531 |
is expected to occupy the junior 8 bits of the integer. The senior 24 bits |
|
1532 |
are not defined. |
|
1533 |
||
1534 |
- TAny* a2 : On return from the HAL function, a TInt value containing |
|
1535 |
the colour value. The value occupies the junior 24 bits of the integer. |
|
1536 |
The senior 8 bits are not defined. |
|
1537 |
*/ |
|
1538 |
EDisplayHalPaletteEntry, |
|
1539 |
||
1540 |
||
1541 |
/** |
|
1542 |
Sets the screen display on or off. |
|
1543 |
||
1544 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1545 |
||
1546 |
- TInt aFunction : This enum value. |
|
1547 |
||
1548 |
- TAny* a1 : A TBool that needs to be set to ETrue (for On), |
|
1549 |
or EFalse (for Off). |
|
1550 |
||
1551 |
- TAny* a2 : NULL. |
|
1552 |
||
1553 |
@capability PowerMgmt |
|
1554 |
*/ |
|
1555 |
EDisplayHalSetState, |
|
1556 |
||
1557 |
||
1558 |
/** |
|
1559 |
Gets the state of the screen display, i.e. whether the display is on or off. |
|
1560 |
||
1561 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1562 |
||
1563 |
- TInt aFunction : This enum value. |
|
1564 |
||
1565 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (for On), |
|
1566 |
or EFalse (for Off). |
|
1567 |
||
1568 |
- TAny* a2 : NULL. |
|
1569 |
*/ |
|
1570 |
EDisplayHalState, |
|
1571 |
||
1572 |
||
1573 |
/** |
|
1574 |
Gets the maximum number of colours that the screen display supports. |
|
1575 |
||
1576 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1577 |
||
1578 |
- TInt aFunction : This enum value. |
|
1579 |
||
1580 |
- TAny* a1 : A TInt value into which the HAL handler puts the maximum |
|
1581 |
number of colours. |
|
1582 |
||
1583 |
- TAny* a2 : NULL |
|
1584 |
*/ |
|
1585 |
EDisplayHalColors, |
|
1586 |
||
1587 |
||
1588 |
/** |
|
1589 |
Gets information about the current display mode. |
|
1590 |
||
1591 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1592 |
||
1593 |
- TInt aFunction : This enum value. |
|
1594 |
||
1595 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1596 |
TVideoInfoV01 structure. The HAL function needs to fill the members of |
|
1597 |
this structure with the appropriate information. |
|
1598 |
||
1599 |
- TAny* a2 : NULL. |
|
1600 |
||
1601 |
@see TVideoInfoV01 |
|
1602 |
@see TPckgBuf |
|
1603 |
*/ |
|
1604 |
EDisplayHalCurrentModeInfo, |
|
1605 |
||
1606 |
||
1607 |
/** |
|
1608 |
Gets information about the specified display mode. |
|
1609 |
||
1610 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1611 |
||
1612 |
- TInt aFunction : This enum value. |
|
1613 |
||
1614 |
- TAny* a1 : A TInt value containing the number of the display mode for which |
|
1615 |
information is to be fetched. |
|
1616 |
||
1617 |
- TAny* a2 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1618 |
TVideoInfoV01 structure. The HAL function needs to fill the members of |
|
1619 |
this structure with the appropriate information. |
|
1620 |
||
1621 |
@see TVideoInfoV01 |
|
1622 |
@see TPckgBuf |
|
1623 |
*/ |
|
1624 |
EDisplayHalSpecifiedModeInfo, |
|
1625 |
||
1626 |
// EDisplaySwitchOffScreen, |
|
1627 |
||
1628 |
||
1629 |
/** |
|
1630 |
Fills/copies an area of the screen display with a rectangle of a specified colour. |
|
1631 |
||
1632 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1633 |
||
1634 |
- TInt aFunction : This enum value. |
|
1635 |
||
1636 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1637 |
SRectOpInfo structure. The structure contains the information that |
|
1638 |
is needed for the operation. |
|
1639 |
||
1640 |
- TAny* a1 : NULL. |
|
1641 |
||
1642 |
@see SRectOpInfo |
|
1643 |
@see TPckgBuf |
|
1644 |
*/ |
|
1645 |
EDisplayHalBlockFill, |
|
1646 |
||
1647 |
||
1648 |
/** |
|
1649 |
Fills/copies an area of the screen display with a rectangle of a specified colour. |
|
1650 |
||
1651 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1652 |
||
1653 |
- TInt aFunction : This enum value. |
|
1654 |
||
1655 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1656 |
SRectOpInfo structure. The structure contains the information that |
|
1657 |
is needed for the operation. |
|
1658 |
||
1659 |
- TAny* a1 : NULL. |
|
1660 |
||
1661 |
@see SRectOpInfo |
|
1662 |
@see TPckgBuf |
|
1663 |
*/ |
|
1664 |
EDisplayHalBlockCopy, |
|
1665 |
||
1666 |
||
1667 |
/** |
|
1668 |
Tests whether the screen display is secure. |
|
1669 |
||
1670 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1671 |
||
1672 |
- TInt aFunction : This enum value. |
|
1673 |
||
1674 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (for secure mode), |
|
1675 |
or EFalse (for non-secure mode). |
|
1676 |
||
1677 |
- TAny* a2 : NULL. |
|
1678 |
*/ |
|
1679 |
EDisplayHalSecure, |
|
1680 |
||
1681 |
||
1682 |
/** |
|
1683 |
Sets the screen display into secure or non-secure mode. |
|
1684 |
||
1685 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1686 |
||
1687 |
- TInt aFunction : This enum value. |
|
1688 |
||
1689 |
- TAny* a1 : A TBool that needs to be set to ETrue (for secure mode), |
|
1690 |
or EFalse (for non-secure mode). |
|
1691 |
||
1692 |
- TAny* a2 : NULL. |
|
1693 |
||
1694 |
@capability MultimediaDD |
|
1695 |
*/ |
|
1696 |
EDisplayHalSetSecure, |
|
1697 |
||
1698 |
||
1699 |
/** |
|
1700 |
Gets the address of the DSA buffer |
|
1701 |
||
1702 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1703 |
||
1704 |
- TInt aFunction : This enum value. |
|
1705 |
||
1706 |
- TAny* a1 : A TInt value into which the HAL handler puts the address |
|
1707 |
||
1708 |
- TAny* a2 : NULL |
|
1709 |
*/ |
|
1710 |
EDisplayHalGetDisplayMemoryAddress, |
|
1711 |
/** |
|
1712 |
Gets a handle to the DSA buffer memory |
|
1713 |
||
1714 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1715 |
||
1716 |
- TInt aFunction : This enum value. |
|
1717 |
||
1718 |
- TAny* a1 : A TInt value into which the HAL handler puts the handle value |
|
1719 |
||
1720 |
- TAny* a2 : NULL |
|
1721 |
*/ |
|
1722 |
EDisplayHalGetDisplayMemoryHandle, |
|
1723 |
||
1724 |
||
1725 |
/** |
|
1726 |
Ask how many resolutions there are on a specific screen |
|
1727 |
||
1728 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1729 |
||
1730 |
- TInt aFunction : This enum value. |
|
1731 |
||
1732 |
- TAny* a1 : A TInt reference to pass back the number of resolutions. |
|
1733 |
||
1734 |
- TAny* a2 : NULL. |
|
1735 |
||
1736 |
@capability MultimediaDD |
|
1737 |
*/ |
|
1738 |
EDisplayHalNumberOfResolutions, |
|
1739 |
||
1740 |
||
1741 |
/** |
|
1742 |
Gets information on a specific configuration for a particular screen |
|
1743 |
||
1744 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1745 |
||
1746 |
- TInt aFunction : This enum value. |
|
1747 |
||
1748 |
- TAny* a1 : A TInt configuration index to get back. |
|
1749 |
||
1750 |
- TAny* a2 : A TVideoInfoV01 descriptor to get the info back. |
|
1751 |
||
1752 |
@capability MultimediaDD |
|
1753 |
*/ |
|
1754 |
EDisplayHalSpecificScreenInfo, |
|
1755 |
||
1756 |
||
1757 |
/** |
|
1758 |
Gets info on the current configuration for a particular screen |
|
1759 |
||
1760 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1761 |
||
1762 |
- TInt aFunction : This enum value. |
|
1763 |
||
1764 |
- TAny* a1 : A TVideoInfoV01 descriptor to get the info back. |
|
1765 |
||
1766 |
- TAny* a2 : NULL. |
|
1767 |
||
1768 |
@capability MultimediaDD |
|
1769 |
*/ |
|
1770 |
EDisplayHalCurrentScreenInfo, |
|
1771 |
||
1772 |
||
1773 |
/** |
|
1774 |
Sets the screen display into a predefined state. |
|
1775 |
||
1776 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1777 |
||
1778 |
- TInt aFunction : This enum value. |
|
1779 |
||
1780 |
- TAny* a1 : A TInt that is one of the value of TDisplayState enum |
|
1781 |
||
1782 |
- TAny* a2 : NULL. |
|
1783 |
||
1784 |
@capability MultimediaDD |
|
1785 |
*/ |
|
1786 |
EDisplayHalSetDisplayState, |
|
1787 |
||
1788 |
/** |
|
1789 |
Gets the spinner of screen display state. |
|
1790 |
||
1791 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1792 |
||
1793 |
- TInt aFunction : This enum value. |
|
1794 |
||
1795 |
- TAny* a1 : A TInt which is set to the spinner value on return |
|
1796 |
||
1797 |
- TAny* a2 : NULL. |
|
1798 |
||
1799 |
@capability MultimediaDD |
|
1800 |
*/ |
|
1801 |
EDisplayHalGetStateSpinner, |
|
1802 |
}; |
|
1803 |
||
1804 |
/** |
|
1805 |
@internalComponent |
|
1806 |
@test |
|
1807 |
The set of display state ids that are associated with EDisplayHalSetDisplayState |
|
1808 |
||
1809 |
@see EDisplayHalSetDisplayState |
|
1810 |
*/ |
|
1811 |
||
1812 |
enum TDisplayConnectState |
|
1813 |
{ |
|
1814 |
ENormalResolution, |
|
1815 |
ENoResolution, |
|
1816 |
EDisconnect, |
|
1817 |
ESingleResolution, |
|
1818 |
EDisplayStateTooHigh |
|
1819 |
}; |
|
1820 |
||
1821 |
/** |
|
1822 |
@publishedPartner |
|
1823 |
@released |
|
1824 |
||
1825 |
The set of function-ids that are associated with the EHalGroupDigitiser |
|
1826 |
HAL group. |
|
1827 |
||
1828 |
Each enum value represents a specific characteristic of the digitiser, |
|
1829 |
and is passed as the second parameter to the HAL handler function |
|
1830 |
dealing with this group. |
|
1831 |
||
1832 |
@see EHalGroupDigitiser |
|
1833 |
*/ |
|
1834 |
enum TDigitiserHalFunction |
|
1835 |
{ |
|
1836 |
||
1837 |
/** |
|
1838 |
Sets the calibration data (i.e. the values of the digitiser to |
|
1839 |
screen constants) for the digitiser device. |
|
1840 |
||
1841 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1842 |
||
1843 |
- TInt aFunction : This enum value. |
|
1844 |
||
1845 |
- TAny* a1 : A pointer to a TDigitizerCalibration object. |
|
1846 |
||
1847 |
- TAny* a2 : NULL |
|
1848 |
||
1849 |
@see TDigitizerCalibration |
|
1850 |
||
1851 |
@capability WriteDeviceData |
|
1852 |
*/ |
|
1853 |
EDigitiserHalSetXYInputCalibration, |
|
1854 |
||
1855 |
||
1856 |
/** |
|
1857 |
Gets the calibration data (i.e. the values of the digitiser to |
|
1858 |
screen constants) for the digitiser device. |
|
1859 |
||
1860 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1861 |
||
1862 |
- TInt aFunction : This enum value. |
|
1863 |
||
1864 |
- TAny* a1 : A pointer to a TDigitizerCalibration object; the HAL function |
|
1865 |
needs to fill the members of this structure with |
|
1866 |
the appropriate information. |
|
1867 |
||
1868 |
- TAny* a2 : NULL |
|
1869 |
||
1870 |
@see TDigitizerCalibration |
|
1871 |
*/ |
|
1872 |
EDigitiserHalCalibrationPoints, |
|
1873 |
||
1874 |
||
1875 |
/** |
|
1876 |
Saves the calibration data (i.e. the values of the digitiser to |
|
1877 |
screen constants) for the digitiser device in a persistent memory area so |
|
1878 |
that they can be restored after a power cycle. |
|
1879 |
||
1880 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1881 |
||
1882 |
- TInt aFunction : This enum value. |
|
1883 |
||
1884 |
- TAny* a1 : NULL. |
|
1885 |
||
1886 |
- TAny* a2 : NULL |
|
1887 |
*/ |
|
1888 |
EDigitiserHalSaveXYInputCalibration, |
|
1889 |
||
1890 |
||
1891 |
/** |
|
1892 |
Restores the calibration data (i.e. the values of the digitiser to |
|
1893 |
screen constants) for the digitiser device from a persistent memory area so |
|
1894 |
that they can be restored after a power cycle. |
|
1895 |
||
1896 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1897 |
||
1898 |
- TInt aFunction : This enum value. |
|
1899 |
||
1900 |
- TAny* a1 : NULL. |
|
1901 |
||
1902 |
- TAny* a2 : NULL |
|
1903 |
||
1904 |
@capability WriteDeviceData |
|
1905 |
*/ |
|
1906 |
EDigitiserHalRestoreXYInputCalibration, |
|
1907 |
||
1908 |
||
1909 |
/** |
|
1910 |
Gets digitiser information as defined by the content of |
|
1911 |
a TDigitiserInfoV01 (or TDigitiserInfoV02) struct. |
|
1912 |
||
1913 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1914 |
||
1915 |
- TInt aFunction : This enum value. |
|
1916 |
||
1917 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
1918 |
TDigitiserInfoV01 (or TDigitiserInfoV02) structure. The HAL function needs |
|
1919 |
to fill the members of this structure with the appropriate information. |
|
1920 |
||
1921 |
- TAny* a2 : NULL |
|
1922 |
||
1923 |
@see TPckgBuf |
|
1924 |
@see TDigitiserInfoV01 |
|
1925 |
*/ |
|
1926 |
EDigitiserHalXYInfo, |
|
1927 |
||
1928 |
||
1929 |
/** |
|
1930 |
Tests whether the digitiser is on or off. |
|
1931 |
||
1932 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1933 |
||
1934 |
- TInt aFunction : This enum value. |
|
1935 |
||
1936 |
- TAny* a1 : A TBool value that needs to be set to ETrue (On), or EFalse (Off). |
|
1937 |
||
1938 |
- TAny* a2 : NULL |
|
1939 |
*/ |
|
1940 |
EDigitiserHalXYState, |
|
1941 |
||
1942 |
||
1943 |
/** |
|
1944 |
Sets the digitiser either on or off. |
|
1945 |
||
1946 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1947 |
||
1948 |
- TInt aFunction : This enum value. |
|
1949 |
||
1950 |
- TAny* a1 : A TBool that needs to be set to ETrue (On), or EFalse (Off). |
|
1951 |
||
1952 |
- TAny* a2 : NULL |
|
1953 |
||
1954 |
@capability PowerMgmt |
|
1955 |
*/ |
|
1956 |
EDigitiserHalSetXYState, |
|
1957 |
||
1958 |
/** |
|
1959 |
Checks whether the pointing device supports 3rd dimension. |
|
1960 |
||
1961 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1962 |
||
1963 |
- TInt aFunction : This enum value. |
|
1964 |
||
1965 |
- TAny* a1 : A TBool value that needs to be set to ETrue (3D supported), or EFalse (3D not supported). |
|
1966 |
||
1967 |
- TAny* a2 : NULL |
|
1968 |
*/ |
|
1969 |
EDigitiserHal3DPointer, |
|
1970 |
||
1971 |
/** |
|
1972 |
Sets the detection range above the screen. |
|
1973 |
||
1974 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1975 |
||
1976 |
- TInt aFunction : This enum value. |
|
1977 |
||
1978 |
- TAny* a1 : A TInt value that is the detection range in units of distance above the screen. |
|
1979 |
||
1980 |
- TAny* a2 : NULL |
|
1981 |
*/ |
|
1982 |
EDigitiserHalSetZRange, |
|
1983 |
||
1984 |
/** |
|
1985 |
@prototype |
|
1986 |
||
1987 |
Sets the number of pointers it supports on the digitiser. |
|
1988 |
||
1989 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
1990 |
||
1991 |
- TInt aFunction : This enum value. |
|
1992 |
||
1993 |
- TAny* a1 : A TInt value that sets the number of pointer to be supported by the digitiser driver |
|
1994 |
||
1995 |
- TAny* a2 : NULL |
|
1996 |
*/ |
|
1997 |
EDigitiserHalSetNumberOfPointers, |
|
1998 |
||
1999 |
/** |
|
2000 |
@prototype |
|
2001 |
||
2002 |
Gets digitiser information as defined by the content of |
|
2003 |
a TDigitiserInfoV02 struct. |
|
2004 |
||
2005 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2006 |
||
2007 |
- TInt aFunction : This enum value. |
|
2008 |
||
2009 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
2010 |
TDigitiserInfoV02 structure. The HAL function needs |
|
2011 |
to fill the members of this structure with the appropriate information. |
|
2012 |
||
2013 |
- TAny* a2 : NULL |
|
2014 |
||
2015 |
@see TPckgBuf |
|
2016 |
@see TDigitiserInfoV02 |
|
2017 |
*/ |
|
152
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2018 |
EDigitiserHal3DInfo, |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2019 |
|
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2020 |
/** |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2021 |
Get or sets the digitiser driver's current orientation property. |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2022 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2023 |
|
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2024 |
- TInt aFunction : This enum value. |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2025 |
- TAny* a1 : if Set, a TDigitiserOrientation value the driver should now use |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2026 |
: If Get, a pointer to a TDigitiserOrientation. The HAL function |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2027 |
: needs to set its value to the current value used in the driver. |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2028 |
- TAny* a2 : Cast to a TInt. Should be assigned the value |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2029 |
: EFalse - Get property; ETrue - Set property |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2030 |
|
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2031 |
@see HALData::TDigitiserOrientation |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2032 |
@capability WriteDeviceData To set the property, None to read |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2033 |
*/ |
657f875b013e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
90
diff
changeset
|
2034 |
EDigitiserOrientation |
0 | 2035 |
|
2036 |
}; |
|
2037 |
||
2038 |
||
2039 |
||
2040 |
||
2041 |
/** |
|
2042 |
@publishedPartner |
|
2043 |
@released |
|
2044 |
||
2045 |
The set of function-ids that are associated with the EHalGroupSound |
|
2046 |
HAL group. |
|
2047 |
||
2048 |
Each enum value represents a specific characteristic of the sound driver, |
|
2049 |
and is passed as the second parameter to the HAL handler function |
|
2050 |
dealing with this group. |
|
2051 |
||
2052 |
Note that a sound driver in Symbian OS is only maintained for backwards |
|
2053 |
compatibility with the Psion Series 5MX devices. |
|
2054 |
||
2055 |
@see EHalGroupSound |
|
2056 |
*/ |
|
2057 |
enum TSoundHalFunction |
|
2058 |
{ |
|
2059 |
/** |
|
2060 |
Gets sound driver information. |
|
2061 |
||
2062 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2063 |
||
2064 |
- TInt aFunction : This enum value. |
|
2065 |
||
2066 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
2067 |
TSoundInfoV1 structure. The HAL function needs to fill the members of |
|
2068 |
this structure with the appropriate information. |
|
2069 |
||
2070 |
- TAny* a2 : NULL. |
|
2071 |
||
2072 |
@see TSoundInfoV1 |
|
2073 |
@see TPckgBuf |
|
2074 |
*/ |
|
2075 |
ESoundHalSoundInfo, |
|
2076 |
||
2077 |
||
2078 |
/** |
|
2079 |
Sets whether a click is to be sounded on a key press. |
|
2080 |
||
2081 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2082 |
||
2083 |
- TInt aFunction : This enum value. |
|
2084 |
||
2085 |
- TAny* a1 : A TBool that needs to be set to ETrue (click is to be sounded), |
|
2086 |
or EFalse (click is not to be sounded). |
|
2087 |
||
2088 |
- TAny* a2 : NULL. |
|
2089 |
||
2090 |
@capability WriteDeviceData |
|
2091 |
*/ |
|
2092 |
ESoundHalSetKeyClickEnabled, |
|
2093 |
||
2094 |
||
2095 |
/** |
|
2096 |
Sets whether a click that is to be sounded on a key press, is loud or not. |
|
2097 |
||
2098 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2099 |
||
2100 |
- TInt aFunction : This enum value. |
|
2101 |
||
2102 |
- TAny* a1 : A TBool that needs to be set to ETrue (click is to be loud), |
|
2103 |
or EFalse (click is not to be loud). |
|
2104 |
||
2105 |
- TAny* a2 : NULL. |
|
2106 |
||
2107 |
@capability WriteDeviceData |
|
2108 |
*/ |
|
2109 |
ESoundHalSetKeyClickLoud, |
|
2110 |
||
2111 |
||
2112 |
/** |
|
2113 |
Sets whether a click is to be sounded when a pointing device touches |
|
2114 |
the screen. |
|
2115 |
||
2116 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2117 |
||
2118 |
- TInt aFunction : This enum value. |
|
2119 |
||
2120 |
- TAny* a1 : A TBool that needs to be set to ETrue (click is to be sounded), |
|
2121 |
or EFalse (click is not to be sounded). |
|
2122 |
||
2123 |
- TAny* a2 : NULL. |
|
2124 |
||
2125 |
@capability WriteDeviceData |
|
2126 |
*/ |
|
2127 |
ESoundHalSetPointerClickEnabled, |
|
2128 |
||
2129 |
||
2130 |
/** |
|
2131 |
Sets whether a click that is to be sounded when a pointing device touches |
|
2132 |
the screen, is loud or not. |
|
2133 |
||
2134 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2135 |
||
2136 |
- TInt aFunction : This enum value. |
|
2137 |
||
2138 |
- TAny* a1 : A TBool that needs to be set to ETrue (click is to be loud), |
|
2139 |
or EFalse (click is not to be loud). |
|
2140 |
||
2141 |
- TAny* a2 : NULL. |
|
2142 |
||
2143 |
@capability WriteDeviceData |
|
2144 |
*/ |
|
2145 |
ESoundHalSetPointerClickLoud, |
|
2146 |
||
2147 |
||
2148 |
/** |
|
2149 |
Sets whether the beep sound is enabled. |
|
2150 |
||
2151 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2152 |
||
2153 |
- TInt aFunction : This enum value. |
|
2154 |
||
2155 |
- TAny* a1 : A TBool that needs to be set to ETrue (beep is enabled), |
|
2156 |
or EFalse (beep is not enabled). |
|
2157 |
||
2158 |
- TAny* a2 : NULL. |
|
2159 |
||
2160 |
@capability WriteDeviceData |
|
2161 |
*/ |
|
2162 |
ESoundHalSetBeepEnabled, |
|
2163 |
||
2164 |
||
2165 |
/** |
|
2166 |
Sets whether the beep sound is to be loud. |
|
2167 |
||
2168 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2169 |
||
2170 |
- TInt aFunction : This enum value. |
|
2171 |
||
2172 |
- TAny* a1 : A TBool that needs to be set to ETrue (beep is loud), |
|
2173 |
or EFalse (beep is not loud). |
|
2174 |
||
2175 |
- TAny* a2 : NULL. |
|
2176 |
||
2177 |
@capability WriteDeviceData |
|
2178 |
*/ |
|
2179 |
ESoundHalSetBeepLoud, |
|
2180 |
||
2181 |
||
2182 |
/** |
|
2183 |
Sets whether the sound driver is enabled. |
|
2184 |
||
2185 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2186 |
||
2187 |
- TInt aFunction : This enum value. |
|
2188 |
||
2189 |
- TAny* a1 : A TBool that needs to be set to ETrue (driver is enabled), |
|
2190 |
or EFalse (driver is not enabled). |
|
2191 |
||
2192 |
- TAny* a2 : NULL. |
|
2193 |
||
2194 |
@capability PowerMgmt |
|
2195 |
*/ |
|
2196 |
ESoundHalSetSoundDriverEnabled, |
|
2197 |
||
2198 |
||
2199 |
/** |
|
2200 |
Sets whether the sound driver is to generate loud sounds. |
|
2201 |
||
2202 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2203 |
||
2204 |
- TInt aFunction : This enum value. |
|
2205 |
||
2206 |
- TAny* a1 : A TBool that needs to be set to ETrue (driver is to generate loud sounds), |
|
2207 |
or EFalse (driver is not to generate loud sounds). |
|
2208 |
||
2209 |
- TAny* a2 : NULL. |
|
2210 |
||
2211 |
@capability WriteDeviceData |
|
2212 |
*/ |
|
2213 |
ESoundHalSetSoundDriverLoud, |
|
2214 |
||
2215 |
||
2216 |
/** |
|
2217 |
Sets whether sound generation is enabled. |
|
2218 |
||
2219 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2220 |
||
2221 |
- TInt aFunction : This enum value. |
|
2222 |
||
2223 |
- TAny* a1 : A TBool that needs to be set to ETrue (sound generation is enabled), |
|
2224 |
or EFalse (sound generation is not enabled). |
|
2225 |
||
2226 |
- TAny* a2 : NULL. |
|
2227 |
||
2228 |
@capability WriteDeviceData |
|
2229 |
*/ |
|
2230 |
ESoundHalSetSoundEnabled, |
|
2231 |
||
2232 |
||
2233 |
/** |
|
2234 |
Sets whether generation of key clicks is to be overridden. |
|
2235 |
||
2236 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2237 |
||
2238 |
- TInt aFunction : This enum value. |
|
2239 |
||
2240 |
- TAny* a1 : A TBool that needs to be set to ETrue (key clicks to be overridden), |
|
2241 |
or EFalse (key clicks not to be overridden). |
|
2242 |
||
2243 |
- TAny* a2 : NULL. |
|
2244 |
||
2245 |
@capability WriteDeviceData |
|
2246 |
*/ |
|
2247 |
ESoundHalSetKeyClickOverridden, |
|
2248 |
||
2249 |
||
2250 |
/** |
|
2251 |
Tests whether the generation of key clicks is overridden. |
|
2252 |
||
2253 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2254 |
||
2255 |
- TInt aFunction : This enum value. |
|
2256 |
||
2257 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (key clicks are overridden), |
|
2258 |
or EFalse (key clicks are not overridden). |
|
2259 |
||
2260 |
- TAny* a2 : NULL. |
|
2261 |
*/ |
|
2262 |
ESoundHalKeyClickOverridden, |
|
2263 |
||
2264 |
||
2265 |
/** |
|
2266 |
Tests whether a click that is to be sounded on a key press, is loud or not. |
|
2267 |
||
2268 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2269 |
||
2270 |
- TInt aFunction : This enum value. |
|
2271 |
||
2272 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (click is loud), |
|
2273 |
or EFalse (click is not loud). |
|
2274 |
||
2275 |
- TAny* a2 : NULL. |
|
2276 |
*/ |
|
2277 |
ESoundHalKeyClickLoud, |
|
2278 |
||
2279 |
||
2280 |
/** |
|
2281 |
Tests whether a click is to be sounded on a key press. |
|
2282 |
||
2283 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2284 |
||
2285 |
- TInt aFunction : This enum value. |
|
2286 |
||
2287 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (click is sounded), |
|
2288 |
or EFalse (click is not sounded). |
|
2289 |
||
2290 |
- TAny* a2 : NULL. |
|
2291 |
*/ |
|
2292 |
ESoundHalKeyClickEnabled, |
|
2293 |
||
2294 |
||
2295 |
/** |
|
2296 |
Tests whether a click that is to be sounded when a pointing device touches |
|
2297 |
the screen, is loud or not. |
|
2298 |
||
2299 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2300 |
||
2301 |
- TInt aFunction : This enum value. |
|
2302 |
||
2303 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (click is loud), |
|
2304 |
or EFalse (click is not loud). |
|
2305 |
||
2306 |
- TAny* a2 : NULL. |
|
2307 |
*/ |
|
2308 |
ESoundHalPointerClickLoud, |
|
2309 |
||
2310 |
||
2311 |
/** |
|
2312 |
Tests whether a click is to be sounded when a pointing device touches |
|
2313 |
the screen. |
|
2314 |
||
2315 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2316 |
||
2317 |
- TInt aFunction : This enum value. |
|
2318 |
||
2319 |
- TAny* a1 : A TBool into which teh HAL handler puts ETrue (click is to be sounded), |
|
2320 |
or EFalse (click is not to be sounded). |
|
2321 |
||
2322 |
- TAny* a2 : NULL. |
|
2323 |
*/ |
|
2324 |
ESoundHalPointerClickEnabled, |
|
2325 |
||
2326 |
||
2327 |
/** |
|
2328 |
Generates a key click sound. |
|
2329 |
||
2330 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2331 |
||
2332 |
- TInt aFunction : This enum value. |
|
2333 |
||
2334 |
- TAny* a1 : NULL. |
|
2335 |
||
2336 |
- TAny* a2 : NULL. |
|
2337 |
*/ |
|
2338 |
ESoundHalKeyClick, |
|
2339 |
||
2340 |
||
2341 |
/** |
|
2342 |
Generates a pointer click sound. |
|
2343 |
||
2344 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2345 |
||
2346 |
- TInt aFunction : This enum value. |
|
2347 |
||
2348 |
- TAny* a1 : NULL. |
|
2349 |
||
2350 |
- TAny* a2 : NULL. |
|
2351 |
*/ |
|
2352 |
ESoundHalPointerClick, |
|
2353 |
||
2354 |
||
2355 |
/** |
|
2356 |
Generates a beep sound. |
|
2357 |
||
2358 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2359 |
||
2360 |
- TInt aFunction : This enum value. |
|
2361 |
||
2362 |
- TAny* a1 : NULL. |
|
2363 |
||
2364 |
- TAny* a2 : NULL. |
|
2365 |
*/ |
|
2366 |
ESoundHalBeep, |
|
2367 |
||
2368 |
||
2369 |
/** |
|
2370 |
Gets the maximum volume of the key click. |
|
2371 |
||
2372 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2373 |
||
2374 |
- TInt aFunction : This enum value. |
|
2375 |
||
2376 |
- TAny* a1 : A TInt value into which the HAL handler puts the maximum volume value. |
|
2377 |
||
2378 |
- TAny* a2 : NULL. |
|
2379 |
*/ |
|
2380 |
ESoundHalKeyClickVolumeMax, |
|
2381 |
||
2382 |
||
2383 |
/** |
|
2384 |
Gets the maximum volume of the pointer click. |
|
2385 |
||
2386 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2387 |
||
2388 |
- TInt aFunction : This enum value. |
|
2389 |
||
2390 |
- TAny* a1 : A TInt value into which the HAL handler puts the maximum volume value. |
|
2391 |
||
2392 |
- TAny* a2 : NULL. |
|
2393 |
*/ |
|
2394 |
ESoundHalPointerClickVolumeMax, |
|
2395 |
}; |
|
2396 |
||
2397 |
||
2398 |
||
2399 |
||
2400 |
/** |
|
2401 |
@publishedPartner |
|
2402 |
@released |
|
2403 |
||
2404 |
The set of function-ids that are associated with the EHalGroupMouse |
|
2405 |
HAL group. |
|
2406 |
||
2407 |
Each enum value represents a specific characteristic of the mouse device, |
|
2408 |
and is passed as the second parameter to the HAL handler function |
|
2409 |
dealing with this group. |
|
2410 |
||
2411 |
@see EHalGroupMouse |
|
2412 |
*/ |
|
2413 |
enum TMouseHalFunction |
|
2414 |
{ |
|
2415 |
||
2416 |
||
2417 |
/** |
|
2418 |
Tests whether a mouse device is visible. |
|
2419 |
||
2420 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2421 |
||
2422 |
- TInt aFunction : This enum value. |
|
2423 |
||
2424 |
- TAny* a1 : A TBool into which the HAL handler |
|
2425 |
puts ETrue (for visible) or EFalse (for not-visible). |
|
2426 |
||
2427 |
- TAny* a2 : NULL |
|
2428 |
*/ |
|
2429 |
EMouseHalMouseState, |
|
2430 |
||
2431 |
||
2432 |
/** |
|
2433 |
Sets the state of the mouse device, i.e. whether it is visible or invisible. |
|
2434 |
||
2435 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2436 |
||
2437 |
- TInt aFunction : This enum value. |
|
2438 |
||
2439 |
- TAny* a1 : A TBool that needs to be set to ETrue (for visible) |
|
2440 |
or EFalse (for not-visible). |
|
2441 |
||
2442 |
- TAny* a2 : NULL |
|
2443 |
||
2444 |
@capability MultimediaDD |
|
2445 |
*/ |
|
2446 |
EMouseHalSetMouseState, |
|
2447 |
||
2448 |
||
2449 |
/** |
|
2450 |
Gets the mouse speed, i.e. how fast the mouse pointer moves. |
|
2451 |
||
2452 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2453 |
||
2454 |
- TInt aFunction : This enum value. |
|
2455 |
||
2456 |
- TAny* a1 : A TInt value into which the HAL handler puts the speed value. |
|
2457 |
This is expected to be a value in the range 0 to 255. |
|
2458 |
||
2459 |
- TAny* a2 : NULL |
|
2460 |
*/ |
|
2461 |
EMouseHalMouseSpeed, |
|
2462 |
||
2463 |
||
2464 |
/** |
|
2465 |
Sets the mouse speed, i.e. how fast the mouse pointer moves. |
|
2466 |
||
2467 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2468 |
||
2469 |
- TInt aFunction : This enum value. |
|
2470 |
||
2471 |
- TAny* a1 : A TInt value containing the speed value to be set |
|
2472 |
This is expected to be a value in the range 0 to 255. |
|
2473 |
||
2474 |
- TAny* a2 : NULL |
|
2475 |
||
2476 |
@capability MultimediaDD |
|
2477 |
*/ |
|
2478 |
EMouseHalSetMouseSpeed, |
|
2479 |
||
2480 |
||
2481 |
/** |
|
2482 |
Gets the mouse acceleration, i.e. how much the mouse pointer accelerates |
|
2483 |
as the user moves it faster. |
|
2484 |
||
2485 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2486 |
||
2487 |
- TInt aFunction : This enum value. |
|
2488 |
||
2489 |
- TAny* a1 : A TInt value into which the HAL handler puts the acceleration value. |
|
2490 |
This is expected to be a value in the range 0 to 255. |
|
2491 |
||
2492 |
- TAny* a2 : NULL |
|
2493 |
*/ |
|
2494 |
EMouseHalMouseAcceleration, |
|
2495 |
||
2496 |
||
2497 |
/** |
|
2498 |
Sets the mouse acceleration, i.e. how much the mouse pointer accelerates |
|
2499 |
as the user moves it faster. |
|
2500 |
||
2501 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2502 |
||
2503 |
- TInt aFunction : This enum value. |
|
2504 |
||
2505 |
- TAny* a1 : A TInt value containing the acceleration value to be set |
|
2506 |
This is expected to be a value in the range 0 to 255. |
|
2507 |
||
2508 |
- TAny* a2 : NULL |
|
2509 |
||
2510 |
@capability MultimediaDD |
|
2511 |
*/ |
|
2512 |
EMouseHalSetMouseAcceleration, |
|
2513 |
||
2514 |
||
2515 |
/** |
|
2516 |
Gets the state of the mouse buttons. |
|
2517 |
||
2518 |
This is not currently supported. |
|
2519 |
*/ |
|
2520 |
EMouseHalMouseButtonState, |
|
2521 |
||
2522 |
||
2523 |
/** |
|
2524 |
Gets information about the mouse display characteristics. |
|
2525 |
||
2526 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2527 |
||
2528 |
- TInt aFunction : This enum value. |
|
2529 |
||
2530 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
2531 |
TMouseInfoV01 structure. The HAL function needs to fill the members of |
|
2532 |
this structure with the appropriate information. |
|
2533 |
||
2534 |
- TAny* a2 : NULL. |
|
2535 |
||
2536 |
@see TMouseInfoV01 |
|
2537 |
@see TPckgBuf |
|
2538 |
*/ |
|
2539 |
EMouseHalMouseInfo, |
|
2540 |
}; |
|
2541 |
||
2542 |
/** |
|
2543 |
@internalComponent |
|
2544 |
*/ |
|
2545 |
enum TEmulatorHalFunction |
|
2546 |
{ |
|
2547 |
EEmulatorHalStringProperty, |
|
2548 |
EEmulatorHalIntProperty, |
|
2549 |
EEmulatorHalBoolProperty, |
|
2550 |
EEmulatorHalMapFilename, |
|
2551 |
EEmulatorHalColorDepth, |
|
2552 |
EEmulatorHalSetFlip, |
|
2553 |
EEmulatorHalCPUSpeed, |
|
2554 |
EEmulatorHalNumberOfScreens, |
|
2555 |
EEmulatorHalSetDisplayChannel, |
|
2556 |
}; |
|
2557 |
||
2558 |
/** |
|
2559 |
@publishedPartner |
|
2560 |
@released |
|
2561 |
||
2562 |
The set of function-ids that are associated with the EHalGroupKeyboard |
|
2563 |
HAL group. |
|
2564 |
||
2565 |
Each enum value represents a specific characteristic of the keyboard, |
|
2566 |
and is passed as the second parameter to the HAL handler function |
|
2567 |
dealing with this group. |
|
2568 |
||
2569 |
@see EHalGroupKeyboard |
|
2570 |
*/ |
|
2571 |
enum TKeyboardHalFunction |
|
2572 |
{ |
|
2573 |
||
2574 |
/** |
|
2575 |
Tests whether the keyboard is on or off. |
|
2576 |
||
2577 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2578 |
||
2579 |
- TInt aFunction : This enum value. |
|
2580 |
||
2581 |
- TAny* a1 : A TBool into which the HAL handler puts ETrue (for On), |
|
2582 |
or EFalse (for Off). |
|
2583 |
||
2584 |
- TAny* a2 : NULL |
|
2585 |
*/ |
|
2586 |
EKeyboardHalKeyboardState, |
|
2587 |
||
2588 |
||
2589 |
/** |
|
2590 |
Sets the keyboard either on or off. |
|
2591 |
||
2592 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2593 |
||
2594 |
- TInt aFunction : This enum value. |
|
2595 |
||
2596 |
- TAny* a1 :A TBool that needs to be set to ETrue (On), or EFalse (Off). |
|
2597 |
||
2598 |
- TAny* a2 : NULL |
|
2599 |
||
2600 |
@capability PowerMgmt |
|
2601 |
*/ |
|
2602 |
EKeyboardHalSetKeyboardState, |
|
2603 |
||
2604 |
||
2605 |
/** |
|
2606 |
Gets information about the keyboard. |
|
2607 |
||
2608 |
Requirements of the HAL function handler's 2nd, 3rd and 4th parameters: |
|
2609 |
||
2610 |
- TInt aFunction : This enum value. |
|
2611 |
||
2612 |
- TAny* a1 : This is a pointer to a package buffer (TPckgBuf) containing a |
|
2613 |
TKeyboardInfoV01 structure. The HAL function needs to fill the members of |
|
2614 |
this structure with the appropriate information. |
|
2615 |
||
2616 |
- TAny* a2 : NULL. |
|
2617 |
||
2618 |
@see TKeyboardInfoV01 |
|
2619 |
@see TPckgBuf |
|
2620 |
*/ |
|
2621 |
EKeyboardHalKeyboardInfo, |
|
2622 |
}; |
|
2623 |
||
2624 |
/** |
|
2625 |
@publishedPartner |
|
2626 |
@released |
|
2627 |
||
2628 |
The set of function-ids that are associated with the EHalGroupVM |
|
2629 |
HAL group. |
|
2630 |
||
2631 |
@see EHalGroupVM |
|
2632 |
*/ |
|
2633 |
enum TVMHalFunction |
|
2634 |
{ |
|
2635 |
/** |
|
2636 |
Evict the contents of the virtual memory cache and reduce it to its minimum size. |
|
2637 |
||
2638 |
@capability WriteDeviceData |
|
2639 |
@test |
|
2640 |
*/ |
|
2641 |
EVMHalFlushCache, |
|
2642 |
||
2643 |
/** |
|
2644 |
Change the minimum and maximum RAM sizes used for the virtual memory cache. |
|
2645 |
These values may be silently restricted to platforn specific limits. |
|
2646 |
If required, GetCacheSize can be used to verify sizes actually applied to the system. |
|
2647 |
||
2648 |
If there is not enough memory to set the specified cache size then KErrNoMemory is |
|
2649 |
returned, however the cache size may still have been modified in an attempt to |
|
2650 |
service the request. |
|
2651 |
||
2652 |
This hal function expects two TUint arguments. |
|
2653 |
The first argument (a1) is the minimum size for cache in bytes. |
|
2654 |
The second argument (a2) is the maximum size for cache in bytes; using zero for |
|
2655 |
this value will restore cache sizes to the initial values used after boot. |
|
2656 |
||
2657 |
The return value from the function is one of: |
|
2658 |
KErrNone, if successful; |
|
2659 |
KErrNoMemory if there is not enough memory; |
|
2660 |
KErrArgument if a1>a2; |
|
2661 |
otherwise one of the other system wide error codes. |
|
2662 |
||
2663 |
Example usage: |
|
2664 |
@code |
|
2665 |
TUint minRam = 128*1024; // 128k |
|
2666 |
TUint maxRam = KMaxTUint; // unlimited |
|
2667 |
TInt r = UserSvr::HalFunction(EHalGroupVM,EVMHalSetCacheSize,(TAny*)minRam,(TAny*)maxRam)); |
|
2668 |
if(r!=KErrNone) |
|
2669 |
anErrorOccured(); |
|
2670 |
@endcode |
|
2671 |
||
2672 |
@capability WriteDeviceData |
|
2673 |
@test |
|
2674 |
*/ |
|
2675 |
EVMHalSetCacheSize, |
|
2676 |
||
2677 |
/** |
|
2678 |
Get the sizes for the virtual memory cache. |
|
2679 |
The first argument (a1) is a pointer to a #SVMCacheInfo object. |
|
2680 |
The second argument (a2) must be zero. |
|
2681 |
@test |
|
2682 |
*/ |
|
2683 |
EVMHalGetCacheSize, |
|
2684 |
||
2685 |
/** |
|
2686 |
Get paging event information. |
|
2687 |
The first argument (a1) is a pointer to a descriptor whose contents will be filled |
|
2688 |
with a #SVMEventInfo object. |
|
2689 |
The second argument (a2) must be zero. |
|
2690 |
@test |
|
2691 |
*/ |
|
2692 |
EVMHalGetEventInfo, |
|
2693 |
||
2694 |
/** |
|
2695 |
Reset the counters obtained with EVMHalGetEventInfo. |
|
2696 |
@test |
|
2697 |
*/ |
|
2698 |
EVMHalResetEventInfo, |
|
2699 |
||
2700 |
/** |
|
2701 |
@internalTechnology |
|
2702 |
@test |
|
2703 |
*/ |
|
2704 |
EVMHalGetOriginalRomPages, |
|
2705 |
||
2706 |
/** |
|
2707 |
@internalTechnology |
|
2708 |
@test |
|
2709 |
*/ |
|
2710 |
EVMPageState, |
|
2711 |
||
2712 |
/** |
|
2713 |
@internalTechnology |
|
2714 |
@test |
|
2715 |
*/ |
|
2716 |
EVMHalGetConcurrencyInfo, |
|
2717 |
||
2718 |
/** |
|
2719 |
@internalTechnology |
|
2720 |
@test |
|
2721 |
*/ |
|
2722 |
EVMHalResetConcurrencyInfo, |
|
2723 |
||
2724 |
/** |
|
2725 |
@internalTechnology |
|
2726 |
@test |
|
2727 |
*/ |
|
2728 |
EVMHalGetPagingBenchmark, |
|
2729 |
||
2730 |
/** |
|
2731 |
@internalTechnology |
|
2732 |
@test |
|
2733 |
*/ |
|
2734 |
EVMHalResetPagingBenchmark, |
|
2735 |
||
2736 |
/** |
|
2737 |
Gets information about the size of the swap partition, and how much is currently used. |
|
2738 |
The first argument (a1) should be a pointer to the SVMSwapInfo structure to write. |
|
2739 |
@return KErrNone if successful, or KErrNotSupported if data paging is not supported. |
|
2740 |
@internalTechnology |
|
2741 |
@prototype |
|
2742 |
*/ |
|
2743 |
EVMHalGetSwapInfo, |
|
2744 |
||
2745 |
/** |
|
2746 |
Gets information about the current thrashing level. |
|
2747 |
||
2748 |
This is a number between 0 and 255 representing how close the system is to thrashing, where 0 |
|
2749 |
indicates no thrashing and 255 indicates severe thrashing. |
|
2750 |
||
2751 |
@return The current thrashing level. |
|
2752 |
@internalTechnology |
|
2753 |
@prototype |
|
2754 |
*/ |
|
2755 |
EVMHalGetThrashLevel, |
|
2756 |
||
2757 |
/** |
|
2758 |
Set the available swap space thresholds at which low memory notifications will be generated. |
|
2759 |
||
2760 |
Notifications are generated through the RChangeNotifier API, using the enumeration value |
|
2761 |
EChangesFreeMemory. |
|
2762 |
||
2763 |
The first argument (a1) should contain a pointer to a SVMSwapThresholds structure. The |
|
2764 |
thresholds are specified in bytes. |
|
2765 |
||
2766 |
@return KErrNone if successful, KErrNotSupported if data paging is not supported or KErrArgument |
|
2767 |
if the thresholds are larger than the size of the swap partition, or if the low threshold is |
|
2768 |
larger than the good threshold. |
|
2769 |
||
2770 |
@see RChangeNotifier |
|
2771 |
@see TChanges |
|
2772 |
*/ |
|
2773 |
EVMHalSetSwapThresholds, |
|
2774 |
||
2775 |
/** |
|
2776 |
Set the thrash level thresholds at which thrash level notifications will be generated. |
|
2777 |
||
2778 |
Notifications are generated through the RChangeNotifier API, using the enumeration value |
|
2779 |
EChangesThrashLevel. |
|
2780 |
||
2781 |
The first argument (a1) should contain the thrashing threshold, and the seond one (a2) should |
|
2782 |
contain the good threshold. |
|
2783 |
||
2784 |
The thresholds are specified as numbers between 0 and 255 inclusive. |
|
2785 |
||
2786 |
@return KErrNone if successful, KErrArgument if the thresholds are out of range or if the |
|
2787 |
thrashing threshold is smaller than the good threshold. |
|
2788 |
||
2789 |
@see RChangeNotifier |
|
2790 |
@see TChanges |
|
2791 |
*/ |
|
2792 |
EVMHalSetThrashThresholds, |
|
201
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2793 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2794 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2795 |
Indicate whether the data paging media driver supports access by physical address. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2796 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2797 |
@return 1 if it does, 0 if it does not and KErrNotSupported if data paging is not enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2798 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2799 |
EVMHalGetPhysicalAccessSupported, |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2800 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2801 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2802 |
Indicate whether the data paging media driver currently uses physical access for writing out |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2803 |
dirty data pages to swap. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2804 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2805 |
@return 1 if it does, 0 if it does not and KErrNotSupported if data paging is not enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2806 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2807 |
EVMHalGetUsePhysicalAccess, |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2808 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2809 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2810 |
Set whether physical access is used for writing out dirty data pages to swap. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2811 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2812 |
The first argument (a1) should contain zero or one to indicate whether to disable or enable |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2813 |
physical access respectively. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2814 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2815 |
@return KErrNone if successful, KErrNotSupported if data paging is not enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2816 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2817 |
EVMHalSetUsePhysicalAccess, |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2818 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2819 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2820 |
Get the data paging media driver's preferred write size. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2821 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2822 |
@return Log2 of the preferred write size in pages, or KErrNotSupported if data paging is not |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2823 |
enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2824 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2825 |
EVMHalGetPreferredDataWriteSize, |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2826 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2827 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2828 |
Get the number of pages that the pager attempts to write at a time when paging out dirty pages |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2829 |
to swap. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2830 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2831 |
@return Log2 of the current write size in pages, or KErrNotSupported if data paging is not |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2832 |
enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2833 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2834 |
EVMHalGetDataWriteSize, |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2835 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2836 |
/** |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2837 |
Set the number of pages that the pager attempts to write at a time when paging out dirty pages |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2838 |
to swap. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2839 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2840 |
The first argument (a1) should contain log2 of the write size in pages. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2841 |
|
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2842 |
@return KErrArgument if the value is out of range, or KErrNotSupported if data paging is not |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2843 |
enabled. |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2844 |
*/ |
43365a9b78a3
Revision: 201027
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
152
diff
changeset
|
2845 |
EVMHalSetDataWriteSize, |
0 | 2846 |
}; |
2847 |
||
2848 |
||
2849 |
/** |
|
2850 |
Paging event information. |
|
2851 |
@publishedPartner |
|
2852 |
@test |
|
2853 |
*/ |
|
2854 |
struct SVMEventInfo |
|
2855 |
{ |
|
2856 |
/** |
|
2857 |
The total number of page faults which have occurred. |
|
2858 |
*/ |
|
2859 |
TUint64 iPageFaultCount; |
|
2860 |
||
2861 |
/** |
|
2862 |
The total number of page faults which resulted in reading a page |
|
2863 |
from storage media. |
|
2864 |
*/ |
|
2865 |
TUint64 iPageInReadCount; |
|
2866 |
||
2867 |
// do not add new members to this struct. |
|
2868 |
// instead, derive a new SVMEventInfoV2 class from this and add new members to that. |
|
2869 |
}; |
|
2870 |
||
2871 |
||
2872 |
/** |
|
2873 |
VM cache information. |
|
2874 |
@publishedPartner |
|
2875 |
@test |
|
2876 |
*/ |
|
2877 |
struct SVMCacheInfo |
|
2878 |
{ |
|
2879 |
/** |
|
2880 |
The minimum size of virtual memory cache, in bytes. |
|
2881 |
*/ |
|
2882 |
TUint32 iMinSize; |
|
2883 |
||
2884 |
/** |
|
2885 |
The maximum size of virtual memory cache, in bytes. |
|
2886 |
*/ |
|
2887 |
TUint32 iMaxSize; |
|
2888 |
||
2889 |
/** |
|
2890 |
The current size of virtual memory cache, in bytes. |
|
2891 |
This may be larger than iMaxSize. |
|
2892 |
*/ |
|
2893 |
TUint32 iCurrentSize; |
|
2894 |
||
2895 |
/** |
|
2896 |
The current size of the freeable memory in the virtual memory cache, in bytes. |
|
2897 |
*/ |
|
2898 |
TUint32 iMaxFreeSize; |
|
2899 |
||
2900 |
// do not add new members to this struct, this is a compatability break |
|
2901 |
}; |
|
2902 |
||
2903 |
||
2904 |
/** |
|
2905 |
Enumeration defining the bitmask returned from a call to the demnd paging HAL function |
|
2906 |
EDemandPagingGetPageState. |
|
2907 |
||
2908 |
@internalComponent |
|
2909 |
@test |
|
2910 |
*/ |
|
2911 |
enum TDemandPagingPageState |
|
2912 |
{ |
|
2913 |
// Values common to both moving and multiple memory models |
|
2914 |
EPageStateInRom = 1<<16, |
|
2915 |
EPageStateInRamCode = 1<<17, |
|
2916 |
EPageStatePaged = 1<<18, |
|
2917 |
EPageStatePageTablePresent = 1<<19, |
|
2918 |
EPageStatePtePresent = 1<<20, |
|
2919 |
EPageStatePteValid = 1<<21, |
|
2920 |
// Values specific to multiple memory model |
|
2921 |
EPageStateCodeChunkPresent = 1<<22, |
|
2922 |
EPageStatePhysAddrPresent = 1<<23 |
|
2923 |
}; |
|
2924 |
||
2925 |
||
2926 |
/** |
|
2927 |
Information about concurrency in the demand paging system. |
|
2928 |
||
2929 |
@internalComponent |
|
2930 |
@test |
|
2931 |
*/ |
|
2932 |
struct SPagingConcurrencyInfo |
|
2933 |
{ |
|
2934 |
/** |
|
2935 |
The maximum observed number of threads waiting to page in. |
|
2936 |
*/ |
|
2937 |
TInt iMaxWaitingCount; |
|
2938 |
||
2939 |
/** |
|
2940 |
The maximum observed number of threads paging in. |
|
2941 |
*/ |
|
2942 |
TInt iMaxPagingCount; |
|
2943 |
}; |
|
2944 |
||
2945 |
||
2946 |
/** |
|
2947 |
Enumeration of demand paging benchmarks. |
|
2948 |
||
2949 |
@internalComponent |
|
2950 |
@test |
|
2951 |
*/ |
|
2952 |
enum TPagingBenchmark |
|
2953 |
{ |
|
2954 |
EPagingBmReadRomPage, |
|
2955 |
EPagingBmReadCodePage, |
|
2956 |
EPagingBmDecompress, |
|
2957 |
EPagingBmSetCodePageFree, |
|
2958 |
EPagingBmSetCodePageOld, |
|
2959 |
EPagingBmReadMedia, |
|
2960 |
EPagingBmFixupCodePage, |
|
2961 |
EPagingBmReadDataPage, |
|
2962 |
EPagingBmWriteDataPage, |
|
2963 |
EPagingBmDeleteNotifyDataPage, |
|
2964 |
EPagingBmReadDataMedia, |
|
2965 |
EPagingBmWriteDataMedia, |
|
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
2966 |
EPagingBmRejuvenate, // only implemented on FMM |
0 | 2967 |
|
2968 |
EMaxPagingBm |
|
2969 |
}; |
|
2970 |
||
2971 |
||
2972 |
/** |
|
2973 |
Benchmark information for a specific operation. All times are in terms of the system's fast timer. |
|
2974 |
||
2975 |
@internalComponent |
|
2976 |
@test |
|
2977 |
*/ |
|
2978 |
struct SPagingBenchmarkInfo |
|
2979 |
{ |
|
2980 |
/** |
|
2981 |
Number of times the operation has been executed. |
|
2982 |
*/ |
|
2983 |
TInt iCount; |
|
2984 |
||
2985 |
/** |
|
2986 |
Total time elapsed while executing the operation. |
|
2987 |
*/ |
|
2988 |
TInt64 iTotalTime; |
|
2989 |
||
2990 |
/** |
|
2991 |
Maximum time recorded for a single execution. |
|
2992 |
*/ |
|
2993 |
TInt iMaxTime; |
|
2994 |
||
2995 |
/** |
|
2996 |
Minimum time recorded for a single execution. |
|
2997 |
*/ |
|
2998 |
TInt iMinTime; |
|
2999 |
}; |
|
3000 |
||
3001 |
/** |
|
3002 |
Information about concurrency of ROM demand paging requests in the media subsystem. |
|
3003 |
||
3004 |
@internalComponent |
|
3005 |
@test |
|
3006 |
*/ |
|
3007 |
struct SMediaROMPagingConcurrencyInfo |
|
3008 |
{ |
|
3009 |
/** |
|
3010 |
The maximum number of pending page in requests in the main queue any time during this session. |
|
3011 |
*/ |
|
3012 |
TUint8 iMaxReqsInPending; |
|
3013 |
||
3014 |
/** |
|
3015 |
The maximum number of pending page in requests in the deferred queue any time during this session. |
|
3016 |
*/ |
|
3017 |
TUint8 iMaxReqsInDeferred; |
|
3018 |
||
3019 |
/** |
|
3020 |
The maximum number of deferrals of any single page in request during this session. |
|
3021 |
*/ |
|
3022 |
TUint8 iMaxDeferrals; |
|
3023 |
||
3024 |
/** |
|
3025 |
The total number of times the page in DFC run with an empty main queue during this session. |
|
3026 |
*/ |
|
3027 |
TUint8 iTotalRunDry; |
|
3028 |
||
3029 |
/** |
|
3030 |
The total number of page in requests first-time deferred during this session. |
|
3031 |
*/ |
|
3032 |
TUint iTotalFirstTimeDeferrals; |
|
3033 |
||
3034 |
/** |
|
3035 |
The total number of page in requests re-deferred during this session (deferred again after being picked out of deferred queue). |
|
3036 |
*/ |
|
3037 |
TUint iTotalReDeferrals; |
|
3038 |
||
3039 |
/** |
|
3040 |
The total number of page in requests serviced from main queue when completing an asynchronous request. |
|
3041 |
*/ |
|
3042 |
TUint iTotalSynchServicedFromMainQ; |
|
3043 |
||
3044 |
/** |
|
3045 |
The total number of page in requests deferred after being picked out of main queue when completing an asynchronous request. |
|
3046 |
*/ |
|
3047 |
TUint iTotalSynchDeferredFromMainQ; |
|
3048 |
||
3049 |
/** |
|
3050 |
The total number of page in requests issued whilst processing other page in requests. |
|
3051 |
*/ |
|
3052 |
TUint iTotalConcurrentReqs; |
|
3053 |
||
3054 |
/** |
|
3055 |
The total number of page in requests issued with at least one queue not empty. |
|
3056 |
*/ |
|
3057 |
TUint iTotalReqIssuedNonEmptyQ; |
|
3058 |
||
3059 |
/** |
|
3060 |
The total number of times the main queue was emptied when completing an asynchronous request during this session. |
|
3061 |
*/ |
|
3062 |
TUint iTotalSynchEmptiedMainQ; |
|
3063 |
||
3064 |
/** |
|
3065 |
The total number of times the page in DFC was cancelled because the main queue was synchronously emptied. |
|
3066 |
*/ |
|
3067 |
TUint iTotalDryRunsAvoided; |
|
3068 |
}; |
|
3069 |
||
3070 |
/** |
|
3071 |
Information about concurrency of Code demand paging requests in the media subsystem. |
|
3072 |
||
3073 |
@internalComponent |
|
3074 |
@test |
|
3075 |
*/ |
|
3076 |
struct SMediaCodePagingConcurrencyInfo |
|
3077 |
{ |
|
3078 |
/** |
|
3079 |
The maximum number of pending page in requests in the main queue any time during this session. |
|
3080 |
*/ |
|
3081 |
TUint8 iMaxReqsInPending; |
|
3082 |
||
3083 |
/** |
|
3084 |
The maximum number of pending page in requests in the deferred queue any time during this session. |
|
3085 |
*/ |
|
3086 |
TUint8 iMaxReqsInDeferred; |
|
3087 |
||
3088 |
/** |
|
3089 |
The maximum number of deferrals of any single page in request during this session. |
|
3090 |
*/ |
|
3091 |
TUint8 iMaxDeferrals; |
|
3092 |
||
3093 |
/** |
|
3094 |
Spare field |
|
3095 |
*/ |
|
3096 |
TUint8 iSpare; |
|
3097 |
||
3098 |
/** |
|
3099 |
The total number of page in requests first-time deferred during this session. |
|
3100 |
*/ |
|
3101 |
TUint iTotalFirstTimeDeferrals; |
|
3102 |
||
3103 |
/** |
|
3104 |
The total number of page in requests re-deferred during this session (deferred again after being picked out of deferred queue). |
|
3105 |
*/ |
|
3106 |
TUint iTotalReDeferrals; |
|
3107 |
||
3108 |
/** |
|
3109 |
The total number of page in requests serviced from main queue when completing an asynchronous request. |
|
3110 |
*/ |
|
3111 |
TUint iTotalSynchServicedFromMainQ; |
|
3112 |
||
3113 |
/** |
|
3114 |
The total number of page in requests deferred after being picked out of main queue when completing an asynchronous request. |
|
3115 |
*/ |
|
3116 |
TUint iTotalSynchDeferredFromMainQ; |
|
3117 |
||
3118 |
/** |
|
3119 |
The total number of page in requests issued whilst processing other page in requests. |
|
3120 |
*/ |
|
3121 |
TUint iTotalConcurrentReqs; |
|
3122 |
||
3123 |
/** |
|
3124 |
The total number of page in requests issued with at least one queue not empty. |
|
3125 |
*/ |
|
3126 |
TUint iTotalReqIssuedNonEmptyQ; |
|
3127 |
}; |
|
3128 |
||
3129 |
||
3130 |
/** |
|
3131 |
Information about concurrency of Data demand paging requests in the media subsystem. |
|
3132 |
||
3133 |
@internalComponent |
|
3134 |
@test |
|
3135 |
*/ |
|
3136 |
struct SMediaDataPagingConcurrencyInfo |
|
3137 |
{ |
|
3138 |
/** |
|
3139 |
The maximum number of pending page in requests in the main queue any time during this session. |
|
3140 |
*/ |
|
3141 |
TUint8 iMaxReqsInPending; |
|
3142 |
||
3143 |
/** |
|
3144 |
The maximum number of pending page in requests in the deferred queue any time during this session. |
|
3145 |
*/ |
|
3146 |
TUint8 iMaxReqsInDeferred; |
|
3147 |
||
3148 |
/** |
|
3149 |
The maximum number of deferrals of any single page in request during this session. |
|
3150 |
*/ |
|
3151 |
TUint8 iMaxDeferrals; |
|
3152 |
||
3153 |
/** |
|
3154 |
The total number of times the page in DFC run with an empty main queue during this session. |
|
3155 |
*/ |
|
3156 |
TUint8 iTotalRunDry; |
|
3157 |
||
3158 |
/** |
|
3159 |
The total number of page in requests first-time deferred during this session. |
|
3160 |
*/ |
|
3161 |
TUint iTotalFirstTimeDeferrals; |
|
3162 |
||
3163 |
/** |
|
3164 |
The total number of page in requests re-deferred during this session (deferred again after being picked out of deferred queue). |
|
3165 |
*/ |
|
3166 |
TUint iTotalReDeferrals; |
|
3167 |
||
3168 |
/** |
|
3169 |
The total number of page in requests serviced from main queue when completing an asynchronous request. |
|
3170 |
*/ |
|
3171 |
TUint iTotalSynchServicedFromMainQ; |
|
3172 |
||
3173 |
/** |
|
3174 |
The total number of page in requests deferred after being picked out of main queue when completing an asynchronous request. |
|
3175 |
*/ |
|
3176 |
TUint iTotalSynchDeferredFromMainQ; |
|
3177 |
||
3178 |
/** |
|
3179 |
The total number of page in requests issued whilst processing other page in requests. |
|
3180 |
*/ |
|
3181 |
TUint iTotalConcurrentReqs; |
|
3182 |
||
3183 |
/** |
|
3184 |
The total number of page in requests issued with at least one queue not empty. |
|
3185 |
*/ |
|
3186 |
TUint iTotalReqIssuedNonEmptyQ; |
|
3187 |
||
3188 |
/** |
|
3189 |
The total number of times the main queue was emptied when completing an asynchronous request during this session. |
|
3190 |
*/ |
|
3191 |
TUint iTotalSynchEmptiedMainQ; |
|
3192 |
||
3193 |
/** |
|
3194 |
The total number of times the page in DFC was cancelled because the main queue was synchronously emptied. |
|
3195 |
*/ |
|
3196 |
TUint iTotalDryRunsAvoided; |
|
3197 |
}; |
|
3198 |
||
3199 |
||
3200 |
/** |
|
3201 |
Information about paging requests in the media subsystem. |
|
3202 |
||
3203 |
@internalComponent |
|
3204 |
@test |
|
3205 |
*/ |
|
3206 |
struct SMediaPagingInfo |
|
3207 |
{ |
|
3208 |
/** |
|
3209 |
The total number of ROM page in requests |
|
3210 |
*/ |
|
3211 |
TInt iRomPageInCount; |
|
3212 |
/** |
|
3213 |
The total number of Code page in requests |
|
3214 |
*/ |
|
3215 |
TInt iCodePageInCount; |
|
3216 |
/** |
|
3217 |
The total number of Data page in requests |
|
3218 |
*/ |
|
3219 |
TInt iDataPageInCount; |
|
3220 |
/** |
|
3221 |
The total number of Data page out requests |
|
3222 |
*/ |
|
3223 |
TInt iDataPageOutCount; |
|
3224 |
/** |
|
3225 |
The total number of "background" Data page out requests |
|
3226 |
i.e. a page out which only occurs when the media is otherwise idle |
|
3227 |
*/ |
|
3228 |
TInt iDataPageOutBackgroundCount; |
|
3229 |
}; |
|
3230 |
||
3231 |
||
3232 |
||
3233 |
/** |
|
3234 |
Swap partition information. |
|
3235 |
@internalAll |
|
3236 |
@prototype |
|
3237 |
*/ |
|
3238 |
struct SVMSwapInfo |
|
3239 |
{ |
|
3240 |
/** |
|
3241 |
The size of the swap partition, in bytes. |
|
3242 |
*/ |
|
3243 |
TUint64 iSwapSize; |
|
3244 |
||
3245 |
/** |
|
3246 |
The amount of swap currently free, in bytes. |
|
3247 |
*/ |
|
3248 |
TUint64 iSwapFree; |
|
3249 |
||
3250 |
// do not add new members to this struct, this is a compatability break |
|
3251 |
}; |
|
3252 |
||
3253 |
||
3254 |
||
3255 |
/** |
|
3256 |
Free swap notification thresholds. |
|
3257 |
@internalAll |
|
3258 |
@prototype |
|
3259 |
*/ |
|
3260 |
struct SVMSwapThresholds |
|
3261 |
{ |
|
3262 |
/** |
|
3263 |
The low threshold, in bytes |
|
3264 |
*/ |
|
3265 |
TUint64 iLowThreshold; |
|
3266 |
||
3267 |
/** |
|
3268 |
The good threshold, in bytes. |
|
3269 |
*/ |
|
3270 |
TUint64 iGoodThreshold; |
|
3271 |
||
3272 |
// do not add new members to this struct, this is a compatability break |
|
3273 |
}; |
|
3274 |
||
3275 |
||
3276 |
||
3277 |
/** |
|
3278 |
@internalComponent |
|
3279 |
||
3280 |
The set of function-ids that are associated with the EHalGroupRam |
|
3281 |
HAL group. |
|
3282 |
||
3283 |
@see EHalGroupRam |
|
3284 |
@test |
|
3285 |
*/ |
|
3286 |
enum TRamHalFunction |
|
3287 |
{ |
|
3288 |
/** |
|
3289 |
Retrieve the number of RAM Zones configured for this variant. |
|
3290 |
||
3291 |
The first argument (a1) is a TUint in which to store the zone count. |
|
3292 |
The second argument (a2) must be zero. |
|
3293 |
@test |
|
3294 |
*/ |
|
3295 |
ERamHalGetZoneCount, |
|
3296 |
||
3297 |
/** |
|
3298 |
Retrieve configuration information about a zone. |
|
3299 |
||
3300 |
The first argument (a1) is a TUint indicating the index of the zone into the zone array. |
|
3301 |
The second argument (a2) is a pointer to a struct SRamZoneConfig in which to store the data. |
|
3302 |
@test |
|
3303 |
*/ |
|
3304 |
ERamHalGetZoneConfig, |
|
3305 |
||
3306 |
/** |
|
3307 |
Retrieve utilisation information about a zone. |
|
3308 |
||
3309 |
The first argument (a1) is a TUint indicating the index of the zone into the zone array. |
|
3310 |
The second argument (a2) is a pointer to a struct SRamZoneUtilisation in which to store the data. |
|
3311 |
@test |
|
3312 |
*/ |
|
3313 |
ERamHalGetZoneUtilisation, |
|
3314 |
||
3315 |
}; |
|
3316 |
||
3317 |
/** |
|
3318 |
Ram zone configuration information. |
|
3319 |
@internalComponent |
|
3320 |
@test |
|
3321 |
*/ |
|
3322 |
struct SRamZoneConfig |
|
3323 |
{ |
|
3324 |
/** |
|
3325 |
ID number of the RAM zone |
|
3326 |
*/ |
|
3327 |
TUint iZoneId; |
|
3328 |
||
3329 |
/** |
|
3330 |
The index of the RAM zone in the RAM zone array |
|
3331 |
*/ |
|
3332 |
TUint8 iZoneIndex; |
|
3333 |
||
3334 |
/** |
|
3335 |
Physical base address of the RAM zone |
|
3336 |
*/ |
|
3337 |
TUint32 iPhysBase; |
|
3338 |
||
3339 |
/** |
|
3340 |
Physical end address of the RAM zone |
|
3341 |
*/ |
|
3342 |
TUint32 iPhysEnd; |
|
3343 |
||
3344 |
/** |
|
3345 |
The total number of pages that are in the RAM zone |
|
3346 |
*/ |
|
3347 |
TUint32 iPhysPages; |
|
3348 |
||
3349 |
/** |
|
3350 |
Preference value for the RAM zone, lower preference RAM zones are used first |
|
3351 |
*/ |
|
3352 |
TUint8 iPref; |
|
3353 |
||
3354 |
/** |
|
3355 |
Zone flags - specify whether the RAM zone should be reserved for contiguous buffer or h/w etc |
|
3356 |
*/ |
|
3357 |
TUint iFlags; |
|
3358 |
||
3359 |
}; |
|
3360 |
||
3361 |
/** |
|
3362 |
Ram zone utilisation information. |
|
3363 |
@internalComponent |
|
3364 |
@test |
|
3365 |
*/ |
|
3366 |
struct SRamZoneUtilisation |
|
3367 |
{ |
|
3368 |
/** |
|
3369 |
ID number of the RAM zone |
|
3370 |
*/ |
|
3371 |
TUint iZoneId; |
|
3372 |
||
3373 |
/** |
|
3374 |
The index of the RAM zone in the zone array |
|
3375 |
*/ |
|
3376 |
TUint8 iZoneIndex; |
|
3377 |
||
3378 |
/** |
|
3379 |
The total number of pages that are in the RAM zone |
|
3380 |
*/ |
|
3381 |
TUint32 iPhysPages; |
|
3382 |
||
3383 |
/** |
|
3384 |
The number of pages free in the RAM zone |
|
3385 |
*/ |
|
3386 |
TUint32 iFreePages; |
|
3387 |
||
3388 |
/** |
|
3389 |
The number of 'unknown' (reserved at startup or holes in the zone) pages allocated in the RAM zone |
|
3390 |
*/ |
|
3391 |
TUint32 iAllocUnknown; |
|
3392 |
||
3393 |
/** |
|
3394 |
The number of fixed pages allocated in the RAM zone |
|
3395 |
*/ |
|
3396 |
TUint32 iAllocFixed; |
|
3397 |
||
3398 |
/** |
|
3399 |
The number of movable pages allocated in the RAM zone |
|
3400 |
*/ |
|
3401 |
TUint32 iAllocMovable; |
|
3402 |
||
3403 |
/** |
|
3404 |
The number of discardable pages allocated in the RAM zone |
|
3405 |
*/ |
|
3406 |
TUint32 iAllocDiscardable; |
|
3407 |
||
3408 |
/** |
|
3409 |
The number of other pages allocated in the RAM zone |
|
3410 |
*/ |
|
3411 |
TUint32 iAllocOther; |
|
3412 |
||
3413 |
}; |
|
3414 |
#endif |