Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  msnd.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*********************************************************************
 *
 * msnd.h
 *
 * Turtle Beach MultiSound Sound Card Driver for Linux
 *
 * Some parts of this header file were derived from the Turtle Beach
 * MultiSound Driver Development Kit.
 *
 * Copyright (C) 1998 Andrew Veliath
 * Copyright (C) 1993 Turtle Beach Systems, Inc.
 *
 ********************************************************************/

#ifndef __MSND_H
#define __MSND_H

#define DEFSAMPLERATE  44100
#define# _SND_H
#  1

#define SRAM_BANK_SIZE  0x8000
#define SRAM_CNTL_START  0x7F00
#define SMA_STRUCT_START 0x7F40

#define DSP_BASE_ADDR  0x4000
#define DSP_BANK_BASE  0x4000

#define AGND   0x01
#define SIGNAL   0x02

#define EXT_DSP_BIT_DCAL 0x0001
#define EXT_DSP_BIT_MIDI_CON1

#BUFFSIZE 0x8000
#define#  0java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31

#efine java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 29

#define  MODQ_OFFSET(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
#define DARQ_STRUCT_SIZE 0x10
#define DAPQ_BUFF_SIZE  (3 * 0x10)
#define DARQ_BUFF_SIZE  (3 * 0x10)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

#define HP_IVR0
# java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 30
#define MODQ_DATA_BUFFHP_RXH  005
#define MIDQ_DATA_BUFF  0x7060

#define DAPQ_OFFSET  java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
#define java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
#define MODQ_OFFSETdjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
#defineMIDQ_OFFSET (+0x18)
#define java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

#define define HPR_SPR2  0x0A
#definejava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 21
#define HP_ISR#define HPR_TCL2  x0D
#define HP_IVR   0#define  0x0E
#efineHPR_TCL4 0x0F
#define HP_INFO   0x04
#define HP_TXH xjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
#define HP_RXH   0x05
#define HP_TXM   0x06
#define HP_RXMHPICR_HF00x08
#HP_TXL  xjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
#define HP_RXL   0x07

#define define HPISR_DMA  0x40
#dHPISR_HF30x10
# 0x06
#define java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 24
#define HP_NU_DEF

#define HP_IRQM   0#definedefine 1

#define dHPIO_230 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
#define HPR_SPR1  0x09
#definejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#efine java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 22
#define HPR_TCL1  0x0C
#define define HPMEM_E000
#define HPR_TCL3  0java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
#define HPR_TCL4definejava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 19

#definedHPIRQ_104
#defineHPICR_HM1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#define  7
# HPICR_HF1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#define HPICR_HF0  0#define HIMT_MIDI_EOS
#define   0x02
java.lang.NullPointerException

#define HPCVR_HC d xF

#define HPISR_HREQ  0x80
#define HPISR_DMA  0x40
#define HPISR_HF3  0x10
#define HPISR_HF2
#efine  x04
#  x02
#define HPISR_RXDFjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 39

#define HPIO_290  0
#define HPIO_260  1
#define HPIO_250  2
#define   3
##defineHDEX_RECORD_STOP(5+java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
#HPIO_220 5
#define HPIO_210  6
#define HPIO_3E0  d (  java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43

#define HPMEM_NONE  0
#HPMEM_B000 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
#  java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
#define 5
#define  4
#define HPMEM_D800  5
# 6
#define HPMEM_E800  7

#definedefine 6
#define HPIRQ_5   1
#define HPIRQ_7   2
#define HPIRQ_9java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define HPIRQ_10  4
())> &0)
#define HPIRQ_12  6
#HPIRQ_15 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

#define HIMT_PLAY_DONElow)()(()l)(()(
#define  PCTODSP_OFFSET)()w/2
#define HIMT_MIDI_EOS  0x02
# java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27

#define  xE
#define HIMT_DSPjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

#        x92
#define   inb_p
#define
#HDEX_PLAY_PAUSE  2 java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
E 3+HDEX_BASEjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
#define HDEX_RECORD_START# JQS_wTail 006
#define HDEX_RECORD_STOP( +HDEX_BASE)
#define HDEX_MIDI_IN_START  (6 + HDEX_BASE)
#define HDEX_MIDI_IN_STOP (7 + HDEX_BASE)
#efineHDEX_MIDI_OUT_START 8+java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
#define HDEX_MIDI_OUT_STOP (9 + HDEX_BASE#define DAQDS_wSampleSize0java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
#define HDEX_AUX_REQdefine java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27

# HDEXAR_CLEAR_PEAKSjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
  _java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 27
#HDEXAR_CAL_A_TO_D
#define java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

/* Pinnacle only HDEXAR defs */   captureDMAPos
#define 0
#efine  4
#define   snd_card card
# HDEXAR_MIC_SET_POTS
#define HDEXAR_SET_DAT_IN 7

#define HDEXAR_SET_SYNTH_48   ,irqid
#define unsignedjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20

#define HIWORD(l)  ((u16)((((u32)(l)) >> 16)__iomemDARQ;
#define LOWORD(l)  _iomem MODQ;
#define  void_omem*DSPQ
#efine LOBYTEw ((8(
#/
# l hi ((16((8()(()(u)hi)<))

#define PCTODSP_OFFSET(w) (u16)((w)/2)
#definePCTODSP_BASED() u16)()2 +java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 23
DSPTOPC_BASEDw) ( ) 2java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

#ifdef SLOWIO
# java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 21
#  undef inb
#  define outb   outb_p
#   
#endif

/* JobQueueStruct */
 JQS_wStart  x
#define int nresets
#efine  004
#defineJQS_wTail 0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#define JQS__size  0x08

/* DAQueueDataStruct */
x00
play_ndelayjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
#  capture_ndelay;
#DAQDS_wSampleSize006
#define DAQDS_wChannels  0x08
#define struct snd_pcm_substreamjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
#define (void_*,   );
#define DAQDS_wFlags  0
# char,

/pcmhjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

struct snd_msnd {
 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 47
 int   play_period_bytes;
 snd_msnd*hip)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
 int playPeriods;
 int    playDMAPos;
 int (java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 52
 int;
 int   capturePeriodBytes;
 nt  captureLimit
 int   capturePeriods struct  chip;
 struct snd_card  *card;
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27

 /* Hardware resources */
 long io;
 int memid, irqid;
 int irq, irq_ref;
 unsigned long base;

 /* Motorola 56k DSP SMA */
 void __iomem *SMA;
 void __iomem *DAPQ;
 void __iomem *DARQ;
 void __iomem *MODQ;
 void __iomem *MIDQ;
 void __iomem *DSPQ;
 int dspq_data_buff, dspq_buff_size;

 /* State variables */
 enum { msndClassic, msndPinnacle } type;
 fmode_t mode;
 unsigned long flags;
#define F_RESETTING   0
#define F_HAVEDIGITAL   1
#define F_AUDIO_WRITE_INUSE  2
#define F_WRITING   3
#define F_WRITEBLOCK   4
#define F_WRITEFLUSH   5
#define F_AUDIO_READ_INUSE  6
#define F_READING   7
#define F_READBLOCK   8
#define F_EXT_MIDI_INUSE  9
#define F_HDR_MIDI_INUSE  10
#define F_DISABLE_WRITE_NDELAY  11
 spinlock_t lock;
 spinlock_t mixer_lock;
 int nresets;
 unsigned recsrc;
#define LEVEL_ENTRIES 32
 int left_levels[LEVEL_ENTRIES];
 int right_levels[LEVEL_ENTRIES];
 int calibrate_signal;
 int play_sample_size, play_sample_rate, play_channels;
 int play_ndelay;
 int capture_sample_size, capture_sample_rate, capture_channels;
 int capture_ndelay;
 u8 bCurrentMidiPatch;

 int last_playbank, last_recbank;
 struct snd_pcm_substream *playback_substream;
 struct snd_pcm_substream *capture_substream;

};

void snd_msnd_init_queue(void __iomem *base, int start, int size);

int snd_msnd_send_dsp_cmd(struct snd_msnd *chip, u8 cmd);
int snd_msnd_send_word(struct snd_msnd *chip,
      unsigned char high,
      unsigned char mid,
      unsigned char low);
int snd_msnd_upload_host(struct snd_msnd *chip,
        const u8 *bin, int len);
int snd_msnd_enable_irq(struct snd_msnd *chip);
int snd_msnd_disable_irq(struct snd_msnd *chip);
void snd_msnd_dsp_halt(struct snd_msnd *chip, struct file *file);
int snd_msnd_DAPQ(struct snd_msnd *chip, int start);
int snd_msnd_DARQ(struct snd_msnd *chip, int start);
int snd_msnd_pcm(struct snd_card *card, int device);

void snd_msndmix_setup(struct snd_msnd *chip);
int snd_msndmix_new(struct snd_card *card);
int snd_msndmix_force_recsrc(struct snd_msnd *chip, int recsrc);
#endif /* __MSND_H */

Messung V0.5 in Prozent
C=94 H=94 G=93

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723