equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 * Description: Declaration of the DEthernetFrameMemMngr class. |
14 * Description: Declaration of the DEthernetFrameMemMngr class. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 17 % |
19 * %version: 18 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef DETHERNETFRAMEMEMMNGR_H |
22 #ifndef DETHERNETFRAMEMEMMNGR_H |
23 #define DETHERNETFRAMEMEMMNGR_H |
23 #define DETHERNETFRAMEMEMMNGR_H |
24 |
24 |
83 /** |
83 /** |
84 * Memory finalization method. |
84 * Memory finalization method. |
85 * Deallocates the shared memory chunk, if relevant |
85 * Deallocates the shared memory chunk, if relevant |
86 * |
86 * |
87 * @since S60 3.1 |
87 * @since S60 3.1 |
88 */ |
88 * @param aThread The user mode client thread |
89 virtual void OnReleaseMemory(); |
89 */ |
|
90 virtual void OnReleaseMemory( DThread& aThread ) = 0; |
90 |
91 |
91 /** |
92 /** |
92 * Gets a memory block that can be used for tx frame write |
93 * Gets a memory block that can be used for tx frame write |
93 * |
94 * |
94 * @since S60 3.1 |
95 * @since S60 3.1 |
279 iParent( aParent ), |
280 iParent( aParent ), |
280 iRxFrameMemoryPool( aRxFrameMemoryPool ), |
281 iRxFrameMemoryPool( aRxFrameMemoryPool ), |
281 iRxBufAlignmentPadding( 0 ), |
282 iRxBufAlignmentPadding( 0 ), |
282 iVendorTxHdrLen( 0 ), |
283 iVendorTxHdrLen( 0 ), |
283 iVendorTxTrailerLen( 0 ), |
284 iVendorTxTrailerLen( 0 ), |
|
285 iClientChunkHandle( -1 ), |
284 iInUse( EFalse ) |
286 iInUse( EFalse ) |
285 {}; |
287 {}; |
286 |
288 |
287 /** |
289 /** |
288 * Allocates a shared memory chunk for frame transfer between user |
290 * Allocates a shared memory chunk for frame transfer between user |
444 * amount of free space (bytes) that the WLAN vendor implementation |
446 * amount of free space (bytes) that the WLAN vendor implementation |
445 * requires to exist in a Tx buffer after the 802.11 MPDU to be sent |
447 * requires to exist in a Tx buffer after the 802.11 MPDU to be sent |
446 */ |
448 */ |
447 TUint iVendorTxTrailerLen; |
449 TUint iVendorTxTrailerLen; |
448 |
450 |
|
451 /** user mode client's handle to the shared memory chunk */ |
|
452 TInt iClientChunkHandle; |
|
453 |
449 private: // Data |
454 private: // Data |
450 |
455 |
451 /** is memory in use or not */ |
456 /** is memory in use or not */ |
452 TBool iInUse; |
457 TBool iInUse; |
453 }; |
458 }; |