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
This commit is contained in:
@@ -14,11 +14,6 @@ extern "C" {
|
|||||||
these hooks are how the kernel accesses the device
|
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;
|
struct selectsync;
|
||||||
typedef struct selectsync selectsync;
|
typedef struct selectsync selectsync;
|
||||||
|
|
||||||
@@ -68,29 +63,6 @@ void uninit_driver(void);
|
|||||||
|
|
||||||
extern int32 api_version;
|
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 {
|
enum {
|
||||||
B_GET_DEVICE_SIZE = 1, /* get # bytes */
|
B_GET_DEVICE_SIZE = 1, /* get # bytes */
|
||||||
/* returns size_t in *data */
|
/* returns size_t in *data */
|
||||||
|
|||||||
Reference in New Issue
Block a user