drm.h (3be713be1fbcbdb8fd66e06d58cafd7761498fdd) | drm.h (67e04d1ab19b0cc6d87ca7c44b058edf678bc3a3) |
---|---|
1/* 2 * Copyright (C) 2012 Avionic Design GmbH 3 * Copyright (C) 2012-2013 NVIDIA CORPORATION. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 9 unchanged lines hidden (view full) --- 18#include <drm/drmP.h> 19#include <drm/drm_crtc_helper.h> 20#include <drm/drm_edid.h> 21#include <drm/drm_encoder.h> 22#include <drm/drm_fb_helper.h> 23#include <drm/drm_fixed.h> 24 25#include "gem.h" | 1/* 2 * Copyright (C) 2012 Avionic Design GmbH 3 * Copyright (C) 2012-2013 NVIDIA CORPORATION. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 9 unchanged lines hidden (view full) --- 18#include <drm/drmP.h> 19#include <drm/drm_crtc_helper.h> 20#include <drm/drm_edid.h> 21#include <drm/drm_encoder.h> 22#include <drm/drm_fb_helper.h> 23#include <drm/drm_fixed.h> 24 25#include "gem.h" |
26#include "trace.h" |
|
26 27struct reset_control; 28 29struct tegra_fb { 30 struct drm_framebuffer base; 31 struct tegra_bo **planes; 32 unsigned int num_planes; 33}; --- 135 unchanged lines hidden (view full) --- 169static inline struct tegra_dc *to_tegra_dc(struct drm_crtc *crtc) 170{ 171 return crtc ? container_of(crtc, struct tegra_dc, base) : NULL; 172} 173 174static inline void tegra_dc_writel(struct tegra_dc *dc, u32 value, 175 unsigned int offset) 176{ | 27 28struct reset_control; 29 30struct tegra_fb { 31 struct drm_framebuffer base; 32 struct tegra_bo **planes; 33 unsigned int num_planes; 34}; --- 135 unchanged lines hidden (view full) --- 170static inline struct tegra_dc *to_tegra_dc(struct drm_crtc *crtc) 171{ 172 return crtc ? container_of(crtc, struct tegra_dc, base) : NULL; 173} 174 175static inline void tegra_dc_writel(struct tegra_dc *dc, u32 value, 176 unsigned int offset) 177{ |
178 trace_dc_writel(dc->dev, offset, value); |
|
177 writel(value, dc->regs + (offset << 2)); 178} 179 180static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned int offset) 181{ | 179 writel(value, dc->regs + (offset << 2)); 180} 181 182static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned int offset) 183{ |
182 return readl(dc->regs + (offset << 2)); | 184 u32 value = readl(dc->regs + (offset << 2)); 185 186 trace_dc_readl(dc->dev, offset, value); 187 188 return value; |
183} 184 185struct tegra_dc_window { 186 struct { 187 unsigned int x; 188 unsigned int y; 189 unsigned int w; 190 unsigned int h; --- 111 unchanged lines hidden --- | 189} 190 191struct tegra_dc_window { 192 struct { 193 unsigned int x; 194 unsigned int y; 195 unsigned int w; 196 unsigned int h; --- 111 unchanged lines hidden --- |