xref: /openbmc/linux/include/drm/i915_component.h (revision e7b05d95)
158fddc28SImre Deak /*
258fddc28SImre Deak  * Copyright © 2014 Intel Corporation
358fddc28SImre Deak  *
458fddc28SImre Deak  * Permission is hereby granted, free of charge, to any person obtaining a
558fddc28SImre Deak  * copy of this software and associated documentation files (the "Software"),
658fddc28SImre Deak  * to deal in the Software without restriction, including without limitation
758fddc28SImre Deak  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
858fddc28SImre Deak  * and/or sell copies of the Software, and to permit persons to whom the
958fddc28SImre Deak  * Software is furnished to do so, subject to the following conditions:
1058fddc28SImre Deak  *
1158fddc28SImre Deak  * The above copyright notice and this permission notice (including the next
1258fddc28SImre Deak  * paragraph) shall be included in all copies or substantial portions of the
1358fddc28SImre Deak  * Software.
1458fddc28SImre Deak  *
1558fddc28SImre Deak  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1658fddc28SImre Deak  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1758fddc28SImre Deak  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1858fddc28SImre Deak  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1958fddc28SImre Deak  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2058fddc28SImre Deak  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2158fddc28SImre Deak  * IN THE SOFTWARE.
2258fddc28SImre Deak  */
2358fddc28SImre Deak 
2458fddc28SImre Deak #ifndef _I915_COMPONENT_H_
2558fddc28SImre Deak #define _I915_COMPONENT_H_
2658fddc28SImre Deak 
27ae891abeSTakashi Iwai #include "drm_audio_component.h"
28ae891abeSTakashi Iwai 
298857c7d0SDaniel Vetter enum i915_component_type {
308857c7d0SDaniel Vetter 	I915_COMPONENT_AUDIO = 1,
311bf7cb4dSRamalingam C 	I915_COMPONENT_HDCP,
32*e7b05d95SAlexander Usyskin 	I915_COMPONENT_PXP,
33*e7b05d95SAlexander Usyskin 	I915_COMPONENT_GSC_PROXY,
348857c7d0SDaniel Vetter };
358857c7d0SDaniel Vetter 
367e8275c2SLibin Yang /* MAX_PORT is the number of port
377e8275c2SLibin Yang  * It must be sync with I915_MAX_PORTS defined i915_drv.h
387e8275c2SLibin Yang  */
396c8337daSVandita Kulkarni #define MAX_PORTS 9
407e8275c2SLibin Yang 
417e8275c2SLibin Yang /**
42be15aad6SDavid Henningsson  * struct i915_audio_component - Used for direct communication between i915 and hda drivers
433f4c90bdSLibin Yang  */
443f4c90bdSLibin Yang struct i915_audio_component {
45be15aad6SDavid Henningsson 	/**
46ae891abeSTakashi Iwai 	 * @base: the drm_audio_component base class
47be15aad6SDavid Henningsson 	 */
48ae891abeSTakashi Iwai 	struct drm_audio_component	base;
49ae891abeSTakashi Iwai 
50be15aad6SDavid Henningsson 	/**
51be15aad6SDavid Henningsson 	 * @aud_sample_rate: the array of audio sample rate per port
52be15aad6SDavid Henningsson 	 */
533f4c90bdSLibin Yang 	int aud_sample_rate[MAX_PORTS];
5458fddc28SImre Deak };
5558fddc28SImre Deak 
5658fddc28SImre Deak #endif /* _I915_COMPONENT_H_ */
57