3 * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By downloading, copying, installing or
4 * using the software you agree to this license. If you do not agree to this license, do not download, install,
5 * copy or use the software.
7 * Intel License Agreement
9 * Copyright (c) 2002, Intel Corporation
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that
13 * the following conditions are met:
15 * -Redistributions of source code must retain the above copyright notice, this list of conditions and the
16 * following disclaimer.
18 * -Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
19 * following disclaimer in the documentation and/or other materials provided with the distribution.
21 * -The name of Intel Corporation may not be used to endorse or promote products derived from this software
22 * without specific prior written permission.
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
25 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
43 #include <linux/genhd.h>
46 typedef struct scsi_osd
{
48 unsigned capacity
; /* size in blocks */
49 unsigned char ready
; /* flag ready for FLOPTICAL */
50 unsigned char write_prot
; /* flag write_protect for rmvable dev */
51 unsigned char sector_bit_size
; /* sector_size = 2 to the bit size power */
52 unsigned char sector_bit_shift
; /* power of 2 sectors per FS block */
53 unsigned has_part_table
:1; /* has partition table */