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

« back to all changes in this revision

Viewing changes to hw/xfree86/os-support/solaris/sun_agp.c

  • 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:
67
67
 * Close /dev/agpgart.  This frees all associated memory allocated during
68
68
 * this server generation.
69
69
 */
70
 
Bool
 
70
_X_EXPORT Bool
71
71
xf86GARTCloseScreen(int screenNum)
72
72
{
73
73
        if (gartFd != -1) {
111
111
        return TRUE;
112
112
}
113
113
 
114
 
Bool
 
114
_X_EXPORT Bool
115
115
xf86AgpGARTSupported(void)
116
116
{
117
117
        return (GARTInit(-1));
118
118
 
119
119
}
120
120
 
121
 
AgpInfoPtr
 
121
_X_EXPORT AgpInfoPtr
122
122
xf86GetAGPInfo(int screenNum)
123
123
{
124
124
        agp_info_t agpinf;
151
151
        return info;
152
152
}
153
153
 
154
 
Bool
 
154
_X_EXPORT Bool
155
155
xf86AcquireGART(int screenNum)
156
156
{
157
157
 
172
172
        return TRUE;
173
173
}
174
174
 
175
 
Bool
 
175
_X_EXPORT Bool
176
176
xf86ReleaseGART(int screenNum)
177
177
{
178
178
 
201
201
        return FALSE;
202
202
}
203
203
 
204
 
int
 
204
_X_EXPORT int
205
205
xf86AllocateGARTMemory(int screenNum, unsigned long size, int type,
206
206
                        unsigned long *physical)
207
207
{
239
239
        return alloc.agpa_key;
240
240
}
241
241
 
242
 
Bool
 
242
_X_EXPORT Bool
243
243
xf86DeallocateGARTMemory(int screenNum, int key)
244
244
{
245
245
        if (!GARTInit(screenNum) || (acquiredScreen != screenNum))
256
256
}
257
257
 
258
258
/* Bind GART memory with "key" at "offset" */
259
 
Bool
 
259
_X_EXPORT Bool
260
260
xf86BindGARTMemory(int screenNum, int key, unsigned long offset)
261
261
{
262
262
        agp_bind_t bind;
292
292
}
293
293
 
294
294
/* Unbind GART memory with "key" */
295
 
Bool
 
295
_X_EXPORT Bool
296
296
xf86UnbindGARTMemory(int screenNum, int key)
297
297
{
298
298
        agp_unbind_t unbind;
318
318
 
319
319
 
320
320
/* XXX Interface may change. */
321
 
Bool
 
321
_X_EXPORT Bool
322
322
xf86EnableAGP(int screenNum, CARD32 mode)
323
323
{
324
324
        agp_setup_t setup;