summaryrefslogtreecommitdiffstats
path: root/drivers/net/fjes/fjes_regs.h
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2015-08-21 17:29:21 +0900
committerDavid S. Miller <davem@davemloft.net>2015-08-24 14:06:34 -0700
commit3bb025d4f756049d297f2bed605241d4d43a15fe (patch)
treea5964bbdc3560fb22079837daa649325c0d468e6 /drivers/net/fjes/fjes_regs.h
parent2fcbca687702163ae3a37ec4eac5905d6f119296 (diff)
downloadlinux-3bb025d4f756049d297f2bed605241d4d43a15fe.tar.gz
linux-3bb025d4f756049d297f2bed605241d4d43a15fe.tar.bz2
linux-3bb025d4f756049d297f2bed605241d4d43a15fe.zip
fjes: ES information acquisition routine
This patch adds ES information acquisition routine. ES information can be retrieved issuing information request command. ES information includes which receiver is same zone. Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fjes/fjes_regs.h')
-rw-r--r--drivers/net/fjes/fjes_regs.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/fjes/fjes_regs.h b/drivers/net/fjes/fjes_regs.h
index 4d0e0719645e..cc975a0fd111 100644
--- a/drivers/net/fjes/fjes_regs.h
+++ b/drivers/net/fjes/fjes_regs.h
@@ -35,6 +35,8 @@
#define XSCT_DCTL 0x0010 /* Device Control */
/* Command Control registers */
+#define XSCT_CR 0x0020 /* Command request */
+#define XSCT_CS 0x0024 /* Command status */
#define XSCT_SHSTSAL 0x0028 /* Share status address Low */
#define XSCT_SHSTSAH 0x002C /* Share status address High */
@@ -78,6 +80,27 @@ union REG_DCTL {
__le32 reg;
};
+/* Command Control registers */
+union REG_CR {
+ struct {
+ __le32 req_code:16;
+ __le32 err_info:14;
+ __le32 error:1;
+ __le32 req_start:1;
+ } bits;
+ __le32 reg;
+};
+
+union REG_CS {
+ struct {
+ __le32 req_code:16;
+ __le32 rsv0:14;
+ __le32 busy:1;
+ __le32 complete:1;
+ } bits;
+ __le32 reg;
+};
+
enum REG_ICTL_MASK {
REG_ICTL_MASK_INFO_UPDATE = 1 << 20,
REG_ICTL_MASK_DEV_STOP_REQ = 1 << 19,