echo "Gateworks Ventana OpenWrt Boot script v1.01" # set some defaults # set some defaults test -n "$fs" || fs=ext2 test -n "$disk" || disk=0 setenv nextcon 0 setenv bootargs console=${console},${baudrate} setenv loadaddr 10800000 setenv fdt_addr 18000000 # detect dtype and bootdev by looking for kernel on media the bootloader # has mounted (in order of preference: usb/mmc/sata) # # This assumes the bootloader has already started the respective subsystem # or mounted the filesystem if appropriate to get to this bootscript # # To Speed up boot set dtype manually if test -n "$dtype" ; then echo "Using dtype from env: $dtype" else echo "Detecting boot device (dtype)..." if ${fs}load usb ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then dtype=usb elif ${fs}load mmc ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then dtype=mmc elif ${fs}load sata ${disk}:1 ${loadaddr} ${bootdir}/uImage ; then dtype=sata elif ubifsload ${loadaddr} ${bootdir}/uImage ; then dtype=nand fi echo "detected dtype:$dtype" fi if test -n "$bootdev" ; then echo "Using bootdev from env: $bootdev" else if itest.s "x${dtype}" == "xmmc" ; then bootdev=mmcblk0p1 else bootdev=sda1 fi fi if itest.s "x${dtype}" == "xnand" ; then echo "Booting from NAND..." # fix partition name # OpenWrt kernel bug prevents partition name of 'rootfs' from booting # instead name the partition ubi which is what is looked for by # procd sysupgrade mtdparts del rootfs && mtdparts add nand0 - ubi echo "mtdparts:${mtdparts}" setenv fsload ubifsload setenv root "ubi0:ubi ubi.mtd=2 rootfstype=squashfs,ubifs" else echo "Booting from block device ${bootdev}..." setenv fsload "${fs}load ${dtype} ${disk}:1" setenv root "root=/dev/${bootdev} rootfstype=${fs} rootwait rw" fi setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}" if ${fsload} ${loadaddr} ${bootdir}/uImage; then if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then echo Loaded DTB from ${bootdir}/${fdt_file} test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then echo Loaded DTB from ${bootdir}/${fdt_file1} test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then echo Loaded DTB from ${bootdir}/${fdt_file2} test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} else echo "Error loading device-tree" fi else echo "Error loading kernel image" fi er'>committer
path: root/tools/ioemu/iodev/soundwin.h
blob: 122fa554e9e902eb98b533456cfbb9de7e6906dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
/////////////////////////////////////////////////////////////////////////
// $Id: soundwin.h,v 1.3 2001/10/03 13:10:38 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
//  Copyright (C) 2001  MandrakeSoft S.A.
//
//    MandrakeSoft S.A.
//    43, rue d'Aboukir
//    75002 Paris - France
//    http://www.linux-mandrake.com/
//    http://www.mandrakesoft.com/
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2 of the License, or (at your option) any later version.
//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

// This file (SOUNDWIN.H) written and donated by Josef Drexler


#if defined(WIN32)

#include "bochs.h"
#include <windows.h>

// uncomment one of the following two #defines
//#define usesndPlaySnd
#define usewaveOut

#define BX_SOUND_WINDOWS_MAXSYSEXLEN  256    // maximum supported length of a sysex message

#define BX_SOUND_WINDOWS_NBUF 	4   // number of buffers for the output, must be power of 2 and >= 4
#define BX_SOUND_WINDOWS_NMASK	(BX_SOUND_WINDOWS_NBUF - 1)

#ifndef WAVEMAPPER
#define WAVEMAPPER		-1
#endif

// Definitions for WINMM.DLL, if not defined already
#ifndef MMSYSERR_NOERROR

#pragma pack(1)

typedef UINT HMIDIOUT;