ASoC: Remove duplicate ADC/DAC widgets from wm_hubs.c
[linux/fpc-iii.git] / drivers / gpu / drm / radeon / rs780.c
blob0affcff8182509f87f98a14822351354f842d366
1 /*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
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
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
24 * Authors: Dave Airlie
25 * Alex Deucher
26 * Jerome Glisse
28 #include "drmP.h"
29 #include "radeon_reg.h"
30 #include "radeon.h"
32 /* rs780 depends on : */
33 void rs600_mc_disable_clients(struct radeon_device *rdev);
35 /* This files gather functions specifics to:
36 * rs780
38 * Some of these functions might be used by newer ASICs.
40 int rs780_mc_wait_for_idle(struct radeon_device *rdev);
41 void rs780_gpu_init(struct radeon_device *rdev);
45 * MC
47 int rs780_mc_init(struct radeon_device *rdev)
49 rs780_gpu_init(rdev);
50 /* FIXME: implement */
52 rs600_mc_disable_clients(rdev);
53 if (rs780_mc_wait_for_idle(rdev)) {
54 printk(KERN_WARNING "Failed to wait MC idle while "
55 "programming pipes. Bad things might happen.\n");
57 return 0;
60 void rs780_mc_fini(struct radeon_device *rdev)
62 /* FIXME: implement */
67 * Global GPU functions
69 void rs780_errata(struct radeon_device *rdev)
71 rdev->pll_errata = 0;
74 int rs780_mc_wait_for_idle(struct radeon_device *rdev)
76 /* FIXME: implement */
77 return 0;
80 void rs780_gpu_init(struct radeon_device *rdev)
82 /* FIXME: implement */
87 * VRAM info
89 void rs780_vram_get_type(struct radeon_device *rdev)
91 /* FIXME: implement */
94 void rs780_vram_info(struct radeon_device *rdev)
96 rs780_vram_get_type(rdev);
98 /* FIXME: implement */
99 /* Could aper size report 0 ? */
100 rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0);
101 rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0);