xref: /dflybsd-src/sys/dev/drm/include/drm/i915_component.h (revision 2c9916cd50d5c4c4defa089bebed8c8865efa896)
1*2c9916cdSFrançois Tigeot /*
2*2c9916cdSFrançois Tigeot  * Copyright © 2014 Intel Corporation
3*2c9916cdSFrançois Tigeot  *
4*2c9916cdSFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
5*2c9916cdSFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
6*2c9916cdSFrançois Tigeot  * to deal in the Software without restriction, including without limitation
7*2c9916cdSFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*2c9916cdSFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
9*2c9916cdSFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
10*2c9916cdSFrançois Tigeot  *
11*2c9916cdSFrançois Tigeot  * The above copyright notice and this permission notice (including the next
12*2c9916cdSFrançois Tigeot  * paragraph) shall be included in all copies or substantial portions of the
13*2c9916cdSFrançois Tigeot  * Software.
14*2c9916cdSFrançois Tigeot  *
15*2c9916cdSFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16*2c9916cdSFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17*2c9916cdSFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18*2c9916cdSFrançois Tigeot  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19*2c9916cdSFrançois Tigeot  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20*2c9916cdSFrançois Tigeot  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21*2c9916cdSFrançois Tigeot  * IN THE SOFTWARE.
22*2c9916cdSFrançois Tigeot  */
23*2c9916cdSFrançois Tigeot 
24*2c9916cdSFrançois Tigeot #ifndef _I915_COMPONENT_H_
25*2c9916cdSFrançois Tigeot #define _I915_COMPONENT_H_
26*2c9916cdSFrançois Tigeot 
27*2c9916cdSFrançois Tigeot struct i915_audio_component {
28*2c9916cdSFrançois Tigeot 	struct device *dev;
29*2c9916cdSFrançois Tigeot 
30*2c9916cdSFrançois Tigeot 	const struct i915_audio_component_ops {
31*2c9916cdSFrançois Tigeot 		struct module *owner;
32*2c9916cdSFrançois Tigeot 		void (*get_power)(struct device *);
33*2c9916cdSFrançois Tigeot 		void (*put_power)(struct device *);
34*2c9916cdSFrançois Tigeot 		int (*get_cdclk_freq)(struct device *);
35*2c9916cdSFrançois Tigeot 	} *ops;
36*2c9916cdSFrançois Tigeot };
37*2c9916cdSFrançois Tigeot 
38*2c9916cdSFrançois Tigeot #endif /* _I915_COMPONENT_H_ */
39