linklayerprotocols/ethernetnif/EtherPkt/CardDll.cpp
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
#include <nifman.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    18
#include <nifvar.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    19
#include <nifutl.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    20
#include <es_mbuf.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    21
#include <nifmbuf.h>
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    22
#include "PKTDRV.H"
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    23
#include "ETHINTER.H"
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    24
#include "Cardctl.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
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    27
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    28
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    29
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    30
extern "C"
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
	IMPORT_C CPktDrvFactory * NewPcCardPktDrvFactoryL();	//< Force export 
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
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    35
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    36
Library file is opened and this is the the first and only export.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    37
@internalComponent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    38
@return A pointer to CPktDrvFactory object.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    39
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    40
EXPORT_C CPktDrvFactory* NewPcCardPktDrvFactoryL()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    41
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    42
	CPktDrvFactory *f=new (ELeave) CPcCardPktDrvFactory;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    43
	return f;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    44
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    45
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    46
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    47
Create the packet driver object
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    48
@param aParent Pointer to the parent Ethint NIF class.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    49
@return A pointer to CPktDrvBase object.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    50
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    51
CPktDrvBase* CPcCardPktDrvFactory::NewDriverL(CLANLinkCommon* aParent)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    52
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    53
	CPktDrvBase *drv = new (ELeave) CPcCardPktDrv(*this);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    54
	CleanupStack::PushL(drv);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    55
	drv->ConstructL(aParent);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    56
	CleanupStack::Pop();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    57
	return drv;
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
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    61
Constructor.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    62
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    63
CPcCardPktDrvFactory::CPcCardPktDrvFactory()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    64
{
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
}
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
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    69
Packet Driver version number.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    70
@return Version number of the Packet Driver
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    71
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    72
TVersion CPcCardPktDrvFactory::Version() const
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    73
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    74
	return(TVersion(KPcCardDrvMajorVersionNumber,KPcCardDrvMinorVersionNumber,KPcCardDrvBuildVersionNumber));
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    75
}
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
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    78
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    79
Constructor. Packet Driver object. 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    80
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    81
CPcCardPktDrv::CPcCardPktDrv(CPktDrvFactory& aFactory) : CPktDrvBase(aFactory)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    82
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    83
	
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
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    86
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    87
Only one object owned
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    88
Destructor.
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
CPcCardPktDrv::~CPcCardPktDrv()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    91
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    92
	delete iControl;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    93
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    94
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    95
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    96
Pure Virtual Construction of the CPktDrvBase object
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    97
@param aParent Pointer to the CLANLinkCommon class.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    98
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
    99
void CPcCardPktDrv::ConstructL(CLANLinkCommon* aParent)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   100
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   101
	iParent = aParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   102
	// Card control engine
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   103
	iControl=CPcCardControlEngine::NewL(this);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   104
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   105
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   106
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   107
Pure Virtual Downstack call. "	Call to LDD or subordinate object to start/initialise the 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   108
Physical device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   109
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   110
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   111
		Implementation specific Error Code  Failure
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
TInt CPcCardPktDrv::StartInterface()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   114
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   115
	// Opens the card and queues a read
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   116
	// Control engine validates
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   117
	TRAPD(err,iControl->StartL());
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   118
	return err;
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
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   122
Call to LDD or subordinate object to stop/de-initialise the Physical device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   123
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   124
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   125
		Implementation specific Error Code  Failure
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
TInt CPcCardPktDrv::StopInterface()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   128
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   129
	// Closes the card
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   130
	// Control engine validates
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   131
	iControl->Stop();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   132
	return KErrNone;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   133
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   134
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   135
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   136
Call to LDD or subordinate object to reset/re-initialise the Physical device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   137
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   138
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   139
		Implementation specific Error Code  Failure
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
TInt CPcCardPktDrv::ResetInterface()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   142
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   143
	iControl->Stop();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   144
	TRAPD(err,iControl->StartL());
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   145
	return err;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   146
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   147
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   148
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   149
Sender Class is generic and does not want to know about RMBuf's
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   150
Copy to a Heap Buffer and Free the packet. EtherII MAC layer comments
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   151
Say we should free the packet buffer
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   152
RMBuf could contain a chain so get into a contiguous buffer
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   153
@param aPacket Reference to a chain of data buffers to be passed to the line.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   154
@return 0 Tells the higher layer to send no more data.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   155
		1 Tells higher layer that it can send more data.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   156
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   157
TInt CPcCardPktDrv::Send(RMBufChain &aPacket)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   158
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   159
	if(!iControl->CardOpen())
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
		aPacket.Free();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   162
		return KErrNotReady;
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
	HBufC8 * buf = NULL;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   165
	TRAPD(err,buf = HBufC8::NewMaxL(aPacket.Length()));
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   166
	if(err != KErrNone)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   167
		{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   168
		aPacket.Free();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   169
		return err;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   170
		}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   171
	TPtr8 ptr = buf->Des();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   172
	aPacket.CopyOut(ptr);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   173
	aPacket.Free();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   174
	return(iControl->Send(buf));
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   175
}
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
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   178
Read the Available data.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   179
@param aBuffer A Reference to a buffer holding data.
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
void CPcCardPktDrv::ReadDataAvailable(TDesC8& aBuffer)
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
	RMBufPacket frame;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   184
	TRAPD(ret,frame.CreateL(aBuffer,0));
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   185
	if (ret == KErrNone)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   186
		{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   187
		frame.Pack();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   188
		iParent->Process(frame);
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   189
		}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   190
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   191
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   192
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   193
Resume Sending is a notification call into NIF from the lower layer telling the NIF that a 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   194
previous sending congestion situation has been cleared and it can accept more downstack data.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   195
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   196
void CPcCardPktDrv::ResumeSending()
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
	iParent->ResumeSending();
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
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   202
Call to LDD or subordinate object to set the receive mode of the LAN Device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   203
@param aMode The mode to be set for the LAN Device.			
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   204
@return KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   205
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   206
TInt CPcCardPktDrv::SetRxMode(TRxMode /*aMode*/)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   207
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   208
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   209
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   210
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   211
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   212
Call to LDD or subordinate object to Get the receive mode of the LAN Device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   213
@return KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   214
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   215
TInt CPcCardPktDrv::GetRxMode() const
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   216
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   217
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   218
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   219
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   220
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   221
Specifies the AccessType.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   222
@return KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   223
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   224
TInt CPcCardPktDrv::AccessType()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   225
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   226
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   227
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   228
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   229
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   230
Specifies the ReleaseType.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   231
@return KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   232
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   233
TInt CPcCardPktDrv::ReleaseType()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   234
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   235
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   236
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   237
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   238
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   239
Call to LDD or subordinate object to get the Hardware address of the LAN Device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   240
@return NULL Failure.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   241
		(NULL Terminated Binary String) The Hardware Address of the interface. LAN Device 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   242
		Specific
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   243
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   244
TUint8* CPcCardPktDrv::GetInterfaceAddress()const
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   245
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   246
	return (iControl->GetInterfaceAddress());
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   247
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   248
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   249
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   250
Call to LDD or subordinate object to set the Hardware address of the LAN Device.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   251
@param THWAddr Address of where the Multicast list should be written.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   252
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   253
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   254
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   255
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   256
TInt CPcCardPktDrv::SetInterfaceAddress(const THWAddr&)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   257
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   258
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   259
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   260
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   261
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   262
Call to LDD or subordinate object to retrieve the Multicast List from the LAN Device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   263
@param aAddr Address of where the Multicast list should be written.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   264
@param n Output Parameter , number of Addresses written
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   265
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   266
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   267
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   268
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   269
TInt CPcCardPktDrv::GetMulticastList(const THWAddr* /*aAddr*/, TInt& /*n*/) const
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   270
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   271
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   272
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   273
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   274
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   275
Call to LDD or subordinate object to set the Multicast List for the LAN Device.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   276
@param aAddr Address of where the Multicast list should be written.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   277
@param n Output Parameter , number of Addresses written
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   278
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   279
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   280
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   281
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   282
TInt CPcCardPktDrv::SetMulticastList(const THWAddr* /*aAddr*/, TInt /*n*/)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   283
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   284
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   285
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   286
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   287
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   288
Call to LDD or subordinate object to power up the LAN Device.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   289
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   290
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   291
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   292
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   293
TInt CPcCardPktDrv::InterfacePowerUp()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   294
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   295
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   296
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   297
	
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   298
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   299
Call to LDD or subordinate object to power down the LAN Device
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   300
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   301
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   302
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   303
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   304
TInt CPcCardPktDrv::InterfacePowerDown()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   305
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   306
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   307
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   308
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   309
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   310
Call to LDD or subordinate object to suspend the LAN Device.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   311
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   312
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   313
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   314
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   315
TInt CPcCardPktDrv::InterfaceSleep()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   316
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   317
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   318
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   319
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   320
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   321
Call to LDD or subordinate object to resume the LAN Device.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   322
@return KErrNone		 if Successful 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   323
		KErrNotSupported LAN Device does not support.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   324
		Implementation specific Error Code  Failure
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   325
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   326
TInt CPcCardPktDrv::InterfaceResume()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   327
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   328
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   329
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   330
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   331
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   332
Resume Sending is a notification call into NIF from the lower layer telling the NIF that 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   333
the interface is now up and can accept and transmit data. NIF subsequently calls all the 
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   334
bearers' StartSending() methods directly.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   335
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   336
void CPcCardPktDrv::LinkLayerUp()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   337
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   338
	iParent->LinkLayerUp();
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   339
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   340
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   341
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   342
Receive notifications from agent
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   343
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   344
TInt CPcCardPktDrv::Notification(enum TAgentToNifEventType /*aEvent*/, void* /*aInfo*/)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   345
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   346
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   347
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   348
	
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   349
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   350
Receive Control() calls from agent/nifman/connection
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   351
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   352
TInt CPcCardPktDrv::Control(TUint /*aLevel*/,TUint /*aName*/,TDes8& /*aOption*/, TAny* /*aSource*/)
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   353
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   354
	return KErrNotSupported;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   355
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   356
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   357
/**
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   358
Return the pointer to the ethernet nif.
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   359
Purely for access to commdb reading functionality
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   360
*/
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   361
CLANLinkCommon* CPcCardPktDrv::NifNotify()
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   362
{
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   363
	return iParent;
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   364
}
e7dfaa7b0b8d Fix for Bug 69 - provide missing source for EtherPkt.drv
Deepak Kumar-Gupta <deepak.kumar-gupta@nokia.com>
parents:
diff changeset
   365