summaryrefslogtreecommitdiff
path: root/chips/audio_config.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-20 20:44:33 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:34 +0200
commit2486c56afd5ac4392aa95f0e478978331d1c15d6 (patch)
treee3c5e8c5252d5e110208d7fc6dbfad1c3b1e802f /chips/audio_config.h
parent2a50c925882fe2d6535f130401eb6d4a4feb3e93 (diff)
2006-02-20 Thomas Schwinge <tschwinge@gnu.org>
Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida <glguida@gmail.com>. * chips/atm.c: Remove file. * chips/atmreg.h: Likewise. * chips/audio.c: Likewise. * chips/audio_config.h: Likewise. * chips/audio_defs.h: Likewise. * chips/bt431.c: Likewise. * chips/bt431.h: Likewise. * chips/bt455.c: Likewise. * chips/bt455.h: Likewise. * chips/bt459.c: Likewise. * chips/bt459.h: Likewise. * chips/bt478.c: Likewise. * chips/bt478.h: Likewise. * chips/build_font.c: Likewise. * chips/cfb_hdw.c: Likewise. * chips/cfb_misc.c: Likewise. * chips/dc503.c: Likewise. * chips/dc503.h: Likewise. * chips/dtop.h: Likewise. * chips/dtop_handlers.c: Likewise. * chips/dtop_hdw.c: Likewise. * chips/dz_7085.h: Likewise. * chips/dz_defs.h: Likewise. * chips/dz_hdw.c: Likewise. * chips/eccreg.h: Likewise. * chips/fb_hdw.c: Likewise. * chips/fb_misc.c: Likewise. * chips/fdc_82077.h: Likewise. * chips/fdc_82077_hdw.c: Likewise. * chips/frc.c: Likewise. * chips/ims332.c: Likewise. * chips/ims332.h: Likewise. * chips/isdn_79c30.h: Likewise. * chips/isdn_79c30_hdw.c: Likewise. * chips/kernel_font.c: Likewise. * chips/kernel_font.data: Likewise. * chips/lance.c: Likewise. * chips/lance.h: Likewise. * chips/lance_mapped.c: Likewise. * chips/lk201.c: Likewise. * chips/lk201.h: Likewise. * chips/mc_clock.c: Likewise. * chips/mc_clock.h: Likewise. * chips/mouse.c: Likewise. * chips/nc.c: Likewise. * chips/nc.h: Likewise. * chips/nw.h: Likewise. * chips/nw_mk.c: Likewise. * chips/nw_mk.h: Likewise. * chips/pm_defs.h: Likewise. * chips/pm_hdw.c: Likewise. * chips/pm_misc.c: Likewise. * chips/scc_8530.h: Likewise. * chips/scc_8530_hdw.c: Likewise. * chips/screen.c: Likewise. * chips/screen.h: Likewise. * chips/screen_defs.h: Likewise. * chips/screen_switch.c: Likewise. * chips/screen_switch.h: Likewise. * chips/serial_console.c: Likewise. * chips/serial_defs.h: Likewise. * chips/sfb_hdw.c: Likewise. * chips/sfb_misc.c: Likewise. * chips/spans.c: Likewise. * chips/spans.h: Likewise. * chips/tca100.c: Likewise. * chips/tca100.h: Likewise. * chips/tca100_if.c: Likewise. * chips/tca100_if.h: Likewise. * chips/vs42x_rb.h: Likewise. * chips/xcfb_hdw.c: Likewise. * chips/xcfb_misc.c: Likewise. * chips/xcfb_monitor.h: Likewise. * Makefile.in (chips-files): Only contain `busses.c' and `busses.h'. * kern/syscall_sw.c: Don't include <chips/nw_mk.h> anymore.
Diffstat (limited to 'chips/audio_config.h')
-rw-r--r--chips/audio_config.h130
1 files changed, 0 insertions, 130 deletions
diff --git a/chips/audio_config.h b/chips/audio_config.h
deleted file mode 100644
index bd2c0a0..0000000
--- a/chips/audio_config.h
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1992 Carnegie Mellon University
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-/*
- * Here platform specific code to define sample_t & co
- * [to cope with weird DMA engines], and other customs
- */
-#ifdef FLAMINGO
-#define splaudio splbio
-#define sample_t unsigned char /* later */
-#define samples_to_chars bcopy
-#define chars_to_samples bcopy
-/* Sparse space ! */
-typedef struct {
- volatile unsigned long cr; /* command register (wo) */
-/*#define ir cr /* interrupt register (ro) */
- volatile unsigned long dr; /* data register (rw) */
- volatile unsigned long dsr1; /* D-channel status register 1 (ro) */
- volatile unsigned long der; /* D-channel error register (ro) */
- volatile unsigned long dctb; /* D-channel transmit register (wo) */
-/*#define dcrb dctb /* D-channel receive register (ro) */
- volatile unsigned long bbtb; /* Bb-channel transmit register (wo) */
-/*#define bbrb bbtb /* Bb-channel receive register (ro) */
- volatile unsigned long bctb; /* Bc-channel transmit register (wo)*/
-/*#define bcrb bctb /* Bc-channel receive register (ro) */
- volatile unsigned long dsr2; /* D-channel status register 2 (ro) */
-} amd79c30_padded_regs_t;
-
-/* give the chip 400ns in between accesses */
-#define read_reg(r,v) \
- { (v) = ((r) >> 8) & 0xff; delay(1); }
-
-#define write_reg(r,v) \
- { (r) = (((v) & 0xff) << 8) | \
- 0x200000000L; /*bytemask*/ \
- delay(1); wbflush(); \
- }
-
-/* Write 16 bits of data from variable v to the data port of the audio chip */
-#define WAMD16(regs, v) \
- { write_reg((regs)->dr,v); \
- write_reg((regs)->dr,v>>8); }
-
-#define mb() wbflush()
-
-#endif /* FLAMINGO */
-
-
-#ifdef MAXINE
-#define splaudio splhigh
-typedef struct {
- volatile unsigned char cr; /* command register (wo) */
-/*#define ir cr /* interrupt register (ro) */
- char pad0[63];
- volatile unsigned char dr; /* data register (rw) */
- char pad1[63];
- volatile unsigned char dsr1; /* D-channel status register 1 (ro) */
- char pad2[63];
- volatile unsigned char der; /* D-channel error register (ro) */
- char pad3[63];
- volatile unsigned char dctb; /* D-channel transmit register (wo) */
-/*#define dcrb dctb /* D-channel receive register (ro) */
- char pad4[63];
- volatile unsigned char bbtb; /* Bb-channel transmit register (wo) */
-/*#define bbrb bbtb /* Bb-channel receive register (ro) */
- char pad5[63];
- volatile unsigned char bctb; /* Bc-channel transmit register (wo)*/
-/*#define bcrb bctb /* Bc-channel receive register (ro) */
- char pad6[63];
- volatile unsigned char dsr2; /* D-channel status register 2 (ro) */
- char pad7[63];
-} amd79c30_padded_regs_t;
-
-/* give the chip 400ns in between accesses */
-#define read_reg(r,v) \
- { (v) = (r); delay(1); }
-
-#define write_reg(r,v) \
- { (r) = (v); delay(1); wbflush(); }
-
-/* Write 16 bits of data from variable v to the data port of the audio chip */
-#define WAMD16(regs, v) \
- { write_reg((regs)->dr,v); \
- write_reg((regs)->dr,v>>8); }
-
-#define mb()
-
-#endif /* MAXINE */
-
-
-#ifndef sample_t
-#define sample_t unsigned char
-#define samples_to_chars bcopy
-#define chars_to_samples bcopy
-#endif
-
-/*
- * More architecture-specific customizations
- */
-#ifdef alpha
-#define sample_rpt_int(x) (((x)<<24)|((x)<<16)|((x)<<8)|((x)<<0))
-#define sample_rpt_long(x) ((sample_rpt_int(x)<<32)|sample_rpt_int(x))
-#endif
-
-#ifndef sample_rpt_long
-#define sample_rpt_long(x) (((x)<<24)|((x)<<16)|((x)<<8)|((x)<<0))
-#endif
-