Contributors: 16
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Mark Brown |
203 |
58.67% |
2 |
8.70% |
Marc Zyngier |
28 |
8.09% |
1 |
4.35% |
Kuninori Morimoto |
19 |
5.49% |
4 |
17.39% |
Subhransu S. Prusty |
18 |
5.20% |
2 |
8.70% |
Vinod Koul |
13 |
3.76% |
1 |
4.35% |
Håvard Skinnemoen |
12 |
3.47% |
2 |
8.70% |
Sergei Shtylyov |
10 |
2.89% |
1 |
4.35% |
Pierre-Louis Bossart |
8 |
2.31% |
1 |
4.35% |
Amitkumar Karwar |
8 |
2.31% |
1 |
4.35% |
Sathya Perla |
6 |
1.73% |
1 |
4.35% |
Nicholas Piggin |
5 |
1.45% |
2 |
8.70% |
Steve Glendinning |
5 |
1.45% |
1 |
4.35% |
Misael Lopez Cruz |
3 |
0.87% |
1 |
4.35% |
Sven Eckelmann |
3 |
0.87% |
1 |
4.35% |
Liam Girdwood |
3 |
0.87% |
1 |
4.35% |
Thomas Gleixner |
2 |
0.58% |
1 |
4.35% |
Total |
346 |
|
23 |
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Intel Smart Sound Technology (SST) Core
*
* Copyright (C) 2013, Intel Corporation. All rights reserved.
*/
#ifndef __SOUND_SOC_SST_DSP_H
#define __SOUND_SOC_SST_DSP_H
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
struct sst_dsp;
/*
* SST Device.
*
* This structure is populated by the SST core driver.
*/
struct sst_dsp_device {
/* Mandatory fields */
struct sst_ops *ops;
irqreturn_t (*thread)(int irq, void *context);
void *thread_context;
};
/* SHIM Read / Write */
void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value);
u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset);
int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset,
u32 mask, u32 value);
void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset,
u32 mask, u32 value);
/* SHIM Read / Write Unlocked for callers already holding sst lock */
void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value);
u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset);
int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset,
u32 mask, u32 value);
void sst_dsp_shim_update_bits_forced_unlocked(struct sst_dsp *sst, u32 offset,
u32 mask, u32 value);
/* Internal generic low-level SST IO functions - can be overidden */
void sst_shim32_write(void __iomem *addr, u32 offset, u32 value);
u32 sst_shim32_read(void __iomem *addr, u32 offset);
void sst_shim32_write64(void __iomem *addr, u32 offset, u64 value);
u64 sst_shim32_read64(void __iomem *addr, u32 offset);
/* Mailbox management */
int sst_dsp_mailbox_init(struct sst_dsp *sst, u32 inbox_offset,
size_t inbox_size, u32 outbox_offset, size_t outbox_size);
void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes);
void sst_dsp_inbox_read(struct sst_dsp *sst, void *message, size_t bytes);
void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes);
void sst_dsp_outbox_read(struct sst_dsp *sst, void *message, size_t bytes);
int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask,
u32 target, u32 time, char *operation);
#endif