kernel: Move GPL'd kernel files to sys/gnu to have them all in one place.
[dragonfly.git] / sys / gnu / dev / sound / pci / csaimg.h
CommitLineData
558a398b
SS
1/*-
2 ****************************************************************************
984263bc
MD
3 * "CWCIMAGE.H"-- For CS46XX. Ver 1.04
4 * Copyright 1998-2001 (c) Cirrus Logic Corp.
5 * Version 1.04
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
20 * USA.
21 *
558a398b 22 * $FreeBSD: src/sys/gnu/dev/sound/pci/csaimg.h,v 1.2 2005/01/06 18:27:30 imp Exp $
984263bc
MD
23 *
24 ***************************************************************************/
25
26#ifndef __CS_IMAGE_H
27#define __CS_IMAGE_H
28
29#define CLEAR__COUNT 3
30#define FILL__COUNT 4
31#define BA1__DWORD_SIZE 13*1024+512
32
33static struct
34{
35 unsigned BA1__DestByteOffset;
36 unsigned BA1__SourceSize;
37} ClrStat[CLEAR__COUNT] ={ {0x00000000, 0x00003000 },
38 {0x00010000, 0x00003800 },
39 {0x00020000, 0x00007000 } };
40
41static u_int32_t FillArray1[]={
420x00000000,0x00000000,0x00000000,0x00000000,
430x00000000,0x00000000,0x00000000,0x00000000,
440x00000000,0x00000000,0x00000163,0x00000000,
450x00000000,0x00000000,0x00000000,0x00000000,
460x00000000,0x00000000,0x00000000,0x00000000,
470x00000000,0x00000000,0x00000000,0x00000000,
480x00000000,0x00200040,0x00008010,0x00000000,
490x00000000,0x80000001,0x00000001,0x00060000,
500x00000000,0x00000000,0x00000000,0x00000000,
510x00000000,0x00000000,0x00000000,0x00000000,
520x00000000,0x00900080,0x00000173,0x00000000,
530x00000000,0x00000010,0x00800000,0x00900000,
540xf2c0000f,0x00000200,0x00000000,0x00010600,
550x00000000,0x00000000,0x00000000,0x00000000,
560x00000000,0x00000000,0x00000163,0x330300c2,
570x06000000,0x00000000,0x80008000,0x80008000,
580x3fc0000f,0x00000301,0x00010400,0x00000000,
590x00000000,0x00000000,0x00000000,0x00000000,
600x00000000,0x00b00000,0x00d0806d,0x330480c3,
610x04800000,0x00000001,0x00800001,0x0000ffff,
620x00000000,0x00000000,0x00000000,0x00000000,
630x00000000,0x00000000,0x00000000,0x00000000,
640x00000000,0x00000000,0x00000000,0x00000000,
650x00000000,0x00000000,0x00000000,0x00000000,
660x00000000,0x00000000,0x00000000,0x00000000,
670x00000000,0x00000000,0x00000000,0x00000000,
680x00000000,0x00000000,0x00000000,0x00000000,
690x00000000,0x00000000,0x00000000,0x00000000,
700x066a0600,0x06350070,0x0000929d,0x929d929d,
710x00000000,0x0000735a,0x00000600,0x00000000,
720x929d735a,0x00000000,0x00010000,0x735a735a,
730xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
740x00000000,0x00000000,0x00000000,0x00000000,
750x00000000,0x00000000,0x00000000,0x00000000,
760x00000000,0x00000000,0x0000804f,0x000000c3,
770x05000000,0x00a00010,0x00000000,0x80008000,
780x00000000,0x00000000,0x00000700,0x00000000,
790x00000000,0x00000000,0x00000000,0x00000000,
800x00000080,0x00a00000,0x0000809a,0x000000c2,
810x07400000,0x00000000,0x80008000,0xffffffff,
820x00c80028,0x00005555,0x00000000,0x000107a0,
830x00c80028,0x000000c2,0x06800000,0x00000000,
840x06e00080,0x00300000,0x000080bb,0x000000c9,
850x07a00000,0x04000000,0x80008000,0xffffffff,
860x00c80028,0x00005555,0x00000000,0x00000780,
870x00c80028,0x000000c5,0xff800000,0x00000000,
880x00640080,0x00c00000,0x00008197,0x000000c9,
890x07800000,0x04000000,0x80008000,0xffffffff,
900x00000000,0x00000000,0x00000000,0x00000000,
910x00000000,0x00000000,0x00000000,0x00000000,
920x00000000,0x00000000,0x0000805e,0x000000c1,
930x00000000,0x00800000,0x80008000,0x80008000,
940x00020000,0x0000ffff,0x00000000,0x00000000};
95
96static u_int32_t FillArray2[]={
970x929d0600,0x929d929d,0x929d929d,0x929d0000,
980x929d929d,0x929d929d,0x929d929d,0x929d929d,
990x929d929d,0x00100635,0x060b013f,0x00000004,
1000x00000001,0x007a0002,0x00000000,0x066e0610,
1010x0105929d,0x929d929d,0x929d929d,0x929d929d,
1020x929d929d,0xa431ac75,0x0001735a,0xa431ac75,
1030xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1040xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1050xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1060xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1070xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1080xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1090xa431ac75,0xa431ac75,0xa431ac75,0x735a0051,
1100x00000000,0x929d929d,0x929d929d,0x929d929d,
1110x929d929d,0x929d929d,0x929d929d,0x929d929d,
1120x929d929d,0x929d929d,0x00000000,0x06400136,
1130x0000270f,0x00010000,0x007a0000,0x00000000,
1140x068e0645,0x0105929d,0x929d929d,0x929d929d,
1150x929d929d,0x929d929d,0xa431ac75,0x0001735a,
1160xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1170xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1180xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1190xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1200xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1210xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1220xa431ac75,0xa431ac75,0xa431ac75,0xa431ac75,
1230x735a0100,0x00000000,0x00000000,0x00000000};
124
125static u_int32_t FillArray3[]={
1260x00000000,0x00000000,0x00000000,0x00010004};
127
128static u_int32_t FillArray4[]={
1290x00040730,0x00001002,0x000f619e,0x00001003,
1300x00001705,0x00001400,0x000a411e,0x00001003,
1310x00040730,0x00001002,0x000f619e,0x00001003,
1320x00009705,0x00001400,0x000a411e,0x00001003,
1330x00040730,0x00001002,0x000f619e,0x00001003,
1340x00011705,0x00001400,0x000a411e,0x00001003,
1350x00040730,0x00001002,0x000f619e,0x00001003,
1360x00019705,0x00001400,0x000a411e,0x00001003,
1370x00040730,0x00001002,0x000f619e,0x00001003,
1380x00021705,0x00001400,0x000a411e,0x00001003,
1390x00040730,0x00001002,0x000f619e,0x00001003,
1400x00029705,0x00001400,0x000a411e,0x00001003,
1410x00040730,0x00001002,0x000f619e,0x00001003,
1420x00031705,0x00001400,0x000a411e,0x00001003,
1430x00040730,0x00001002,0x000f619e,0x00001003,
1440x00039705,0x00001400,0x000a411e,0x00001003,
1450x000fe19e,0x00001003,0x0009c730,0x00001003,
1460x0008e19c,0x00001003,0x000083c1,0x00093040,
1470x00098730,0x00001002,0x000ee19e,0x00001003,
1480x00009705,0x00001400,0x000a211e,0x00001003,
1490x00098730,0x00001002,0x000ee19e,0x00001003,
1500x00011705,0x00001400,0x000a211e,0x00001003,
1510x00098730,0x00001002,0x000ee19e,0x00001003,
1520x00019705,0x00001400,0x000a211e,0x00001003,
1530x00098730,0x00001002,0x000ee19e,0x00001003,
1540x00021705,0x00001400,0x000a211e,0x00001003,
1550x00098730,0x00001002,0x000ee19e,0x00001003,
1560x00029705,0x00001400,0x000a211e,0x00001003,
1570x00098730,0x00001002,0x000ee19e,0x00001003,
1580x00031705,0x00001400,0x000a211e,0x00001003,
1590x00098730,0x00001002,0x000ee19e,0x00001003,
1600x00039705,0x00001400,0x000a211e,0x00001003,
1610x0000a730,0x00001008,0x000e2730,0x00001002,
1620x0000a731,0x00001002,0x0000a731,0x00001002,
1630x0000a731,0x00001002,0x0000a731,0x00001002,
1640x0000a731,0x00001002,0x0000a731,0x00001002,
1650x00000000,0x00000000,0x000f619c,0x00001003,
1660x0007f801,0x000c0000,0x00000037,0x00001000,
1670x00000000,0x00000000,0x00000000,0x00000000,
1680x00000000,0x00000000,0x00000000,0x00000000,
1690x00000000,0x000c0000,0x00000000,0x00000000,
1700x0000373c,0x00001000,0x00000000,0x00000000,
1710x000ee19c,0x00001003,0x0007f801,0x000c0000,
1720x00000037,0x00001000,0x00000000,0x00000000,
1730x00000000,0x00000000,0x00000000,0x00000000,
1740x00000000,0x00000000,0x0000273c,0x00001000,
1750x00000033,0x00001000,0x000e679e,0x00001003,
1760x00007705,0x00001400,0x000ac71e,0x00001003,
1770x00087fc1,0x000c3be0,0x0007f801,0x000c0000,
1780x00000037,0x00001000,0x00000000,0x00000000,
1790x00000000,0x00000000,0x00000000,0x00000000,
1800x00000000,0x00000000,0x0000a730,0x00001003,
1810x00000033,0x00001000,0x0007f801,0x000c0000,
1820x00000037,0x00001000,0x00000000,0x00000000,
1830x00000000,0x00000000,0x00000000,0x00000000,
1840x00000000,0x00000000,0x00000000,0x000c0000,
1850x00000032,0x00001000,0x0000273d,0x00001000,
1860x0004a730,0x00001003,0x00000f41,0x00097140,
1870x0000a841,0x0009b240,0x0000a0c1,0x0009f040,
1880x0001c641,0x00093540,0x0001cec1,0x0009b5c0,
1890x00000000,0x00000000,0x0001bf05,0x0003fc40,
1900x00002725,0x000aa400,0x00013705,0x00093a00,
1910x0000002e,0x0009d6c0,0x00038630,0x00001004,
1920x0004ef0a,0x000eb785,0x0003fc8a,0x00000000,
1930x00000000,0x000c70e0,0x0007d182,0x0002c640,
1940x00000630,0x00001004,0x000799b8,0x0002c6c0,
1950x00031705,0x00092240,0x00039f05,0x000932c0,
1960x0003520a,0x00000000,0x00040731,0x0000100b,
1970x00010705,0x000b20c0,0x00000000,0x000eba44,
1980x00032108,0x000c60c4,0x00065208,0x000c2917,
1990x000406b0,0x00001007,0x00012f05,0x00036880,
2000x0002818e,0x000c0000,0x0004410a,0x00000000,
2010x00040630,0x00001007,0x00029705,0x000c0000,
2020x00000000,0x00000000,0x00003fc1,0x0003fc40,
2030x000037c1,0x00091b40,0x00003fc1,0x000911c0,
2040x000037c1,0x000957c0,0x00003fc1,0x000951c0,
2050x000037c1,0x00000000,0x00003fc1,0x000991c0,
2060x000037c1,0x00000000,0x00003fc1,0x0009d1c0,
2070x000037c1,0x00000000,0x0001ccc1,0x000915c0,
2080x0001c441,0x0009d800,0x0009cdc1,0x00091240,
2090x0001c541,0x00091d00,0x0009cfc1,0x00095240,
2100x0001c741,0x00095c80,0x000e8ca9,0x00099240,
2110x000e85ad,0x00095640,0x00069ca9,0x00099d80,
2120x000e952d,0x00099640,0x000eaca9,0x0009d6c0,
2130x000ea5ad,0x00091a40,0x0006bca9,0x0009de80,
2140x000eb52d,0x00095a40,0x000ecca9,0x00099ac0,
2150x000ec5ad,0x0009da40,0x000edca9,0x0009d300,
2160x000a6e0a,0x00001000,0x000ed52d,0x00091e40,
2170x000eeca9,0x00095ec0,0x000ee5ad,0x00099e40,
2180x0006fca9,0x00002500,0x000fb208,0x000c59a0,
2190x000ef52d,0x0009de40,0x00068ca9,0x000912c1,
2200x000683ad,0x00095241,0x00020f05,0x000991c1,
2210x00000000,0x00000000,0x00086f88,0x00001000,
2220x0009cf81,0x000b5340,0x0009c701,0x000b92c0,
2230x0009de81,0x000bd300,0x0009d601,0x000b1700,
2240x0001fd81,0x000b9d80,0x0009f501,0x000b57c0,
2250x000a0f81,0x000bd740,0x00020701,0x000b5c80,
2260x000a1681,0x000b97c0,0x00021601,0x00002500,
2270x000a0701,0x000b9b40,0x000a0f81,0x000b1bc0,
2280x00021681,0x00002d00,0x00020f81,0x000bd800,
2290x000a0701,0x000b5bc0,0x00021601,0x00003500,
2300x000a0f81,0x000b5f40,0x000a0701,0x000bdbc0,
2310x00021681,0x00003d00,0x00020f81,0x000b1d00,
2320x000a0701,0x000b1fc0,0x00021601,0x00020500,
2330x00020f81,0x000b1341,0x000a0701,0x000b9fc0,
2340x00021681,0x00020d00,0x00020f81,0x000bde80,
2350x000a0701,0x000bdfc0,0x00021601,0x00021500,
2360x00020f81,0x000b9341,0x00020701,0x000b53c1,
2370x00021681,0x00021d00,0x000a0f81,0x000d0380,
2380x0000b601,0x000b15c0,0x00007b01,0x00000000,
2390x00007b81,0x000bd1c0,0x00007b01,0x00000000,
2400x00007b81,0x000b91c0,0x00007b01,0x000b57c0,
2410x00007b81,0x000b51c0,0x00007b01,0x000b1b40,
2420x00007b81,0x000b11c0,0x00087b01,0x000c3dc0,
2430x0007e488,0x000d7e45,0x00000000,0x000d7a44,
2440x0007e48a,0x00000000,0x00011f05,0x00084080,
2450x00000000,0x00000000,0x00001705,0x000b3540,
2460x00008a01,0x000bf040,0x00007081,0x000bb5c0,
2470x00055488,0x00000000,0x0000d482,0x0003fc40,
2480x0003fc88,0x00000000,0x0001e401,0x000b3a00,
2490x0001ec81,0x000bd6c0,0x0004ef08,0x000eb784,
2500x000c86b0,0x00001007,0x00008281,0x000bb240,
2510x0000b801,0x000b7140,0x00007888,0x00000000,
2520x0000073c,0x00001000,0x0007f188,0x000c0000,
2530x00000000,0x00000000,0x00055288,0x000c555c,
2540x0005528a,0x000c0000,0x0009fa88,0x000c5d00,
2550x0000fa88,0x00000000,0x00000032,0x00001000,
2560x0000073d,0x00001000,0x0007f188,0x000c0000,
2570x00000000,0x00000000,0x0008c01c,0x00001003,
2580x00002705,0x00001008,0x0008b201,0x000c1392,
2590x0000ba01,0x00000000,0x00008731,0x00001400,
2600x0004c108,0x000fe0c4,0x00057488,0x00000000,
2610x000a6388,0x00001001,0x0008b334,0x000bc141,
2620x0003020e,0x00000000,0x000886b0,0x00001008,
2630x00003625,0x000c5dfa,0x000a638a,0x00001001,
2640x0008020e,0x00001002,0x0008a6b0,0x00001008,
2650x0007f301,0x00000000,0x00000000,0x00000000,
2660x00002725,0x000a8c40,0x000000ae,0x00000000,
2670x000d8630,0x00001008,0x00000000,0x000c74e0,
2680x0007d182,0x0002d640,0x000a8630,0x00001008,
2690x000799b8,0x0002d6c0,0x0000748a,0x000c3ec5,
2700x0007420a,0x000c0000,0x00062208,0x000c4117,
2710x00070630,0x00001009,0x00000000,0x000c0000,
2720x0001022e,0x00000000,0x0003a630,0x00001009,
2730x00000000,0x000c0000,0x00000036,0x00001000,
2740x00000000,0x00000000,0x00000000,0x00000000,
2750x00000000,0x00000000,0x00000000,0x00000000,
2760x0002a730,0x00001008,0x0007f801,0x000c0000,
2770x00000037,0x00001000,0x00000000,0x00000000,
2780x00000000,0x00000000,0x00000000,0x00000000,
2790x00000000,0x00000000,0x0002a730,0x00001008,
2800x00000033,0x00001000,0x0002a705,0x00001008,
2810x00007a01,0x000c0000,0x000e6288,0x000d550a,
2820x0006428a,0x00000000,0x00060730,0x0000100a,
2830x00000000,0x000c0000,0x00000000,0x00000000,
2840x0007aab0,0x00034880,0x00078fb0,0x0000100b,
2850x00057488,0x00000000,0x00033b94,0x00081140,
2860x000183ae,0x00000000,0x000786b0,0x0000100b,
2870x00022f05,0x000c3545,0x0000eb8a,0x00000000,
2880x00042731,0x00001003,0x0007aab0,0x00034880,
2890x00048fb0,0x0000100a,0x00057488,0x00000000,
2900x00033b94,0x00081140,0x000183ae,0x00000000,
2910x000806b0,0x0000100b,0x00022f05,0x00000000,
2920x00007401,0x00091140,0x00048f05,0x000951c0,
2930x00042731,0x00001003,0x0000473d,0x00001000,
2940x000f19b0,0x000bbc47,0x00080000,0x000bffc7,
2950x000fe19e,0x00001003,0x00000000,0x00000000,
2960x0008e19c,0x00001003,0x000083c1,0x00093040,
2970x00000f41,0x00097140,0x0000a841,0x0009b240,
2980x0000a0c1,0x0009f040,0x0001c641,0x00093540,
2990x0001cec1,0x0009b5c0,0x00000000,0x000fdc44,
3000x00055208,0x00000000,0x00010705,0x000a2880,
3010x0000a23a,0x00093a00,0x0003fc8a,0x000df6c5,
3020x0004ef0a,0x000c0000,0x00012f05,0x00036880,
3030x00065308,0x000c2997,0x000d86b0,0x0000100a,
3040x0004410a,0x000d40c7,0x00000000,0x00000000,
3050x00080730,0x00001004,0x00056f0a,0x000ea105,
3060x00000000,0x00000000,0x0000473d,0x00001000,
3070x000f19b0,0x000bbc47,0x00080000,0x000bffc7,
3080x0000273d,0x00001000,0x00000000,0x000eba44,
3090x00048f05,0x0000f440,0x00007401,0x0000f7c0,
3100x00000734,0x00001000,0x00010705,0x000a6880,
3110x00006a88,0x000c75c4,0x00000000,0x000e5084,
3120x00000000,0x000eba44,0x00087401,0x000e4782,
3130x00000734,0x00001000,0x00010705,0x000a6880,
3140x00006a88,0x000c75c4,0x0007c108,0x000c0000,
3150x0007e721,0x000bed40,0x00005f25,0x000badc0,
3160x0003ba97,0x000beb80,0x00065590,0x000b2e00,
3170x00033217,0x00003ec0,0x00065590,0x000b8e40,
3180x0003ed80,0x000491c0,0x00073fb0,0x00074c80,
3190x000283a0,0x0000100c,0x000ee388,0x00042970,
3200x00008301,0x00021ef2,0x000b8f14,0x0000000f,
3210x000c4d8d,0x0000001b,0x000d6dc2,0x000e06c6,
3220x000032ac,0x000c3916,0x0004edc2,0x00074c80,
3230x00078898,0x00001000,0x00038894,0x00000032,
3240x000c4d8d,0x00092e1b,0x000d6dc2,0x000e06c6,
3250x0004edc2,0x000c1956,0x0000722c,0x00034a00,
3260x00041705,0x0009ed40,0x00058730,0x00001400,
3270x000d7488,0x000c3a00,0x00048f05,0x00000000};
328
329static struct
330{ u_int32_t Offset;
331 u_int32_t Size;
332 u_int32_t *pFill;
333} FillStat[FILL__COUNT] = {
334 {0x00000000, sizeof(FillArray1), FillArray1},
335 {0x00001800, sizeof(FillArray2), FillArray2},
336 {0x000137f0, sizeof(FillArray3), FillArray3},
337 {0x00020000, sizeof(FillArray4), FillArray4}
338 };
339
340
341#endif