2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)scsi_mmc4.c 1.1 05/05/16 Copyright 2002-2005 J. Schilling */
15 * SCSI command functions for cdrecord
16 * covering MMC-4 level and above
18 * Copyright (c) 2002-2005 J. Schilling
21 * This program is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License version 2
23 * as published by the Free Software Foundation.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License along with
31 * this program; see the file COPYING. If not, write to the Free Software
32 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
52 #include <usal/usalcmd.h>
53 #include <usal/scsidefs.h>
54 #include <usal/scsireg.h>
55 #include <usal/scsitransp.h>
60 int get_supported_cdrw_media_types(SCSI *usalp);
63 * Retrieve list of supported cd-rw media types (feature 0x37)
66 get_supported_cdrw_media_types(SCSI *usalp)
70 fillbytes(cbuf, sizeof (cbuf), '\0');
73 ret = get_configuration(usalp, (char *)cbuf, sizeof (cbuf), 0x37, 2);
79 if (cbuf[3] < 12) /* Couldn't retrieve feature 0x37 */
82 return (int)(cbuf[13]);