|
@@ -183,6 +183,19 @@ static inline void xfer_init ( struct xfer_interface *xfer,
|
183
|
183
|
xfer->op = op;
|
184
|
184
|
}
|
185
|
185
|
|
|
186
|
+/**
|
|
187
|
+ * Initialise a static data transfer interface
|
|
188
|
+ *
|
|
189
|
+ * @v operations Data transfer interface operations
|
|
190
|
+ */
|
|
191
|
+#define XFER_INIT( operations ) { \
|
|
192
|
+ .intf = { \
|
|
193
|
+ .dest = &null_xfer.intf, \
|
|
194
|
+ .refcnt = NULL, \
|
|
195
|
+ }, \
|
|
196
|
+ .op = operations, \
|
|
197
|
+ }
|
|
198
|
+
|
186
|
199
|
/**
|
187
|
200
|
* Get data transfer interface from generic object communication interface
|
188
|
201
|
*
|