~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/sound/emu8000_reg.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/sound/emu8000_reg.h (Version linux-6.12-rc7) and /include/sound/emu8000_reg.h (Version linux-4.18.20)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 #ifndef __SOUND_EMU8000_REG_H                       1 #ifndef __SOUND_EMU8000_REG_H
  3 #define __SOUND_EMU8000_REG_H                       2 #define __SOUND_EMU8000_REG_H
  4 /*                                                  3 /*
  5  *  Register operations for the EMU8000             4  *  Register operations for the EMU8000
  6  *                                                  5  *
  7  *  Copyright (C) 1999 Steve Ratcliffe              6  *  Copyright (C) 1999 Steve Ratcliffe
  8  *                                                  7  *
  9  *  Based on awe_wave.c by Takashi Iwai             8  *  Based on awe_wave.c by Takashi Iwai
                                                   >>   9  *
                                                   >>  10  *   This program is free software; you can redistribute it and/or modify
                                                   >>  11  *   it under the terms of the GNU General Public License as published by
                                                   >>  12  *   the Free Software Foundation; either version 2 of the License, or
                                                   >>  13  *   (at your option) any later version.
                                                   >>  14  *
                                                   >>  15  *   This program is distributed in the hope that it will be useful,
                                                   >>  16  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  17  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  18  *   GNU General Public License for more details.
                                                   >>  19  *
                                                   >>  20  *   You should have received a copy of the GNU General Public License
                                                   >>  21  *   along with this program; if not, write to the Free Software
                                                   >>  22  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
                                                   >>  23  *
 10  */                                                24  */
 11                                                    25 
 12 /*                                                 26 /*
 13  * Data port addresses relative to the EMU bas     27  * Data port addresses relative to the EMU base.
 14  */                                                28  */
 15 #define EMU8000_DATA0(e)    ((e)->port1)           29 #define EMU8000_DATA0(e)    ((e)->port1)
 16 #define EMU8000_DATA1(e)    ((e)->port2)           30 #define EMU8000_DATA1(e)    ((e)->port2)
 17 #define EMU8000_DATA2(e)    ((e)->port2+2)         31 #define EMU8000_DATA2(e)    ((e)->port2+2)
 18 #define EMU8000_DATA3(e)    ((e)->port3)           32 #define EMU8000_DATA3(e)    ((e)->port3)
 19 #define EMU8000_PTR(e)      ((e)->port3+2)         33 #define EMU8000_PTR(e)      ((e)->port3+2)
 20                                                    34 
 21 /*                                                 35 /*
 22  * Make a command from a register and channel.     36  * Make a command from a register and channel.
 23  */                                                37  */
 24 #define EMU8000_CMD(reg, chan) ((reg)<<5 | (ch     38 #define EMU8000_CMD(reg, chan) ((reg)<<5 | (chan))
 25                                                    39 
 26 /*                                                 40 /*
 27  * Commands to read and write the EMU8000 regi     41  * Commands to read and write the EMU8000 registers.
 28  * These macros should be used for all registe     42  * These macros should be used for all register accesses.
 29  */                                                43  */
 30 #define EMU8000_CPF_READ(emu, chan) \              44 #define EMU8000_CPF_READ(emu, chan) \
 31         snd_emu8000_peek_dw((emu), EMU8000_DAT     45         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)))
 32 #define EMU8000_PTRX_READ(emu, chan) \             46 #define EMU8000_PTRX_READ(emu, chan) \
 33         snd_emu8000_peek_dw((emu), EMU8000_DAT     47         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)))
 34 #define EMU8000_CVCF_READ(emu, chan) \             48 #define EMU8000_CVCF_READ(emu, chan) \
 35         snd_emu8000_peek_dw((emu), EMU8000_DAT     49         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)))
 36 #define EMU8000_VTFT_READ(emu, chan) \             50 #define EMU8000_VTFT_READ(emu, chan) \
 37         snd_emu8000_peek_dw((emu), EMU8000_DAT     51         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)))
 38 #define EMU8000_PSST_READ(emu, chan) \             52 #define EMU8000_PSST_READ(emu, chan) \
 39         snd_emu8000_peek_dw((emu), EMU8000_DAT     53         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)))
 40 #define EMU8000_CSL_READ(emu, chan) \              54 #define EMU8000_CSL_READ(emu, chan) \
 41         snd_emu8000_peek_dw((emu), EMU8000_DAT     55         snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(7, (chan)))
 42 #define EMU8000_CCCA_READ(emu, chan) \             56 #define EMU8000_CCCA_READ(emu, chan) \
 43         snd_emu8000_peek_dw((emu), EMU8000_DAT     57         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(0, (chan)))
 44 #define EMU8000_HWCF4_READ(emu) \                  58 #define EMU8000_HWCF4_READ(emu) \
 45         snd_emu8000_peek_dw((emu), EMU8000_DAT     59         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 9))
 46 #define EMU8000_HWCF5_READ(emu) \                  60 #define EMU8000_HWCF5_READ(emu) \
 47         snd_emu8000_peek_dw((emu), EMU8000_DAT     61         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 10))
 48 #define EMU8000_HWCF6_READ(emu) \                  62 #define EMU8000_HWCF6_READ(emu) \
 49         snd_emu8000_peek_dw((emu), EMU8000_DAT     63         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 13))
 50 #define EMU8000_SMALR_READ(emu) \                  64 #define EMU8000_SMALR_READ(emu) \
 51         snd_emu8000_peek_dw((emu), EMU8000_DAT     65         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 20))
 52 #define EMU8000_SMARR_READ(emu) \                  66 #define EMU8000_SMARR_READ(emu) \
 53         snd_emu8000_peek_dw((emu), EMU8000_DAT     67         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 21))
 54 #define EMU8000_SMALW_READ(emu) \                  68 #define EMU8000_SMALW_READ(emu) \
 55         snd_emu8000_peek_dw((emu), EMU8000_DAT     69         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 22))
 56 #define EMU8000_SMARW_READ(emu) \                  70 #define EMU8000_SMARW_READ(emu) \
 57         snd_emu8000_peek_dw((emu), EMU8000_DAT     71         snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 23))
 58 #define EMU8000_SMLD_READ(emu) \                   72 #define EMU8000_SMLD_READ(emu) \
 59         snd_emu8000_peek((emu), EMU8000_DATA1(     73         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 26))
 60 #define EMU8000_SMRD_READ(emu) \                   74 #define EMU8000_SMRD_READ(emu) \
 61         snd_emu8000_peek((emu), EMU8000_DATA2(     75         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 26))
 62 #define EMU8000_WC_READ(emu) \                     76 #define EMU8000_WC_READ(emu) \
 63         snd_emu8000_peek((emu), EMU8000_DATA2(     77         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 27))
 64 #define EMU8000_HWCF1_READ(emu) \                  78 #define EMU8000_HWCF1_READ(emu) \
 65         snd_emu8000_peek((emu), EMU8000_DATA1(     79         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 29))
 66 #define EMU8000_HWCF2_READ(emu) \                  80 #define EMU8000_HWCF2_READ(emu) \
 67         snd_emu8000_peek((emu), EMU8000_DATA1(     81         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 30))
 68 #define EMU8000_HWCF3_READ(emu) \                  82 #define EMU8000_HWCF3_READ(emu) \
 69         snd_emu8000_peek((emu), EMU8000_DATA1(     83         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 31))
 70 #define EMU8000_INIT1_READ(emu, chan) \            84 #define EMU8000_INIT1_READ(emu, chan) \
 71         snd_emu8000_peek((emu), EMU8000_DATA1(     85         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(2, (chan)))
 72 #define EMU8000_INIT2_READ(emu, chan) \            86 #define EMU8000_INIT2_READ(emu, chan) \
 73         snd_emu8000_peek((emu), EMU8000_DATA2(     87         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(2, (chan)))
 74 #define EMU8000_INIT3_READ(emu, chan) \            88 #define EMU8000_INIT3_READ(emu, chan) \
 75         snd_emu8000_peek((emu), EMU8000_DATA1(     89         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(3, (chan)))
 76 #define EMU8000_INIT4_READ(emu, chan) \            90 #define EMU8000_INIT4_READ(emu, chan) \
 77         snd_emu8000_peek((emu), EMU8000_DATA2(     91         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(3, (chan)))
 78 #define EMU8000_ENVVOL_READ(emu, chan) \           92 #define EMU8000_ENVVOL_READ(emu, chan) \
 79         snd_emu8000_peek((emu), EMU8000_DATA1(     93         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(4, (chan)))
 80 #define EMU8000_DCYSUSV_READ(emu, chan) \          94 #define EMU8000_DCYSUSV_READ(emu, chan) \
 81         snd_emu8000_peek((emu), EMU8000_DATA1(     95         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(5, (chan)))
 82 #define EMU8000_ENVVAL_READ(emu, chan) \           96 #define EMU8000_ENVVAL_READ(emu, chan) \
 83         snd_emu8000_peek((emu), EMU8000_DATA1(     97         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(6, (chan)))
 84 #define EMU8000_DCYSUS_READ(emu, chan) \           98 #define EMU8000_DCYSUS_READ(emu, chan) \
 85         snd_emu8000_peek((emu), EMU8000_DATA1(     99         snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(7, (chan)))
 86 #define EMU8000_ATKHLDV_READ(emu, chan) \         100 #define EMU8000_ATKHLDV_READ(emu, chan) \
 87         snd_emu8000_peek((emu), EMU8000_DATA2(    101         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(4, (chan)))
 88 #define EMU8000_LFO1VAL_READ(emu, chan) \         102 #define EMU8000_LFO1VAL_READ(emu, chan) \
 89         snd_emu8000_peek((emu), EMU8000_DATA2(    103         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(5, (chan)))
 90 #define EMU8000_ATKHLD_READ(emu, chan) \          104 #define EMU8000_ATKHLD_READ(emu, chan) \
 91         snd_emu8000_peek((emu), EMU8000_DATA2(    105         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(6, (chan)))
 92 #define EMU8000_LFO2VAL_READ(emu, chan) \         106 #define EMU8000_LFO2VAL_READ(emu, chan) \
 93         snd_emu8000_peek((emu), EMU8000_DATA2(    107         snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(7, (chan)))
 94 #define EMU8000_IP_READ(emu, chan) \              108 #define EMU8000_IP_READ(emu, chan) \
 95         snd_emu8000_peek((emu), EMU8000_DATA3(    109         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(0, (chan)))
 96 #define EMU8000_IFATN_READ(emu, chan) \           110 #define EMU8000_IFATN_READ(emu, chan) \
 97         snd_emu8000_peek((emu), EMU8000_DATA3(    111         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(1, (chan)))
 98 #define EMU8000_PEFE_READ(emu, chan) \            112 #define EMU8000_PEFE_READ(emu, chan) \
 99         snd_emu8000_peek((emu), EMU8000_DATA3(    113         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(2, (chan)))
100 #define EMU8000_FMMOD_READ(emu, chan) \           114 #define EMU8000_FMMOD_READ(emu, chan) \
101         snd_emu8000_peek((emu), EMU8000_DATA3(    115         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(3, (chan)))
102 #define EMU8000_TREMFRQ_READ(emu, chan) \         116 #define EMU8000_TREMFRQ_READ(emu, chan) \
103         snd_emu8000_peek((emu), EMU8000_DATA3(    117         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(4, (chan)))
104 #define EMU8000_FM2FRQ2_READ(emu, chan) \         118 #define EMU8000_FM2FRQ2_READ(emu, chan) \
105         snd_emu8000_peek((emu), EMU8000_DATA3(    119         snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(5, (chan)))
106                                                   120 
107                                                   121 
108 #define EMU8000_CPF_WRITE(emu, chan, val) \       122 #define EMU8000_CPF_WRITE(emu, chan, val) \
109         snd_emu8000_poke_dw((emu), EMU8000_DAT    123         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)), (val))
110 #define EMU8000_PTRX_WRITE(emu, chan, val) \      124 #define EMU8000_PTRX_WRITE(emu, chan, val) \
111         snd_emu8000_poke_dw((emu), EMU8000_DAT    125         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)), (val))
112 #define EMU8000_CVCF_WRITE(emu, chan, val) \      126 #define EMU8000_CVCF_WRITE(emu, chan, val) \
113         snd_emu8000_poke_dw((emu), EMU8000_DAT    127         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)), (val))
114 #define EMU8000_VTFT_WRITE(emu, chan, val) \      128 #define EMU8000_VTFT_WRITE(emu, chan, val) \
115         snd_emu8000_poke_dw((emu), EMU8000_DAT    129         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)), (val))
116 #define EMU8000_PSST_WRITE(emu, chan, val) \      130 #define EMU8000_PSST_WRITE(emu, chan, val) \
117         snd_emu8000_poke_dw((emu), EMU8000_DAT    131         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)), (val))
118 #define EMU8000_CSL_WRITE(emu, chan, val) \       132 #define EMU8000_CSL_WRITE(emu, chan, val) \
119         snd_emu8000_poke_dw((emu), EMU8000_DAT    133         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(7, (chan)), (val))
120 #define EMU8000_CCCA_WRITE(emu, chan, val) \      134 #define EMU8000_CCCA_WRITE(emu, chan, val) \
121         snd_emu8000_poke_dw((emu), EMU8000_DAT    135         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(0, (chan)), (val))
122 #define EMU8000_HWCF4_WRITE(emu, val) \           136 #define EMU8000_HWCF4_WRITE(emu, val) \
123         snd_emu8000_poke_dw((emu), EMU8000_DAT    137         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 9), (val))
124 #define EMU8000_HWCF5_WRITE(emu, val) \           138 #define EMU8000_HWCF5_WRITE(emu, val) \
125         snd_emu8000_poke_dw((emu), EMU8000_DAT    139         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 10), (val))
126 #define EMU8000_HWCF6_WRITE(emu, val) \           140 #define EMU8000_HWCF6_WRITE(emu, val) \
127         snd_emu8000_poke_dw((emu), EMU8000_DAT    141         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 13), (val))
128 /* this register is not documented */             142 /* this register is not documented */
129 #define EMU8000_HWCF7_WRITE(emu, val) \           143 #define EMU8000_HWCF7_WRITE(emu, val) \
130         snd_emu8000_poke_dw((emu), EMU8000_DAT    144         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 14), (val))
131 #define EMU8000_SMALR_WRITE(emu, val) \           145 #define EMU8000_SMALR_WRITE(emu, val) \
132         snd_emu8000_poke_dw((emu), EMU8000_DAT    146         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 20), (val))
133 #define EMU8000_SMARR_WRITE(emu, val) \           147 #define EMU8000_SMARR_WRITE(emu, val) \
134         snd_emu8000_poke_dw((emu), EMU8000_DAT    148         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 21), (val))
135 #define EMU8000_SMALW_WRITE(emu, val) \           149 #define EMU8000_SMALW_WRITE(emu, val) \
136         snd_emu8000_poke_dw((emu), EMU8000_DAT    150         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 22), (val))
137 #define EMU8000_SMARW_WRITE(emu, val) \           151 #define EMU8000_SMARW_WRITE(emu, val) \
138         snd_emu8000_poke_dw((emu), EMU8000_DAT    152         snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 23), (val))
139 #define EMU8000_SMLD_WRITE(emu, val) \            153 #define EMU8000_SMLD_WRITE(emu, val) \
140         snd_emu8000_poke((emu), EMU8000_DATA1(    154         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 26), (val))
141 #define EMU8000_SMRD_WRITE(emu, val) \            155 #define EMU8000_SMRD_WRITE(emu, val) \
142         snd_emu8000_poke((emu), EMU8000_DATA2(    156         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 26), (val))
143 #define EMU8000_WC_WRITE(emu, val) \              157 #define EMU8000_WC_WRITE(emu, val) \
144         snd_emu8000_poke((emu), EMU8000_DATA2(    158         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 27), (val))
145 #define EMU8000_HWCF1_WRITE(emu, val) \           159 #define EMU8000_HWCF1_WRITE(emu, val) \
146         snd_emu8000_poke((emu), EMU8000_DATA1(    160         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 29), (val))
147 #define EMU8000_HWCF2_WRITE(emu, val) \           161 #define EMU8000_HWCF2_WRITE(emu, val) \
148         snd_emu8000_poke((emu), EMU8000_DATA1(    162         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 30), (val))
149 #define EMU8000_HWCF3_WRITE(emu, val) \           163 #define EMU8000_HWCF3_WRITE(emu, val) \
150         snd_emu8000_poke((emu), EMU8000_DATA1(    164         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 31), (val))
151 #define EMU8000_INIT1_WRITE(emu, chan, val) \     165 #define EMU8000_INIT1_WRITE(emu, chan, val) \
152         snd_emu8000_poke((emu), EMU8000_DATA1(    166         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(2, (chan)), (val))
153 #define EMU8000_INIT2_WRITE(emu, chan, val) \     167 #define EMU8000_INIT2_WRITE(emu, chan, val) \
154         snd_emu8000_poke((emu), EMU8000_DATA2(    168         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(2, (chan)), (val))
155 #define EMU8000_INIT3_WRITE(emu, chan, val) \     169 #define EMU8000_INIT3_WRITE(emu, chan, val) \
156         snd_emu8000_poke((emu), EMU8000_DATA1(    170         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(3, (chan)), (val))
157 #define EMU8000_INIT4_WRITE(emu, chan, val) \     171 #define EMU8000_INIT4_WRITE(emu, chan, val) \
158         snd_emu8000_poke((emu), EMU8000_DATA2(    172         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(3, (chan)), (val))
159 #define EMU8000_ENVVOL_WRITE(emu, chan, val) \    173 #define EMU8000_ENVVOL_WRITE(emu, chan, val) \
160         snd_emu8000_poke((emu), EMU8000_DATA1(    174         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(4, (chan)), (val))
161 #define EMU8000_DCYSUSV_WRITE(emu, chan, val)     175 #define EMU8000_DCYSUSV_WRITE(emu, chan, val) \
162         snd_emu8000_poke((emu), EMU8000_DATA1(    176         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(5, (chan)), (val))
163 #define EMU8000_ENVVAL_WRITE(emu, chan, val) \    177 #define EMU8000_ENVVAL_WRITE(emu, chan, val) \
164         snd_emu8000_poke((emu), EMU8000_DATA1(    178         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(6, (chan)), (val))
165 #define EMU8000_DCYSUS_WRITE(emu, chan, val) \    179 #define EMU8000_DCYSUS_WRITE(emu, chan, val) \
166         snd_emu8000_poke((emu), EMU8000_DATA1(    180         snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(7, (chan)), (val))
167 #define EMU8000_ATKHLDV_WRITE(emu, chan, val)     181 #define EMU8000_ATKHLDV_WRITE(emu, chan, val) \
168         snd_emu8000_poke((emu), EMU8000_DATA2(    182         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(4, (chan)), (val))
169 #define EMU8000_LFO1VAL_WRITE(emu, chan, val)     183 #define EMU8000_LFO1VAL_WRITE(emu, chan, val) \
170         snd_emu8000_poke((emu), EMU8000_DATA2(    184         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(5, (chan)), (val))
171 #define EMU8000_ATKHLD_WRITE(emu, chan, val) \    185 #define EMU8000_ATKHLD_WRITE(emu, chan, val) \
172         snd_emu8000_poke((emu), EMU8000_DATA2(    186         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(6, (chan)), (val))
173 #define EMU8000_LFO2VAL_WRITE(emu, chan, val)     187 #define EMU8000_LFO2VAL_WRITE(emu, chan, val) \
174         snd_emu8000_poke((emu), EMU8000_DATA2(    188         snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(7, (chan)), (val))
175 #define EMU8000_IP_WRITE(emu, chan, val) \        189 #define EMU8000_IP_WRITE(emu, chan, val) \
176         snd_emu8000_poke((emu), EMU8000_DATA3(    190         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(0, (chan)), (val))
177 #define EMU8000_IFATN_WRITE(emu, chan, val) \     191 #define EMU8000_IFATN_WRITE(emu, chan, val) \
178         snd_emu8000_poke((emu), EMU8000_DATA3(    192         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(1, (chan)), (val))
179 #define EMU8000_PEFE_WRITE(emu, chan, val) \      193 #define EMU8000_PEFE_WRITE(emu, chan, val) \
180         snd_emu8000_poke((emu), EMU8000_DATA3(    194         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(2, (chan)), (val))
181 #define EMU8000_FMMOD_WRITE(emu, chan, val) \     195 #define EMU8000_FMMOD_WRITE(emu, chan, val) \
182         snd_emu8000_poke((emu), EMU8000_DATA3(    196         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(3, (chan)), (val))
183 #define EMU8000_TREMFRQ_WRITE(emu, chan, val)     197 #define EMU8000_TREMFRQ_WRITE(emu, chan, val) \
184         snd_emu8000_poke((emu), EMU8000_DATA3(    198         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(4, (chan)), (val))
185 #define EMU8000_FM2FRQ2_WRITE(emu, chan, val)     199 #define EMU8000_FM2FRQ2_WRITE(emu, chan, val) \
186         snd_emu8000_poke((emu), EMU8000_DATA3(    200         snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(5, (chan)), (val))
187                                                   201 
188 #define EMU8000_0080_WRITE(emu, chan, val) \      202 #define EMU8000_0080_WRITE(emu, chan, val) \
189         snd_emu8000_poke_dw((emu), EMU8000_DAT    203         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(4, (chan)), (val))
190 #define EMU8000_00A0_WRITE(emu, chan, val) \      204 #define EMU8000_00A0_WRITE(emu, chan, val) \
191         snd_emu8000_poke_dw((emu), EMU8000_DAT    205         snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(5, (chan)), (val))
192                                                   206 
193 #endif /* __SOUND_EMU8000_REG_H */                207 #endif /* __SOUND_EMU8000_REG_H */
194                                                   208 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php