Merge branch 'master' into 'master'
[brasero.git] / libbrasero-media / scsi-inquiry.h
blob035df08e64b78f1933411c7de437f5e60d200c83
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3 * Libbrasero-media
4 * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
6 * Libbrasero-media is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * The Libbrasero-media authors hereby grant permission for non-GPL compatible
12 * GStreamer plugins to be used and distributed together with GStreamer
13 * and Libbrasero-media. This permission is above and beyond the permissions granted
14 * by the GPL license by which Libbrasero-media is covered. If you modify this code
15 * you may extend this exception to your version of the code, but you are not
16 * obligated to do so. If you do not wish to do so, delete this exception
17 * statement from your version.
19 * Libbrasero-media is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Library General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to:
26 * The Free Software Foundation, Inc.,
27 * 51 Franklin Street, Fifth Floor
28 * Boston, MA 02110-1301, USA.
31 #ifndef _SCSI_INQUIRY_H
32 #define _SCSI_INQUIRY_H
34 #include <glib.h>
36 G_BEGIN_DECLS
38 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
40 struct _BraseroScsiInquiry {
41 uchar type :5;
42 uchar qualifier :3;
44 uchar reserved0 :7;
45 uchar rmb :1;
47 uchar ansi_ver :3;
48 uchar ecma_ver :3;
49 uchar iso_ver :2;
51 uchar response_format :4;
52 uchar reserved1 :1;
53 uchar norm_aca :1;
54 uchar trmtsk :1;
55 uchar aerc :1;
57 uchar add_len;
59 uchar reserved2;
61 uchar addr16 :1;
62 uchar addr32 :1;
63 uchar ack_req :1;
64 uchar mchngr :1;
65 uchar multiP :1;
66 uchar vs1 :1;
67 uchar enc_serv :1;
68 uchar reserved3 :1;
70 uchar vs2 :1;
71 uchar cmd_queue :1;
72 uchar transdis :1;
73 uchar linked :1;
74 uchar sync :1;
75 uchar wbus16 :1;
76 uchar wbus32 :1;
77 uchar rel_addr :1;
79 uchar vendor [8];
80 uchar name [16];
81 uchar revision [4];
84 #else
86 struct _BraseroScsiInquiry {
87 uchar qualifier :3;
88 uchar type :5;
90 uchar rmb :1;
91 uchar reserved0 :7;
93 uchar iso_ver :2;
94 uchar ecma_ver :3;
95 uchar ansi_ver :3;
97 uchar aerc :1;
98 uchar trmtsk :1;
99 uchar norm_aca :1;
100 uchar reserved1 :1;
101 uchar response_format :4;
103 uchar add_len;
105 uchar reserved2;
107 uchar reserved3 :1;
108 uchar enc_serv :1;
109 uchar vs1 :1;
110 uchar multiP :1;
111 uchar mchngr :1;
112 uchar ack_req :1;
113 uchar addr32 :1;
114 uchar addr16 :1;
116 uchar rel_addr :1;
117 uchar wbus32 :1;
118 uchar wbus16 :1;
119 uchar sync :1;
120 uchar linked :1;
121 uchar transdis :1;
122 uchar cmd_queue :1;
123 uchar vs2 :1;
125 uchar vendor [8];
126 uchar name [16];
127 uchar revision [4];
130 #endif
132 typedef struct _BraseroScsiInquiry BraseroScsiInquiry;
134 G_END_DECLS
136 #endif