aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/rio.h2
-rw-r--r--include/linux/rio_regs.h13
2 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h
index 930bbb7c3802..5c29f2f477c2 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -91,6 +91,7 @@ struct rio_mport;
91 * @swpinfo: Switch port info 91 * @swpinfo: Switch port info
92 * @src_ops: Source operation capabilities 92 * @src_ops: Source operation capabilities
93 * @dst_ops: Destination operation capabilities 93 * @dst_ops: Destination operation capabilities
94 * @dma_mask: Mask of bits of RIO address this device implements
94 * @rswitch: Pointer to &struct rio_switch if valid for this device 95 * @rswitch: Pointer to &struct rio_switch if valid for this device
95 * @driver: Driver claiming this device 96 * @driver: Driver claiming this device
96 * @dev: Device model device 97 * @dev: Device model device
@@ -112,6 +113,7 @@ struct rio_dev {
112 u32 swpinfo; /* Only used for switches */ 113 u32 swpinfo; /* Only used for switches */
113 u32 src_ops; 114 u32 src_ops;
114 u32 dst_ops; 115 u32 dst_ops;
116 u64 dma_mask;
115 struct rio_switch *rswitch; /* RIO switch info */ 117 struct rio_switch *rswitch; /* RIO switch info */
116 struct rio_driver *driver; /* RIO driver claiming this device */ 118 struct rio_driver *driver; /* RIO driver claiming this device */
117 struct device dev; /* LDM device structure */ 119 struct device dev; /* LDM device structure */
diff --git a/include/linux/rio_regs.h b/include/linux/rio_regs.h
index f419be3be491..326540f9b54e 100644
--- a/include/linux/rio_regs.h
+++ b/include/linux/rio_regs.h
@@ -78,6 +78,19 @@
78#define RIO_DST_OPS_ATOMIC_CLR 0x00000010 /* [I] Atomic clr op */ 78#define RIO_DST_OPS_ATOMIC_CLR 0x00000010 /* [I] Atomic clr op */
79#define RIO_DST_OPS_PORT_WRITE 0x00000004 /* [I] Port-write op */ 79#define RIO_DST_OPS_PORT_WRITE 0x00000004 /* [I] Port-write op */
80 80
81#define RIO_OPS_READ 0x00008000 /* [I] Read op */
82#define RIO_OPS_WRITE 0x00004000 /* [I] Write op */
83#define RIO_OPS_STREAM_WRITE 0x00002000 /* [I] Str-write op */
84#define RIO_OPS_WRITE_RESPONSE 0x00001000 /* [I] Write/resp op */
85#define RIO_OPS_DATA_MSG 0x00000800 /* [II] Data msg op */
86#define RIO_OPS_DOORBELL 0x00000400 /* [II] Doorbell op */
87#define RIO_OPS_ATOMIC_TST_SWP 0x00000100 /* [I] Atomic TAS op */
88#define RIO_OPS_ATOMIC_INC 0x00000080 /* [I] Atomic inc op */
89#define RIO_OPS_ATOMIC_DEC 0x00000040 /* [I] Atomic dec op */
90#define RIO_OPS_ATOMIC_SET 0x00000020 /* [I] Atomic set op */
91#define RIO_OPS_ATOMIC_CLR 0x00000010 /* [I] Atomic clr op */
92#define RIO_OPS_PORT_WRITE 0x00000004 /* [I] Port-write op */
93
81 /* 0x20-0x3c *//* Reserved */ 94 /* 0x20-0x3c *//* Reserved */
82 95
83#define RIO_MBOX_CSR 0x40 /* [II] Mailbox CSR */ 96#define RIO_MBOX_CSR 0x40 /* [II] Mailbox CSR */