1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 3 * Aztech AZT2316 Driver 4 * Copyright (C) 2007,2010 Rene Herman 5 */ 6 7 #define AZT2316 8 9 #define CRD_NAME "Aztech AZT2316" 10 #define DRV_NAME "AZT2316" 11 #define DEV_NAME "azt2316" 12 13 #define GALAXY_DSP_MAJOR 3 14 #define GALAXY_DSP_MINOR 1 15 16 #define GALAXY_CONFIG_SIZE 4 17 18 /* 19 * 32-bit config register 20 */ 21 22 #define GALAXY_CONFIG_SBA_220 (0 << 23 #define GALAXY_CONFIG_SBA_240 (1 << 24 #define GALAXY_CONFIG_SBA_260 (2 << 25 #define GALAXY_CONFIG_SBA_280 (3 << 26 #define GALAXY_CONFIG_SBA_MASK GALAXY 27 28 #define GALAXY_CONFIG_SBIRQ_2 (1 << 29 #define GALAXY_CONFIG_SBIRQ_5 (1 << 30 #define GALAXY_CONFIG_SBIRQ_7 (1 << 31 #define GALAXY_CONFIG_SBIRQ_10 (1 << 32 33 #define GALAXY_CONFIG_SBDMA_DISABLE (0 << 34 #define GALAXY_CONFIG_SBDMA_0 (1 << 35 #define GALAXY_CONFIG_SBDMA_1 (2 << 36 #define GALAXY_CONFIG_SBDMA_3 (3 << 37 38 #define GALAXY_CONFIG_WSSA_530 (0 << 39 #define GALAXY_CONFIG_WSSA_604 (1 << 40 #define GALAXY_CONFIG_WSSA_E80 (2 << 41 #define GALAXY_CONFIG_WSSA_F40 (3 << 42 43 #define GALAXY_CONFIG_WSS_ENABLE (1 << 44 45 #define GALAXY_CONFIG_GAME_ENABLE (1 << 46 47 #define GALAXY_CONFIG_MPUA_300 (0 << 48 #define GALAXY_CONFIG_MPUA_330 (1 << 49 50 #define GALAXY_CONFIG_MPU_ENABLE (1 << 51 52 #define GALAXY_CONFIG_CDA_310 (0 << 53 #define GALAXY_CONFIG_CDA_320 (1 << 54 #define GALAXY_CONFIG_CDA_340 (2 << 55 #define GALAXY_CONFIG_CDA_350 (3 << 56 #define GALAXY_CONFIG_CDA_MASK GALAXY 57 58 #define GALAXY_CONFIG_CD_DISABLE (0 << 59 #define GALAXY_CONFIG_CD_PANASONIC (1 << 60 #define GALAXY_CONFIG_CD_SONY (2 << 61 #define GALAXY_CONFIG_CD_MITSUMI (3 << 62 #define GALAXY_CONFIG_CD_AZTECH (4 << 63 #define GALAXY_CONFIG_CD_UNUSED_5 (5 << 64 #define GALAXY_CONFIG_CD_UNUSED_6 (6 << 65 #define GALAXY_CONFIG_CD_UNUSED_7 (7 << 66 #define GALAXY_CONFIG_CD_MASK GALAXY 67 68 #define GALAXY_CONFIG_CDDMA8_DISABLE (0 << 69 #define GALAXY_CONFIG_CDDMA8_0 (1 << 70 #define GALAXY_CONFIG_CDDMA8_1 (2 << 71 #define GALAXY_CONFIG_CDDMA8_3 (3 << 72 #define GALAXY_CONFIG_CDDMA8_MASK GALAXY 73 74 #define GALAXY_CONFIG_CDDMA16_DISABLE (0 << 75 #define GALAXY_CONFIG_CDDMA16_5 (1 << 76 #define GALAXY_CONFIG_CDDMA16_6 (2 << 77 #define GALAXY_CONFIG_CDDMA16_7 (3 << 78 #define GALAXY_CONFIG_CDDMA16_MASK GALAXY 79 80 #define GALAXY_CONFIG_MPUIRQ_2 (1 << 81 #define GALAXY_CONFIG_MPUIRQ_5 (1 << 82 #define GALAXY_CONFIG_MPUIRQ_7 (1 << 83 #define GALAXY_CONFIG_MPUIRQ_10 (1 << 84 85 #define GALAXY_CONFIG_CDIRQ_5 (1 << 86 #define GALAXY_CONFIG_CDIRQ_11 (1 << 87 #define GALAXY_CONFIG_CDIRQ_12 (1 << 88 #define GALAXY_CONFIG_CDIRQ_15 (1 << 89 #define GALAXY_CONFIG_CDIRQ_MASK (\ 90 GALAXY_CONFIG_CDIRQ_5 | GALAXY_CONFIG_ 91 GALAXY_CONFIG_CDIRQ_12 | GALAXY_CONFIG 92 93 #define GALAXY_CONFIG_MASK (\ 94 GALAXY_CONFIG_SBA_MASK | GALAXY_CONFIG 95 GALAXY_CONFIG_CD_MASK | GALAXY_CONFIG_ 96 GALAXY_CONFIG_CDDMA8_MASK | GALAXY_CON 97 98 #include "galaxy.c" 99
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.