~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to vidix/dhahelper/dhahelper.h

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Direct Hardware Access (DHA) kernel helper
 
3
 *
 
4
 * Copyright (C) 2002 Alex Beregszaszi <alex@fsn.hu>
 
5
 * This file is part of MPlayer.
 
6
 *
 
7
 * MPlayer is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * MPlayer is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License along
 
18
 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
 
19
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 */
 
21
 
 
22
#ifndef MPLAYER_DHAHELPER_H
 
23
#define MPLAYER_DHAHELPER_H
 
24
 
 
25
#include <linux/ioctl.h>
 
26
 
 
27
/* feel free to change */
 
28
#define DEFAULT_MAJOR   180
 
29
 
 
30
#define API_VERSION     0x1
 
31
 
 
32
typedef struct dhahelper_port_s
 
33
{
 
34
#define PORT_OP_READ    1
 
35
#define PORT_OP_WRITE   2
 
36
    int         operation;
 
37
    int         size;
 
38
    int         addr;
 
39
    int         value;
 
40
} dhahelper_port_t;
 
41
 
 
42
typedef struct dhahelper_memory_s
 
43
{
 
44
#define MEMORY_OP_MAP   1
 
45
#define MEMORY_OP_UNMAP 2
 
46
    int         operation;
 
47
    int         start;
 
48
    int         offset;
 
49
    int         size;
 
50
    int         ret;
 
51
#define MEMORY_FLAG_NOCACHE 1
 
52
    int         flags;
 
53
} dhahelper_memory_t;
 
54
 
 
55
typedef struct dhahelper_mtrr_s
 
56
{
 
57
#define MTRR_OP_ADD     1
 
58
#define MTRR_OP_DEL     2
 
59
    int         operation;
 
60
    int         start;
 
61
    int         size;
 
62
    int         type;
 
63
} dhahelper_mtrr_t;
 
64
 
 
65
typedef struct dhahelper_pci_s
 
66
{
 
67
#define PCI_OP_READ     1
 
68
#define PCI_OP_WRITE    1
 
69
    int         operation;
 
70
    int         bus;
 
71
    int         dev;
 
72
    int         func;
 
73
    int         cmd;
 
74
    int         size;
 
75
    int         ret;
 
76
} dhahelper_pci_t;
 
77
 
 
78
#define DHAHELPER_GET_VERSION   _IOW('D', 0, int)
 
79
#define DHAHELPER_PORT          _IOWR('D', 1, dhahelper_port_t)
 
80
#define DHAHELPER_MEMORY        _IOWR('D', 2, dhahelper_memory_t)
 
81
#define DHAHELPER_MTRR          _IOWR('D', 3, dhahelper_mtrr_t)
 
82
#define DHAHELPER_PCI           _IOWR('D', 4, dhahelper_pci_t)
 
83
 
 
84
#endif /* MPLAYER_DHAHELPER_H */