Go to the documentation of this file.
17 #include <linux/types.h>
19 #include <linux/list.h>
20 #include <linux/errno.h>
21 #include <linux/device.h>
23 #ifdef CONFIG_RAPIDIO_DMA_ENGINE
27 #define RIO_NO_HOPCOUNT -1
28 #define RIO_INVALID_DESTID 0xffff
30 #define RIO_MAX_MPORTS 8
31 #define RIO_MAX_MPORT_RESOURCES 16
32 #define RIO_MAX_DEV_RESOURCES 16
33 #define RIO_MAX_MPORT_NAME 40
35 #define RIO_GLOBAL_TABLE 0xff
40 #define RIO_INVALID_ROUTE 0xff
44 #define RIO_MAX_ROUTE_ENTRIES(size) (size ? (1 << 16) : (1 << 8))
45 #define RIO_ANY_DESTID(size) (size ? 0xffff : 0xff)
47 #define RIO_MAX_MBOX 4
48 #define RIO_MAX_MSG_SIZE 0x1000
53 #define RIO_SUCCESSFUL 0x00
54 #define RIO_BAD_SIZE 0x81
68 #define RIO_DOORBELL_RESOURCE 0
69 #define RIO_INB_MBOX_RESOURCE 1
70 #define RIO_OUTB_MBOX_RESOURCE 2
72 #define RIO_PW_MSG_SIZE 64
81 #define RIO_CTAG_RESRVD 0xfffe0000
82 #define RIO_CTAG_UDEVID 0x0001ffff
187 #define rio_dev_g(n) list_entry(n, struct rio_dev, global_list)
188 #define rio_dev_f(n) list_entry(n, struct rio_dev, net_list)
189 #define to_rio_dev(n) container_of(n, struct rio_dev, dev)
190 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
262 #ifdef CONFIG_RAPIDIO_DMA_ENGINE
271 unsigned long *
table;
295 #define RIO_SW_SYSFS_CREATE 1
296 #define RIO_SW_SYSFS_REMOVE 0
344 #define RIO_RESOURCE_MEM 0x00000100
345 #define RIO_RESOURCE_DOORBELL 0x00000200
346 #define RIO_RESOURCE_MAILBOX 0x00000400
348 #define RIO_RESOURCE_CACHEABLE 0x00010000
349 #define RIO_RESOURCE_PCI 0x00020000
351 #define RIO_RESOURCE_BUSY 0x80000000
380 #define to_rio_driver(drv) container_of(drv,struct rio_driver, driver)
422 #ifdef CONFIG_RAPIDIO_DMA_ENGINE
433 enum rio_write_type {
444 enum rio_write_type wr_type;
447 struct rio_dma_data {
454 enum rio_write_type wr_type;