linklayerprotocols/ethernetnif/EtherPkt/Cardctl.h
author Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
Thu, 04 Mar 2010 11:58:36 +0000
branchRCL_3
changeset 6 e7dfaa7b0b8d
permissions -rw-r--r--
Fix for Bug 69 - provide missing source for EtherPkt.drv
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     7
//
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    10
//
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    11
// Contributors:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    12
//
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    13
// Description:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    14
//
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    15
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    16
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    17
 @file
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    18
 @internalComponent 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    19
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    20
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    21
#if !defined(__CARDCTL_H__)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    22
#define __CARDCTL_H__
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    23
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    24
#include <d32ethernet.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    25
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    26
#include "carddrv.h"
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    27
#include <comms-infras/connectionsettings.h>	// for KSlashChar
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    28
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    29
const TInt KConfigBufferSize = 12;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    30
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    31
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    32
NONSHARABLE_CLASS(CIOBuffer) : public CBase
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    33
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    34
Generic buffer class
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    35
Enables HBufC8 pointers to be queued
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    36
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    37
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    38
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    39
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    40
	~CIOBuffer();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    41
	inline HBufC8*	Data() const {return iBuf;};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    42
	void FreeData();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    43
	inline TPtr8& Ptr() {return iBufPtr;};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    44
	void Assign(HBufC8* aBuffer = NULL);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    45
    static CIOBuffer* NewL(HBufC8* aBuf = NULL);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    46
    static CIOBuffer* NewL(const TInt aSize);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    47
	static TInt LinkOffset();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    48
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    49
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    50
	CIOBuffer();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    51
	void ConstructL(const TInt aSize);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    52
	//	void Construct(HBufC8* aBuffer);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    53
	
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    54
	TSglQueLink iLink;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    55
	HBufC8* iBuf;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    56
	TPtr8 iBufPtr;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    57
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    58
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    59
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    60
// Main Card Control class. Controls open, close, read, write etc 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    61
class CPcCardSender;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    62
class CPcCardReceiver;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    63
class CPcCardIOCTL;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    64
class CPcCardEventHandler;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    65
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    66
NONSHARABLE_CLASS(CPcCardControlEngine) : public CBase
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    67
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    68
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    69
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    70
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    71
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    72
	friend class CPcCardSender;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    73
	friend class CPcCardReceiver;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    74
	friend class CPcCardIOCTL;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    75
	friend class CPcCardEventHandler;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    76
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    77
	static CPcCardControlEngine *NewL(CPcCardPktDrv* aPktDrv);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    78
	~CPcCardControlEngine();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    79
	void StartL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    80
	void Stop();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    81
	TUint8* GetInterfaceAddress();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    82
	TInt Send(HBufC8* aBuffer);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    83
	TBool CardOpen(){return iCardOpen;};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    84
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    85
#if (!defined __WINS__)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    86
	void ParseMACFromFileL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    87
#endif
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    88
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    89
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    90
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    91
	CPcCardControlEngine(CPcCardPktDrv* aPktDrv);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    92
	void ConstructL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    93
	void ProcessReceivedPacket(TDesC8 &aBuffer);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    94
	void ResumeSending();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    95
	void LinkLayerUp();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    96
	void LoadDeviceDriversL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    97
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    98
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    99
	TBool iCardOpen;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   100
	CPcCardPktDrv* iNotify;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   101
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   102
	TBuf8<KConfigBufferSize> iConfig;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   103
	
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   104
	CPcCardSender* iSender;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   105
	CPcCardReceiver* iReceiver;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   106
	CPcCardEventHandler* iEventHandler;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   107
	RBusDevEthernet iCard;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   108
	TInt iPcmciaSocket;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   109
	
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   110
	TBuf<KCommsDbSvrDefaultTextFieldLength>	iPDDName;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   111
	TBuf<KCommsDbSvrDefaultTextFieldLength>	iLDDName;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   112
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   113
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   114
NONSHARABLE_CLASS(CPcCardSender) : public CActive
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   115
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   116
Writer Active object class
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   117
Queues buffers for transmit
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   118
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   119
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   120
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   121
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   122
	static CPcCardSender* NewL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   123
	~CPcCardSender();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   124
	TInt Send(CIOBuffer* aBuffer);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   125
	void EmptyQueue();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   126
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   127
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   128
	virtual void RunL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   129
	virtual void DoCancel();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   130
	CPcCardSender();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   131
	void InitL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   132
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   133
	TInt iQueueLength;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   134
	CPcCardControlEngine* iParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   135
	TSglQue<CIOBuffer> iTxQueue;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   136
	TBool iStopSending;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   137
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   138
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   139
NONSHARABLE_CLASS(CPcCardReceiver) : public CActive
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   140
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   141
Reader active object
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   142
One receive buffer only, read queue handled by LDD
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   143
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   144
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   145
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   146
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   147
	static CPcCardReceiver* NewL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   148
	~CPcCardReceiver();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   149
	void QueueRead();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   150
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   151
	virtual void RunL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   152
	virtual void DoCancel();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   153
	CPcCardReceiver();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   154
	void InitL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   155
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   156
	CPcCardControlEngine* iParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   157
	HBufC8* iRecvBuffer;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   158
	TUint iRecvBufLength;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   159
	TPtr8 iRecvBufPtr;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   160
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   161
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   162
NONSHARABLE_CLASS(CPcCardEventHandler) : public CActive
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   163
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   164
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   165
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   166
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   167
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   168
	~CPcCardEventHandler();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   169
	static CPcCardEventHandler* NewL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   170
	void GetEvent();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   171
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   172
	virtual void RunL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   173
	virtual void DoCancel();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   174
	CPcCardEventHandler();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   175
	void InitL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   176
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   177
	TBuf8<32>	iEventBuffer;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   178
	CPcCardControlEngine* iParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   179
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   180
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   181
NONSHARABLE_CLASS(CPcCardIOCTL) : public CActive
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   182
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   183
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   184
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   185
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   186
public:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   187
	~CPcCardIOCTL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   188
	static CPcCardIOCTL* NewL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   189
	TInt Ioctl(const TUint8 aIOCTLCode);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   190
private:
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   191
	virtual void RunL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   192
	virtual void DoCancel();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   193
	CPcCardIOCTL();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   194
	void InitL(CPcCardControlEngine* aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   195
	TBuf8<32>	iIOCTLBuffer;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   196
	TUint8 iCurrentIOCTL;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   197
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   198
	CPcCardControlEngine* iParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   199
};
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   200
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   201
#endif