Annotation of sys/dev/isa/opti.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: opti.h,v 1.6 2003/06/02 19:24:22 mickey Exp $ */
2:
3: /*
4: * Copyright (c) 1996 Michael Shalayeff
5: * All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: *
16: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26: * SUCH DAMAGE.
27: *
28: */
29:
30: #ifndef __OPTI_HEADER__
31: #define __OPTI_HEADER__
32:
33: /* card types */
34:
35: #define OPTI_C928 0xe2
36: #define OPTI_MOZART 0xe2
37: #define OPTI_C929 0xe3
38: #define OPTI_C930 0xe3 /* XXX 0xe4 ??? */
39:
40: /* i/o ports */
41:
42: #define OPTI_4 0xF84
43: #define OPTI_5 0xF85
44: #define OPTI_DATA 0xF8E
45: #define OPTI_IFTP 0xF8D /* iface control register */
46: #define OPTI_PASSWD 0xF8F
47: #define OPTI_ENBL 0xF91
48:
49: #define OPTI_SND_MASK 0xf1
50:
51: /* CD-ROM iface setup */
52:
53: /* CD-ROM interface types */
54: #define OPTI_DISABLE 0
55: #define OPTI_SONY 1
56: #define OPTI_MITSUMI 2
57: #define OPTI_PANASONIC 3
58: #define OPTI_IDE 4
59:
60: /* Sound system setup */
61:
62: /* Sound iface types */
63: #define OPTI_WSS (0) /* Windows Sound System */
64: #define OPTI_SB (1) /* Sound Blaster Pro(tm) compatible */
65:
66: #ifdef _KERNEL
67: int opti_cd_setup( int, int, int, int );
68: int opti_snd_setup( int, int, int, int );
69: #endif
70:
71: #endif /* __OPTI_HEADER__ */
CVSweb