patch-1.3.9 linux/include/linux/aztcd.h
Next file: linux/include/linux/cdrom.h
Previous file: linux/include/asm-i386/socket.h
Back to the patch index
Back to the overall index
- Lines: 64
- Date:
Mon Jul 10 08:00:56 1995
- Orig file:
v1.3.8/linux/include/linux/aztcd.h
- Orig date:
Sun Mar 26 11:56:23 1995
diff -u --recursive --new-file v1.3.8/linux/include/linux/aztcd.h linux/include/linux/aztcd.h
@@ -1,4 +1,4 @@
-/* $Id: aztcd.h,v 1.0 1995/03/25 08:27:19 root Exp $
+/* $Id: aztcd.h,v 1.30 1995/07/04 08:28:17 root Exp $
* Definitions for a AztechCD268 CD-ROM interface
* Copyright (C) 1994, 1995 Werner Zimmermann
*
@@ -22,12 +22,29 @@
* October 1994 Email: zimmerma@rz.fht-esslingen.de
*/
-/* *** change this to set the I/O port address */
+/* *** change this to set the I/O port address of your CD-ROM drive*/
#define AZT_BASE_ADDR 0x320
-/* Comment this out to prevent tray from locking */
+/* Uncomment this, if your CDROM is connected to a Soundwave32-soundcard
+ and configure AZT_BASE_ADDR and AZT_SW32_BASE_ADDR */
+/*#define AZT_SW32 1
+*/
+
+#ifdef AZT_SW32
+#define AZT_SW32_BASE_ADDR 0x220 /*I/O port base adress of your soundcard*/
+#endif
+
+/* Set this to 1, if you want your tray to be locked, set to 0 to prevent tray
+ from locking */
#define AZT_ALLOW_TRAY_LOCK 1
+/*Set this to 1 to allow auto-eject when unmounting a disk, set to 0, if you
+ don't want the auto-eject feature*/
+#define AZT_AUTO_EJECT 0
+
+/*---------------------------------------------------------------------------*/
+/*------------nothing to be configured below this line-----------------------*/
+
/* use incompatible ioctls for reading in raw and cooked mode */
#define AZT_PRIVATE_IOCTLS
@@ -45,6 +62,11 @@
#define DATA_PORT azt_port
#define STATUS_PORT azt_port+1
#define MODE_PORT azt_port+2
+#ifdef AZT_SW32
+ #define AZT_SW32_INIT (unsigned int) (0xFF00 & (AZT_BASE_ADDR*16))
+ #define AZT_SW32_CONFIG_REG AZT_SW32_BASE_ADDR+0x16 /*Soundwave32 Config. Register*/
+ #define AZT_SW32_ID_REG AZT_SW32_BASE_ADDR+0x04 /*Soundwave32 ID Version Register*/
+#endif
/* status bits */
#define AST_CMD_CHECK 0x80 /* command error */
@@ -83,13 +105,6 @@
#define ACMD_SET_VOLUME 0x93 /* set audio level */
#define ACMD_GET_VERSION 0xA0 /* get firmware version */
#define ACMD_SET_MODE 0xA1 /* set drive mode */
-
-#define SET_TIMER(func, jifs) \
- delay_timer.expires = jifs; \
- delay_timer.function = (void *) func; \
- add_timer(&delay_timer);
-
-#define CLEAR_TIMER del_timer(&delay_timer)
#define MAX_TRACKS 104
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this