123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- /* $OpenBSD: linux_cdrom.h,v 1.2 1997/12/10 00:01:40 provos Exp $ */
- /*
- * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Niels Provos.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- struct linux_cdrom_blk
- {
- unsigned from;
- unsigned short len;
- };
- struct linux_cdrom_msf
- {
- u_char cdmsf_min0; /* start */
- u_char cdmsf_sec0;
- u_char cdmsf_frame0;
- u_char cdmsf_min1; /* end */
- u_char cdmsf_sec1;
- u_char cdmsf_frame1;
- };
- struct linux_cdrom_ti
- {
- u_char cdti_trk0; /* start */
- u_char cdti_ind0;
- u_char cdti_trk1; /* end */
- u_char cdti_ind1;
- };
- struct linux_cdrom_tochdr
- {
- u_char cdth_trk0; /* start */
- u_char cdth_trk1; /* end */
- };
- struct linux_cdrom_msf0
- {
- u_char minute;
- u_char second;
- u_char frame;
- };
- union linux_cdrom_addr
- {
- struct linux_cdrom_msf0 msf;
- int lba;
- };
- struct linux_cdrom_tocentry
- {
- u_char cdte_track;
- u_char cdte_adr :4;
- u_char cdte_ctrl :4;
- u_char cdte_format;
- union linux_cdrom_addr cdte_addr;
- u_char cdte_datamode;
- };
- #define LINUX_CDROM_LBA 0x01
- #define LINUX_CDROM_MSF 0x02
- #define LINUX_CDROM_DATA_TRACK 0x04
- #define LINUX_CDROM_LEADOUT 0xAA
- struct linux_cdrom_subchnl
- {
- u_char cdsc_format;
- u_char cdsc_audiostatus;
- u_char cdsc_adr: 4;
- u_char cdsc_ctrl: 4;
- u_char cdsc_trk;
- u_char cdsc_ind;
- union linux_cdrom_addr cdsc_absaddr;
- union linux_cdrom_addr cdsc_reladdr;
- };
- struct linux_cdrom_mcn {
- u_char medium_catalog_number[14];
- };
- struct linux_cdrom_volctrl
- {
- u_char channel0;
- u_char channel1;
- u_char channel2;
- u_char channel3;
- };
- struct linux_cdrom_read
- {
- int cdread_lba;
- caddr_t cdread_bufaddr;
- int cdread_buflen;
- };
- #define LINUX_CDROMPAUSE 0x5301
- #define LINUX_CDROMRESUME 0x5302
- #define LINUX_CDROMPLAYMSF 0x5303
- #define LINUX_CDROMPLAYTRKIND 0x5304
- #define LINUX_CDROMREADTOCHDR 0x5305
- #define LINUX_CDROMREADTOCENTRY 0x5306
- #define LINUX_CDROMSTOP 0x5307
- #define LINUX_CDROMSTART 0x5308
- #define LINUX_CDROMEJECT 0x5309
- #define LINUX_CDROMVOLCTRL 0x530a
- #define LINUX_CDROMSUBCHNL 0x530b
- #define LINUX_CDROMREADMODE2 0x530c
- #define LINUX_CDROMREADMODE1 0x530d
- #define LINUX_CDROMREADAUDIO 0x530e
- #define LINUX_CDROMEJECT_SW 0x530f
-
- #define LINUX_CDROMMULTISESSION 0x5310
- #define LINUX_CDROM_GET_UPC 0x5311
- #define LINUX_CDROMRESET 0x5312
- #define LINUX_CDROMVOLREAD 0x5313
- #define LINUX_CDROMPLAYBLK 0x5317
|