1 /* 2 * libdi - CD Audio Device Interface Library 3 * 4 * Copyright (C) 1993-2004 Ti Kan 5 * E-mail: xmcd@amb.org 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 22 /* 23 * Chinon CDx-431 and CDx-435 support 24 * 25 * The name "Chinon" is a trademark of Chinon Industries, and is 26 * used here for identification purposes only. 27 */ 28 #ifndef __VU_CHIN_H__ 29 #define __VU_CHIN_H__ 30 31 #ifdef VENDOR_CHINON 32 33 #ifndef lint 34 static char *_vu_chin_h_ident_ = "@(#)vu_chin.h 6.18 03/12/12"; 35 #endif 36 37 38 /* Chinon vendor-unique commands */ 39 #define OP_VC_EJECT 0xc0 /* Chinon eject disc */ 40 #define OP_VC_STOP 0xc6 /* Chinon audio stop */ 41 42 43 /* Chinon audio status codes */ 44 #define CAUD_INVALID 0x00 45 #define CAUD_PLAYING 0x11 46 #define CAUD_PAUSED 0x15 47 48 49 /* Public function prototypes */ 50 extern bool_t chin_playaudio(byte_t, sword32_t, sword32_t, msf_t *, msf_t *, 51 byte_t, byte_t); 52 extern bool_t chin_start_stop(bool_t, bool_t); 53 extern bool_t chin_get_playstatus(cdstat_t *); 54 extern bool_t chin_get_toc(curstat_t *); 55 extern bool_t chin_eject(void); 56 extern void chin_init(void); 57 58 #else 59 60 #define chin_init NULL 61 62 #endif /* VENDOR_CHINON */ 63 64 #endif /* __VU_CHIN_H__ */ 65 66