Back to home page

OSCL-LXR

 
 

    


0001 /* r600.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 Jerome Glisse.
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 __R600_H__
0029 #define __R600_H__
0030 
0031 struct radeon_bo_list;
0032 struct radeon_cs_parser;
0033 struct r600_audio_pin;
0034 struct radeon_crtc;
0035 struct radeon_device;
0036 struct radeon_hdmi_acr;
0037 
0038 u32 r600_gpu_check_soft_reset(struct radeon_device *rdev);
0039 int r600_ih_ring_alloc(struct radeon_device *rdev);
0040 void r600_ih_ring_fini(struct radeon_device *rdev);
0041 
0042 void r600_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin,
0043                u8 enable_mask);
0044 void r600_set_audio_packet(struct drm_encoder *encoder, u32 offset);
0045 void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute);
0046 void r600_hdmi_audio_set_dto(struct radeon_device *rdev,
0047                  struct radeon_crtc *crtc, unsigned int clock);
0048 void r600_set_avi_packet(struct radeon_device *rdev, u32 offset,
0049              unsigned char *buffer, size_t size);
0050 void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset,
0051               const struct radeon_hdmi_acr *acr);
0052 void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset);
0053 void r600_hdmi_enable(struct drm_encoder *encoder, bool enable);
0054 
0055 int r600_dma_cs_next_reloc(struct radeon_cs_parser *p,
0056                struct radeon_bo_list **cs_reloc);
0057 
0058 #endif              /* __R600_H__ */