2
* ESS Technology allegro audio driver.
4
* Copyright (C) 1992-2000 Don Kim (don.kim@esstech.com)
13
//typedef unsigned char UCHAR;
14
typedef unsigned char *PBYTE;
15
typedef unsigned short *PUSHORT;
18
typedef unsigned long DWORD;
20
typedef unsigned short WORD;
28
typedef unsigned short *PWORD;
29
typedef unsigned long *PDWORD;
30
typedef unsigned long *PULONG;
32
#define inp(o,a) INB(o, a)
33
#define inpw(o,a) INW(o, a)
34
#define outp(o,a,d) OUTB(o, d, a)
35
#define outpw(o,a,d) OUTW(o, d, a)
41
#define MAKEWORD(a, b) ((WORD)(((BYTE)(a)) | ((WORD)((BYTE)(b))) << 8))
42
#define MAKELONG(a, b) ((LONG)(((WORD)(a)) | ((DWORD)((WORD)(b))) << 16))
43
#define LOWORD(l) ((WORD)(l))
44
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
45
#define LOBYTE(w) ((BYTE)(w))
46
#define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF))
49
#define KeStallExecutionProcessor oss_udelay
50
#define SoundDelay mdelay
52
#define KeAcquireSpinLock(a, b)
54
#define KeReleaseSpinLock(a, b)
57
#define READ_PORT_UCHAR( o, a ) INB(o, a)
58
#define READ_PORT_USHORT( o, a ) INW(o, a)
59
#define WRITE_PORT_UCHAR( o, a, d ) OUTB(o, d, a)
60
#define WRITE_PORT_USHORT( o, a, d ) OUTW(o, d, a)
64
typedef struct _WAVE_INFO
70
WAVE_INFO, *PWAVE_INFO;
76
extern void dDbgOut (char *sz, ...);
77
#define dprintf1( _x_ ) if (debug >= 1) dDbgOut _x_
78
#define dprintf3( _x_ ) if (debug >= 3) dDbgOut _x_
80
#define dprintf1( _x_ )
81
#define dprintf3( _x_ )