Deleted Added
full compact
disk.h (332154) disk.h (334935)
1/*-
2 * Copyright (c) 2011 Google, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2011 Google, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/11/stand/common/disk.h 332154 2018-04-06 21:37:25Z kevans $
26 * $FreeBSD: stable/11/stand/common/disk.h 334935 2018-06-10 22:26:15Z ian $
27 */
28
29/*
30 * Device descriptor for partitioned disks. To use, set the
31 * d_slice and d_partition variables as follows:
32 *
33 * Whole disk access:
34 *

--- 41 unchanged lines hidden (view full) ---

76 * This will initialize d_offset to the block offset of the start of the
77 * selected partition - this offset should be added to the offset passed to
78 * the device's strategy method.
79 */
80
81#ifndef _DISK_H
82#define _DISK_H
83
27 */
28
29/*
30 * Device descriptor for partitioned disks. To use, set the
31 * d_slice and d_partition variables as follows:
32 *
33 * Whole disk access:
34 *

--- 41 unchanged lines hidden (view full) ---

76 * This will initialize d_offset to the block offset of the start of the
77 * selected partition - this offset should be added to the offset passed to
78 * the device's strategy method.
79 */
80
81#ifndef _DISK_H
82#define _DISK_H
83
84/* Note: Must match the 'struct devdesc' in stand.h */
85struct disk_devdesc {
84struct disk_devdesc {
86 struct devdesc dd;
85 struct devdesc dd; /* Must be first. */
87 int d_slice;
88 int d_partition;
89 uint64_t d_offset;
90};
91
92enum disk_ioctl {
93 IOCTL_GET_BLOCKS,
94 IOCTL_GET_BLOCK_SIZE

--- 20 unchanged lines hidden ---
86 int d_slice;
87 int d_partition;
88 uint64_t d_offset;
89};
90
91enum disk_ioctl {
92 IOCTL_GET_BLOCKS,
93 IOCTL_GET_BLOCK_SIZE

--- 20 unchanged lines hidden ---