Make UEFI boot-platform build again
[haiku.git] / headers / private / file_systems / ram_disk / ram_disk.h
blob0a8279a38ffc954027d4bdb65502b3c7e6904ec0
1 /*
2 * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PRIVATE_FILE_SYSTEMS_RAM_DISK_RAM_DISK_H
6 #define _PRIVATE_FILE_SYSTEMS_RAM_DISK_RAM_DISK_H
9 #include <Drivers.h>
10 #include <StorageDefs.h>
13 #define RAM_DISK_CONTROL_DEVICE_NAME "disk/virtual/ram/control"
14 #define RAM_DISK_RAW_DEVICE_BASE_NAME "disk/virtual/ram"
17 enum {
18 RAM_DISK_IOCTL_REGISTER = B_DEVICE_OP_CODES_END + 1,
19 RAM_DISK_IOCTL_UNREGISTER,
20 RAM_DISK_IOCTL_FLUSH,
21 RAM_DISK_IOCTL_INFO
25 struct ram_disk_ioctl_register {
26 uint64 size;
27 char path[B_PATH_NAME_LENGTH];
29 // return value
30 int32 id;
34 struct ram_disk_ioctl_unregister {
35 int32 id;
39 struct ram_disk_ioctl_info {
40 // return values
41 int32 id;
42 uint64 size;
43 char path[B_PATH_NAME_LENGTH];
47 #endif // _PRIVATE_FILE_SYSTEMS_RAM_DISK_RAM_DISK_H