radeon.h (225758d8ba4fdcc1e8c9cf617fd89529bd4a9596) | radeon.h (a2d07b7438f015a0349bc9af3c96a8164549bbc5) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 734 unchanged lines hidden (view full) --- 743 */ 744struct radeon_asic { 745 int (*init)(struct radeon_device *rdev); 746 void (*fini)(struct radeon_device *rdev); 747 int (*resume)(struct radeon_device *rdev); 748 int (*suspend)(struct radeon_device *rdev); 749 void (*vga_set_state)(struct radeon_device *rdev, bool state); 750 bool (*gpu_is_lockup)(struct radeon_device *rdev); | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 734 unchanged lines hidden (view full) --- 743 */ 744struct radeon_asic { 745 int (*init)(struct radeon_device *rdev); 746 void (*fini)(struct radeon_device *rdev); 747 int (*resume)(struct radeon_device *rdev); 748 int (*suspend)(struct radeon_device *rdev); 749 void (*vga_set_state)(struct radeon_device *rdev, bool state); 750 bool (*gpu_is_lockup)(struct radeon_device *rdev); |
751 int (*gpu_reset)(struct radeon_device *rdev); | 751 int (*asic_reset)(struct radeon_device *rdev); |
752 void (*gart_tlb_flush)(struct radeon_device *rdev); 753 int (*gart_set_page)(struct radeon_device *rdev, int i, uint64_t addr); 754 int (*cp_init)(struct radeon_device *rdev, unsigned ring_size); 755 void (*cp_fini)(struct radeon_device *rdev); 756 void (*cp_disable)(struct radeon_device *rdev); 757 void (*cp_commit)(struct radeon_device *rdev); 758 void (*ring_start)(struct radeon_device *rdev); 759 int (*ring_test)(struct radeon_device *rdev); --- 392 unchanged lines hidden (view full) --- 1152 */ 1153#define radeon_init(rdev) (rdev)->asic->init((rdev)) 1154#define radeon_fini(rdev) (rdev)->asic->fini((rdev)) 1155#define radeon_resume(rdev) (rdev)->asic->resume((rdev)) 1156#define radeon_suspend(rdev) (rdev)->asic->suspend((rdev)) 1157#define radeon_cs_parse(p) rdev->asic->cs_parse((p)) 1158#define radeon_vga_set_state(rdev, state) (rdev)->asic->vga_set_state((rdev), (state)) 1159#define radeon_gpu_is_lockup(rdev) (rdev)->asic->gpu_is_lockup((rdev)) | 752 void (*gart_tlb_flush)(struct radeon_device *rdev); 753 int (*gart_set_page)(struct radeon_device *rdev, int i, uint64_t addr); 754 int (*cp_init)(struct radeon_device *rdev, unsigned ring_size); 755 void (*cp_fini)(struct radeon_device *rdev); 756 void (*cp_disable)(struct radeon_device *rdev); 757 void (*cp_commit)(struct radeon_device *rdev); 758 void (*ring_start)(struct radeon_device *rdev); 759 int (*ring_test)(struct radeon_device *rdev); --- 392 unchanged lines hidden (view full) --- 1152 */ 1153#define radeon_init(rdev) (rdev)->asic->init((rdev)) 1154#define radeon_fini(rdev) (rdev)->asic->fini((rdev)) 1155#define radeon_resume(rdev) (rdev)->asic->resume((rdev)) 1156#define radeon_suspend(rdev) (rdev)->asic->suspend((rdev)) 1157#define radeon_cs_parse(p) rdev->asic->cs_parse((p)) 1158#define radeon_vga_set_state(rdev, state) (rdev)->asic->vga_set_state((rdev), (state)) 1159#define radeon_gpu_is_lockup(rdev) (rdev)->asic->gpu_is_lockup((rdev)) |
1160#define radeon_gpu_reset(rdev) (rdev)->asic->gpu_reset((rdev)) | 1160#define radeon_asic_reset(rdev) (rdev)->asic->asic_reset((rdev)) |
1161#define radeon_gart_tlb_flush(rdev) (rdev)->asic->gart_tlb_flush((rdev)) 1162#define radeon_gart_set_page(rdev, i, p) (rdev)->asic->gart_set_page((rdev), (i), (p)) 1163#define radeon_cp_commit(rdev) (rdev)->asic->cp_commit((rdev)) 1164#define radeon_ring_start(rdev) (rdev)->asic->ring_start((rdev)) 1165#define radeon_ring_test(rdev) (rdev)->asic->ring_test((rdev)) 1166#define radeon_ring_ib_execute(rdev, ib) (rdev)->asic->ring_ib_execute((rdev), (ib)) 1167#define radeon_irq_set(rdev) (rdev)->asic->irq_set((rdev)) 1168#define radeon_irq_process(rdev) (rdev)->asic->irq_process((rdev)) --- 116 unchanged lines hidden (view full) --- 1285extern int r600_ring_test(struct radeon_device *rdev); 1286extern void r600_wb_fini(struct radeon_device *rdev); 1287extern int r600_wb_enable(struct radeon_device *rdev); 1288extern void r600_wb_disable(struct radeon_device *rdev); 1289extern void r600_scratch_init(struct radeon_device *rdev); 1290extern int r600_blit_init(struct radeon_device *rdev); 1291extern void r600_blit_fini(struct radeon_device *rdev); 1292extern int r600_init_microcode(struct radeon_device *rdev); | 1161#define radeon_gart_tlb_flush(rdev) (rdev)->asic->gart_tlb_flush((rdev)) 1162#define radeon_gart_set_page(rdev, i, p) (rdev)->asic->gart_set_page((rdev), (i), (p)) 1163#define radeon_cp_commit(rdev) (rdev)->asic->cp_commit((rdev)) 1164#define radeon_ring_start(rdev) (rdev)->asic->ring_start((rdev)) 1165#define radeon_ring_test(rdev) (rdev)->asic->ring_test((rdev)) 1166#define radeon_ring_ib_execute(rdev, ib) (rdev)->asic->ring_ib_execute((rdev), (ib)) 1167#define radeon_irq_set(rdev) (rdev)->asic->irq_set((rdev)) 1168#define radeon_irq_process(rdev) (rdev)->asic->irq_process((rdev)) --- 116 unchanged lines hidden (view full) --- 1285extern int r600_ring_test(struct radeon_device *rdev); 1286extern void r600_wb_fini(struct radeon_device *rdev); 1287extern int r600_wb_enable(struct radeon_device *rdev); 1288extern void r600_wb_disable(struct radeon_device *rdev); 1289extern void r600_scratch_init(struct radeon_device *rdev); 1290extern int r600_blit_init(struct radeon_device *rdev); 1291extern void r600_blit_fini(struct radeon_device *rdev); 1292extern int r600_init_microcode(struct radeon_device *rdev); |
1293extern int r600_gpu_reset(struct radeon_device *rdev); | 1293extern int r600_asic_reset(struct radeon_device *rdev); |
1294/* r600 irq */ 1295extern int r600_irq_init(struct radeon_device *rdev); 1296extern void r600_irq_fini(struct radeon_device *rdev); 1297extern void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size); 1298extern int r600_irq_set(struct radeon_device *rdev); 1299extern void r600_irq_suspend(struct radeon_device *rdev); 1300/* r600 audio */ 1301extern int r600_audio_init(struct radeon_device *rdev); --- 26 unchanged lines hidden --- | 1294/* r600 irq */ 1295extern int r600_irq_init(struct radeon_device *rdev); 1296extern void r600_irq_fini(struct radeon_device *rdev); 1297extern void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size); 1298extern int r600_irq_set(struct radeon_device *rdev); 1299extern void r600_irq_suspend(struct radeon_device *rdev); 1300/* r600 audio */ 1301extern int r600_audio_init(struct radeon_device *rdev); --- 26 unchanged lines hidden --- |