radeon.h (0aa73ba1c4e1ad1d51a29e0df95ccd9f746918b6) radeon.h (ca6ffc64cba0cdd0a2b3fcad0e1d19edcf277ccc)
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

--- 578 unchanged lines hidden (view full) ---

587 */
588struct radeon_asic {
589 int (*init)(struct radeon_device *rdev);
590 void (*fini)(struct radeon_device *rdev);
591 int (*resume)(struct radeon_device *rdev);
592 int (*suspend)(struct radeon_device *rdev);
593 void (*errata)(struct radeon_device *rdev);
594 void (*vram_info)(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

--- 578 unchanged lines hidden (view full) ---

587 */
588struct radeon_asic {
589 int (*init)(struct radeon_device *rdev);
590 void (*fini)(struct radeon_device *rdev);
591 int (*resume)(struct radeon_device *rdev);
592 int (*suspend)(struct radeon_device *rdev);
593 void (*errata)(struct radeon_device *rdev);
594 void (*vram_info)(struct radeon_device *rdev);
595 void (*vga_set_state)(struct radeon_device *rdev, bool state);
596 int (*gpu_reset)(struct radeon_device *rdev);
597 int (*mc_init)(struct radeon_device *rdev);
598 void (*mc_fini)(struct radeon_device *rdev);
599 int (*wb_init)(struct radeon_device *rdev);
600 void (*wb_fini)(struct radeon_device *rdev);
601 int (*gart_init)(struct radeon_device *rdev);
602 void (*gart_fini)(struct radeon_device *rdev);
603 int (*gart_enable)(struct radeon_device *rdev);

--- 342 unchanged lines hidden (view full) ---

946 */
947#define radeon_init(rdev) (rdev)->asic->init((rdev))
948#define radeon_fini(rdev) (rdev)->asic->fini((rdev))
949#define radeon_resume(rdev) (rdev)->asic->resume((rdev))
950#define radeon_suspend(rdev) (rdev)->asic->suspend((rdev))
951#define radeon_cs_parse(p) rdev->asic->cs_parse((p))
952#define radeon_errata(rdev) (rdev)->asic->errata((rdev))
953#define radeon_vram_info(rdev) (rdev)->asic->vram_info((rdev))
595 int (*gpu_reset)(struct radeon_device *rdev);
596 int (*mc_init)(struct radeon_device *rdev);
597 void (*mc_fini)(struct radeon_device *rdev);
598 int (*wb_init)(struct radeon_device *rdev);
599 void (*wb_fini)(struct radeon_device *rdev);
600 int (*gart_init)(struct radeon_device *rdev);
601 void (*gart_fini)(struct radeon_device *rdev);
602 int (*gart_enable)(struct radeon_device *rdev);

--- 342 unchanged lines hidden (view full) ---

945 */
946#define radeon_init(rdev) (rdev)->asic->init((rdev))
947#define radeon_fini(rdev) (rdev)->asic->fini((rdev))
948#define radeon_resume(rdev) (rdev)->asic->resume((rdev))
949#define radeon_suspend(rdev) (rdev)->asic->suspend((rdev))
950#define radeon_cs_parse(p) rdev->asic->cs_parse((p))
951#define radeon_errata(rdev) (rdev)->asic->errata((rdev))
952#define radeon_vram_info(rdev) (rdev)->asic->vram_info((rdev))
954#define radeon_vga_set_state(rdev, state) (rdev)->asic->vga_set_state((rdev), (state))
955#define radeon_gpu_reset(rdev) (rdev)->asic->gpu_reset((rdev))
956#define radeon_mc_init(rdev) (rdev)->asic->mc_init((rdev))
957#define radeon_mc_fini(rdev) (rdev)->asic->mc_fini((rdev))
958#define radeon_wb_init(rdev) (rdev)->asic->wb_init((rdev))
959#define radeon_wb_fini(rdev) (rdev)->asic->wb_fini((rdev))
960#define radeon_gpu_gart_init(rdev) (rdev)->asic->gart_init((rdev))
961#define radeon_gpu_gart_fini(rdev) (rdev)->asic->gart_fini((rdev))
962#define radeon_gart_enable(rdev) (rdev)->asic->gart_enable((rdev))

--- 28 unchanged lines hidden (view full) ---

991extern int radeon_modeset_init(struct radeon_device *rdev);
992extern void radeon_modeset_fini(struct radeon_device *rdev);
993extern bool radeon_card_posted(struct radeon_device *rdev);
994extern int radeon_clocks_init(struct radeon_device *rdev);
995extern void radeon_clocks_fini(struct radeon_device *rdev);
996extern void radeon_scratch_init(struct radeon_device *rdev);
997extern void radeon_surface_init(struct radeon_device *rdev);
998extern int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data);
953#define radeon_gpu_reset(rdev) (rdev)->asic->gpu_reset((rdev))
954#define radeon_mc_init(rdev) (rdev)->asic->mc_init((rdev))
955#define radeon_mc_fini(rdev) (rdev)->asic->mc_fini((rdev))
956#define radeon_wb_init(rdev) (rdev)->asic->wb_init((rdev))
957#define radeon_wb_fini(rdev) (rdev)->asic->wb_fini((rdev))
958#define radeon_gpu_gart_init(rdev) (rdev)->asic->gart_init((rdev))
959#define radeon_gpu_gart_fini(rdev) (rdev)->asic->gart_fini((rdev))
960#define radeon_gart_enable(rdev) (rdev)->asic->gart_enable((rdev))

--- 28 unchanged lines hidden (view full) ---

989extern int radeon_modeset_init(struct radeon_device *rdev);
990extern void radeon_modeset_fini(struct radeon_device *rdev);
991extern bool radeon_card_posted(struct radeon_device *rdev);
992extern int radeon_clocks_init(struct radeon_device *rdev);
993extern void radeon_clocks_fini(struct radeon_device *rdev);
994extern void radeon_scratch_init(struct radeon_device *rdev);
995extern void radeon_surface_init(struct radeon_device *rdev);
996extern int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data);
997extern void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable);
999extern void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable);
1000
1001/* r100,rv100,rs100,rv200,rs200,r200,rv250,rs300,rv280 */
1002struct r100_mc_save {
1003 u32 GENMO_WT;
1004 u32 CRTC_EXT_CNTL;
1005 u32 CRTC_GEN_CNTL;
1006 u32 CRTC2_GEN_CNTL;

--- 19 unchanged lines hidden (view full) ---

1026extern void r100_mc_resume(struct radeon_device *rdev, struct r100_mc_save *save);
1027extern void r100_vram_init_sizes(struct radeon_device *rdev);
1028extern void r100_wb_disable(struct radeon_device *rdev);
1029extern void r100_wb_fini(struct radeon_device *rdev);
1030extern int r100_wb_init(struct radeon_device *rdev);
1031extern void r100_hdp_reset(struct radeon_device *rdev);
1032extern int r100_rb2d_reset(struct radeon_device *rdev);
1033extern int r100_cp_reset(struct radeon_device *rdev);
998extern void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable);
999
1000/* r100,rv100,rs100,rv200,rs200,r200,rv250,rs300,rv280 */
1001struct r100_mc_save {
1002 u32 GENMO_WT;
1003 u32 CRTC_EXT_CNTL;
1004 u32 CRTC_GEN_CNTL;
1005 u32 CRTC2_GEN_CNTL;

--- 19 unchanged lines hidden (view full) ---

1025extern void r100_mc_resume(struct radeon_device *rdev, struct r100_mc_save *save);
1026extern void r100_vram_init_sizes(struct radeon_device *rdev);
1027extern void r100_wb_disable(struct radeon_device *rdev);
1028extern void r100_wb_fini(struct radeon_device *rdev);
1029extern int r100_wb_init(struct radeon_device *rdev);
1030extern void r100_hdp_reset(struct radeon_device *rdev);
1031extern int r100_rb2d_reset(struct radeon_device *rdev);
1032extern int r100_cp_reset(struct radeon_device *rdev);
1033extern void r100_vga_render_disable(struct radeon_device *rdev);
1034
1035/* r300,r350,rv350,rv370,rv380 */
1036extern void r300_set_reg_safe(struct radeon_device *rdev);
1037extern void r300_mc_program(struct radeon_device *rdev);
1038extern void r300_vram_info(struct radeon_device *rdev);
1034
1035/* r300,r350,rv350,rv370,rv380 */
1036extern void r300_set_reg_safe(struct radeon_device *rdev);
1037extern void r300_mc_program(struct radeon_device *rdev);
1038extern void r300_vram_info(struct radeon_device *rdev);
1039extern void r300_clock_startup(struct radeon_device *rdev);
1040extern int r300_mc_wait_for_idle(struct radeon_device *rdev);
1039extern int rv370_pcie_gart_init(struct radeon_device *rdev);
1040extern void rv370_pcie_gart_fini(struct radeon_device *rdev);
1041extern int rv370_pcie_gart_enable(struct radeon_device *rdev);
1042extern void rv370_pcie_gart_disable(struct radeon_device *rdev);
1043
1044/* r420,r423,rv410 */
1045extern int r420_mc_init(struct radeon_device *rdev);
1046extern u32 r420_mc_rreg(struct radeon_device *rdev, u32 reg);

--- 48 unchanged lines hidden ---
1041extern int rv370_pcie_gart_init(struct radeon_device *rdev);
1042extern void rv370_pcie_gart_fini(struct radeon_device *rdev);
1043extern int rv370_pcie_gart_enable(struct radeon_device *rdev);
1044extern void rv370_pcie_gart_disable(struct radeon_device *rdev);
1045
1046/* r420,r423,rv410 */
1047extern int r420_mc_init(struct radeon_device *rdev);
1048extern u32 r420_mc_rreg(struct radeon_device *rdev, u32 reg);

--- 48 unchanged lines hidden ---