Back to home page

OSCL-LXR

 
 

    


0001 /* evergreen_hdmi.h -- Private header for radeon driver -*- linux-c -*-
0002  *
0003  * Copyright 2008 Advanced Micro Devices, Inc.
0004  * Copyright 2008 Red Hat Inc.
0005  * Copyright 2009 Christian König.
0006  *
0007  * Permission is hereby granted, free of charge, to any person obtaining a
0008  * copy of this software and associated documentation files (the "Software"),
0009  * to deal in the Software without restriction, including without limitation
0010  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0011  * and/or sell copies of the Software, and to permit persons to whom the
0012  * Software is furnished to do so, subject to the following conditions:
0013  *
0014  * The above copyright notice and this permission notice (including the next
0015  * paragraph) shall be included in all copies or substantial portions of the
0016  * Software.
0017  *
0018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0019  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0020  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0021  * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
0022  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0023  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0024  * DEALINGS IN THE SOFTWARE.
0025  *
0026  */
0027 
0028 #ifndef __EVERGREEN_HDMI_H__
0029 #define __EVERGREEN_HDMI_H__
0030 
0031 struct cea_sa;
0032 struct cea_sad;
0033 struct drm_connector;
0034 struct drm_display_mode;
0035 struct drm_encoder;
0036 struct r600_audio_pin;
0037 struct radeon_crtc;
0038 struct radeon_device;
0039 struct radeon_hdmi_acr;
0040 
0041 void evergreen_hdmi_write_sad_regs(struct drm_encoder *encoder,
0042                    struct cea_sad *sads, int sad_count);
0043 void evergreen_set_avi_packet(struct radeon_device *rdev, u32 offset,
0044                   unsigned char *buffer, size_t size);
0045 void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset,
0046                    const struct radeon_hdmi_acr *acr);
0047 void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable);
0048 void evergreen_dp_enable(struct drm_encoder *encoder, bool enable);
0049 
0050 void dce4_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin,
0051                u8 enable_mask);
0052 void dce4_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
0053                          u8 *sadb, int sad_count);
0054 void dce4_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder,
0055                        u8 *sadb, int sad_count);
0056 void dce4_afmt_write_latency_fields(struct drm_encoder *encoder,
0057                     struct drm_connector *connector,
0058                     struct drm_display_mode *mode);
0059 void dce4_hdmi_audio_set_dto(struct radeon_device *rdev,
0060                  struct radeon_crtc *crtc, unsigned int clock);
0061 void dce4_dp_audio_set_dto(struct radeon_device *rdev,
0062                struct radeon_crtc *crtc, unsigned int clock);
0063 void dce4_set_vbi_packet(struct drm_encoder *encoder, u32 offset);
0064 void dce4_hdmi_set_color_depth(struct drm_encoder *encoder,
0065                    u32 offset, int bpc);
0066 void dce4_set_audio_packet(struct drm_encoder *encoder, u32 offset);
0067 void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute);
0068 
0069 #endif              /* __EVERGREEN_HDMI_H__ */