summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/isdn/hardware/eicon/xdi_msg.h
diff options
context:
space:
mode:
authorYunhong Jiang <yunhong.jiang@intel.com>2015-08-04 12:17:53 -0700
committerYunhong Jiang <yunhong.jiang@intel.com>2015-08-04 15:44:42 -0700
commit9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (patch)
tree1c9cafbcd35f783a87880a10f85d1a060db1a563 /kernel/drivers/isdn/hardware/eicon/xdi_msg.h
parent98260f3884f4a202f9ca5eabed40b1354c489b29 (diff)
Add the rt linux 4.1.3-rt3 as base
Import the rt linux 4.1.3-rt3 as OPNFV kvm base. It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and the base is: commit 0917f823c59692d751951bf5ea699a2d1e2f26a2 Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Date: Sat Jul 25 12:13:34 2015 +0200 Prepare v4.1.3-rt3 Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> We lose all the git history this way and it's not good. We should apply another opnfv project repo in future. Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423 Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Diffstat (limited to 'kernel/drivers/isdn/hardware/eicon/xdi_msg.h')
-rw-r--r--kernel/drivers/isdn/hardware/eicon/xdi_msg.h127
1 files changed, 127 insertions, 0 deletions
diff --git a/kernel/drivers/isdn/hardware/eicon/xdi_msg.h b/kernel/drivers/isdn/hardware/eicon/xdi_msg.h
new file mode 100644
index 000000000..2498c349a
--- /dev/null
+++ b/kernel/drivers/isdn/hardware/eicon/xdi_msg.h
@@ -0,0 +1,127 @@
+/* $Id: xdi_msg.h,v 1.1.2.2 2001/02/16 08:40:36 armin Exp $ */
+
+#ifndef __DIVA_XDI_UM_CFG_MESSAGE_H__
+#define __DIVA_XDI_UM_CFG_MESSAGE_H__
+
+/*
+ Definition of messages used to communicate between
+ XDI device driver and user mode configuration utility
+*/
+
+/*
+ As acknowledge one DWORD - card ordinal will be read from the card
+*/
+#define DIVA_XDI_UM_CMD_GET_CARD_ORDINAL 0
+
+/*
+ no acknowledge will be generated, memory block will be written in the
+ memory at given offset
+*/
+#define DIVA_XDI_UM_CMD_WRITE_SDRAM_BLOCK 1
+
+/*
+ no acknowledge will be genatated, FPGA will be programmed
+*/
+#define DIVA_XDI_UM_CMD_WRITE_FPGA 2
+
+/*
+ As acknowledge block of SDRAM will be read in the user buffer
+*/
+#define DIVA_XDI_UM_CMD_READ_SDRAM 3
+
+/*
+ As acknowledge dword with serial number will be read in the user buffer
+*/
+#define DIVA_XDI_UM_CMD_GET_SERIAL_NR 4
+
+/*
+ As acknowledge struct consisting from 9 dwords with PCI info.
+ dword[0...7] = 8 PCI BARS
+ dword[9] = IRQ
+*/
+#define DIVA_XDI_UM_CMD_GET_PCI_HW_CONFIG 5
+
+/*
+ Reset of the board + activation of primary
+ boot loader
+*/
+#define DIVA_XDI_UM_CMD_RESET_ADAPTER 6
+
+/*
+ Called after code download to start adapter
+ at specified address
+ Start does set new set of features due to fact that we not know
+ if protocol features have changed
+*/
+#define DIVA_XDI_UM_CMD_START_ADAPTER 7
+
+/*
+ Stop adapter, called if user
+ wishes to stop adapter without unload
+ of the driver, to reload adapter with
+ different protocol
+*/
+#define DIVA_XDI_UM_CMD_STOP_ADAPTER 8
+
+/*
+ Get state of current adapter
+ Acknowledge is one dword with following values:
+ 0 - adapter ready for download
+ 1 - adapter running
+ 2 - adapter dead
+ 3 - out of service, driver should be restarted or hardware problem
+*/
+#define DIVA_XDI_UM_CMD_GET_CARD_STATE 9
+
+/*
+ Reads XLOG entry from the card
+*/
+#define DIVA_XDI_UM_CMD_READ_XLOG_ENTRY 10
+
+/*
+ Set untranslated protocol code features
+*/
+#define DIVA_XDI_UM_CMD_SET_PROTOCOL_FEATURES 11
+
+typedef struct _diva_xdi_um_cfg_cmd_data_set_features {
+ dword features;
+} diva_xdi_um_cfg_cmd_data_set_features_t;
+
+typedef struct _diva_xdi_um_cfg_cmd_data_start {
+ dword offset;
+ dword features;
+} diva_xdi_um_cfg_cmd_data_start_t;
+
+typedef struct _diva_xdi_um_cfg_cmd_data_write_sdram {
+ dword ram_number;
+ dword offset;
+ dword length;
+} diva_xdi_um_cfg_cmd_data_write_sdram_t;
+
+typedef struct _diva_xdi_um_cfg_cmd_data_write_fpga {
+ dword fpga_number;
+ dword image_length;
+} diva_xdi_um_cfg_cmd_data_write_fpga_t;
+
+typedef struct _diva_xdi_um_cfg_cmd_data_read_sdram {
+ dword ram_number;
+ dword offset;
+ dword length;
+} diva_xdi_um_cfg_cmd_data_read_sdram_t;
+
+typedef union _diva_xdi_um_cfg_cmd_data {
+ diva_xdi_um_cfg_cmd_data_write_sdram_t write_sdram;
+ diva_xdi_um_cfg_cmd_data_write_fpga_t write_fpga;
+ diva_xdi_um_cfg_cmd_data_read_sdram_t read_sdram;
+ diva_xdi_um_cfg_cmd_data_start_t start;
+ diva_xdi_um_cfg_cmd_data_set_features_t features;
+} diva_xdi_um_cfg_cmd_data_t;
+
+typedef struct _diva_xdi_um_cfg_cmd {
+ dword adapter; /* Adapter number 1...N */
+ dword command;
+ diva_xdi_um_cfg_cmd_data_t command_data;
+ dword data_length; /* Plain binary data will follow */
+} diva_xdi_um_cfg_cmd_t;
+
+#endif