~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/kdrive/chips/chips.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Id: chips.h,v 1.2 1999/11/02 08:17:24 keithp Exp $
 
3
 *
 
4
 * Copyright � 1999 Keith Packard
 
5
 *
 
6
 * Permission to use, copy, modify, distribute, and sell this software and its
 
7
 * documentation for any purpose is hereby granted without fee, provided that
 
8
 * the above copyright notice appear in all copies and that both that
 
9
 * copyright notice and this permission notice appear in supporting
 
10
 * documentation, and that the name of Keith Packard not be used in
 
11
 * advertising or publicity pertaining to distribution of the software without
 
12
 * specific, written prior permission.  Keith Packard makes no
 
13
 * representations about the suitability of this software for any purpose.  It
 
14
 * is provided "as is" without express or implied warranty.
 
15
 *
 
16
 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
17
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 
18
 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
19
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
20
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
21
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
22
 * PERFORMANCE OF THIS SOFTWARE.
 
23
 */
 
24
/* $RCSId: xc/programs/Xserver/hw/kdrive/chips/chips.h,v 1.9 2000/11/29 08:42:25 keithp Exp $ */
 
25
 
 
26
#ifndef _CHIPS_H_
 
27
#define _CHIPS_H_
 
28
#include <vesa.h>
 
29
 
 
30
/*
 
31
 * offset from ioport beginning 
 
32
 */
 
33
 
 
34
#define HIQV
 
35
#ifdef HIQV
 
36
#define CHIPS_MMIO_BASE(c)      ((c)->vesa.fb_phys + 0x400000)
 
37
#else
 
38
#define CHIPS_MMIO_BASE(c)      ((c)->vesa.fb_phys + 0x200000)
 
39
#endif
 
40
#define CHIPS_MMIO_SIZE(c)      (0x20000)
 
41
 
 
42
typedef volatile CARD8  VOL8;
 
43
typedef volatile CARD16 VOL16;
 
44
typedef volatile CARD32 VOL32;
 
45
 
 
46
typedef struct _chipsSave {
 
47
    int     dummy;
 
48
} ChipsSave;
 
49
 
 
50
typedef struct _chipsCardInfo {
 
51
    VesaCardPrivRec     vesa;
 
52
    CARD32              *window;
 
53
    Bool                mmio;
 
54
    ChipsSave           save;
 
55
} ChipsCardInfo;
 
56
    
 
57
#define getChipsCardInfo(kd)  ((ChipsCardInfo *) ((kd)->card->driver))
 
58
#define chipsCardInfo(kd)           ChipsCardInfo       *chipsc = getChipsCardInfo(kd)
 
59
 
 
60
typedef struct _chipsCursor {
 
61
    int         width, height;
 
62
    int         xhot, yhot;
 
63
    Bool        has_cursor;
 
64
    CursorPtr   pCursor;
 
65
    Pixel       source, mask;
 
66
} ChipsCursor;
 
67
 
 
68
#define CHIPS_CURSOR_WIDTH      64
 
69
#define CHIPS_CURSOR_HEIGHT     64
 
70
 
 
71
typedef struct _chipsScreenInfo {
 
72
    VesaScreenPrivRec   vesa;
 
73
    CARD8           *mmio_base;
 
74
    CARD8           *cursor_base;
 
75
    CARD8           *screen;
 
76
    CARD8           *off_screen;
 
77
    int             off_screen_size;
 
78
    ChipsCursor   cursor;
 
79
    KaaScreenInfoRec kaa;
 
80
} ChipsScreenInfo;
 
81
 
 
82
#define getChipsScreenInfo(kd) ((ChipsScreenInfo *) ((kd)->screen->driver))
 
83
#define chipsScreenInfo(kd)    ChipsScreenInfo *chipss = getChipsScreenInfo(kd)
 
84
 
 
85
Bool
 
86
chipsDrawInit (ScreenPtr pScreen);
 
87
 
 
88
void
 
89
chipsDrawEnable (ScreenPtr pScreen);
 
90
 
 
91
void
 
92
chipsDrawDisable (ScreenPtr pScreen);
 
93
 
 
94
void
 
95
chipsDrawFini (ScreenPtr pScreen);
 
96
 
 
97
CARD8
 
98
chipsReadXR (ChipsScreenInfo *chipsc, CARD8 index);
 
99
 
 
100
void
 
101
chipsWriteXR (ChipsScreenInfo *chipsc, CARD8 index, CARD8 value);
 
102
 
 
103
Bool
 
104
chipsCursorInit (ScreenPtr pScreen);
 
105
 
 
106
void
 
107
chipsCursorEnable (ScreenPtr pScreen);
 
108
 
 
109
void
 
110
chipsCursorDisable (ScreenPtr pScreen);
 
111
 
 
112
void
 
113
chipsCursorFini (ScreenPtr pScreen);
 
114
 
 
115
void
 
116
chipsRecolorCursor (ScreenPtr pScreen, int ndef, xColorItem *pdef);
 
117
 
 
118
extern KdCardFuncs  chipsFuncs;
 
119
 
 
120
#endif /* _CHIPS_H_ */