Patch by Euan Kirkhope:

* VIP FIFO functions for Rage Theater200 support


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20278 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-03-01 09:43:33 +00:00
parent 0caeca2af7
commit 7ce2eaa1e0
5 changed files with 285 additions and 53 deletions
@@ -20,8 +20,8 @@
#include "ddc.h"
// magic code for ioctls
// changed from TKRA to TKR1 for RADEON_WAITFORFIFO ioctl
#define RADEON_PRIVATE_DATA_MAGIC 'TKR1'
// changed from TKRA to TKR2 for VIP FIFO ioctls
#define RADEON_PRIVATE_DATA_MAGIC 'TKR2'
#define MAX_RADEON_DEVICE_NAME_LENGTH MAXPATHLEN
@@ -40,7 +40,10 @@ enum {
RADEON_RESETENGINE,
RADEON_VIPREAD,
RADEON_VIPWRITE,
RADEON_VIPFIFOREAD,
RADEON_VIPFIFOWRITE,
RADEON_FINDVIPDEVICE,
RADEON_VIPRESET,
RADEON_WAIT_FOR_CAP_IRQ,
RADEON_DMACOPY,
@@ -633,6 +636,26 @@ typedef struct {
bool lock; // true, if CP lock must be acquired
} radeon_vip_write;
// read VIP fifo
typedef struct {
uint32 magic;
uint channel; // channel, i.e. device
uint address; // address
uint32 count; // size of buffer
uint8 *data; // read data
bool lock; // true, if CP lock must be acquired
} radeon_vip_fifo_read;
// write VIP fifo
typedef struct {
uint32 magic;
uint channel; // channel, i.e. device
uint address; // address
uint32 count; // size of buffer
uint8 *data; // data to write
bool lock; // true, if CP lock must be acquired
} radeon_vip_fifo_write;
// find channel of device with given ID
typedef struct {
uint32 magic;
@@ -640,6 +663,13 @@ typedef struct {
uint channel; // channel of device (-1 if not found)
} radeon_find_vip_device;
// reset / init VIP
typedef struct {
uint32 magic;
bool lock;
} radeon_vip_reset;
// wait for capture interrupt and get status about
typedef struct {
uint32 magic;
+1 -1
View File
@@ -8,4 +8,4 @@
*/
// current version
#define RADEON_DRIVER_VERSION "Version: 5.1.4.9"
#define RADEON_DRIVER_VERSION "Version: 5.1.5.0"