~ubuntu-branches/ubuntu/karmic/mplayer/karmic

« back to all changes in this revision

Viewing changes to vidix/dha.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-06 23:01:52 UTC
  • mfrom: (0.1.6 squeeze) (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090606230152-qxn13xfnq65nz088
Tags: 2:1.0~rc3+svn20090426-1ubuntu1
* Switch to debian packaging for the mplayer package
* New upstream release, LP: #336697, #260918, #246675, #243453, #74282
* Fixes security issues: CVE-2008-5616, LP: #308939
* many flv fixes LP: #73271, #347021
* Build and install mencoder
* Bump epoch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * VIDIX Direct Hardware Access (DHA).
3
3
 * Copyright (C) 2002 Nick Kurshev
4
4
 *
 
5
 * 1996/10/27   - Robin Cutshaw (robin@xfree86.org)
 
6
 *                XFree86 3.3.3 implementation
 
7
 * 1999         - Øyvind Aabling.
 
8
 *                Modified for GATOS/win/gfxdump.
 
9
 *
 
10
 * 2002         - library implementation by Nick Kurshev
 
11
 *              - dhahelper and some changes by Alex Beregszaszi
 
12
 *
 
13
 * supported OSes: SVR4, UnixWare, SCO, Solaris,
 
14
 *                 FreeBSD, NetBSD, 386BSD, BSDI BSD/386,
 
15
 *                 Linux, Mach/386, ISC
 
16
 *                 DOS (WATCOM 9.5 compiler), Win9x (with mapdev.vxd)
 
17
 * original location: www.linuxvideo.org/gatos
 
18
 *
5
19
 * This file is part of MPlayer.
6
20
 *
7
21
 * MPlayer is free software; you can redistribute it and/or modify
14
28
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
29
 * GNU General Public License for more details.
16
30
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with MPlayer; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 
 *
21
 
 *   1996/10/27 - Robin Cutshaw (robin@xfree86.org)
22
 
 *                XFree86 3.3.3 implementation
23
 
 *   1999       - Øyvind Aabling.
24
 
 *                Modified for GATOS/win/gfxdump.
25
 
 *                
26
 
 *   2002       - library implementation by Nick Kurshev
27
 
 *              - dhahelper and some changes by Alex Beregszaszi
28
 
 *   
29
 
 *   Supported O/S's:   SVR4, UnixWare, SCO, Solaris,
30
 
 *                      FreeBSD, NetBSD, 386BSD, BSDI BSD/386,
31
 
 *                      Linux, Mach/386, ISC
32
 
 *                      DOS (WATCOM 9.5 compiler), Win9x (with mapdev.vxd)
33
 
 *   Original location: www.linuxvideo.org/gatos
 
31
 * You should have received a copy of the GNU General Public License along
 
32
 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
 
33
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
34
34
 */
35
35
 
36
36
#include "config.h"
43
43
#include <fcntl.h>
44
44
#include <sys/stat.h>
45
45
#include <sys/types.h>
46
 
#ifdef ARCH_ALPHA
 
46
#if ARCH_ALPHA
47
47
#include <sys/io.h>
48
48
#endif
49
49
#include <unistd.h>
50
50
 
51
 
#if defined(WIN32)
 
51
#if defined(__MINGW32__) || defined(__CYGWIN__)
52
52
#include "sysdep/libdha_win32.c"
53
53
#elif defined (__EMX__)
54
54
#include "sysdep/libdha_os2.c"
80
80
#endif
81
81
 
82
82
#ifdef CONFIG_DHAHELPER
83
 
#include "kernelhelper/dhahelper.h"
 
83
#include "dhahelper/dhahelper.h"
84
84
#endif
85
85
 
86
86
#ifdef CONFIG_SVGAHELPER
91
91
 
92
92
void *map_phys_mem(unsigned long base, unsigned long size)
93
93
{    
94
 
#ifdef ARCH_ALPHA
 
94
#if ARCH_ALPHA
95
95
/* TODO: move it into sysdep */
96
96
  base += bus_base();
97
97
#endif
185
185
 
186
186
#endif /* Generic mmap (not win32, nor os2) */
187
187
 
188
 
#if !defined(__alpha__) && !defined(__powerpc__)
 
188
#if !defined(__alpha__) && !defined(__powerpc__) && !defined(__sh__)
189
189
unsigned char INPORT8(unsigned idx)
190
190
{
191
191
  return inb(idx);