~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/txx9/txx9aclc.h

Version: ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * TXx9 SoC AC Link Controller
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU General Public License version 2 as
  6  * published by the Free Software Foundation.
  7  */
  8 
  9 #ifndef __TXX9ACLC_H
 10 #define __TXX9ACLC_H
 11 
 12 #include <linux/interrupt.h>
 13 #include <asm/txx9/dmac.h>
 14 
 15 #define ACCTLEN                 0x00    /* control enable */
 16 #define ACCTLDIS                0x04    /* control disable */
 17 #define   ACCTL_ENLINK          0x00000001      /* enable/disable AC-link */
 18 #define   ACCTL_AUDODMA         0x00000100      /* AUDODMA enable/disable */
 19 #define   ACCTL_AUDIDMA         0x00001000      /* AUDIDMA enable/disable */
 20 #define   ACCTL_AUDOEHLT        0x00010000      /* AUDO error halt
 21                                                    enable/disable */
 22 #define   ACCTL_AUDIEHLT        0x00100000      /* AUDI error halt
 23                                                    enable/disable */
 24 #define ACREGACC                0x08    /* codec register access */
 25 #define   ACREGACC_DAT_SHIFT    0       /* data field */
 26 #define   ACREGACC_REG_SHIFT    16      /* address field */
 27 #define   ACREGACC_CODECID_SHIFT        24      /* CODEC ID field */
 28 #define   ACREGACC_READ         0x80000000      /* CODEC read */
 29 #define   ACREGACC_WRITE        0x00000000      /* CODEC write */
 30 #define ACINTSTS                0x10    /* interrupt status */
 31 #define ACINTMSTS               0x14    /* interrupt masked status */
 32 #define ACINTEN                 0x18    /* interrupt enable */
 33 #define ACINTDIS                0x1c    /* interrupt disable */
 34 #define   ACINT_CODECRDY(n)     (0x00000001 << (n))     /* CODECn ready */
 35 #define   ACINT_REGACCRDY       0x00000010      /* ACREGACC ready */
 36 #define   ACINT_AUDOERR         0x00000100      /* AUDO underrun error */
 37 #define   ACINT_AUDIERR         0x00001000      /* AUDI overrun error */
 38 #define ACDMASTS                0x80    /* DMA request status */
 39 #define   ACDMA_AUDO            0x00000001      /* AUDODMA pending */
 40 #define   ACDMA_AUDI            0x00000010      /* AUDIDMA pending */
 41 #define ACAUDODAT               0xa0    /* audio out data */
 42 #define ACAUDIDAT               0xb0    /* audio in data */
 43 #define ACREVID                 0xfc    /* revision ID */
 44 
 45 struct txx9aclc_dmadata {
 46         struct resource *dma_res;
 47         struct txx9dmac_slave dma_slave;
 48         struct dma_chan *dma_chan;
 49         struct tasklet_struct tasklet;
 50         spinlock_t dma_lock;
 51         int stream; /* SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE */
 52         struct snd_pcm_substream *substream;
 53         unsigned long pos;
 54         dma_addr_t dma_addr;
 55         unsigned long buffer_bytes;
 56         unsigned long period_bytes;
 57         unsigned long frag_bytes;
 58         int frags;
 59         int frag_count;
 60         int dmacount;
 61 };
 62 
 63 struct txx9aclc_plat_drvdata {
 64         void __iomem *base;
 65         u64 physbase;
 66 };
 67 
 68 static inline struct txx9aclc_plat_drvdata *txx9aclc_get_plat_drvdata(
 69         struct snd_soc_dai *dai)
 70 {
 71         return dev_get_drvdata(dai->dev);
 72 }
 73 
 74 #endif /* __TXX9ACLC_H */
 75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp