2008-07-28 10:29:05 +04:00
|
|
|
;flags------------------------------------------------------------
|
2008-09-10 18:00:21 +04:00
|
|
|
DEBUG equ 1 ;show messages at debug board
|
|
|
|
use_cli_sti equ 1 ;driver become more stable (theoretically)
|
2008-07-28 10:29:05 +04:00
|
|
|
|
|
|
|
;constants--------------------------------------------------------
|
|
|
|
API_VERSION equ 0 ;debug
|
|
|
|
|
2008-08-20 22:37:48 +04:00
|
|
|
OS_BASE equ 0xE0000000
|
2009-01-17 19:04:50 +03:00
|
|
|
;PROC_BASE equ (OS_BASE+0x080000)
|
|
|
|
SB16Buffer equ (OS_BASE+0x10000)
|
2012-09-05 02:16:57 +04:00
|
|
|
DMAPage equ ((SB16Buffer-OS_BASE) shr 16)
|
2008-07-28 10:29:05 +04:00
|
|
|
|
|
|
|
SB16Buffer0 equ SB16Buffer
|
|
|
|
SB16Buffer1 equ (SB16Buffer+16384)
|
|
|
|
SB16Buffer2 equ (SB16Buffer+(2*16384))
|
|
|
|
SB16Buffer3 equ (SB16Buffer+(3*16384))
|
|
|
|
|
2008-09-10 18:00:21 +04:00
|
|
|
sb_irq_num equ 5 ;default values for SB16, may be overrided by autodetect
|
|
|
|
sb_dma_num equ 5 ;default values for SB16, may be overrided by autodetect
|
|
|
|
|
|
|
|
small_buffer equ 32768
|
|
|
|
full_buffer equ 65536
|
2012-09-05 02:16:57 +04:00
|
|
|
sb_buffer_size equ small_buffer ; FIX ring buffer overlapped events issue; full_buffer
|
2008-09-10 18:00:21 +04:00
|
|
|
|
|
|
|
__supported_buffer_sizes fix <small_buffer, full_buffer>
|
2008-07-28 10:29:05 +04:00
|
|
|
|
2008-09-10 18:00:21 +04:00
|
|
|
if ~(sb_buffer_size in __supported_buffer_sizes)
|
|
|
|
display 13,10,'unsupported buffer size was selected, check config.inc',13,10
|
|
|
|
stop
|
|
|
|
end if
|
|
|
|
|
|
|
|
sb_out_rate equ 48000
|
|
|
|
;time constant for cards older than SB16
|
2008-07-28 10:29:05 +04:00
|
|
|
sb_tc equ (256-(1000000/(sb_out_rate*2)))
|
|
|
|
|
|
|
|
SRV_GETVERSION equ 0
|
|
|
|
DEV_PLAY equ 1
|
|
|
|
DEV_STOP equ 2
|
|
|
|
DEV_CALLBACK equ 3
|
|
|
|
DEV_SET_BUFF equ 4
|
|
|
|
DEV_NOTIFY equ 5
|
|
|
|
DEV_SET_MASTERVOL equ 6
|
|
|
|
DEV_GET_MASTERVOL equ 7
|
|
|
|
DEV_GET_INFO equ 8
|
|
|
|
|
|
|
|
DRV_ENTRY equ 1
|
|
|
|
DRV_EXIT equ -1
|
|
|
|
|