blob: 66a7e353cffda17a76c8f46bba4eae2b5784fe11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _IPXE_BLOCKTRANS_H
#define _IPXE_BLOCKTRANS_H
/** @file
*
* Block device translator
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( PERMITTED );
#include <stdint.h>
#include <ipxe/refcnt.h>
#include <ipxe/interface.h>
#include <ipxe/xferbuf.h>
/** A block device translator */
struct block_translator {
/** Reference count */
struct refcnt refcnt;
/** Block device interface */
struct interface block;
/** Data transfer interface */
struct interface xfer;
/** Data transfer buffer */
struct xfer_buffer xferbuf;
/** Block size */
size_t blksize;
};
extern int block_translate ( struct interface *block, void *buffer,
size_t size );
#endif /* _IPXE_BLOCKTRANS_H */
|