diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/isdn/hardware/eicon/xdi_msg.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/isdn/hardware/eicon/xdi_msg.h')
-rw-r--r-- | drivers/isdn/hardware/eicon/xdi_msg.h | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/eicon/xdi_msg.h b/drivers/isdn/hardware/eicon/xdi_msg.h new file mode 100644 index 000000000000..3ade28f66698 --- /dev/null +++ b/drivers/isdn/hardware/eicon/xdi_msg.h | |||
@@ -0,0 +1,127 @@ | |||
1 | /* $Id: xdi_msg.h,v 1.1.2.2 2001/02/16 08:40:36 armin Exp $ */ | ||
2 | |||
3 | #ifndef __DIVA_XDI_UM_CFG_MESSSGE_H__ | ||
4 | #define __DIVA_XDI_UM_CFG_MESSAGE_H__ | ||
5 | |||
6 | /* | ||
7 | Definition of messages used to communicate between | ||
8 | XDI device driver and user mode configuration utility | ||
9 | */ | ||
10 | |||
11 | /* | ||
12 | As acknowledge one DWORD - card ordinal will be read from the card | ||
13 | */ | ||
14 | #define DIVA_XDI_UM_CMD_GET_CARD_ORDINAL 0 | ||
15 | |||
16 | /* | ||
17 | no acknowledge will be generated, memory block will be written in the | ||
18 | memory at given offset | ||
19 | */ | ||
20 | #define DIVA_XDI_UM_CMD_WRITE_SDRAM_BLOCK 1 | ||
21 | |||
22 | /* | ||
23 | no acknowledge will be genatated, FPGA will be programmed | ||
24 | */ | ||
25 | #define DIVA_XDI_UM_CMD_WRITE_FPGA 2 | ||
26 | |||
27 | /* | ||
28 | As acknowledge block of SDRAM will be read in the user buffer | ||
29 | */ | ||
30 | #define DIVA_XDI_UM_CMD_READ_SDRAM 3 | ||
31 | |||
32 | /* | ||
33 | As acknowledge dword with serial number will be read in the user buffer | ||
34 | */ | ||
35 | #define DIVA_XDI_UM_CMD_GET_SERIAL_NR 4 | ||
36 | |||
37 | /* | ||
38 | As acknowledge struct consisting from 9 dwords with PCI info. | ||
39 | dword[0...7] = 8 PCI BARS | ||
40 | dword[9] = IRQ | ||
41 | */ | ||
42 | #define DIVA_XDI_UM_CMD_GET_PCI_HW_CONFIG 5 | ||
43 | |||
44 | /* | ||
45 | Reset of the board + activation of primary | ||
46 | boot loader | ||
47 | */ | ||
48 | #define DIVA_XDI_UM_CMD_RESET_ADAPTER 6 | ||
49 | |||
50 | /* | ||
51 | Called after code download to start adapter | ||
52 | at specified address | ||
53 | Start does set new set of features due to fact that we not know | ||
54 | if protocol features have changed | ||
55 | */ | ||
56 | #define DIVA_XDI_UM_CMD_START_ADAPTER 7 | ||
57 | |||
58 | /* | ||
59 | Stop adapter, called if user | ||
60 | wishes to stop adapter without unload | ||
61 | of the driver, to reload adapter with | ||
62 | different protocol | ||
63 | */ | ||
64 | #define DIVA_XDI_UM_CMD_STOP_ADAPTER 8 | ||
65 | |||
66 | /* | ||
67 | Get state of current adapter | ||
68 | Acknowledge is one dword with following values: | ||
69 | 0 - adapter ready for download | ||
70 | 1 - adapter running | ||
71 | 2 - adapter dead | ||
72 | 3 - out of service, driver should be restarted or hardware problem | ||
73 | */ | ||
74 | #define DIVA_XDI_UM_CMD_GET_CARD_STATE 9 | ||
75 | |||
76 | /* | ||
77 | Reads XLOG entry from the card | ||
78 | */ | ||
79 | #define DIVA_XDI_UM_CMD_READ_XLOG_ENTRY 10 | ||
80 | |||
81 | /* | ||
82 | Set untranslated protocol code features | ||
83 | */ | ||
84 | #define DIVA_XDI_UM_CMD_SET_PROTOCOL_FEATURES 11 | ||
85 | |||
86 | typedef struct _diva_xdi_um_cfg_cmd_data_set_features { | ||
87 | dword features; | ||
88 | } diva_xdi_um_cfg_cmd_data_set_features_t; | ||
89 | |||
90 | typedef struct _diva_xdi_um_cfg_cmd_data_start { | ||
91 | dword offset; | ||
92 | dword features; | ||
93 | } diva_xdi_um_cfg_cmd_data_start_t; | ||
94 | |||
95 | typedef struct _diva_xdi_um_cfg_cmd_data_write_sdram { | ||
96 | dword ram_number; | ||
97 | dword offset; | ||
98 | dword length; | ||
99 | } diva_xdi_um_cfg_cmd_data_write_sdram_t; | ||
100 | |||
101 | typedef struct _diva_xdi_um_cfg_cmd_data_write_fpga { | ||
102 | dword fpga_number; | ||
103 | dword image_length; | ||
104 | } diva_xdi_um_cfg_cmd_data_write_fpga_t; | ||
105 | |||
106 | typedef struct _diva_xdi_um_cfg_cmd_data_read_sdram { | ||
107 | dword ram_number; | ||
108 | dword offset; | ||
109 | dword length; | ||
110 | } diva_xdi_um_cfg_cmd_data_read_sdram_t; | ||
111 | |||
112 | typedef union _diva_xdi_um_cfg_cmd_data { | ||
113 | diva_xdi_um_cfg_cmd_data_write_sdram_t write_sdram; | ||
114 | diva_xdi_um_cfg_cmd_data_write_fpga_t write_fpga; | ||
115 | diva_xdi_um_cfg_cmd_data_read_sdram_t read_sdram; | ||
116 | diva_xdi_um_cfg_cmd_data_start_t start; | ||
117 | diva_xdi_um_cfg_cmd_data_set_features_t features; | ||
118 | } diva_xdi_um_cfg_cmd_data_t; | ||
119 | |||
120 | typedef struct _diva_xdi_um_cfg_cmd { | ||
121 | dword adapter; /* Adapter number 1...N */ | ||
122 | dword command; | ||
123 | diva_xdi_um_cfg_cmd_data_t command_data; | ||
124 | dword data_length; /* Plain binary data will follow */ | ||
125 | } diva_xdi_um_cfg_cmd_t; | ||
126 | |||
127 | #endif | ||