kernel/eka/include/drivers/smppower/sample_idlehandler/smpidlehandler.h
changeset 152 657f875b013e
parent 90 947f0dc9f7a8
child 148 31ea0f8e3c99
equal deleted inserted replaced
139:95f71bcdcdb7 152:657f875b013e
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This material, including documentation and any related computer
     5 * under the terms of "Eclipse Public License v1.0"
     5 * programs, is protected by copyright controlled by Nokia. All
     6 * which accompanies this distribution, and is available
     6 * rights are reserved. Copying, including reproducing, storing
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * adapting or translating, any or all of this material requires the
       
     8 * prior written consent of Nokia. This material also contains
       
     9 * confidential information which may not be disclosed to others
       
    10 * without the prior written consent of Nokia.
     8 *
    11 *
     9 * Initial Contributors:
    12 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    13 * Nokia Corporation - initial contribution.
    11 *
    14 *
    12 * Contributors:
    15 * Contributors:
    13 *
    16 *
    14 * Description:  
    17 * Description: 
    15 * os/kernelhwsrv/kernel/eka/include/drivers/smppower/sample_idlehandler/smpidlehandler.h
    18 * os/kernelhwsrv/kernel/eka/include/drivers/smppower/sample_idlehandler/smpidlehandler.h
    16 * Example of a generic idle handler layer
    19 * Example of a generic idle handler layer
    17 *
    20 *
    18 */
    21 */
    19 
       
    20 
    22 
    21 
    23 
    22 #ifndef __SMPIDLEHANDLER_H__
    24 #ifndef __SMPIDLEHANDLER_H__
    23 #define __SMPIDLEHANDLER_H__
    25 #define __SMPIDLEHANDLER_H__
    24 
    26 
    39         EExitAfterLPM
    41         EExitAfterLPM
    40         };
    42         };
    41     
    43     
    42 
    44 
    43     DSMPIdleHandler();
    45     DSMPIdleHandler();
       
    46 	virtual ~DSMPIdleHandler();
       
    47 
    44     /*
    48     /*
    45       called to init and bind the idle handler. After this call idle will be directed to idle handler
    49       called to init and bind the idle handler. After this call idle will be directed to idle handler
    46       @pre thread context, no locks no fast mutexes, interrupt on
    50       @pre thread context, no locks no fast mutexes, interrupt on
    47     */
    51     */
    48     void Initialise(TUint32 aGlobalIntDistAddress, TUint32 aBaseIntIfAddress);
    52     void Initialise(TUint32 aGlobalIntDistAddress, TUint32 aBaseIntIfAddress);