initial merge of infineon code for amazon, pci is still broken a bit. a big thank...
[openwrt.git] / target / linux / amazon-2.6 / files / include / asm-mips / amazon / amazon_mei_app.h
1 //509221:tc.chen 2005/09/22 Reset DFE added when MEI_TO_ARC_CS_DONE not cleared by ARC and Added AMAZON_MEI_DEBUG_MODE ioctl 
2
3 #ifndef         _AMAZON_MEI_APP_H
4 #define         _AMAZON_MEI_APP_H
5
6 /////////////////////////////////////////////////////////////////////////////////////////////////////
7
8                 //  ioctl control
9 #define AMAZON_MEI_START                                300
10 #define AMAZON_MEI_REPLY                                301
11 #define AMAZON_MEI_NOREPLY                              302
12
13 #define AMAZON_MEI_RESET                                303
14 #define AMAZON_MEI_REBOOT                               304
15 #define AMAZON_MEI_HALT                                 305
16 #define AMAZON_MEI_CMV_WINHOST                          306
17 #define AMAZON_MEI_CMV_READ                             307
18 #define AMAZON_MEI_CMV_WRITE                            308
19 #define AMAZON_MEI_MIB_DAEMON                           309
20 #define AMAZON_MEI_SHOWTIME                             310
21 #define AMAZON_MEI_REMOTE                               311
22 #define AMAZON_MEI_READDEBUG                            312
23 #define AMAZON_MEI_WRITEDEBUG                           313
24 #define AMAZON_MEI_LOP                                  314
25
26 #define AMAZON_MEI_PCM_SETUP                            315
27 #define AMAZON_MEI_PCM_START_TIMER                      316
28 #define AMAZON_MEI_PCM_STOP_TIMER                       317
29 #define AMAZON_MEI_PCM_CHECK                            318
30 #define AMAZON_MEI_GET_EOC_LEN                          319
31 #define AMAZON_MEI_GET_EOC_DATA                         320
32 #define AMAZON_MEI_PCM_GETDATA                          321
33 #define AMAZON_MEI_PCM_GPIO                             322
34 #define AMAZON_MEI_EOC_SEND                             323
35 //MIB
36 #define AMAZON_MIB_LO_ATUC                              324
37 #define AMAZON_MIB_LO_ATUR                              325
38 #define AMAZON_MEI_DOWNLOAD                             326
39
40 #define AMAZON_MEI_DEBUG_MODE                           327 //509221:tc.chen
41 #define LOOP_DIAGNOSTIC_MODE_COMPLETE                   328
42
43
44 /***    Enums    ***/
45 typedef enum mei_error
46 {
47         MEI_SUCCESS = 0,
48         MEI_FAILURE = -1,
49         MEI_MAILBOX_FULL = -2,
50         MEI_MAILBOX_EMPTY = -3,
51         MEI_MAILBOX_TIMEOUT = -4,
52 }MEI_ERROR;
53
54 #endif