summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/blockdev.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/include/gpxe/blockdev.h b/src/include/gpxe/blockdev.h
index 467ed1d9..8222984a 100644
--- a/src/include/gpxe/blockdev.h
+++ b/src/include/gpxe/blockdev.h
@@ -10,12 +10,10 @@
#include <gpxe/uaccess.h>
-/** A block device */
-struct block_device {
- /** Block size */
- size_t blksize;
- /** Total number of blocks */
- uint64_t blocks;
+struct block_device;
+
+/** Block device operations */
+struct block_device_operations {
/**
* Read block
*
@@ -40,4 +38,14 @@ struct block_device {
unsigned long count, userptr_t buffer );
};
+/** A block device */
+struct block_device {
+ /** Block device operations */
+ struct block_device_operations *op;
+ /** Block size */
+ size_t blksize;
+ /** Total number of blocks */
+ uint64_t blocks;
+};
+
#endif /* _GPXE_BLOCKDEV_H */