//---------------------------------------------------------------------------
//
// Function:        VEthOpen
//
// Description:     Open the Virtual Ethernet driver
//
// Parameters:      void
//
// Returns:
//
// State:
//
//---------------------------------------------------------------------------
static tEplKernel VEthOpen(void)
{
tEplKernel  Ret = kEplSuccessful;

    // register callback function in DLL
    Ret = EplDllkRegAsyncHandler(VEthRecvFrame);

    return Ret;
}
Пример #2
0
static int VEthOpen(struct net_device *pNetDevice_p)
{
	tEplKernel Ret = kEplSuccessful;

	//open the device
//	struct net_device_stats* pStats = netdev_priv(pNetDevice_p);

	//start the interface queue for the network subsystem
	netif_start_queue(pNetDevice_p);

	// register callback function in DLL
	Ret = EplDllkRegAsyncHandler(VEthRecvFrame);

	EPL_DBGLVL_VETH_TRACE1
	    ("VEthOpen: EplDllkRegAsyncHandler returned 0x%02X\n", Ret);

	return 0;
}