blob: d923b626233026aa691ba19b3caf29c66b0939cd [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2/* Copyright(c) 2015-17 Intel Corporation. */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00003
4#ifndef __SDW_INTEL_LOCAL_H
5#define __SDW_INTEL_LOCAL_H
6
7/**
David Brazdil0f672f62019-12-10 10:32:29 +00008 * struct sdw_intel_link_res - Soundwire link resources
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00009 * @registers: Link IO registers base
10 * @shim: Audio shim pointer
11 * @alh: ALH (Audio Link Hub) pointer
12 * @irq: Interrupt line
13 * @ops: Shim callback ops
14 * @arg: Shim callback ops argument
15 *
16 * This is set as pdata for each link instance.
17 */
18struct sdw_intel_link_res {
19 void __iomem *registers;
20 void __iomem *shim;
21 void __iomem *alh;
22 int irq;
23 const struct sdw_intel_ops *ops;
24 void *arg;
25};
26
27#endif /* __SDW_INTEL_LOCAL_H */