15561ecbaSLee Jones /* r600.h -- Private header for radeon driver -*- linux-c -*- 25561ecbaSLee Jones * 35561ecbaSLee Jones * Copyright 2008 Advanced Micro Devices, Inc. 45561ecbaSLee Jones * Copyright 2008 Red Hat Inc. 55561ecbaSLee Jones * Copyright 2009 Jerome Glisse. 65561ecbaSLee Jones * 75561ecbaSLee Jones * Permission is hereby granted, free of charge, to any person obtaining a 85561ecbaSLee Jones * copy of this software and associated documentation files (the "Software"), 95561ecbaSLee Jones * to deal in the Software without restriction, including without limitation 105561ecbaSLee Jones * the rights to use, copy, modify, merge, publish, distribute, sublicense, 115561ecbaSLee Jones * and/or sell copies of the Software, and to permit persons to whom the 125561ecbaSLee Jones * Software is furnished to do so, subject to the following conditions: 135561ecbaSLee Jones * 145561ecbaSLee Jones * The above copyright notice and this permission notice (including the next 155561ecbaSLee Jones * paragraph) shall be included in all copies or substantial portions of the 165561ecbaSLee Jones * Software. 175561ecbaSLee Jones * 185561ecbaSLee Jones * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 195561ecbaSLee Jones * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 205561ecbaSLee Jones * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 215561ecbaSLee Jones * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 225561ecbaSLee Jones * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 235561ecbaSLee Jones * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 245561ecbaSLee Jones * DEALINGS IN THE SOFTWARE. 255561ecbaSLee Jones * 265561ecbaSLee Jones */ 275561ecbaSLee Jones 285561ecbaSLee Jones #ifndef __R600_H__ 295561ecbaSLee Jones #define __R600_H__ 305561ecbaSLee Jones 31f9eddd7cSLee Jones struct radeon_bo_list; 32f9eddd7cSLee Jones struct radeon_cs_parser; 33*312226f9SLee Jones struct r600_audio_pin; 34*312226f9SLee Jones struct radeon_crtc; 355561ecbaSLee Jones struct radeon_device; 36*312226f9SLee Jones struct radeon_hdmi_acr; 375561ecbaSLee Jones 385561ecbaSLee Jones u32 r600_gpu_check_soft_reset(struct radeon_device *rdev); 39eb388a88SLee Jones int r600_ih_ring_alloc(struct radeon_device *rdev); 40eb388a88SLee Jones void r600_ih_ring_fini(struct radeon_device *rdev); 415561ecbaSLee Jones 42*312226f9SLee Jones void r600_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, 43*312226f9SLee Jones u8 enable_mask); 44*312226f9SLee Jones void r600_set_audio_packet(struct drm_encoder *encoder, u32 offset); 45*312226f9SLee Jones void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); 46*312226f9SLee Jones void r600_hdmi_audio_set_dto(struct radeon_device *rdev, 47*312226f9SLee Jones struct radeon_crtc *crtc, unsigned int clock); 48*312226f9SLee Jones void r600_set_avi_packet(struct radeon_device *rdev, u32 offset, 49*312226f9SLee Jones unsigned char *buffer, size_t size); 50*312226f9SLee Jones void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, 51*312226f9SLee Jones const struct radeon_hdmi_acr *acr); 52*312226f9SLee Jones void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset); 53*312226f9SLee Jones void r600_hdmi_enable(struct drm_encoder *encoder, bool enable); 54*312226f9SLee Jones 55f9eddd7cSLee Jones int r600_dma_cs_next_reloc(struct radeon_cs_parser *p, 56f9eddd7cSLee Jones struct radeon_bo_list **cs_reloc); 57*312226f9SLee Jones 585561ecbaSLee Jones #endif /* __R600_H__ */ 59