haiku/headers/private/graphics/radeon/dma_regs.h
shadow303 8f6c61bcef Upgrade to version 4.1 of radeon driver.
Includes some common routines which may be used by other drivers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-16 00:46:01 +00:00

40 lines
903 B
C

/*
Copyright (c) 2002, Thomas Kurschel
Part of Radeon driver
DMA registers
*/
#ifndef _DMA_REGS_H
#define _DMA_REGS_H
typedef struct DMA_descriptor {
uint32 src_address;
uint32 dest_address;
uint32 command;
uint32 res;
} DMA_descriptor;
#define RADEON_DMA_COMMAND_EOL (1 << 31)
#define RADEON_DMA_COMMAND_INTDIS (1 << 30)
#define RADEON_DMA_COMMAND_DAIC (1 << 29)
#define RADEON_DMA_COMMAND_SAIC (1 << 28)
#define RADEON_DMA_COMMAND_DAS (1 << 27)
#define RADEON_DMA_COMMAND_SAS (1 << 26)
#define RADEON_DMA_COMMAND_DST_SWAP_SHIFT 24
#define RADEON_DMA_COMMAND_SRC_SWAP_SHIFT 24
#define RADEON_DMA_COMMAND_BYTE_COUNT_SHIFT 0
#define RADEON_DMA_DESC_MAX_SIZE 0x1fffff
#define RADEON_DMA_GUI_TABLE_ADDR 0x0780
#define RADEON_DMA_GUI_STATUS 0x0790
#define RADEON_DMA_STATUS_ACTIVE (1 << 21)
#define RADEON_DMA_VID_TABLE_ADDR 0x07a0
#define RADEON_DMA_VID_STATUS 0x07b0
#endif