dcl.h 19 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2001
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   dcl.h
 *
 * Project:
 * --------
 *   Maui
 *
 * Description:
 * ------------
 *   Header file of DCL (Driver Common Layer).
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

#ifndef __DCL_H__
#define __DCL_H__



typedef char              DCL_CHAR;
typedef signed char       DCL_INT8;
typedef signed short      DCL_INT16;
typedef signed long       DCL_INT32;

typedef unsigned char      DCL_UCHAR;
typedef unsigned char      DCL_UINT8;
typedef unsigned short     DCL_UINT16;
typedef unsigned long      DCL_UINT32;

#if !defined(GEN_FOR_PC) && !defined(__MTK_TARGET__)
   typedef signed __int64    DCL_INT64;
typedef unsigned __int64   DCL_UINT64;
#else
   typedef unsigned long long   DCL_UINT64;
   typedef signed long long     DCL_INT64;
#endif

typedef double             DCL_DOUBLE;

typedef int DCL_BOOL;
typedef enum
{
   DCL_FALSE = 0,
   DCL_TRUE
}DCL_BOOLEAN;

#define	DCL_DEFINITION_STRUCT
#include "dcl_gpt.h"
#include "dcl_gpio.h"
#include "dcl_uart.h"
#include "dcl_wdt.h"
#include "dcl_adc.h"
#include "dcl_bmt.h"
#include "dcl_pfc.h"
#include "dcl_rtc.h"
#include "dcl_i2c.h"
#include "dcl_aux.h"
#include "dcl_pwm.h"
#include "dclH_kbd.h"
#include "dclS_kbd.h"
#include "dcl_sts.h"
#include "dcl_msdc.h"
#include "dcl_usb_drv.h"
#include "dcl_usb_hcd.h"
#include "dcl_otg_drv.h"
#include "dcl_irda.h"
#include "dcl_sim.h"
#include "dcl_pmu.h"
#include "dcl_pw.h"
#include "dcl_chr_det.h"
#include "dcl_pxs.h"
#include "dcl_f32k_clk.h"
#include "dcl_eint.h"

/*******************************************************************************
 * DCL_STATUS 
 *******************************************************************************/
#if defined(STATUS_OK)
#undef STATUS_OK
#endif

#if defined(STATUS_FAIL)
#undef STATUS_FAIL  
#endif  

typedef DCL_INT32 DCL_STATUS;
typedef enum
{
   STATUS_OK = 0,
   STATUS_FAIL = -1,
   STATUS_INVALID_CMD = -2,
   STATUS_UNSUPPORTED = -3,
   STATUS_NOT_OPENED = -4,
   STATUS_INVALID_EVENT = -5,
   STATUS_INVALID_DCL_HANDLE = -6,
   STATUS_INVALID_CTRL_DATA = -7,
   STATUS_INVALID_CONFIGURATION = -8,
   STATUS_INVALID_ARGUMENT = -9,
   STATUS_ERROR_TIMEOUT = -10,
   STATUS_ERROR_CRCERROR = -11,
   STATUS_ERROR_READONLY = -12,
   STATUS_ERROR_WRONG_STATE = -13,
   STATUS_INVALID_DEVICE = -14,
   STATUS_ALREADY_OPENED = -15,
   STATUS_SET_VFIFO_FAIL = -16,
   STATUS_INVALID_OPERATION = -17,
   STATUS_DEVICE_NOT_EXIST = -18,

   //*/ I2C DCL added /*//
   STATUS_DEVICE_NOT_SUPPORT_DMA = -19,
   STATUS_DEVICE_IS_BUSY = -20,
   STATUS_ACKERR = -21, 
   STATUS_HS_NACKERR = -22,

   STATUS_BUFFER_EMPTY = 1
} DCL_STATUS_T;

/*******************************************************************************
 * DCL_DEV
 *******************************************************************************/
typedef DCL_UINT16 DCL_DEV;
typedef enum
{
   DCL_UART_GROUP_START = 0,
   DCL_UART_DEV // Marco defined in dcl_uart.h
   DCL_I2C_GROUP_START = 0x100,
   DCL_I2C,
   DCL_SPI_GROUP_START = 0x200,
   DCL_SPI,
   DCL_ADC_GROUP_START = 0x300,
   DCL_ADC,
   DCL_GPIO_GROUP_START = 0x400,
   DCL_GPIO,
   DCL_GPO,
   DCL_GPIO_CLK,
   DCL_PWM_GROUP_START = 0x500,
   DCL_PWM1,
   DCL_PWM2,
   DCL_PWM3,
   DCL_PWM4,
   DCL_PWM5,
   DCL_PWM6,
   DCL_SDIO_GROUP_START = 0x600,
   DCL_SDIO,   
   DCL_GPT_GROUP_START = 0x700,
   DCL_GPT_CB,
   DCL_GPT_BusyWait,
   DCL_GPT_FreeRUN3,
   DCL_GPT_FreeRUN4,
   DCL_XGPT,  
   DCL_BMT_GROUP_START = 0x800,
   DCL_BMT,
   DCL_PFC_GROUP_START = 0x900,
   DCL_PFC,
   DCL_RTC_GROUP_START = 0xA00,
   DCL_RTC,   
   DCL_PMU_GROUP_START = 0xB00,
   DCL_PMU,
   DCL_PW_GROUP_START = 0xC00,
   DCL_PW,
   DCL_CHR_USB_DET_GROUP_START = 0xD00,
   DCL_CHR_USB_DET,
   DCL_ALERTER_GROUP_START = 0xE00,
   DCL_ALERTER,
   DCL_KBD_GROUP_START = 0xF00,
   DCL_KBD,
   DCL_TS_GROUP_START = 0x1000,
   DCL_TS,   
   DCL_AUX_GROUP_START = 0x1100,
   DCL_AUX,
   DCL_WDT_GROUP_START = 0x1200,
   DCL_WDT,
   DCL_IRDA_GROUP_START = 0x1300,
   DCL_IRDA,
   DCL_USB_GROUP_START = 0x1400,
   DCL_USB,
   DCL_SIM_GROUP_START = 0x1500,
   DCL_SIM,
   DCL_SD_GROUP_START = 0x1600,
   DCL_SD,
   DCL_MS_GROUP_START = 0x1700,
   DCL_MS,   
   DCL_ONEW_GROUP_START = 0x1800,
   DCL_ONEW, //1-wire
   DCL_HDQ_GROUP_START = 0x1900,
   DCL_HDQ,
   DCL_PXS_GROUP_START = 0x1A00,
   DCL_PXS,
   DCL_F32K_CLK_GROUP_START = 0x1B00,
   DCL_F32K_CLK,
   DCL_EINT_GROUP_START = 0x1C00,
   DCL_EINT
} DCL_DEV_T;

/*******************************************************************************
 * DCL_FLAGS
 *******************************************************************************/
typedef DCL_UINT32 DCL_FLAGS;
typedef enum
{
   FLAGS_NONE = 0,
   FLAGS_END
} DCL_FLAGS_T;


/*******************************************************************************
 * DCL_OPTIONS
 *******************************************************************************/
typedef DCL_UINT32 DCL_OPTIONS;
typedef enum
{
   OPTIONS_NONE = 0,
   GPT_OPTIONS_START = OPTIONS_NONE,
   GPT_OPTIONS //Please see dcl_gpt.h
   GPIO_OPTIONS_START = 0x100,
   GPIO_OPTIONS //Please see dcl_gpio.h
   ADC_OPTIONS_START = 0x200,
   ADC_OPTIONS //Please see dcl_adc.h
   WDT_OPTIONS_START = 0x300,
   WDT_OPTIONS //Please see dcl_wdt.h
   BMT_OPTIONS_START = 0x400,
   BMT_OPTIONS // Please see dcl_bmt.h   
   PFC_OPTIONS_START = 0x500,
   PFC_OPTIONS // Please see dcl_pfc.h   
   RTC_OPTIONS_START = 0x600,
   RTC_OPTIONS // Please see dcl_rtc.h
   I2C_OPTIONS_START = 0x700,
   I2C_OPTIONS //Please see dcl_i2c.h
   AUX_OPTIONS_START = 0x800,
   AUX_OPTIONS //Please see dcl_aux.h
   TS_OPTIONS_START = 0x900,
   TS_OPTIONS//Please see dcl_ts.h
   USB_DRV_OPTIONS_START = 0xA00,
   USB_DRV_OPTIONS//Please see dcl_usb_drv.h
   USB_HCD_OPTIONS_START = 0xB00,
   USB_HCD_OPTIONS//Please see dcl_usb_hcd.h
   OTG_DRV_OPTIONS_START = 0xC00,
   OTG_DRV_OPTIONS//Please see dcl_otg_drv.h
   IRDA_OPTIONS_START = 0xD00,
   IRDA_OPTIONS//Please see dcl_irda.h
   PMU_OPTIONS_START = 0xE00,
   PMU_OPTIONS // Please see dcl_pmu.h
   PW_OPTIONS_START = 0xF00,
   PW_OPTIONS // Please see dcl_pw.h
   CHR_DET_OPTIONS_START = 0x1000,
   CHR_DET_OPTIONS // Please see dcl_chr_usb_det.h
   PXS_OPTIONS_START = 0x2000,
   PXS_OPTIONS // Please see dcl_pxs.h
   F32K_CLK_OPTIONS_START = 0x4000,
   F32K_CLK_OPTIONS // Please see dcl_f32k_clk.h
   OPTIONS_MAX
} DCL_OPTIONS_T;

/*******************************************************************************
 * DCL_HANDLE
 *******************************************************************************/
typedef DCL_INT32 DCL_HANDLE;
#define DCL_HANDLE_NONE    (0)
#define DCL_HANDLE_INVALID    (-1)
#define DCL_HANDLE_OCCUPIED    (-2)

/*******************************************************************************
 * DCL_BUFF
 *******************************************************************************/
typedef DCL_UINT8  DCL_BUFF;
typedef DCL_UINT32  DCL_BUFF_LEN;

/*******************************************************************************
 * DCL_CONFIGURE_T
 *******************************************************************************/
typedef union
{
   PWM_CONFIGS//Please see dcl_PWM.h
   // For ADC, please see dcl_adc.h
   ADC_CONFIGS
   // For BMT, please see dcl_bmt.h
   BMT_CONFIGS   
   // For PFC, please see dcl_pfc.h
   PFC_CONFIGS   
   // For RTC, please see dcl_rtc.h
   RTC_CONFIGS
   // For WDT, please see dcl_wdt.h
   WDT_CONFIGS
   // For I2C, please see dcl_i2c.h
   I2C_CONFIGS
   // For AUX, please see dcl_aux.h
   AUX_CONFIGS
   // For USB_DRV, please see dcl_usb_drv.h
   USB_DRV_CONFIGS
   // For USB_HCD, please see dcl_usb_hcd.h
   USB_HCD_CONFIGS
   // For OTG_DRV, please see dcl_otg_drv.h
   OTG_DRV_CONFIGS
   // For IRDA, please see dcl_irda.h
   IRDA_CONFIGS
   // For PMU, please see dcl_pmu.h
   PMU_CONFIGS
   // For PW, please see dcl_pw.h
   PW_CONFIGS   
   // For CHR&USB detection , please see dcl_chr_usb_det.h
   CHR_DET_CONFIGS
   // For SIM, please see dcl_sim.h
   SIM_CONFIGS
   //for TS, please see dcl_ts.h
   TS_CONFIGS
   // For PXS, please see dcl_pxs.h
   PXS_CONFIGS
   // For F32K_CLK, please see dcl_f32k_clk.h
   F32K_CLK_CONFIGS
} DCL_CONFIGURE_T;


/*******************************************************************************
 * DCL_EVENT
 *******************************************************************************/
typedef DCL_UINT32  DCL_EVENT;
typedef enum
{
   EVENT_NULL = 0,
   // For HGPT, please see dcl_gpt.h
   GPT_EVENTS_START = EVENT_NULL,
   GPT_EVENTS
   //for GPIO, please see dcl_gpio.h
   GPIO_EVENTS_START = 0x100,
   GPIO_EVENTS
   // For BMT, please see dcl_bmt.h
   BMT_EVENTS_START = 0x200,
   BMT_EVENTS
   // For PFC, please see dcl_pfc.h
   PFC_EVENTS_START = 0x300,
   PFC_EVENTS
   // For RTC, please see dcl_rtc.h
   RTC_EVENTS_START = 0x400,
   RTC_EVENTS
   // For WDT, please see dcl_wdt.h
   WDT_EVENTS_START = 0x500,
   WDT_EVENTS
   // For ADC, please see dcl_adc.h
   ADC_EVENTS_START = 0x600,
   ADC_EVENTS
   // For I2C, please see dcl_i2c.h
   I2C_EVENTS_START = 0x700,
   I2C_EVENTS
   // For AUX, please see dcl_aux.h
   AUX_EVENTS_START = 0x800,
   AUX_EVENTS
   //For Keypad, Please see dcl_kbd.h
   KBDH_EVENTS_START = 0x900,
   KBDH_EVENTS
   //For TS, Please see dcl_ts.h
   TS_EVENTS_START = 0xA00,
   TS_EVENTS
   //For USB_DRV, please see dcl_usb_drv.h
   USB_DRV_EVENTS_START = 0xB00,
   USB_DRV_EVENTS
   //For USB_HCD, please see dcl_usb_hcd.h
   USB_HCD_EVENTS_START = 0xC00,
   USB_HCD_EVENTS
   //For OTG_DRV, please see dcl_otg_drv.h
   OTG_DRV_EVENTS_START = 0xD00,
   OTG_DRV_EVENTS
   // For IrDA, please see dcl_irda.h
   IRDA_EVENTS_START = 0xE00,
   IRDA_EVENTS
   // For pmu, please see dcl_pmu.h
   PMU_EVENTS_START = 0xF00,
   PMU_EVENTS
   // For pw, please see dcl_pw.h
   PW_EVENTS_START = 0x1000,
   PW_EVENTS
   // For Chr&USB detection , please see dcl_chr_usb_det.h
   CHR_DET_EVENTS_START = 0x1100,
   CHR_DET_EVENTS
   // For PXS, please see dcl_pxs.h
   PXS_EVENTS_START = 0x1200,
   PXS_EVENTS
   // For F32K_CLK, please see dcl_f32k_clk.h
   F32K_CLK_EVENTS_START = 0x1300,
   F32K_CLK_EVENTS   
   SERIPORT_EVENTS_START = 0x1400,  	/*For SIO(include UART and USB)*/
   UART_EVENTS
   SPI_EVENTS_START = 0x1500,  /*for SPI*/
   EINT_EVENTS_START = 0x1600,
   EINT_EVENTS
   EVENT_END
} DCL_EVENT_T;

/*******************************************************************************
 * PFN_DCL_CALLBACK
 *******************************************************************************/
typedef void (*PFN_DCL_CALLBACK)(DCL_EVENT event);

/*******************************************************************************
 * DCL_CTRL_CMD
 *******************************************************************************/
#if defined(CMD_END)
#undef CMD_END  
#endif 
typedef DCL_UINT32  DCL_CTRL_CMD;
typedef enum
{
   CMDS_START = 0,
   /* Below is the command for GPIO */
   //please make sure GPIO Command start from zero! [drv_tool genertate a char type variable]
   GPIO_CMDS_START = CMDS_START, 
   GPIO_CMDS //please see dcl_gpio.h
   /* Below is the command for UART */
   UART_CMDS_START = 0x100,
   UART_CMDS //please see dcl_uart.h
   /* Below is the command for GPT */
   GPT_CMDS_START = 0x200,
   GPT_CMDS //please see dcl_gpt.h
   /* Below is the command for ADC */
     /* Exported adc schedule APIs */
   ADC_CMDS_START = 0x300,
   ADC_CMDS
     /* Interfac for Hardware ADC */
   HADC_CMDS_START = 0x400,
   HADC_CMDS
   /* Below is the command for WDT */
   WDT_CMDS_START = 0x500,
   WDT_CMDS
   /* Below is the command for BMT */
   BMT_CMDS_START = 0x600,
   BMT_CMDS // Please see dcl_bmt.h
   /* Below is the command for PFC */
   PFC_CMDS_START = 0x700,
   PFC_CMDS // Please see dcl_pfc.h
   /* Below is the command for RTC */
   RTC_CMDS_START = 0x800,
   RTC_CMDS // Please see dcl_rtc.h
   /* Below is the command for I2C */
   I2C_CMDS_START = 0x900,
   I2C_CMDS
   /* Below is the command for AUX */
   AUX_CMDS_START = 0xA00,
   AUX_CMDS
   /* Below is the command for KBD */
   KBDH_CMDS_START = 0xB00,
   KBDH_CMDS
   KBD_CMDS_START = 0xC00,
   KBD_CMDS//Please see dcl_kbd.h
   /* Below is the command for OWM */
   PWM_CMDS_START = 0xD00,
   PWM_CMDS//Please see dcl_PWM.h
   ALERTER_CMDS_START = 0xE00,
   ALERTER_CMDS //please see dcl_pwm.h
   /* Below is the command for TS */
   TS_CMDS_START = 0xF00,
   TS_CMDS//Please see dcl_ts.h
   /* Below is the command for SD*/
   SD_CMDS_START = 0x1000,
   SD_CMDS//Please see dcl_msdc.h
   /* Below is the command for SDIO*/
   SDIO_CMDS_START = 0x1100,
   SDIO_CMDS//Please see dcl_msdc.h
   /* Below is the commands for USB_DRV, please see dcl_usb_drv.h */
   USB_DRV_CMDS_START = 0x1300,
   USB_DRV_CMDS
   /* Below is the commands for USB_HCD, please see dcl_usb_hcd.h */
   USB_HCD_CMDS_START = 0x1400,
   USB_HCD_CMDS
   /* Below is the commands for OTG_DRV, please see dcl_otg_drv.h */
   OTG_DRV_CMDS_START = 0x1500,
   OTG_DRV_CMDS
   /* Below is the command for IRDA*/
   IRDA_CMDS_START = 0x1600,
   IRDA_CMDS//Please see dcl_irda.h
   /* Below is the command for SIM*/
   SIM_CMDS_START = 0x1700,
   SIM_CMDS//Please see dcl_msdc.h
   /* Below is the command for PMU */
   PMU_CMDS_START = 0x1800,
   PMU_CMDS //Please see dcl_pmu.h
   /* Below is the command for PW */
   PW_CMDS_START = 0x1900,
   PW_CMDS //Please see dcl_pw.h
   /* Below is the command for CHR USB DETECT */
   CHR_DET_CMDS_START = 0x1A00,
   CHR_DET_CMDS //Please see dcl_chr_usb_det.h
   /* Below is the command for PXS */
   PXS_CMDS_START = 0x1B00,
   PXS_CMDS //Please see dcl_pxs.h
   /* Below is the command for F32K_CLK */
   F32K_CLK_CMDS_START = 0x1D00,
   F32K_CLK_CMDS //please see dcl_f32k_clk.h	
   /* Below is the command for eint */
   EINT_CMDS_START = 0x1E00,
   EINT_CMDS  //please see dcl_eint.h
   CMD_END
} DCL_CTRL_CMD_T;

/*******************************************************************************
 * DCL_CTRL_DATA_T: Define the Control data structure for each module's command
 *******************************************************************************/
typedef union
{
   /* GPT control datas, please see dcl_gpt.h */
   GPT_CTRLS
   /* UART control datas, please see dcl_uart.h */
   UART_CTRLS
   /* GPIO control datas, please see dcl_gpio.h */
   GPIO_CTRLS
   /* ADC control datas, please see dcl_adc.h */
   ADC_CTRLS
   /* WDT control datas, please see dcl_wdt.h */
   WDT_CTRLS
   /* Below is the ctrl structures for BMT */
   BMT_CTRLS //Please see dcl_bmt.h
   /* Below is the ctrl structures for PFC */
   PFC_CTRLS // Please see dcl_pfc.h
   /* RTC control datas, please see dcl_rtc.h */
   RTC_CTRLS // Please see dcl_rtc.h
   /* I2C control datas, please see dcl_i2c.h */
   I2C_CTRLS
   /* AUX control datas, please see dcl_aux.h */
   AUX_CTRLS
   /* KBD control datas, please see dcl_kbd.h */
   /* KBD control datas, please see dcl_kbd.h */
  KBDS_CTRLS//Please see dcl_kbd.h
   KBDH_CTRLS
   /* PWM control datas, please see dcl_PWM.h */
   PWM_CTRLS//Please see dcl_PWM.h   
   ALERTER_CTRLS
   /* TS control datas, please see dcl_ts.h */
   TS_CTRLS//Please see dcl_ts.h
   /* Below is the ctrl structures for SD*/
   SD_CTRLS//Please see dcl_msdc.h
   /* Below is the ctrl structures for SDIO*/
   SDIO_CTRLS//Please see dcl_msdc.h
   /* Below is the control data structures for USB_DRV, please see dcl_usb_drv.h */
   USB_DRV_CTRLS
   /* Below is the control data structures for USB_HCD, please see dcl_usb_hcd.h */
   USB_HCD_CTRLS
   /* Below is the control data structures for OTG_DRV, please see dcl_otg_drv.h */
   OTG_DRV_CTRLS
   /* Below is the ctrl structures for IRDA*/
   IRDA_CTRLS//Please see dcl_irda.h
   /* Below is the ctrl structures for SIM*/
   SIM_CTRLS//Please see dcl_sim.h
   /* Below is the ctrl structures for PMU */
   PMU_CTRLS//Please see dcl_pmu.h
   /* Below is the ctrl structures for Power up reason */
   PW_CTRLS//Please see dcl_pW.h
   /* Below is the ctrl structures for Chr & USB detection */
   CHR_DET_CTRLS//Please see dcl_chr_usb_det.h   
   /* Below is the ctrl structures for PXS */
   PXS_CTRLS//Please see dcl_pxs.h
   /* Below is the ctrl structures for SIM_GPIO */
   F32K_CLK_CTRLS//please see dcl_f32k_clk.h   
} DCL_CTRL_DATA_T;

/*definitions of structures are finished, undefine DCL_DEFINITION_STRUCT*/
#undef DCL_DEFINITION_STRUCT
#define DCL_DEFINITION_PROTOTYPE
#include "dcl_common.h"
#include "dcl_uart.h"
#include "dcl_msdc.h"
#include "dcl_gpio.h"
#include "dcl_gpt.h"
#include "dcl_adc.h"
#include "dcl_bmt.h"
#include "dcl_pfc.h"
#include "dcl_rtc.h"
#include "dcl_i2c.h"
#include "dcl_aux.h"
#include "dcl_wdt.h"
#include "dcl_pwm.h"
#include "dcl_usb_drv.h"
#include "dcl_usb_hcd.h"
#include "dcl_otg_drv.h"
#include "dcl_irda.h"
#include "dcl_sim.h"
#include "dcl_pmu.h"
#include "dclH_kbd.h"
#include "dclS_kbd.h"
#include "dcl_pw.h"
#include "dcl_chr_det.h"
#include "dcl_sts.h"  /* Added here to overcome compilation/link error */
#include "dcl_pxs.h"
#include "dcl_f32k_clk.h"
#include "dcl_eint.h"
#undef DCL_DEFINITION_PROTOTYPE

#endif  /* __DCL_H__ */