1
2/*
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.
6 *
7 * Intel License Agreement
8 *
9 * Copyright (c) 2002, Intel Corporation
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that
13 * the following conditions are met:
14 *
15 * -Redistributions of source code must retain the above copyright notice, this list of conditions and the
16 *  following disclaimer.
17 *
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.
20 *
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.
23 *
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.
32 */
33
34
35#ifndef _SO_H
36#define _SO_H
37
38#ifndef _SCSI_H
39#include "scsi.h"
40#endif
41
42#ifndef _GENDISK_H
43#include <linux/genhd.h>
44#endif
45
46typedef struct scsi_osd {
47  Scsi_Device *device;
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 */
54} Scsi_Osd;
55
56#endif
57