1STRUCT RIO_OPS(9) Internals STRUCT RIO_OPS(9)
2
3
4
6 struct_rio_ops - Low-level RIO configuration space operations
7
9 struct rio_ops {
10 int (* lcread) (struct rio_mport *mport, int index, u32 offset, int len,u32 *data);
11 int (* lcwrite) (struct rio_mport *mport, int index, u32 offset, int len,u32 data);
12 int (* cread) (struct rio_mport *mport, int index, u16 destid,u8 hopcount, u32 offset, int len, u32 *data);
13 int (* cwrite) (struct rio_mport *mport, int index, u16 destid,u8 hopcount, u32 offset, int len, u32 data);
14 int (* dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
15 int (* pwenable) (struct rio_mport *mport, int enable);
16 int (* open_outb_mbox) (struct rio_mport *mport, void *dev_id,int mbox, int entries);
17 void (* close_outb_mbox) (struct rio_mport *mport, int mbox);
18 int (* open_inb_mbox) (struct rio_mport *mport, void *dev_id,int mbox, int entries);
19 void (* close_inb_mbox) (struct rio_mport *mport, int mbox);
20 int (* add_outb_message) (struct rio_mport *mport, struct rio_dev *rdev,int mbox, void *buffer, size_t len);
21 int (* add_inb_buffer) (struct rio_mport *mport, int mbox, void *buf);
22 void *(* get_inb_message) (struct rio_mport *mport, int mbox);
23 int (* map_inb) (struct rio_mport *mport, dma_addr_t lstart,u64 rstart, u32 size, u32 flags);
24 void (* unmap_inb) (struct rio_mport *mport, dma_addr_t lstart);
25 };
26
28 lcread
29 Callback to perform local (master port) read of config space.
30
31 lcwrite
32 Callback to perform local (master port) write of config space.
33
34 cread
35 Callback to perform network read of config space.
36
37 cwrite
38 Callback to perform network write of config space.
39
40 dsend
41 Callback to send a doorbell message.
42
43 pwenable
44 Callback to enable/disable port-write message handling.
45
46 open_outb_mbox
47 Callback to initialize outbound mailbox.
48
49 close_outb_mbox
50 Callback to shut down outbound mailbox.
51
52 open_inb_mbox
53 Callback to initialize inbound mailbox.
54
55 close_inb_mbox
56 Callback to shut down inbound mailbox.
57
58 add_outb_message
59 Callback to add a message to an outbound mailbox queue.
60
61 add_inb_buffer
62 Callback to add a buffer to an inbound mailbox queue.
63
64 get_inb_message
65 Callback to get a message from an inbound mailbox queue.
66
67 map_inb
68 Callback to map RapidIO address region into local memory space.
69
70 unmap_inb
71 Callback to unmap RapidIO address region mapped with map_inb.
72
74 Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
75 Author.
76
78Kernel Hackers Manual 3.10 June 2019 STRUCT RIO_OPS(9)