Deleted Added
full compact
csareg.h (77504) csareg.h (147626)
1/*-
2 * Copyright (c) 1999 Seigo Tanimura
3 * All rights reserved.
4 *
5 * Portions of this source are based on hwdefs.h in cwcealdr1.zip, the
6 * sample source by Crystal Semiconductor.
7 * Copyright (c) 1996-1998 Crystal Semiconductor Corp.
8 *

--- 13 unchanged lines hidden (view full) ---

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
1/*-
2 * Copyright (c) 1999 Seigo Tanimura
3 * All rights reserved.
4 *
5 * Portions of this source are based on hwdefs.h in cwcealdr1.zip, the
6 * sample source by Crystal Semiconductor.
7 * Copyright (c) 1996-1998 Crystal Semiconductor Corp.
8 *

--- 13 unchanged lines hidden (view full) ---

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/sound/pci/csareg.h 77504 2001-05-30 22:38:31Z cg $
30 * $FreeBSD: head/sys/dev/sound/pci/csareg.h 147626 2005-06-27 07:43:57Z glebius $
31 */
32
33#ifndef _CSA_REG_H
34#define _CSA_REG_H
35
36/*
37 * The following constats are orginally in the sample by Crystal Semiconductor.
38 * Copyright (c) 1996-1998 Crystal Semiconductor Corp.

--- 1887 unchanged lines hidden (view full) ---

1926#define BA1_CPI 0x2f4 /* BA1_CAPTURE_PHASE_INCREMENT_REG */
1927#define BA1_CVOL 0x2f8 /* BA1_CAPTURE_VOLUME_REG */
1928
1929#define BA1_CFG1 0x134 /* BA1_CAPTURE_FRAME_GROUP_1_REG */
1930#define BA1_CFG2 0x138 /* BA1_CAPTURE_FRAME_GROUP_2_REG */
1931#define BA1_CCST 0x13c /* BA1_CAPTURE_CONSTANT_REG */
1932#define BA1_CSPB 0x340 /* BA1_CAPTURE_SPB_ADDRESS */
1933
31 */
32
33#ifndef _CSA_REG_H
34#define _CSA_REG_H
35
36/*
37 * The following constats are orginally in the sample by Crystal Semiconductor.
38 * Copyright (c) 1996-1998 Crystal Semiconductor Corp.

--- 1887 unchanged lines hidden (view full) ---

1926#define BA1_CPI 0x2f4 /* BA1_CAPTURE_PHASE_INCREMENT_REG */
1927#define BA1_CVOL 0x2f8 /* BA1_CAPTURE_VOLUME_REG */
1928
1929#define BA1_CFG1 0x134 /* BA1_CAPTURE_FRAME_GROUP_1_REG */
1930#define BA1_CFG2 0x138 /* BA1_CAPTURE_FRAME_GROUP_2_REG */
1931#define BA1_CCST 0x13c /* BA1_CAPTURE_CONSTANT_REG */
1932#define BA1_CSPB 0x340 /* BA1_CAPTURE_SPB_ADDRESS */
1933
1934/* PM state definitions */
1935#define CS461x_AC97_HIGHESTREGTORESTORE 0x26
1936#define CS461x_AC97_NUMBER_RESTORE_REGS (CS461x_AC97_HIGHESTREGTORESTORE/2-1)
1937
1938#define CS_POWER_DAC 0x0001
1939#define CS_POWER_ADC 0x0002
1940#define CS_POWER_MIXVON 0x0004
1941#define CS_POWER_MIXVOFF 0x0008
1942#define CS_AC97_POWER_CONTROL_ON 0xf000 /* always on bits (inverted) */
1943#define CS_AC97_POWER_CONTROL_ADC 0x0100
1944#define CS_AC97_POWER_CONTROL_DAC 0x0200
1945#define CS_AC97_POWER_CONTROL_MIXVON 0x0400
1946#define CS_AC97_POWER_CONTROL_MIXVOFF 0x0800
1947#define CS_AC97_POWER_CONTROL_ADC_ON 0x0001
1948#define CS_AC97_POWER_CONTROL_DAC_ON 0x0002
1949#define CS_AC97_POWER_CONTROL_MIXVON_ON 0x0004
1950#define CS_AC97_POWER_CONTROL_MIXVOFF_ON 0x0008
1951
1934/* The following struct holds the initialization array. */
1935
1936/*
1937 * this is 3*1024 for parameter, 3.5*1024 for sample and 2*3.5*1024 for code since
1938 * each instruction is 40 bits and takes two dwords
1939 */
1940#define INKY_BA1_DWORD_SIZE (13 * 1024 + 512)
1941#define INKY_MEMORY_COUNT 3

--- 13 unchanged lines hidden ---
1952/* The following struct holds the initialization array. */
1953
1954/*
1955 * this is 3*1024 for parameter, 3.5*1024 for sample and 2*3.5*1024 for code since
1956 * each instruction is 40 bits and takes two dwords
1957 */
1958#define INKY_BA1_DWORD_SIZE (13 * 1024 + 512)
1959#define INKY_MEMORY_COUNT 3

--- 13 unchanged lines hidden ---