diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-05-07 03:14:42 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-05-07 03:14:42 +0000 |
commit | dca50cc150304946afb790f00ead222736146e3e (patch) | |
tree | bdab0fb75bde086403c66b8769c0333262cb0635 /drivers | |
parent | dcec8a13bf565e47942a1751a9cec21bec5648fe (diff) |
Toxic waste.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/hisax/avm_a1.h | 25 | ||||
-rw-r--r-- | drivers/isdn/hisax/buffers.c | 326 | ||||
-rw-r--r-- | drivers/isdn/hisax/elsa.h | 90 | ||||
-rw-r--r-- | drivers/isdn/hisax/ix1_micro.h | 50 | ||||
-rw-r--r-- | drivers/isdn/hisax/siemens.h | 71 | ||||
-rw-r--r-- | drivers/isdn/hisax/teles0.h | 21 | ||||
-rw-r--r-- | drivers/isdn/hisax/teles3.h | 21 | ||||
-rw-r--r-- | drivers/isdn/isdn_syms.c | 54 | ||||
-rw-r--r-- | drivers/macintosh/mackeymap.c | 262 | ||||
-rw-r--r-- | drivers/sound/README.C931 | 62 |
10 files changed, 0 insertions, 982 deletions
diff --git a/drivers/isdn/hisax/avm_a1.h b/drivers/isdn/hisax/avm_a1.h deleted file mode 100644 index 85f44675e..000000000 --- a/drivers/isdn/hisax/avm_a1.h +++ /dev/null @@ -1,25 +0,0 @@ -/* $Id: avm_a1.h,v 1.2 1997/01/21 22:14:36 keil Exp $ - * - * avm_a1.h Header for AVM A1 (Fritz) ISDN card - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * - * - * $Log: avm_a1.h,v $ - * Revision 1.2 1997/01/21 22:14:36 keil - * cleanups - * - * Revision 1.1 1996/10/12 21:42:40 keil - * Initial revision - * - * -*/ - -#define AVM_A1_STAT_ISAC 0x01 -#define AVM_A1_STAT_HSCX 0x02 -#define AVM_A1_STAT_TIMER 0x04 - -extern void avm_a1_report(struct IsdnCardState *sp); -extern void release_io_avm_a1(struct IsdnCard *card); -extern int setup_avm_a1(struct IsdnCard *card); -extern int initavm_a1(struct IsdnCardState *sp); diff --git a/drivers/isdn/hisax/buffers.c b/drivers/isdn/hisax/buffers.c deleted file mode 100644 index 621385464..000000000 --- a/drivers/isdn/hisax/buffers.c +++ /dev/null @@ -1,326 +0,0 @@ -/* $Id: buffers.c,v 1.1 1996/10/13 20:04:49 keil Exp $ - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * based on the teles driver from Jan den Ouden - * - * Thanks to Jan den Ouden - * Fritz Elfert - * - * $Log: buffers.c,v $ - * Revision 1.1 1996/10/13 20:04:49 keil - * Initial revision - * - * - */ -#define __NO_VERSION__ -#include "hisax.h" -#include <linux/mm.h> -#include <linux/malloc.h> - -#undef SMALLOC_DEBUG - -void -BufPoolInit(struct BufPool *bp, int order, int bpps, - int maxpages) -{ -#ifdef DEBUG_MAGIC - generateerror - bp->magic = 010167; -#endif - -#if 0 - printk(KERN_DEBUG "BufPoolInit bp %x\n", bp); -#endif - - bp->freelist = NULL; - bp->pageslist = NULL; - bp->pageorder = order; - bp->pagescount = 0; - bp->bpps = bpps; - bp->bufsize = BUFFER_SIZE(order, bpps); - bp->maxpages = maxpages; -} - -int -BufPoolAdd(struct BufPool *bp, int priority) -{ - struct Pages *ptr; - byte *bptr; - int i; - struct BufHeader *bh = NULL, *prev, *first; - -#if 0 - printk(KERN_DEBUG "BufPoolAdd bp %x\n", bp); -#endif - - ptr = (struct Pages *) __get_free_pages(priority, bp->pageorder); - if (!ptr) { - printk(KERN_WARNING "BufPoolAdd couldn't get pages!\n"); - return (-1); - } -#if 0 - printk(KERN_DEBUG "Order %d pages allocated at %x\n", bp->pageorder, ptr); -#endif - - ptr->next = bp->pageslist; - bp->pageslist = ptr; - bp->pagescount++; - - bptr = (byte *) ptr + sizeof(struct Pages *); - - i = bp->bpps; - first = (struct BufHeader *) bptr; - prev = NULL; - while (i--) { - bh = (struct BufHeader *) bptr; -#ifdef DEBUG_MAGIC - bh->magic = 020167; -#endif - bh->next = prev; - prev = bh; - bh->bp = bp; - bptr += PART_SIZE(bp->pageorder, bp->bpps); - } - - first->next = bp->freelist; - bp->freelist = bh; - return (0); -} - -void -BufPoolFree(struct BufPool *bp) -{ - struct Pages *p; - -#if 0 - printk(KERN_DEBUG "BufPoolFree bp %x\n", bp); -#endif - - while (bp->pagescount--) { - p = bp->pageslist->next; - free_pages((unsigned long) bp->pageslist, bp->pageorder); -#if 0 - printk(KERN_DEBUG "Free pages %x order %d\n", bp->pageslist, bp->pageorder); -#endif - bp->pageslist = p; - } -} - -int -BufPoolGet(struct BufHeader **bh, - struct BufPool *bp, int priority, void *heldby, int where) -{ - long flags; - int i; - -#ifdef DEBUG_MAGIC - if (bp->magic != 010167) { - printk(KERN_DEBUG "BufPoolGet: not a BufHeader\n"); - return (-1); - } -#endif - - save_flags(flags); - cli(); - i = 0; - while (!0) { - if (bp->freelist) { - *bh = bp->freelist; - bp->freelist = bp->freelist->next; - (*bh)->heldby = heldby; - (*bh)->where = where; - restore_flags(flags); - return (0); - } - if ((i == 0) && (bp->pagescount < bp->maxpages)) { - if (BufPoolAdd(bp, priority)) { - restore_flags(flags); - return -1; - } - i++; - } else { - *bh = NULL; - restore_flags(flags); - return (-1); - } - } - -} - -void -BufPoolRelease(struct BufHeader *bh) -{ - struct BufPool *bp; - long flags; - -#ifdef DEBUG_MAGIC - if (bh->magic != 020167) { - printk(KERN_DEBUG "BufPoolRelease: not a BufHeader\n"); - printk(KERN_DEBUG "called from %x\n", __builtin_return_address(0)); - return; - } -#endif - - bp = bh->bp; - -#ifdef DEBUG_MAGIC - if (bp->magic != 010167) { - printk(KERN_DEBUG "BufPoolRelease: not a BufPool\n"); - return; - } -#endif - - save_flags(flags); - cli(); - bh->next = bp->freelist; - bp->freelist = bh; - restore_flags(flags); -} - -void -BufQueueLink(struct BufQueue *bq, - struct BufHeader *bh) -{ - unsigned long flags; - - save_flags(flags); - cli(); - if (!bq->head) - bq->head = bh; - if (bq->tail) - bq->tail->next = bh; - bq->tail = bh; - bh->next = NULL; - restore_flags(flags); -} - -void -BufQueueLinkFront(struct BufQueue *bq, - struct BufHeader *bh) -{ - unsigned long flags; - - save_flags(flags); - cli(); - bh->next = bq->head; - bq->head = bh; - if (!bq->tail) - bq->tail = bh; - restore_flags(flags); -} - -int -BufQueueUnlink(struct BufHeader **bh, struct BufQueue *bq) -{ - long flags; - - save_flags(flags); - cli(); - - if (bq->head) { - if (bq->tail == bq->head) - bq->tail = NULL; - *bh = bq->head; - bq->head = (*bh)->next; - restore_flags(flags); - return (0); - } else { - restore_flags(flags); - return (-1); - } -} - -void -BufQueueInit(struct BufQueue *bq) -{ -#ifdef DEBUG_MAGIC - bq->magic = 030167; -#endif - bq->head = NULL; - bq->tail = NULL; -} - -void -BufQueueRelease(struct BufQueue *bq) -{ - struct BufHeader *bh; - - while (bq->head) { - BufQueueUnlink(&bh, bq); - BufPoolRelease(bh); - } -} - -int -BufQueueLength(struct BufQueue *bq) -{ - int i = 0; - struct BufHeader *bh; - - bh = bq->head; - while (bh) { - i++; - bh = bh->next; - } - return (i); -} - -void -BufQueueDiscard(struct BufQueue *q, int pr, void *heldby, - int releasetoo) -{ - long flags; - struct BufHeader *sp; - - save_flags(flags); - cli(); - - while (!0) { - sp = q->head; - if (!sp) - break; - if ((sp->primitive == pr) && (sp->heldby == heldby)) { - q->head = sp->next; - if (q->tail == sp) - q->tail = NULL; - if (releasetoo) - BufPoolRelease(sp); - } else - break; - } - - sp = q->head; - if (sp) - while (sp->next) { - if ((sp->next->primitive == pr) && (sp->next->heldby == heldby)) { - if (q->tail == sp->next) - q->tail = sp; - if (releasetoo) - BufPoolRelease(sp->next); - sp->next = sp->next->next; - } else - sp = sp->next; - } - restore_flags(flags); -} - -void -Sfree(byte * ptr) -{ -#ifdef SMALLOC_DEBUG - printk(KERN_DEBUG "Sfree %x\n", (unsigned int)ptr); -#endif - kfree(ptr); -} - -byte * -Smalloc(int size, int pr, char *why) -{ - byte *p; - - p = (byte *) kmalloc(size, pr); -#ifdef SMALLOC_DEBUG - printk(KERN_DEBUG "Smalloc %s size %d res %x\n", why, size, (unsigned int)p); -#endif - return (p); -} diff --git a/drivers/isdn/hisax/elsa.h b/drivers/isdn/hisax/elsa.h deleted file mode 100644 index 5187e6abb..000000000 --- a/drivers/isdn/hisax/elsa.h +++ /dev/null @@ -1,90 +0,0 @@ -/* $Id: elsa.h,v 1.6 1997/03/23 21:45:48 keil Exp $ - * - * elsa.h Header for Elsa ISDN cards - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * - * Thanks to Elsa GmbH for documents and informations - * - * - * $Log: elsa.h,v $ - * Revision 1.6 1997/03/23 21:45:48 keil - * Add support for ELSA PCMCIA - * - * Revision 1.5 1997/03/04 15:58:13 keil - * ELSA PC changes, some stuff for new cards - * - * Revision 1.4 1997/01/21 22:21:05 keil - * Elsa Quickstep support - * - * Revision 1.3 1996/12/08 19:47:38 keil - * ARCOFI support - * - * Revision 1.2 1996/11/18 15:33:35 keil - * PCC and PCFPro support - * - * Revision 1.1 1996/10/13 20:03:45 keil - * Initial revision - * - * -*/ -#include <linux/config.h> - -#ifdef CONFIG_HISAX_ELSA_PCMCIA -#define CARD_ISAC 1 -#define CARD_HSCX 2 -#define CARD_ALE 4 -#else -#define CARD_ISAC 0 -#define CARD_ITAC 1 -#define CARD_HSCX 2 -#define CARD_ALE 3 -#define CARD_CONTROL 4 -#define CARD_CONFIG 5 -#define CARD_START_TIMER 6 -#define CARD_TRIG_IRQ 7 -#endif - -#define ELSA_PC 1 -#define ELSA_PCC8 2 -#define ELSA_PCC16 3 -#define ELSA_PCF 4 -#define ELSA_PCFPRO 5 -#define ELSA_PCMCIA 6 -#define ELSA_QS1000 7 -#define ELSA_QS3000 8 - -/* ITAC Registeradressen (only Microlink PC) */ -#define ITAC_SYS 0x34 -#define ITAC_ISEN 0x48 -#define ITAC_RFIE 0x4A -#define ITAC_XFIE 0x4C -#define ITAC_SCIE 0x4E -#define ITAC_STIE 0x46 - -/*** *** - *** Makros als Befehle fuer die Kartenregister *** - *** (mehrere Befehle werden durch Bit-Oderung kombiniert) *** - *** ***/ - -/* Config-Register (Read) */ -#define TIMER_RUN 0x02 /* Bit 1 des Config-Reg */ -#define TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */ -#define IRQ_INDEX 0x38 /* Bit 3,4,5 des Config-Reg */ -#define IRQ_INDEX_PCC8 0x30 /* Bit 4,5 des Config-Reg */ -#define IRQ_INDEX_PC 0x0c /* Bit 2,3 des Config-Reg */ - -/* Control-Register (Write) */ -#define LINE_LED 0x02 /* Bit 1 Gelbe LED */ -#define STAT_LED 0x08 /* Bit 3 Gruene LED */ -#define ISDN_RESET 0x20 /* Bit 5 Reset-Leitung */ -#define ENABLE_TIM_INT 0x80 /* Bit 7 Freigabe Timer Interrupt */ - -/* ALE-Register (Read) */ -#define HW_RELEASE 0x07 /* Bit 0-2 Hardwarerkennung */ -#define S0_POWER_BAD 0x08 /* Bit 3 S0-Bus Spannung fehlt */ - -extern void elsa_report(struct IsdnCardState *sp); -extern void release_io_elsa(struct IsdnCard *card); -extern int setup_elsa(struct IsdnCard *card); -extern int initelsa(struct IsdnCardState *sp); diff --git a/drivers/isdn/hisax/ix1_micro.h b/drivers/isdn/hisax/ix1_micro.h deleted file mode 100644 index b1800974b..000000000 --- a/drivers/isdn/hisax/ix1_micro.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id: ix1_micro.h,v 1.1 1997/01/27 15:42:48 keil Exp $ - - * ix1_micro.h low level stuff for ITK ix1-micro Rev.2 isdn cards - * - * derived from teles3.h from Karsten Keil - * - * Copyright (C) 1997 Klaus-Peter Nischke (ITK AG) (for the modifications - to the original file teles.c) - * - * $Log: ix1_micro.h,v $ - * Revision 1.1 1997/01/27 15:42:48 keil - * first version - * - * - */ - -/* - For the modification done by the author the following terms and conditions - apply (GNU PUBLIC LICENSE) - - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - - You may contact Klaus-Peter Nischke by email: klaus@nischke.do.eunet.de - or by conventional mail: - - Klaus-Peter Nischke - Deusener Str. 287 - 44369 Dortmund - Germany - */ - - -extern void ix1micro_report(struct IsdnCardState *sp); -extern void release_io_ix1micro(struct IsdnCard *card); -extern int setup_ix1micro(struct IsdnCard *card); -extern int initix1micro(struct IsdnCardState *sp); diff --git a/drivers/isdn/hisax/siemens.h b/drivers/isdn/hisax/siemens.h deleted file mode 100644 index f356a30a9..000000000 --- a/drivers/isdn/hisax/siemens.h +++ /dev/null @@ -1,71 +0,0 @@ -/* $Id: siemens.h,v 1.4 1997/01/21 22:24:33 keil Exp $ - * - * siemens.h ISAC and HSCX spezific Macros - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * - * - * $Log: siemens.h,v $ - * Revision 1.4 1997/01/21 22:24:33 keil - * cleanups - * - * Revision 1.3 1996/12/08 19:48:34 keil - * adding Monitor channel registers - * - * Revision 1.2 1996/10/27 22:24:00 keil - * HSCX version code removed - * - * Revision 1.1 1996/10/12 21:39:39 keil - * Initial revision - * - * -*/ - - -/* All Registers without FIFOs (original Siemens Spec - 20 hex) */ - -#define ISAC_MASK 0x0 -#define ISAC_ISTA 0x0 -#define ISAC_STAR 0x1 -#define ISAC_CMDR 0x1 -#define ISAC_EXIR 0x4 -#define ISAC_RBCH 0xa -#define ISAC_ADF2 0x19 -#define ISAC_SPCR 0x10 -#define ISAC_ADF1 0x18 -#define ISAC_CIR0 0x11 -#define ISAC_CIX0 0x11 -#define ISAC_STCR 0x17 -#define ISAC_MODE 0x2 -#define ISAC_RSTA 0x7 -#define ISAC_RBCL 0x5 -#define ISAC_TIMR 0x3 -#define ISAC_SQXR 0x1b -#define ISAC_MOSR 0x1a -#define ISAC_MOCR 0x1a -#define ISAC_MOR0 0x12 -#define ISAC_MOX0 0x12 -#define ISAC_MOR1 0x14 -#define ISAC_MOX1 0x14 - -#define HSCX_ISTA 0x0 -#define HSCX_CCR1 0xf -#define HSCX_CCR2 0xc -#define HSCX_TSAR 0x11 -#define HSCX_TSAX 0x10 -#define HSCX_XCCR 0x12 -#define HSCX_RCCR 0x13 -#define HSCX_MODE 0x2 -#define HSCX_CMDR 0x1 -#define HSCX_EXIR 0x4 -#define HSCX_XAD1 0x4 -#define HSCX_XAD2 0x5 -#define HSCX_RAH2 0x7 -#define HSCX_RSTA 0x7 -#define HSCX_TIMR 0x3 -#define HSCX_STAR 0x1 -#define HSCX_RBCL 0x5 -#define HSCX_XBCH 0xd -#define HSCX_VSTR 0xe -#define HSCX_RLCR 0xe -#define HSCX_MASK 0x0 diff --git a/drivers/isdn/hisax/teles0.h b/drivers/isdn/hisax/teles0.h deleted file mode 100644 index 3baaa5cbd..000000000 --- a/drivers/isdn/hisax/teles0.h +++ /dev/null @@ -1,21 +0,0 @@ -/* $Id: teles0.h,v 1.2 1997/01/21 22:26:52 keil Exp $ - * - * teles0.h Header for Teles 16.0 8.0 & compatible - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * - * - * $Log: teles0.h,v $ - * Revision 1.2 1997/01/21 22:26:52 keil - * cleanups - * - * Revision 1.1 1996/10/13 20:03:48 keil - * Initial revision - * - * -*/ - -extern void teles0_report(struct IsdnCardState *sp); -extern void release_io_teles0(struct IsdnCard *card); -extern int setup_teles0(struct IsdnCard *card); -extern int initteles0(struct IsdnCardState *sp); diff --git a/drivers/isdn/hisax/teles3.h b/drivers/isdn/hisax/teles3.h deleted file mode 100644 index 8f8dc8081..000000000 --- a/drivers/isdn/hisax/teles3.h +++ /dev/null @@ -1,21 +0,0 @@ -/* $Id: teles3.h,v 1.2 1997/01/21 22:27:14 keil Exp $ - * - * teles3.h Header for Teles 16.3 PNP & compatible - * - * Author Karsten Keil (keil@temic-ech.spacenet.de) - * - * - * $Log: teles3.h,v $ - * Revision 1.2 1997/01/21 22:27:14 keil - * cleanups - * - * Revision 1.1 1996/10/13 20:03:49 keil - * Initial revision - * - * -*/ - -extern void teles3_report(struct IsdnCardState *sp); -extern void release_io_teles3(struct IsdnCard *card); -extern int setup_teles3(struct IsdnCard *card); -extern int initteles3(struct IsdnCardState *sp); diff --git a/drivers/isdn/isdn_syms.c b/drivers/isdn/isdn_syms.c deleted file mode 100644 index 20cf9c6f6..000000000 --- a/drivers/isdn/isdn_syms.c +++ /dev/null @@ -1,54 +0,0 @@ -/* $Id: isdn_syms.c,v 1.3 1997/02/16 01:02:47 fritz Exp $ - - * Linux ISDN subsystem, exported symbols (linklevel). - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Log: isdn_syms.c,v $ - * Revision 1.3 1997/02/16 01:02:47 fritz - * Added GPL-Header, Id and Log - * - */ -#include <linux/module.h> -#include <linux/version.h> - -#ifndef __GENKSYMS__ /* Don't want genksyms report unneeded structs */ -#include <linux/isdn.h> -#endif -#include "isdn_common.h" - -#if (LINUX_VERSION_CODE < 0x020111) -static int has_exported; - -static struct symbol_table isdn_syms = { -#include <linux/symtab_begin.h> - X(register_isdn), -#include <linux/symtab_end.h> -}; - -void -isdn_export_syms(void) -{ - if (has_exported) - return; - register_symtab(&isdn_syms); - has_exported = 1; -} - -#else - -EXPORT_SYMBOL(register_isdn); - -#endif diff --git a/drivers/macintosh/mackeymap.c b/drivers/macintosh/mackeymap.c deleted file mode 100644 index 49c0aabe5..000000000 --- a/drivers/macintosh/mackeymap.c +++ /dev/null @@ -1,262 +0,0 @@ -/* Do not edit this file! It was automatically generated by */ -/* loadkeys --mktable defkeymap.map > defkeymap.c */ - -#include <linux/types.h> -#include <linux/keyboard.h> -#include <linux/kd.h> - -u_short plain_map[NR_KEYS] = { - 0xfb61, 0xfb73, 0xfb64, 0xfb66, 0xfb68, 0xfb67, 0xfb7a, 0xfb78, - 0xfb63, 0xfb76, 0xf200, 0xfb62, 0xfb71, 0xfb77, 0xfb65, 0xfb72, - 0xfb79, 0xfb74, 0xf031, 0xf032, 0xf033, 0xf034, 0xf036, 0xf035, - 0xf03d, 0xf039, 0xf037, 0xf02d, 0xf038, 0xf030, 0xf05d, 0xfb6f, - 0xfb75, 0xf05b, 0xfb69, 0xfb70, 0xf201, 0xfb6c, 0xfb6a, 0xf027, - 0xfb6b, 0xf03b, 0xf05c, 0xf02c, 0xf02f, 0xfb6e, 0xfb6d, 0xf02e, - 0xf009, 0xf020, 0xf060, 0xf07f, 0xf200, 0xf01b, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf300, 0xf301, 0xf302, 0xf303, 0xf304, 0xf305, - 0xf306, 0xf307, 0xf200, 0xf308, 0xf309, 0xf200, 0xf200, 0xf200, - 0xf104, 0xf105, 0xf106, 0xf102, 0xf107, 0xf108, 0xf200, 0xf10a, - 0xf200, 0xf10c, 0xf200, 0xf209, 0xf200, 0xf109, 0xf200, 0xf10b, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf103, 0xf117, - 0xf101, 0xf119, 0xf100, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -static u_short shift_map[NR_KEYS] = { - 0xfb41, 0xfb53, 0xfb44, 0xfb46, 0xfb48, 0xfb47, 0xfb5a, 0xfb58, - 0xfb43, 0xfb56, 0xf200, 0xfb42, 0xfb51, 0xfb57, 0xfb45, 0xfb52, - 0xfb59, 0xfb54, 0xf021, 0xf040, 0xf023, 0xf024, 0xf05e, 0xf025, - 0xf02b, 0xf028, 0xf026, 0xf05f, 0xf02a, 0xf029, 0xf07d, 0xfb4f, - 0xfb55, 0xf07b, 0xfb49, 0xfb50, 0xf201, 0xfb4c, 0xfb4a, 0xf022, - 0xfb4b, 0xf03a, 0xf07c, 0xf03c, 0xf03f, 0xfb4e, 0xfb4d, 0xf03e, - 0xf009, 0xf020, 0xf07e, 0xf07f, 0xf200, 0xf01b, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf300, 0xf301, 0xf302, 0xf303, 0xf304, 0xf305, - 0xf306, 0xf307, 0xf200, 0xf308, 0xf309, 0xf200, 0xf200, 0xf200, - 0xf10e, 0xf10f, 0xf110, 0xf10c, 0xf111, 0xf112, 0xf200, 0xf10a, - 0xf200, 0xf10c, 0xf200, 0xf203, 0xf200, 0xf113, 0xf200, 0xf10b, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf20b, 0xf116, 0xf10d, 0xf117, - 0xf10b, 0xf20a, 0xf10a, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -static u_short altgr_map[NR_KEYS] = { - 0xf914, 0xfb73, 0xf917, 0xf919, 0xfb68, 0xfb67, 0xfb7a, 0xfb78, - 0xf916, 0xfb76, 0xf200, 0xf915, 0xfb71, 0xfb77, 0xf918, 0xfb72, - 0xfb79, 0xfb74, 0xf200, 0xf040, 0xf200, 0xf024, 0xf200, 0xf200, - 0xf200, 0xf05d, 0xf07b, 0xf05c, 0xf05b, 0xf07d, 0xf07e, 0xfb6f, - 0xfb75, 0xf200, 0xfb69, 0xfb70, 0xf201, 0xfb6c, 0xfb6a, 0xf200, - 0xfb6b, 0xf200, 0xf200, 0xf200, 0xf200, 0xfb6e, 0xfb6d, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf90a, 0xf90b, 0xf90c, 0xf90d, 0xf90e, 0xf90f, - 0xf910, 0xf911, 0xf200, 0xf912, 0xf913, 0xf200, 0xf200, 0xf200, - 0xf510, 0xf511, 0xf512, 0xf50e, 0xf513, 0xf514, 0xf200, 0xf516, - 0xf200, 0xf10c, 0xf200, 0xf202, 0xf200, 0xf515, 0xf200, 0xf517, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf50f, 0xf117, - 0xf50d, 0xf119, 0xf50c, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -static u_short ctrl_map[NR_KEYS] = { - 0xf001, 0xf013, 0xf004, 0xf006, 0xf008, 0xf007, 0xf01a, 0xf018, - 0xf003, 0xf016, 0xf200, 0xf002, 0xf011, 0xf017, 0xf005, 0xf012, - 0xf019, 0xf014, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01e, 0xf01d, - 0xf200, 0xf200, 0xf01f, 0xf01f, 0xf07f, 0xf200, 0xf01d, 0xf00f, - 0xf015, 0xf01b, 0xf009, 0xf010, 0xf201, 0xf00c, 0xf00a, 0xf007, - 0xf00b, 0xf200, 0xf01c, 0xf200, 0xf07f, 0xf00e, 0xf00d, 0xf20e, - 0xf200, 0xf000, 0xf000, 0xf008, 0xf200, 0xf200, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf300, 0xf301, 0xf302, 0xf303, 0xf304, 0xf305, - 0xf306, 0xf307, 0xf200, 0xf308, 0xf309, 0xf200, 0xf200, 0xf200, - 0xf104, 0xf105, 0xf106, 0xf102, 0xf107, 0xf108, 0xf200, 0xf10a, - 0xf200, 0xf10c, 0xf200, 0xf204, 0xf200, 0xf109, 0xf200, 0xf10b, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf103, 0xf117, - 0xf101, 0xf119, 0xf100, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -static u_short shift_ctrl_map[NR_KEYS] = { - 0xf001, 0xf013, 0xf004, 0xf006, 0xf008, 0xf007, 0xf01a, 0xf018, - 0xf003, 0xf016, 0xf200, 0xf002, 0xf011, 0xf017, 0xf005, 0xf012, - 0xf019, 0xf014, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf200, 0xf200, 0xf00f, - 0xf015, 0xf200, 0xf009, 0xf010, 0xf201, 0xf00c, 0xf00a, 0xf200, - 0xf00b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf00e, 0xf00d, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf300, 0xf301, 0xf302, 0xf303, 0xf304, 0xf305, - 0xf306, 0xf307, 0xf200, 0xf308, 0xf309, 0xf200, 0xf200, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, - 0xf200, 0xf10c, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf200, 0xf117, - 0xf200, 0xf119, 0xf200, 0xf700, 0xf701, 0xf702, 0xf200, 0xf20c, -}; - -static u_short alt_map[NR_KEYS] = { - 0xf861, 0xf873, 0xf864, 0xf866, 0xf868, 0xf867, 0xf87a, 0xf878, - 0xf863, 0xf876, 0xf200, 0xf862, 0xf871, 0xf877, 0xf865, 0xf872, - 0xf879, 0xf874, 0xf831, 0xf832, 0xf833, 0xf834, 0xf836, 0xf835, - 0xf83d, 0xf839, 0xf837, 0xf82d, 0xf838, 0xf830, 0xf85d, 0xf86f, - 0xf875, 0xf85b, 0xf869, 0xf870, 0xf80d, 0xf86c, 0xf86a, 0xf827, - 0xf86b, 0xf83b, 0xf85c, 0xf82c, 0xf82f, 0xf86e, 0xf86d, 0xf82e, - 0xf809, 0xf820, 0xf860, 0xf87f, 0xf200, 0xf81b, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf210, 0xf211, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf900, 0xf901, 0xf902, 0xf903, 0xf904, 0xf905, - 0xf906, 0xf907, 0xf200, 0xf908, 0xf909, 0xf200, 0xf200, 0xf200, - 0xf504, 0xf505, 0xf506, 0xf502, 0xf507, 0xf508, 0xf200, 0xf50a, - 0xf200, 0xf10c, 0xf200, 0xf209, 0xf200, 0xf509, 0xf200, 0xf50b, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf503, 0xf117, - 0xf501, 0xf119, 0xf500, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -static u_short ctrl_alt_map[NR_KEYS] = { - 0xf801, 0xf813, 0xf804, 0xf806, 0xf808, 0xf807, 0xf81a, 0xf818, - 0xf803, 0xf816, 0xf200, 0xf802, 0xf811, 0xf817, 0xf805, 0xf812, - 0xf819, 0xf814, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf80f, - 0xf815, 0xf200, 0xf809, 0xf810, 0xf201, 0xf80c, 0xf80a, 0xf200, - 0xf80b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf80e, 0xf80d, 0xf200, - 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf702, 0xf703, - 0xf700, 0xf207, 0xf701, 0xf601, 0xf602, 0xf600, 0xf603, 0xf200, - 0xf200, 0xf310, 0xf200, 0xf30c, 0xf200, 0xf30a, 0xf200, 0xf208, - 0xf200, 0xf200, 0xf200, 0xf30d, 0xf30e, 0xf200, 0xf30b, 0xf200, - 0xf200, 0xf200, 0xf300, 0xf301, 0xf302, 0xf303, 0xf304, 0xf305, - 0xf306, 0xf307, 0xf200, 0xf308, 0xf309, 0xf200, 0xf200, 0xf200, - 0xf504, 0xf505, 0xf506, 0xf502, 0xf507, 0xf508, 0xf200, 0xf50a, - 0xf200, 0xf10c, 0xf200, 0xf200, 0xf200, 0xf509, 0xf200, 0xf50b, - 0xf200, 0xf11d, 0xf115, 0xf114, 0xf118, 0xf116, 0xf503, 0xf117, - 0xf501, 0xf119, 0xf500, 0xf700, 0xf701, 0xf702, 0xf200, 0xf200, -}; - -ushort *key_maps[MAX_NR_KEYMAPS] = { - plain_map, shift_map, altgr_map, 0, - ctrl_map, shift_ctrl_map, 0, 0, - alt_map, 0, 0, 0, - ctrl_alt_map, 0 -}; - -unsigned int keymap_count = 7; - -/* - * Philosophy: most people do not define more strings, but they who do - * often want quite a lot of string space. So, we statically allocate - * the default and allocate dynamically in chunks of 512 bytes. - */ - -char func_buf[] = { - '\033', '[', '[', 'A', 0, - '\033', '[', '[', 'B', 0, - '\033', '[', '[', 'C', 0, - '\033', '[', '[', 'D', 0, - '\033', '[', '[', 'E', 0, - '\033', '[', '1', '7', '~', 0, - '\033', '[', '1', '8', '~', 0, - '\033', '[', '1', '9', '~', 0, - '\033', '[', '2', '0', '~', 0, - '\033', '[', '2', '1', '~', 0, - '\033', '[', '2', '3', '~', 0, - '\033', '[', '2', '4', '~', 0, - '\033', '[', '2', '5', '~', 0, - '\033', '[', '2', '6', '~', 0, - '\033', '[', '2', '8', '~', 0, - '\033', '[', '2', '9', '~', 0, - '\033', '[', '3', '1', '~', 0, - '\033', '[', '3', '2', '~', 0, - '\033', '[', '3', '3', '~', 0, - '\033', '[', '3', '4', '~', 0, - '\033', '[', '1', '~', 0, - '\033', '[', '2', '~', 0, - '\033', '[', '3', '~', 0, - '\033', '[', '4', '~', 0, - '\033', '[', '5', '~', 0, - '\033', '[', '6', '~', 0, - '\033', '[', 'M', 0, - '\033', '[', 'P', 0, -}; - -char *funcbufptr = func_buf; -int funcbufsize = sizeof(func_buf); -int funcbufleft = 0; /* space left */ - -char *func_table[MAX_NR_FUNC] = { - func_buf + 0, - func_buf + 5, - func_buf + 10, - func_buf + 15, - func_buf + 20, - func_buf + 25, - func_buf + 31, - func_buf + 37, - func_buf + 43, - func_buf + 49, - func_buf + 55, - func_buf + 61, - func_buf + 67, - func_buf + 73, - func_buf + 79, - func_buf + 85, - func_buf + 91, - func_buf + 97, - func_buf + 103, - func_buf + 109, - func_buf + 115, - func_buf + 120, - func_buf + 125, - func_buf + 130, - func_buf + 135, - func_buf + 140, - func_buf + 145, - 0, - 0, - func_buf + 149, - 0, -}; - -struct kbdiacr accent_table[MAX_DIACR] = { - {'`', 'A', '\300'}, {'`', 'a', '\340'}, - {'\'', 'A', '\301'}, {'\'', 'a', '\341'}, - {'^', 'A', '\302'}, {'^', 'a', '\342'}, - {'~', 'A', '\303'}, {'~', 'a', '\343'}, - {'"', 'A', '\304'}, {'"', 'a', '\344'}, - {'O', 'A', '\305'}, {'o', 'a', '\345'}, - {'0', 'A', '\305'}, {'0', 'a', '\345'}, - {'A', 'A', '\305'}, {'a', 'a', '\345'}, - {'A', 'E', '\306'}, {'a', 'e', '\346'}, - {',', 'C', '\307'}, {',', 'c', '\347'}, - {'`', 'E', '\310'}, {'`', 'e', '\350'}, - {'\'', 'E', '\311'}, {'\'', 'e', '\351'}, - {'^', 'E', '\312'}, {'^', 'e', '\352'}, - {'"', 'E', '\313'}, {'"', 'e', '\353'}, - {'`', 'I', '\314'}, {'`', 'i', '\354'}, - {'\'', 'I', '\315'}, {'\'', 'i', '\355'}, - {'^', 'I', '\316'}, {'^', 'i', '\356'}, - {'"', 'I', '\317'}, {'"', 'i', '\357'}, - {'-', 'D', '\320'}, {'-', 'd', '\360'}, - {'~', 'N', '\321'}, {'~', 'n', '\361'}, - {'`', 'O', '\322'}, {'`', 'o', '\362'}, - {'\'', 'O', '\323'}, {'\'', 'o', '\363'}, - {'^', 'O', '\324'}, {'^', 'o', '\364'}, - {'~', 'O', '\325'}, {'~', 'o', '\365'}, - {'"', 'O', '\326'}, {'"', 'o', '\366'}, - {'/', 'O', '\330'}, {'/', 'o', '\370'}, - {'`', 'U', '\331'}, {'`', 'u', '\371'}, - {'\'', 'U', '\332'}, {'\'', 'u', '\372'}, - {'^', 'U', '\333'}, {'^', 'u', '\373'}, - {'"', 'U', '\334'}, {'"', 'u', '\374'}, - {'\'', 'Y', '\335'}, {'\'', 'y', '\375'}, - {'T', 'H', '\336'}, {'t', 'h', '\376'}, - {'s', 's', '\337'}, {'"', 'y', '\377'}, - {'s', 'z', '\337'}, {'i', 'j', '\377'}, -}; - -unsigned int accent_table_size = 68; diff --git a/drivers/sound/README.C931 b/drivers/sound/README.C931 deleted file mode 100644 index e6f72be7e..000000000 --- a/drivers/sound/README.C931 +++ /dev/null @@ -1,62 +0,0 @@ -Support for the OPTI 82C931 chip --------------------------------- - -The opti 82C931 is supported in it's non PnP mode. -You do not need to set jumpers etc... The sound driver -will check the card status and if it is required it will -force the card into a mode that it can be programmed. - -To compile support for the OPTI 82C931 card you can use -the regular Linux config menus (ie, "make xconfig"). - -Sound card support should be enabled as a module (chose m). -Enable (m) for these items: - 100% Sound Blaster compatibles (SB16/32/64, ESS, Jazz16) support (CONFIG_SB) - Generic OPL2/OPL3 FM synthesizer support (CONFIG_ADLIB) - Microsoft Sound System support (CONFIG_MSS) - Support for OPTi MAD16 and/or Mozart based cards (CONFIG_MAD16) - FM synthesizer (YM3812/OPL-3) support (CONFIG_YM3812) - -The configuration menu may ask for addresses, irq lines or dma -channels. If the card is used as a module the module loading -options will override these values. - -Go on and compile your kernel and modules, install the modules. - -I use this configuration as part of /etc/conf.modules: - -options sb mad16=1 -options mad16 irq=10 dma=1 io=0x530 joystick=1 cdtype=0 -options opl3 io=0x388 - -After installing everything and booting to a kernel that -matches the modules you can load the sound driver: - -modprobe mad16 -modprobe opl3 - -As a result these modules are loaded: -Module Size Used by -opl3 10416 0 (unused) -mad16 6472 0 -sb 23544 0 [mad16] -uart401 5796 0 [mad16 sb] -ad1848 16532 1 [mad16] -sound 82052 0 [opl3 mad16 sb uart401 ad1848] - -Known problems: -1. The uart401 cannot be used. This is probably a problem which - was introduced when the sound driver was modularized. - Do not try to load uart401 with options (io=xxx, irq=yyy) because - it will try to initialize itself and fail. - -2. Cannot use the sound driver in Duplex mode. Until it is fixed - use only one DMA channel (0, 1 or 3) for mad16. - -3. Configuration of the cdrom adaptor on the sound card is not - tested and probably does not work. - -4. General problem with the modularized sound driver: If you - load part of the sound driver while a sound program is - running, stopping the program may result with a situation - where the "Used by" count becomes negative. |