/* * TXx9 SoC AC Link Controller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __TXX9ACLC_H #define __TXX9ACLC_H #include #include #define ACCTLEN 0x00 /* control enable */ #define ACCTLDIS 0x04 /* control disable */ #define ACCTL_ENLINK 0x00000001 /* enable/disable AC-link */ #define ACCTL_AUDODMA 0x00000100 /* AUDODMA enable/disable */ #define ACCTL_AUDIDMA 0x00001000 /* AUDIDMA enable/disable */ #define ACCTL_AUDOEHLT 0x00010000 /* AUDO error halt enable/disable */ #define ACCTL_AUDIEHLT 0x00100000 /* AUDI error halt enable/disable */ #define ACREGACC 0x08 /* codec register access */ #define ACREGACC_DAT_SHIFT 0 /* data field */ #define ACREGACC_REG_SHIFT 16 /* address field */ #define ACREGACC_CODECID_SHIFT 24 /* CODEC ID field */ #define ACREGACC_READ 0x80000000 /* CODEC read */ #define ACREGACC_WRITE 0x00000000 /* CODEC write */ #define ACINTSTS 0x10 /* interrupt status */ #define ACINTMSTS 0x14 /* interrupt masked status */ #define ACINTEN 0x18 /* interrupt enable */ #define ACINTDIS 0x1c /* interrupt disable */ #define ACINT_CODECRDY(n) (0x00000001 << (n)) /* CODECn ready */ #define ACINT_REGACCRDY 0x00000010 /* ACREGACC ready */ #define ACINT_AUDOERR 0x00000100 /* AUDO underrun error */ #define ACINT_AUDIERR 0x00001000 /* AUDI overrun error */ #define ACDMASTS 0x80 /* DMA request status */ #define ACDMA_AUDO 0x00000001 /* AUDODMA pending */ #define ACDMA_AUDI 0x00000010 /* AUDIDMA pending */ #define ACAUDODAT 0xa0 /* audio out data */ #define ACAUDIDAT 0xb0 /* audio in data */ #define ACREVID 0xfc /* revision ID */ struct txx9aclc_dmadata { struct resource *dma_res; struct txx9dmac_slave dma_slave; struct dma_chan *dma_chan; struct tasklet_struct tasklet; spinlock_t dma_lock; int stream; /* SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE */ struct snd_pcm_substream *substream; unsigned long pos; dma_addr_t dma_addr; unsigned long buffer_bytes; unsigned long period_bytes; unsigned long frag_bytes; int frags; int frag_count; int dmacount; }; struct txx9aclc_plat_drvdata { void __iomem *base; u64 physbase; }; static inline struct txx9aclc_plat_drvdata *txx9aclc_get_plat_drvdata( struct snd_soc_dai *dai) { return dev_get_drvdata(dai->dev); } #endif /* __TXX9ACLC_H */ den' name='h' value='nds-private-remove'/>
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
commit396bf4cd835e62d70fad4a03a8963e61f19021f2 (patch)
tree79ac8f33554260fea1a8d43e6f8c4c5460115f45 /include/trace/trace_events.h
parentd5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c (diff)
parent7c2cf1c4615cc2f576d0604406cdf0065f00b83b (diff)
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: - use-after-free in algif_aead - modular aesni regression when pcbc is modular but absent - bug causing IO page faults in ccp - double list add in ccp - NULL pointer dereference in qat (two patches) - panic in chcr - NULL pointer dereference in chcr - out-of-bound access in chcr * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: chcr - Fix key length for RFC4106 crypto: algif_aead - Fix kernel panic on list_del crypto: aesni - Fix failure when pcbc module is absent crypto: ccp - Fix double add when creating new DMA command crypto: ccp - Fix DMA operations when IOMMU is enabled crypto: chcr - Check device is allocated before use crypto: chcr - Fix panic on dma_unmap_sg crypto: qat - zero esram only for DH85x devices crypto: qat - fix bar discovery for c62x
Diffstat (limited to 'include/trace/trace_events.h')