diff options
author | Taku Izumi <izumi.taku@jp.fujitsu.com> | 2015-08-21 11:29:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 00:06:34 +0300 |
commit | 3bb025d4f756049d297f2bed605241d4d43a15fe (patch) | |
tree | a5964bbdc3560fb22079837daa649325c0d468e6 /drivers/net/fjes/fjes_regs.h | |
parent | 2fcbca687702163ae3a37ec4eac5905d6f119296 (diff) | |
download | linux-3bb025d4f756049d297f2bed605241d4d43a15fe.tar.xz |
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.h | 23 |
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, |