1 #ifndef _IPXE_BLOCKTRANS_H
2 #define _IPXE_BLOCKTRANS_H
6 * Block device translator
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL
);
13 #include <ipxe/refcnt.h>
14 #include <ipxe/interface.h>
15 #include <ipxe/xferbuf.h>
16 #include <ipxe/uaccess.h>
18 /** A block device translator */
19 struct block_translator
{
20 /** Reference count */
22 /** Block device interface */
23 struct interface block
;
24 /** Data transfer interface */
25 struct interface xfer
;
27 /** Data transfer buffer */
28 struct xfer_buffer xferbuf
;
35 extern int block_translate ( struct interface
*block
,
36 userptr_t buffer
, size_t size
);
38 #endif /* _IPXE_BLOCKTRANS_H */