navienginebsp/ne1_tb/serialno/serialno.cpp
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 * @file
       
    16 * @brief determine board serial number.
       
    17 * This code is intended to read the board serial number and set it in the
       
    18 * variant config for later retrieval via HAL.
       
    19 * Currently, on NaviEngine, the Ethernet driver will set the HAL serial number
       
    20 * to the lowest 4 bytes of the MAC address, so this is a stub DLL for now.
       
    21 *
       
    22 */
       
    23 
       
    24 
       
    25 
       
    26 #include <kernel/kernel.h>
       
    27 #include "variant.h"
       
    28 
       
    29 /**
       
    30  * DLL entry point function.
       
    31  */
       
    32 DECLARE_STANDARD_EXTENSION()
       
    33 	{
       
    34 	__KTRACE_OPT(KEXTENSION, Kern::Printf("SerialNo: setting board's serial number"));
       
    35 	return NE1_TBVariant::SetSerialNumber(0);
       
    36 	}