1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
/*
* libdi - CD Audio Player Device Interface Library
*
* Copyright (C) 1993-1999 Ti Kan
* E-mail: ti@amb.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* Panasonic/Matsushita vendor-qunie support
*
* The name "Panasonic" is a trademark of Matsushita Electric
* Corporation, and is used here for identification purposes only.
*/
#ifndef __VU_PANA_H__
#define __VU_PANA_H__
#ifdef VENDOR_PANASONIC
#ifndef LINT
static char *_vu_pana_h_ident_ = "@(#)vu_pana.h 6.11 99/02/15";
#endif
/* Panasonic/Matsushita vendor-unique commands */
#define OP_VM_RDSUBQ 0xc2 /* Read subchannel */
#define OP_VM_RDTOC 0xc3 /* Read TOC */
#define OP_VM_PLAY 0xc5 /* Play audio */
#define OP_VM_PLAYMSF 0xc7 /* Play audio MSF */
#define OP_VM_PAUSE 0xcb /* Pause/Resume */
/* Return data lengths */
#define SZ_VM_RDSUBQ 16 /* Read subchannel data size */
#define SZ_VM_RDTOC 804 /* Read TOC data size */
#define SZ_VM_TOCHDR 4 /* Read TOC header data size */
#define SZ_VM_TOCENT 8 /* Read TOC per-track entry size */
#define SZ_VM_AUDCTL 20 /* Audio control header+page size */
/* Mode Sense/Mode Select page code */
#define PG_VM_AUDCTL 0x2e /* Audio control page */
/* Public function prototypes */
extern bool_t pana_playaudio(byte_t, word32_t, word32_t, msf_t *, msf_t *,
byte_t, byte_t);
extern bool_t pana_pause_resume(bool_t);
extern bool_t pana_get_playstatus(curstat_t *, byte_t *);
extern bool_t pana_get_toc(curstat_t *);
extern int pana_volume(int, curstat_t *, bool_t);
extern bool_t pana_route(curstat_t *);
extern void pana_init(void);
#else
#define pana_init NULL
#endif /* VENDOR_PANASONIC */
#endif /* __VU_PANA_H__ */
|