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

TOMOYO Linux Cross Reference
Linux/sound/isa/galaxy/azt2316.c

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 /sound/isa/galaxy/azt2316.c (Version linux-6.12-rc7) and /sound/isa/galaxy/azt2316.c (Version linux-4.17.19)


  1 // SPDX-License-Identifier: GPL-2.0-or-later   << 
  2 /*                                                  1 /*
  3  * Aztech AZT2316 Driver                            2  * Aztech AZT2316 Driver
  4  * Copyright (C) 2007,2010  Rene Herman             3  * Copyright (C) 2007,2010  Rene Herman
                                                   >>   4  *
                                                   >>   5  * This program is free software: you can redistribute it and/or modify
                                                   >>   6  * it under the terms of the GNU General Public License as published by
                                                   >>   7  * the Free Software Foundation, either version 2 of the License, or
                                                   >>   8  * (at your option) any later version.
                                                   >>   9  *
                                                   >>  10  * This program is distributed in the hope that it will be useful,
                                                   >>  11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  13  * GNU General Public License for more details.
                                                   >>  14  *
                                                   >>  15  * You should have received a copy of the GNU General Public License
                                                   >>  16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
                                                   >>  17  *
  5  */                                                18  */
  6                                                    19 
  7 #define AZT2316                                    20 #define AZT2316
  8                                                    21 
  9 #define CRD_NAME "Aztech AZT2316"                  22 #define CRD_NAME "Aztech AZT2316"
 10 #define DRV_NAME "AZT2316"                         23 #define DRV_NAME "AZT2316"
 11 #define DEV_NAME "azt2316"                         24 #define DEV_NAME "azt2316"
 12                                                    25 
 13 #define GALAXY_DSP_MAJOR                3          26 #define GALAXY_DSP_MAJOR                3
 14 #define GALAXY_DSP_MINOR                1          27 #define GALAXY_DSP_MINOR                1
 15                                                    28 
 16 #define GALAXY_CONFIG_SIZE              4          29 #define GALAXY_CONFIG_SIZE              4
 17                                                    30 
 18 /*                                                 31 /*
 19  * 32-bit config register                          32  * 32-bit config register
 20  */                                                33  */
 21                                                    34 
 22 #define GALAXY_CONFIG_SBA_220           (0 <<      35 #define GALAXY_CONFIG_SBA_220           (0 << 0)
 23 #define GALAXY_CONFIG_SBA_240           (1 <<      36 #define GALAXY_CONFIG_SBA_240           (1 << 0)
 24 #define GALAXY_CONFIG_SBA_260           (2 <<      37 #define GALAXY_CONFIG_SBA_260           (2 << 0)
 25 #define GALAXY_CONFIG_SBA_280           (3 <<      38 #define GALAXY_CONFIG_SBA_280           (3 << 0)
 26 #define GALAXY_CONFIG_SBA_MASK          GALAXY     39 #define GALAXY_CONFIG_SBA_MASK          GALAXY_CONFIG_SBA_280
 27                                                    40 
 28 #define GALAXY_CONFIG_SBIRQ_2           (1 <<      41 #define GALAXY_CONFIG_SBIRQ_2           (1 << 2)
 29 #define GALAXY_CONFIG_SBIRQ_5           (1 <<      42 #define GALAXY_CONFIG_SBIRQ_5           (1 << 3)
 30 #define GALAXY_CONFIG_SBIRQ_7           (1 <<      43 #define GALAXY_CONFIG_SBIRQ_7           (1 << 4)
 31 #define GALAXY_CONFIG_SBIRQ_10          (1 <<      44 #define GALAXY_CONFIG_SBIRQ_10          (1 << 5)
 32                                                    45 
 33 #define GALAXY_CONFIG_SBDMA_DISABLE     (0 <<      46 #define GALAXY_CONFIG_SBDMA_DISABLE     (0 << 6)
 34 #define GALAXY_CONFIG_SBDMA_0           (1 <<      47 #define GALAXY_CONFIG_SBDMA_0           (1 << 6)
 35 #define GALAXY_CONFIG_SBDMA_1           (2 <<      48 #define GALAXY_CONFIG_SBDMA_1           (2 << 6)
 36 #define GALAXY_CONFIG_SBDMA_3           (3 <<      49 #define GALAXY_CONFIG_SBDMA_3           (3 << 6)
 37                                                    50 
 38 #define GALAXY_CONFIG_WSSA_530          (0 <<      51 #define GALAXY_CONFIG_WSSA_530          (0 << 8)
 39 #define GALAXY_CONFIG_WSSA_604          (1 <<      52 #define GALAXY_CONFIG_WSSA_604          (1 << 8)
 40 #define GALAXY_CONFIG_WSSA_E80          (2 <<      53 #define GALAXY_CONFIG_WSSA_E80          (2 << 8)
 41 #define GALAXY_CONFIG_WSSA_F40          (3 <<      54 #define GALAXY_CONFIG_WSSA_F40          (3 << 8)
 42                                                    55 
 43 #define GALAXY_CONFIG_WSS_ENABLE        (1 <<      56 #define GALAXY_CONFIG_WSS_ENABLE        (1 << 10)
 44                                                    57 
 45 #define GALAXY_CONFIG_GAME_ENABLE       (1 <<      58 #define GALAXY_CONFIG_GAME_ENABLE       (1 << 11)
 46                                                    59 
 47 #define GALAXY_CONFIG_MPUA_300          (0 <<      60 #define GALAXY_CONFIG_MPUA_300          (0 << 12)
 48 #define GALAXY_CONFIG_MPUA_330          (1 <<      61 #define GALAXY_CONFIG_MPUA_330          (1 << 12)
 49                                                    62 
 50 #define GALAXY_CONFIG_MPU_ENABLE        (1 <<      63 #define GALAXY_CONFIG_MPU_ENABLE        (1 << 13)
 51                                                    64 
 52 #define GALAXY_CONFIG_CDA_310           (0 <<      65 #define GALAXY_CONFIG_CDA_310           (0 << 14)
 53 #define GALAXY_CONFIG_CDA_320           (1 <<      66 #define GALAXY_CONFIG_CDA_320           (1 << 14)
 54 #define GALAXY_CONFIG_CDA_340           (2 <<      67 #define GALAXY_CONFIG_CDA_340           (2 << 14)
 55 #define GALAXY_CONFIG_CDA_350           (3 <<      68 #define GALAXY_CONFIG_CDA_350           (3 << 14)
 56 #define GALAXY_CONFIG_CDA_MASK          GALAXY     69 #define GALAXY_CONFIG_CDA_MASK          GALAXY_CONFIG_CDA_350
 57                                                    70 
 58 #define GALAXY_CONFIG_CD_DISABLE        (0 <<      71 #define GALAXY_CONFIG_CD_DISABLE        (0 << 16)
 59 #define GALAXY_CONFIG_CD_PANASONIC      (1 <<      72 #define GALAXY_CONFIG_CD_PANASONIC      (1 << 16)
 60 #define GALAXY_CONFIG_CD_SONY           (2 <<      73 #define GALAXY_CONFIG_CD_SONY           (2 << 16)
 61 #define GALAXY_CONFIG_CD_MITSUMI        (3 <<      74 #define GALAXY_CONFIG_CD_MITSUMI        (3 << 16)
 62 #define GALAXY_CONFIG_CD_AZTECH         (4 <<      75 #define GALAXY_CONFIG_CD_AZTECH         (4 << 16)
 63 #define GALAXY_CONFIG_CD_UNUSED_5       (5 <<      76 #define GALAXY_CONFIG_CD_UNUSED_5       (5 << 16)
 64 #define GALAXY_CONFIG_CD_UNUSED_6       (6 <<      77 #define GALAXY_CONFIG_CD_UNUSED_6       (6 << 16)
 65 #define GALAXY_CONFIG_CD_UNUSED_7       (7 <<      78 #define GALAXY_CONFIG_CD_UNUSED_7       (7 << 16)
 66 #define GALAXY_CONFIG_CD_MASK           GALAXY     79 #define GALAXY_CONFIG_CD_MASK           GALAXY_CONFIG_CD_UNUSED_7
 67                                                    80 
 68 #define GALAXY_CONFIG_CDDMA8_DISABLE    (0 <<      81 #define GALAXY_CONFIG_CDDMA8_DISABLE    (0 << 20)
 69 #define GALAXY_CONFIG_CDDMA8_0          (1 <<      82 #define GALAXY_CONFIG_CDDMA8_0          (1 << 20)
 70 #define GALAXY_CONFIG_CDDMA8_1          (2 <<      83 #define GALAXY_CONFIG_CDDMA8_1          (2 << 20)
 71 #define GALAXY_CONFIG_CDDMA8_3          (3 <<      84 #define GALAXY_CONFIG_CDDMA8_3          (3 << 20)
 72 #define GALAXY_CONFIG_CDDMA8_MASK       GALAXY     85 #define GALAXY_CONFIG_CDDMA8_MASK       GALAXY_CONFIG_CDDMA8_3
 73                                                    86 
 74 #define GALAXY_CONFIG_CDDMA16_DISABLE   (0 <<      87 #define GALAXY_CONFIG_CDDMA16_DISABLE   (0 << 22)
 75 #define GALAXY_CONFIG_CDDMA16_5         (1 <<      88 #define GALAXY_CONFIG_CDDMA16_5         (1 << 22)
 76 #define GALAXY_CONFIG_CDDMA16_6         (2 <<      89 #define GALAXY_CONFIG_CDDMA16_6         (2 << 22)
 77 #define GALAXY_CONFIG_CDDMA16_7         (3 <<      90 #define GALAXY_CONFIG_CDDMA16_7         (3 << 22)
 78 #define GALAXY_CONFIG_CDDMA16_MASK      GALAXY     91 #define GALAXY_CONFIG_CDDMA16_MASK      GALAXY_CONFIG_CDDMA16_7
 79                                                    92 
 80 #define GALAXY_CONFIG_MPUIRQ_2          (1 <<      93 #define GALAXY_CONFIG_MPUIRQ_2          (1 << 24)
 81 #define GALAXY_CONFIG_MPUIRQ_5          (1 <<      94 #define GALAXY_CONFIG_MPUIRQ_5          (1 << 25)
 82 #define GALAXY_CONFIG_MPUIRQ_7          (1 <<      95 #define GALAXY_CONFIG_MPUIRQ_7          (1 << 26)
 83 #define GALAXY_CONFIG_MPUIRQ_10         (1 <<      96 #define GALAXY_CONFIG_MPUIRQ_10         (1 << 27)
 84                                                    97 
 85 #define GALAXY_CONFIG_CDIRQ_5           (1 <<      98 #define GALAXY_CONFIG_CDIRQ_5           (1 << 28)
 86 #define GALAXY_CONFIG_CDIRQ_11          (1 <<      99 #define GALAXY_CONFIG_CDIRQ_11          (1 << 29)
 87 #define GALAXY_CONFIG_CDIRQ_12          (1 <<     100 #define GALAXY_CONFIG_CDIRQ_12          (1 << 30)
 88 #define GALAXY_CONFIG_CDIRQ_15          (1 <<     101 #define GALAXY_CONFIG_CDIRQ_15          (1 << 31)
 89 #define GALAXY_CONFIG_CDIRQ_MASK        (\        102 #define GALAXY_CONFIG_CDIRQ_MASK        (\
 90         GALAXY_CONFIG_CDIRQ_5 | GALAXY_CONFIG_    103         GALAXY_CONFIG_CDIRQ_5 | GALAXY_CONFIG_CDIRQ_11 |\
 91         GALAXY_CONFIG_CDIRQ_12 | GALAXY_CONFIG    104         GALAXY_CONFIG_CDIRQ_12 | GALAXY_CONFIG_CDIRQ_15)
 92                                                   105 
 93 #define GALAXY_CONFIG_MASK              (\        106 #define GALAXY_CONFIG_MASK              (\
 94         GALAXY_CONFIG_SBA_MASK | GALAXY_CONFIG    107         GALAXY_CONFIG_SBA_MASK | GALAXY_CONFIG_CDA_MASK |\
 95         GALAXY_CONFIG_CD_MASK | GALAXY_CONFIG_    108         GALAXY_CONFIG_CD_MASK | GALAXY_CONFIG_CDDMA16_MASK |\
 96         GALAXY_CONFIG_CDDMA8_MASK | GALAXY_CON    109         GALAXY_CONFIG_CDDMA8_MASK | GALAXY_CONFIG_CDIRQ_MASK)
 97                                                   110 
 98 #include "galaxy.c"                               111 #include "galaxy.c"
 99                                                   112 

~ [ 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