Merge branch 'master' into 'master'
[brasero.git] / libbrasero-media / scsi-mode-pages.h
blob69f6e30e2e4f451c248dc70903080f361c7594cb
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-burn 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-burn authors hereby grant permission for non-GPL compatible
12 * GStreamer plugins to be used and distributed together with GStreamer
13 * and Libbrasero-burn. This permission is above and beyond the permissions granted
14 * by the GPL license by which Libbrasero-burn 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-burn 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 #include <glib.h>
33 #include "scsi-base.h"
35 #ifndef _SCSI_MODE_PAGES_H
36 #define _SCSI_MODE_PAGES_H
38 G_BEGIN_DECLS
40 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
42 struct _BraseroScsiModePage {
43 uchar code :6;
44 uchar reserved :1;
45 uchar ps :1;
47 uchar len;
50 #else
52 struct _BraseroScsiModePage {
53 uchar ps :1;
54 uchar reserved :1;
55 uchar code :6;
57 uchar len;
60 #endif
62 typedef struct _BraseroScsiModePage BraseroScsiModePage;
64 struct _BraseroScsiModeHdr {
65 uchar len [2];
66 uchar medium_type :8;
67 uchar device_param :8;
68 uchar reserved [2];
69 uchar bdlen [2];
71 typedef struct _BraseroScsiModeHdr BraseroScsiModeHdr;
73 struct _BraseroScsiModeData {
74 BraseroScsiModeHdr hdr;
75 BraseroScsiModePage page;
77 typedef struct _BraseroScsiModeData BraseroScsiModeData;
79 /**
80 * Pages codes
83 typedef enum {
84 BRASERO_SPC_PAGE_NULL = 0x00,
85 BRASERO_SPC_PAGE_WRITE = 0x05,
86 BRASERO_SPC_PAGE_STATUS = 0x2a,
87 } BraseroSPCPageType;
89 G_END_DECLS
91 #endif /* _SCSI_MODE-PAGES_H */