Go to the source code of this file.
|
#define | DRIVER_AUTHOR "Dave Airlie" |
|
#define | DRIVER_NAME "ast" |
|
#define | DRIVER_DESC "AST" |
|
#define | DRIVER_DATE "20120228" |
|
#define | DRIVER_MAJOR 0 |
|
#define | DRIVER_MINOR 1 |
|
#define | DRIVER_PATCHLEVEL 0 |
|
#define | PCI_CHIP_AST2000 0x2000 |
|
#define | PCI_CHIP_AST2100 0x2010 |
|
#define | PCI_CHIP_AST1180 0x1180 |
|
#define | AST_DRAM_512Mx16 0 |
|
#define | AST_DRAM_1Gx16 1 |
|
#define | AST_DRAM_512Mx32 2 |
|
#define | AST_DRAM_1Gx32 3 |
|
#define | AST_DRAM_2Gx16 6 |
|
#define | AST_DRAM_4Gx16 7 |
|
#define | AST_IO_AR_PORT_WRITE (0x40) |
|
#define | AST_IO_MISC_PORT_WRITE (0x42) |
|
#define | AST_IO_SEQ_PORT (0x44) |
|
#define | AST_DAC_INDEX_READ (0x3c7) |
|
#define | AST_IO_DAC_INDEX_WRITE (0x48) |
|
#define | AST_IO_DAC_DATA (0x49) |
|
#define | AST_IO_GR_PORT (0x4E) |
|
#define | AST_IO_CRTC_PORT (0x54) |
|
#define | AST_IO_INPUT_STATUS1_READ (0x5A) |
|
#define | AST_IO_MISC_PORT_READ (0x4C) |
|
#define | __ast_read(x) |
|
#define | __ast_io_read(x) |
|
#define | __ast_write(x) |
|
#define | __ast_io_write(x) |
|
#define | AST_VIDMEM_SIZE_8M 0x00800000 |
|
#define | AST_VIDMEM_SIZE_16M 0x01000000 |
|
#define | AST_VIDMEM_SIZE_32M 0x02000000 |
|
#define | AST_VIDMEM_SIZE_64M 0x04000000 |
|
#define | AST_VIDMEM_SIZE_128M 0x08000000 |
|
#define | AST_VIDMEM_DEFAULT_SIZE AST_VIDMEM_SIZE_8M |
|
#define | AST_MAX_HWC_WIDTH 64 |
|
#define | AST_MAX_HWC_HEIGHT 64 |
|
#define | AST_HWC_SIZE (AST_MAX_HWC_WIDTH*AST_MAX_HWC_HEIGHT*2) |
|
#define | AST_HWC_SIGNATURE_SIZE 32 |
|
#define | AST_DEFAULT_HWC_NUM 2 |
|
#define | AST_HWC_SIGNATURE_CHECKSUM 0x00 |
|
#define | AST_HWC_SIGNATURE_SizeX 0x04 |
|
#define | AST_HWC_SIGNATURE_SizeY 0x08 |
|
#define | AST_HWC_SIGNATURE_X 0x0C |
|
#define | AST_HWC_SIGNATURE_Y 0x10 |
|
#define | AST_HWC_SIGNATURE_HOTSPOTX 0x14 |
|
#define | AST_HWC_SIGNATURE_HOTSPOTY 0x18 |
|
#define | to_ast_crtc(x) container_of(x, struct ast_crtc, base) |
|
#define | to_ast_connector(x) container_of(x, struct ast_connector, base) |
|
#define | to_ast_encoder(x) container_of(x, struct ast_encoder, base) |
|
#define | to_ast_framebuffer(x) container_of(x, struct ast_framebuffer, base) |
|
#define | gem_to_ast_bo(gobj) container_of((gobj), struct ast_bo, gem) |
|
#define | to_ast_obj(x) container_of(x, struct ast_gem_object, base) |
|
#define | AST_MM_ALIGN_SHIFT 4 |
|
#define | AST_MM_ALIGN_MASK ((1 << AST_MM_ALIGN_SHIFT) - 1) |
|
#define | DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) |
|
|
int | ast_driver_load (struct drm_device *dev, unsigned long flags) |
|
int | ast_driver_unload (struct drm_device *dev) |
|
| __ast_read (8) |
|
| __ast_read (16) |
|
| __ast_read (32) __ast_io_read(8) |
|
| __ast_io_read (16) |
|
| __ast_io_read (32) |
|
| __ast_write (8) |
|
| __ast_write (16) |
|
| __ast_write (32) |
|
| __ast_io_write (8) |
|
| __ast_io_write (16) |
|
void | ast_set_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask, uint8_t val) |
|
uint8_t | ast_get_index_reg (struct ast_private *ast, uint32_t base, uint8_t index) |
|
uint8_t | ast_get_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask) |
|
int | ast_mode_init (struct drm_device *dev) |
|
void | ast_mode_fini (struct drm_device *dev) |
|
int | ast_framebuffer_init (struct drm_device *dev, struct ast_framebuffer *ast_fb, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj) |
|
int | ast_fbdev_init (struct drm_device *dev) |
|
void | ast_fbdev_fini (struct drm_device *dev) |
|
void | ast_fbdev_set_suspend (struct drm_device *dev, int state) |
|
int | ast_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args) |
|
int | ast_dumb_destroy (struct drm_file *file, struct drm_device *dev, uint32_t handle) |
|
int | ast_gem_init_object (struct drm_gem_object *obj) |
|
void | ast_gem_free_object (struct drm_gem_object *obj) |
|
int | ast_dumb_mmap_offset (struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset) |
|
int | ast_mm_init (struct ast_private *ast) |
|
void | ast_mm_fini (struct ast_private *ast) |
|
int | ast_bo_create (struct drm_device *dev, int size, int align, uint32_t flags, struct ast_bo **pastbo) |
|
int | ast_gem_create (struct drm_device *dev, u32 size, bool iskernel, struct drm_gem_object **obj) |
|
int | ast_bo_pin (struct ast_bo *bo, u32 pl_flag, u64 *gpu_addr) |
|
int | ast_bo_unpin (struct ast_bo *bo) |
|
int | ast_bo_reserve (struct ast_bo *bo, bool no_wait) |
|
void | ast_bo_unreserve (struct ast_bo *bo) |
|
void | ast_ttm_placement (struct ast_bo *bo, int domain) |
|
int | ast_bo_push_sysram (struct ast_bo *bo) |
|
int | ast_mmap (struct file *filp, struct vm_area_struct *vma) |
|
void | ast_post_gpu (struct drm_device *dev) |
|
#define __ast_io_read |
( |
|
x | ) |
|
Value:
val = ioread##
x(ast->
ioregs + reg); \
}
#define __ast_io_write |
( |
|
x | ) |
|
Value:
val = ioread##
x(ast->
regs + reg); \
}
Definition at line 121 of file ast_drv.h.
Value:
iowrite##
x(val, ast->
regs + reg);\
}
Definition at line 143 of file ast_drv.h.
#define AST_DAC_INDEX_READ (0x3c7) |
#define AST_DEFAULT_HWC_NUM 2 |
#define AST_DRAM_512Mx16 0 |
#define AST_DRAM_512Mx32 2 |
#define AST_HWC_SIGNATURE_CHECKSUM 0x00 |
#define AST_HWC_SIGNATURE_HOTSPOTX 0x14 |
#define AST_HWC_SIGNATURE_HOTSPOTY 0x18 |
#define AST_HWC_SIGNATURE_SIZE 32 |
#define AST_HWC_SIGNATURE_SizeX 0x04 |
#define AST_HWC_SIGNATURE_SizeY 0x08 |
#define AST_HWC_SIGNATURE_X 0x0C |
#define AST_HWC_SIGNATURE_Y 0x10 |
#define AST_IO_AR_PORT_WRITE (0x40) |
#define AST_IO_CRTC_PORT (0x54) |
#define AST_IO_DAC_DATA (0x49) |
#define AST_IO_DAC_INDEX_WRITE (0x48) |
#define AST_IO_GR_PORT (0x4E) |
#define AST_IO_INPUT_STATUS1_READ (0x5A) |
#define AST_IO_MISC_PORT_READ (0x4C) |
#define AST_IO_MISC_PORT_WRITE (0x42) |
#define AST_IO_SEQ_PORT (0x44) |
#define AST_MAX_HWC_HEIGHT 64 |
#define AST_MAX_HWC_WIDTH 64 |
#define AST_MM_ALIGN_SHIFT 4 |
#define AST_VIDMEM_SIZE_128M 0x08000000 |
#define AST_VIDMEM_SIZE_16M 0x01000000 |
#define AST_VIDMEM_SIZE_32M 0x02000000 |
#define AST_VIDMEM_SIZE_64M 0x04000000 |
#define AST_VIDMEM_SIZE_8M 0x00800000 |
#define DRIVER_AUTHOR "Dave Airlie" |
#define DRIVER_DATE "20120228" |
#define DRIVER_DESC "AST" |
#define DRIVER_NAME "ast" |
#define DRIVER_PATCHLEVEL 0 |
#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) |
#define PCI_CHIP_AST1180 0x1180 |
#define PCI_CHIP_AST2000 0x2000 |
#define PCI_CHIP_AST2100 0x2010 |
- Enumerator:
AST2000 |
|
AST2100 |
|
AST1100 |
|
AST2200 |
|
AST2150 |
|
AST2300 |
|
AST1180 |
|
Definition at line 57 of file ast_drv.h.
void ast_gem_free_object |
( |
struct drm_gem_object * |
obj | ) |
|
int ast_gem_init_object |
( |
struct drm_gem_object * |
obj | ) |
|