diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /sound/oss/cs46xxpm.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'sound/oss/cs46xxpm.h')
-rw-r--r-- | sound/oss/cs46xxpm.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sound/oss/cs46xxpm.h b/sound/oss/cs46xxpm.h new file mode 100644 index 000000000000..2932b6e0e0bb --- /dev/null +++ b/sound/oss/cs46xxpm.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /******************************************************************************* | ||
2 | * | ||
3 | * "cs46xxpm.h" -- Cirrus Logic-Crystal CS46XX linux audio driver. | ||
4 | * | ||
5 | * Copyright (C) 2000,2001 Cirrus Logic Corp. | ||
6 | * -- tom woller (twoller@crystal.cirrus.com) or | ||
7 | * (pcaudio@crystal.cirrus.com). | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
22 | * | ||
23 | * 12/22/00 trw - new file. | ||
24 | * | ||
25 | *******************************************************************************/ | ||
26 | #ifndef __CS46XXPM_H | ||
27 | #define __CS46XXPM_H | ||
28 | |||
29 | #define CS46XX_AC97_HIGHESTREGTORESTORE 0x26 | ||
30 | #define CS46XX_AC97_NUMBER_RESTORE_REGS (CS46XX_AC97_HIGHESTREGTORESTORE/2-1) | ||
31 | |||
32 | /* PM state defintions */ | ||
33 | #define CS46XX_PM_NOT_REGISTERED 0x1000 | ||
34 | #define CS46XX_PM_IDLE 0x0001 | ||
35 | #define CS46XX_PM_SUSPENDING 0x0002 | ||
36 | #define CS46XX_PM_SUSPENDED 0x0004 | ||
37 | #define CS46XX_PM_RESUMING 0x0008 | ||
38 | #define CS46XX_PM_RESUMED 0x0010 | ||
39 | |||
40 | #define CS_POWER_DAC 0x0001 | ||
41 | #define CS_POWER_ADC 0x0002 | ||
42 | #define CS_POWER_MIXVON 0x0004 | ||
43 | #define CS_POWER_MIXVOFF 0x0008 | ||
44 | #define CS_AC97_POWER_CONTROL_ON 0xf000 /* always on bits (inverted) */ | ||
45 | #define CS_AC97_POWER_CONTROL_ADC 0x0100 | ||
46 | #define CS_AC97_POWER_CONTROL_DAC 0x0200 | ||
47 | #define CS_AC97_POWER_CONTROL_MIXVON 0x0400 | ||
48 | #define CS_AC97_POWER_CONTROL_MIXVOFF 0x0800 | ||
49 | #define CS_AC97_POWER_CONTROL_ADC_ON 0x0001 | ||
50 | #define CS_AC97_POWER_CONTROL_DAC_ON 0x0002 | ||
51 | #define CS_AC97_POWER_CONTROL_MIXVON_ON 0x0004 | ||
52 | #define CS_AC97_POWER_CONTROL_MIXVOFF_ON 0x0008 | ||
53 | |||
54 | struct cs46xx_pm { | ||
55 | unsigned long flags; | ||
56 | u32 u32CLKCR1_SAVE,u32SSPMValue,u32PPLVCvalue,u32PPRVCvalue; | ||
57 | u32 u32FMLVCvalue,u32FMRVCvalue,u32GPIORvalue,u32JSCTLvalue,u32SSCR; | ||
58 | u32 u32SRCSA,u32DacASR,u32AdcASR,u32DacSR,u32AdcSR,u32MIDCR_Save; | ||
59 | u32 u32SSPM_BITS; | ||
60 | u32 ac97[CS46XX_AC97_NUMBER_RESTORE_REGS]; | ||
61 | u32 u32AC97_master_volume, u32AC97_headphone_volume, u32AC97_master_volume_mono; | ||
62 | u32 u32AC97_pcm_out_volume, u32AC97_powerdown, u32AC97_general_purpose; | ||
63 | u32 u32hwptr_playback,u32hwptr_capture; | ||
64 | unsigned dmabuf_swptr_play; | ||
65 | int dmabuf_count_play; | ||
66 | unsigned dmabuf_swptr_capture; | ||
67 | int dmabuf_count_capture; | ||
68 | }; | ||
69 | |||
70 | #endif | ||