gonzui


Format: Advanced Search

tkernel_2/driver/tef_em1d/clk/src/clkdrv.hbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: 
   16: /*
   17:  *      clkdrv.h     Clock driver : common definition
   18:  */
   19: 
   20: #define DEBUG_MODULE    "(clkdrv)"
   21: 
   22: #include <tk/tkernel.h>
   23: #include <device/sdrvif.h>
   24: #include <device/clk.h>
   25: #include <sys/debug.h>
   26: 
   27: #define InvalidID       (0)           /* Invalid ID */
   28: #define InvalidDevID    (-1)               /* Invalid device ID */
   29: 
   30: /*
   31:  *      Clock driver entry
   32:  */
   33: IMPORT  ER       ClockDrv(INT ac, UB *av[]);
   34: 
   35: /*
   36:  *      System types (hardware-dependent) routine
   37:  */
   38: 
   39: /*
   40:  *      Hardware initialization configuration
   41:  */
   42: IMPORT  ER       cdInitHardware(void);
   43: IMPORT  ER       cdFinishHardware(void);
   44: 
   45: /*
   46:  *      Set/Get the current time
   47:  */
   48: IMPORT  ER       cdSetDateTime(void *date_tim);
   49: IMPORT  ER       cdGetDateTime(void *date_tim);
   50: 
   51: /*
   52:  *      Set/Get the automatic power-supply ON time
   53:  */
   54: IMPORT  ER       cdSetAutoPwOn(void *date_tim);
   55: IMPORT  ER       cdGetAutoPwOn(void *date_tim);
   56: 
   57: /*
   58:  *      Access of nonvolatile register
   59:  */
   60: IMPORT  INT      cdSetRegister(void *buf, INT size);
   61: IMPORT  INT      cdGetRegister(void *buf, INT size);