~ubuntu-branches/ubuntu/vivid/oss4/vivid-proposed

« back to all changes in this revision

Viewing changes to attic/drv/oss_allegro/port.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      ESS Technology allegro audio driver.
 
3
 *
 
4
 *      Copyright (C) 1992-2000  Don Kim (don.kim@esstech.com)
 
5
 *
 
6
 */
 
7
#define VOID void
 
8
typedef void *PVOID;
 
9
typedef char CHAR;
 
10
typedef short SHORT;
 
11
typedef long LONG;
 
12
//typedef int BOOL;
 
13
//typedef unsigned char UCHAR;
 
14
typedef unsigned char *PBYTE;
 
15
typedef unsigned short *PUSHORT;
 
16
#define BYTE UCHAR
 
17
#define BOOLEAN UCHAR
 
18
typedef unsigned long DWORD;
 
19
#define USHORT  WORD
 
20
typedef unsigned short WORD;
 
21
#define ULONG   DWORD
 
22
#define IN
 
23
#define OUT
 
24
#ifndef TRUE
 
25
#define TRUE 1
 
26
#define FALSE 0
 
27
#endif
 
28
typedef unsigned short *PWORD;
 
29
typedef unsigned long *PDWORD;
 
30
typedef unsigned long *PULONG;
 
31
 
 
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)
 
36
 
 
37
#define CRITENTER
 
38
 
 
39
#define CRITLEAVE
 
40
 
 
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))
 
47
 
 
48
 
 
49
#define KeStallExecutionProcessor       oss_udelay
 
50
#define SoundDelay      mdelay
 
51
 
 
52
#define KeAcquireSpinLock(a, b)
 
53
 
 
54
#define KeReleaseSpinLock(a, b)
 
55
 
 
56
 
 
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)
 
61
 
 
62
#define __cdecl
 
63
 
 
64
typedef struct _WAVE_INFO
 
65
{
 
66
  ULONG SamplesPerSec;
 
67
  UCHAR BitsPerSample;
 
68
  UCHAR Channels;
 
69
}
 
70
WAVE_INFO, *PWAVE_INFO;
 
71
 
 
72
#define KIRQL
 
73
#define OldIrql
 
74
 
 
75
#ifdef MDEBUG
 
76
extern void dDbgOut (char *sz, ...);
 
77
#define dprintf1( _x_ ) if (debug >= 1) dDbgOut _x_
 
78
#define dprintf3( _x_ ) if (debug >= 3) dDbgOut _x_
 
79
#else
 
80
#define dprintf1( _x_ )
 
81
#define dprintf3( _x_ )
 
82
#endif