1 #ifndef _GPXE_RAMDISK_H 2 #define _GPXE_RAMDISK_H 3 4 /** 5 * @file 6 * 7 * RAM disks 8 * 9 */ 10 11 FILE_LICENCE ( GPL2_OR_LATER ); 12 13 #include <gpxe/uaccess.h> 14 #include <gpxe/blockdev.h> 15 16 struct ramdisk { 17 struct block_device blockdev; 18 userptr_t data; 19 }; 20 21 extern int init_ramdisk ( struct ramdisk *ramdisk, userptr_t data, size_t len, 22 unsigned int blksize ); 23 24 #endif /* _GPXE_RAMDISK_H */ 25