BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / drivers / audio / ac97 / auich / config.h
blob695712c4d2e39ee8b7c5c45ef5b3c80d876db4eb
1 /*
2 * Auich BeOS Driver for Intel Southbridge audio
4 * Copyright (c) 2003, Jerome Duval (jerome.duval@free.fr)
6 * Original code : BeOS Driver for Intel ICH AC'97 Link interface
7 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
9 * All rights reserved.
10 * Redistribution and use in source and binary forms, with or without modification,
11 * are permitted provided that the following conditions are met:
13 * - Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * - Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
25 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef _CONFIG_H_
32 #define _CONFIG_H_
34 #include "ac97.h"
36 #define NUM_CARDS 3
37 #define DEVNAME 32
39 typedef struct
41 uint32 nabmbar;
42 uint32 nambar;
43 uint32 irq;
44 uint32 type;
45 uint32 mmbar; // ich4
46 uint32 mbbar; // ich4
47 void * log_mmbar; // ich4
48 void * log_mbbar; // ich4
49 area_id area_mmbar; // ich4
50 area_id area_mbbar; // ich4
52 ushort subvendor_id;
53 ushort subsystem_id;
55 ac97_dev *ac97;
56 } device_config;
58 #define TYPE_ICH4 0x01
59 #define TYPE_SIS7012 0x02
61 #define IS_ICH4(x) ((x)->type & TYPE_ICH4)
62 #define IS_SIS7012(x) ((x)->type & TYPE_SIS7012)
63 #endif