mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-27 04:40:12 +01:00
Added Intel 830 entry points in libdrm compatability module.
This commit is contained in:
parent
07f9ee52e1
commit
fea2c78421
1 changed files with 47 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ extern int xf86RemoveSIGIOHandler(int fd);
|
|||
#include "r128_drm.h"
|
||||
#include "radeon_drm.h"
|
||||
#include "sis_drm.h"
|
||||
#include "i830_drm.h"
|
||||
|
||||
|
||||
/* WARNING: Do not change, or add, anything to this file. It is only provided
|
||||
|
|
@ -1020,6 +1021,52 @@ Bool drmSiSAgpInit(int driSubFD, int offset, int size)
|
|||
return 1; /* TRUE */
|
||||
}
|
||||
|
||||
/* I830 */
|
||||
|
||||
Bool drmI830CleanupDma(int driSubFD)
|
||||
{
|
||||
drm_i830_init_t init;
|
||||
|
||||
memset(&init, 0, sizeof(drm_i830_init_t));
|
||||
init.func = I810_CLEANUP_DMA;
|
||||
|
||||
if(ioctl(driSubFD, DRM_IOCTL_I830_INIT, &init)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool drmI830InitDma(int driSubFD, drmCompatI830Init *info)
|
||||
{
|
||||
drm_i830_init_t init;
|
||||
|
||||
memset(&init, 0, sizeof(drm_i830_init_t));
|
||||
|
||||
init.func = I810_INIT_DMA;
|
||||
init.mmio_offset = info->mmio_offset;
|
||||
init.buffers_offset = info->buffers_offset;
|
||||
init.ring_start = info->start;
|
||||
init.ring_end = info->end;
|
||||
init.ring_size = info->size;
|
||||
init.sarea_priv_offset = info->sarea_off;
|
||||
init.front_offset = info->front_offset;
|
||||
init.back_offset = info->back_offset;
|
||||
init.depth_offset = info->depth_offset;
|
||||
init.w = info->w;
|
||||
init.h = info->h;
|
||||
init.pitch = info->pitch;
|
||||
init.pitch_bits = info->pitch_bits;
|
||||
init.back_pitch = info->pitch;
|
||||
init.depth_pitch = info->pitch;
|
||||
init.cpp = info->cpp;
|
||||
|
||||
if(ioctl(driSubFD, DRM_IOCTL_I830_INIT, &init)) {
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* WARNING: Do not change, or add, anything to this file. It is only provided
|
||||
* for binary backwards compatability with the old driver specific DRM
|
||||
* extensions used before XFree86 4.3.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue