]> git.saurik.com Git - apple/xnu.git/blame_incremental - bsd/sys/disk.h
xnu-344.tar.gz
[apple/xnu.git] / bsd / sys / disk.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 1998-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23#ifndef _SYS_DISK_H_
24#define _SYS_DISK_H_
25
26#include <sys/ioctl.h>
27#include <sys/types.h>
28
29typedef struct
30{
31 char path[128];
32} dk_firmware_path_t;
33
34#define DKIOCEJECT _IO('d', 21)
35#define DKIOCSYNCHRONIZECACHE _IO('d', 22)
36
37#define DKIOCGETBLOCKSIZE _IOR('d', 24, u_int32_t)
38#define DKIOCGETBLOCKCOUNT _IOR('d', 25, u_int64_t)
39#define DKIOCGETBLOCKCOUNT32 _IOR('d', 25, u_int32_t)
40#define DKIOCGETFIRMWAREPATH _IOR('d', 28, dk_firmware_path_t)
41
42#define DKIOCISFORMATTED _IOR('d', 23, u_int32_t)
43#define DKIOCISWRITABLE _IOR('d', 29, u_int32_t)
44
45#define DKIOCGETMAXBLOCKCOUNTREAD _IOR('d', 64, u_int64_t)
46#define DKIOCGETMAXBLOCKCOUNTWRITE _IOR('d', 65, u_int64_t)
47#define DKIOCGETMAXSEGMENTCOUNTREAD _IOR('d', 66, u_int64_t)
48#define DKIOCGETMAXSEGMENTCOUNTWRITE _IOR('d', 67, u_int64_t)
49
50#ifdef KERNEL
51#define DKIOCSETBLOCKSIZE _IOW('d', 24, u_int32_t)
52#endif /* KERNEL */
53
54#endif /* _SYS_DISK_H_ */