|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: WLAN LDD general declarations & definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 15 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANLDDCOMMON_H |
|
23 #define WLANLDDCOMMON_H |
|
24 |
|
25 #define LDD_NAME _L("wlan") |
|
26 #define LDD_FILE_NAME _L("wlanldd") |
|
27 |
|
28 #include <e32def.h> |
|
29 #include <e32cmn.h> |
|
30 #include "umac_types.h" |
|
31 #include "wllddoidmsgstorage.h" |
|
32 |
|
33 const TInt KWlanDriverMajorVersion = 1; |
|
34 const TInt KWlanDriverMinorVersion = 0; |
|
35 const TInt KWlanDriverBuildVersion = 0; |
|
36 |
|
37 // Values for the Unit parameter used in the LDD |
|
38 enum TWlanUnit |
|
39 { |
|
40 KUnitEthernet, |
|
41 KUnitWlan, |
|
42 KUnitMax // not a real unit just defined for upperbound |
|
43 }; |
|
44 |
|
45 const TUint KWlanUnitsAllowedMask = 0x0000000F; |
|
46 |
|
47 class TCapsWlanDriverV01 |
|
48 { |
|
49 public: |
|
50 TVersion version; |
|
51 }; |
|
52 |
|
53 struct SOutputBuffer |
|
54 { |
|
55 TUint8* iData; |
|
56 TUint32 iLen; |
|
57 }; |
|
58 |
|
59 /** |
|
60 * Structure to hold information about the shared memory chunk between |
|
61 * user mode and kernel mode |
|
62 */ |
|
63 class TSharedChunkInfo |
|
64 { |
|
65 public: |
|
66 TInt iChunkHandle; |
|
67 TInt iSize; |
|
68 }; |
|
69 |
|
70 typedef TBuf<KMaxExitCategoryName> TExitCategory; |
|
71 |
|
72 inline void WlanPanic( |
|
73 const TExitCategory& |
|
74 #ifdef __KERNEL_MODE__ |
|
75 aCategory |
|
76 #endif |
|
77 , TInt |
|
78 #ifdef __KERNEL_MODE__ |
|
79 aCode |
|
80 #endif |
|
81 ) |
|
82 { |
|
83 #ifdef __KERNEL_MODE__ |
|
84 Kern::PanicCurrentThread( aCategory, aCode ); |
|
85 #endif |
|
86 } |
|
87 |
|
88 #endif // WLANLDDCOMMON |