Pierre-Louis Bossart | 2385946 | 2019-05-01 10:57:25 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ |
| 2 | /* Copyright(c) 2015-17 Intel Corporation. */ |
Vinod Koul | 71bb8a1 | 2017-12-14 11:19:43 +0530 | [diff] [blame] | 3 | |
| 4 | #ifndef __SDW_INTEL_LOCAL_H |
| 5 | #define __SDW_INTEL_LOCAL_H |
| 6 | |
| 7 | /** |
Pierre-Louis Bossart | 27f1433 | 2019-05-22 14:47:30 -0500 | [diff] [blame] | 8 | * struct sdw_intel_link_res - Soundwire link resources |
Vinod Koul | 71bb8a1 | 2017-12-14 11:19:43 +0530 | [diff] [blame] | 9 | * @registers: Link IO registers base |
| 10 | * @shim: Audio shim pointer |
| 11 | * @alh: ALH (Audio Link Hub) pointer |
| 12 | * @irq: Interrupt line |
Vinod Koul | c46302e | 2018-04-26 18:39:05 +0530 | [diff] [blame] | 13 | * @ops: Shim callback ops |
| 14 | * @arg: Shim callback ops argument |
Vinod Koul | 71bb8a1 | 2017-12-14 11:19:43 +0530 | [diff] [blame] | 15 | * |
| 16 | * This is set as pdata for each link instance. |
| 17 | */ |
| 18 | struct sdw_intel_link_res { |
| 19 | void __iomem *registers; |
| 20 | void __iomem *shim; |
| 21 | void __iomem *alh; |
| 22 | int irq; |
Vinod Koul | c46302e | 2018-04-26 18:39:05 +0530 | [diff] [blame] | 23 | const struct sdw_intel_ops *ops; |
| 24 | void *arg; |
Vinod Koul | 71bb8a1 | 2017-12-14 11:19:43 +0530 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif /* __SDW_INTEL_LOCAL_H */ |