2
* Purpose: Definitions for the Vortex driver
6
* This file is part of Open Sound System.
8
* Copyright (C) 4Front Technologies 1996-2008.
10
* This this source file is released under GPL v2 license (no other versions).
11
* See the COPYING file included in the main directory of this source
12
* distribution for the license terms and conditions.
15
#include "oss_vortex_cfg.h"
16
#include "midi_core.h"
25
int speed, bits, channels;
34
typedef struct vortex_devc
37
unsigned int bar0addr;
38
unsigned int *bar0virt;
39
volatile unsigned int *dwRegister;
40
unsigned int bar0_size;
43
int id; /* Vortex1 or Vortex2 */
45
oss_mutex_t low_mutex;
48
oss_native_word global_base;
49
oss_native_word dma_base;
50
oss_native_word midi_base;
51
oss_native_word fifo_base;
52
oss_native_word adbarb_block_base;
53
oss_native_word serial_block_base;
54
oss_native_word parallel_base;
55
oss_native_word src_base;
57
/* Mixer parameters */
61
/* Audio parameters */
62
vortex_portc portc[MAX_PORTC];
66
oss_native_word sr_active;
67
unsigned int tail_index[32];
68
unsigned int dst_index[32];
69
unsigned char sr_list[256];
70
unsigned int dst_routed[256];
75
oss_midi_inputbyte_t midi_input_intr;
79
#define READL(a) (devc->dwRegister[a>>2])
80
#define WRITEL(a, d) (devc->dwRegister[a>>2]=d)