From 813b3cc53e5f7113480a4977bd9ee9bce71eba08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 23 Feb 2004 03:25:13 +0000 Subject: [PATCH] Removed the non-Be-compatible devfs partition info stuff. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6680 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/drivers/Drivers.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/headers/os/drivers/Drivers.h b/headers/os/drivers/Drivers.h index 66c2b5af9b..c1824ae213 100644 --- a/headers/os/drivers/Drivers.h +++ b/headers/os/drivers/Drivers.h @@ -14,11 +14,6 @@ extern "C" { these hooks are how the kernel accesses the device --- */ -// XXX hack, this is also in private/kernel/defines.h -#ifndef SYS_MAX_PATH_LEN - #define SYS_MAX_PATH_LEN 512 -#endif - struct selectsync; typedef struct selectsync selectsync; @@ -68,29 +63,6 @@ void uninit_driver(void); extern int32 api_version; -enum { - // called on partition device to get info - IOCTL_DEVFS_GET_PARTITION_INFO = 1000, - // called on raw device to declare one partition - IOCTL_DEVFS_SET_PARTITION, -}; - -typedef struct devfs_partition_info { - // offset and size relative to raw device in bytes - off_t offset; - off_t size; - - // logical block size in bytes - uint32 logical_block_size; - - // session/partition id - uint32 session; - uint32 partition; - - // path of raw device (GET_PARTITION_INFO only) - char raw_device[SYS_MAX_PATH_LEN]; -} devfs_partition_info; - enum { B_GET_DEVICE_SIZE = 1, /* get # bytes */ /* returns size_t in *data */