1    /* 
     2     *  Copyright (c) 2008 Texas Instruments. All rights reserved. 
     3     *  This program and the accompanying materials are made available under the 
     4     *  terms of the Eclipse Public License v1.0 and Eclipse Distribution License
     5     *  v. 1.0 which accompanies this distribution. The Eclipse Public License is
     6     *  available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
     7     *  Distribution License is available at 
     8     *  http://www.eclipse.org/org/documents/edl-v10.php.
     9     *
    10     *  Contributors:
    11     *      Texas Instruments - initial implementation
    12     * */
    13    /*
    14     *  ======== SyncGeneric.xdc ========
    15     */
    16    
    17    /*!
    18     *  ======== SyncGeneric ========
    19     *  Generaic ISync implementation that allows users to plug in their own 
    20     *  functions for signal, wait and query.
    21     */
    22    
    23    module SyncGeneric inherits xdc.runtime.knl.ISync 
    24    {
    25        /*! typedef for user specified signal function */
    26        typedef Void (*SignalFunc)(UArg);
    27        
    28        /*! typedef for user specified wait function */
    29        typedef Bool (*WaitFunc)(UArg, UInt);    
    30      
    31        /*! typedef for user specified wait function */
    32        typedef Bool (*QueryFunc)(Int);
    33            
    34    instance:
    35        /*! user signal function */
    36        config SignalFunc userSignal = null;
    37       
    38        /*! user signal function arg */
    39        config UArg signalArg = null;
    40        
    41        /*! user wait function */
    42        config WaitFunc  userWait = null; 
    43        
    44        /*! user wait function arg */
    45        config UArg waitArg = null;
    46        
    47        /*! user query function */
    48        config QueryFunc userQuery = null;
    49        
    50    internal:
    51    
    52        /* -------- Internal Structures -------- */
    53        struct Instance_State {
    54            SignalFunc  userSignal;   
    55            UArg        signalArg;   
    56            WaitFunc    userWait; 
    57            UArg        waitArg;
    58            QueryFunc   userQuery;
    59        };
    60    
    61    }
    62    
    63    /*
    64     */
    65    /*
    66     *  @(#) xdc.runtime.knl; 1, 0, 0,16; 6-9-2009 20:09:52; /db/ztree/library/trees/xdc-t50x/src/packages/
    67     */
    68