FreeBSD kernel sound device code
hdac_reg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HDAC_GCAP   0x00 /* 2 - Global Capabilities*/
 
#define HDAC_VMIN   0x02 /* 1 - Minor Version */
 
#define HDAC_VMAJ   0x03 /* 1 - Major Version */
 
#define HDAC_OUTPAY   0x04 /* 2 - Output Payload Capability */
 
#define HDAC_INPAY   0x06 /* 2 - Input Payload Capability */
 
#define HDAC_GCTL   0x08 /* 4 - Global Control */
 
#define HDAC_WAKEEN   0x0c /* 2 - Wake Enable */
 
#define HDAC_STATESTS   0x0e /* 2 - State Change Status */
 
#define HDAC_GSTS   0x10 /* 2 - Global Status */
 
#define HDAC_OUTSTRMPAY   0x18 /* 2 - Output Stream Payload Capability */
 
#define HDAC_INSTRMPAY   0x1a /* 2 - Input Stream Payload Capability */
 
#define HDAC_INTCTL   0x20 /* 4 - Interrupt Control */
 
#define HDAC_INTSTS   0x24 /* 4 - Interrupt Status */
 
#define HDAC_WALCLK   0x30 /* 4 - Wall Clock Counter */
 
#define HDAC_SSYNC   0x38 /* 4 - Stream Synchronization */
 
#define HDAC_CORBLBASE   0x40 /* 4 - CORB Lower Base Address */
 
#define HDAC_CORBUBASE   0x44 /* 4 - CORB Upper Base Address */
 
#define HDAC_CORBWP   0x48 /* 2 - CORB Write Pointer */
 
#define HDAC_CORBRP   0x4a /* 2 - CORB Read Pointer */
 
#define HDAC_CORBCTL   0x4c /* 1 - CORB Control */
 
#define HDAC_CORBSTS   0x4d /* 1 - CORB Status */
 
#define HDAC_CORBSIZE   0x4e /* 1 - CORB Size */
 
#define HDAC_RIRBLBASE   0x50 /* 4 - RIRB Lower Base Address */
 
#define HDAC_RIRBUBASE   0x54 /* 4 - RIRB Upper Base Address */
 
#define HDAC_RIRBWP   0x58 /* 2 - RIRB Write Pointer */
 
#define HDAC_RINTCNT   0x5a /* 2 - Response Interrupt Count */
 
#define HDAC_RIRBCTL   0x5c /* 1 - RIRB Control */
 
#define HDAC_RIRBSTS   0x5d /* 1 - RIRB Status */
 
#define HDAC_RIRBSIZE   0x5e /* 1 - RIRB Size */
 
#define HDAC_ICOI   0x60 /* 4 - Immediate Command Output Interface */
 
#define HDAC_ICII   0x64 /* 4 - Immediate Command Input Interface */
 
#define HDAC_ICIS   0x68 /* 2 - Immediate Command Status */
 
#define HDAC_DPIBLBASE   0x70 /* 4 - DMA Position Buffer Lower Base */
 
#define HDAC_DPIBUBASE   0x74 /* 4 - DMA Position Buffer Upper Base */
 
#define HDAC_SDCTL0   0x80 /* 3 - Stream Descriptor Control */
 
#define HDAC_SDCTL1   0x81 /* 3 - Stream Descriptor Control */
 
#define HDAC_SDCTL2   0x82 /* 3 - Stream Descriptor Control */
 
#define HDAC_SDSTS   0x83 /* 1 - Stream Descriptor Status */
 
#define HDAC_SDLPIB   0x84 /* 4 - Link Position in Buffer */
 
#define HDAC_SDCBL   0x88 /* 4 - Cyclic Buffer Length */
 
#define HDAC_SDLVI   0x8C /* 2 - Last Valid Index */
 
#define HDAC_SDFIFOS   0x90 /* 2 - FIFOS */
 
#define HDAC_SDFMT   0x92 /* 2 - fmt */
 
#define HDAC_SDBDPL   0x98 /* 4 - Buffer Descriptor Pointer Lower Base */
 
#define HDAC_SDBDPU   0x9C /* 4 - Buffer Descriptor Pointer Upper Base */
 
#define _HDAC_ISDOFFSET(n, iss, oss)   (0x80 + ((n) * 0x20))
 
#define _HDAC_ISDCTL(n, iss, oss)   (0x00 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDSTS(n, iss, oss)   (0x03 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDPICB(n, iss, oss)   (0x04 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDCBL(n, iss, oss)   (0x08 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDLVI(n, iss, oss)   (0x0c + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDFIFOD(n, iss, oss)   (0x10 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDFMT(n, iss, oss)   (0x12 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDBDPL(n, iss, oss)   (0x18 + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_ISDBDPU(n, iss, oss)   (0x1c + _HDAC_ISDOFFSET(n, iss, oss))
 
#define _HDAC_OSDOFFSET(n, iss, oss)   (0x80 + ((iss) * 0x20) + ((n) * 0x20))
 
#define _HDAC_OSDCTL(n, iss, oss)   (0x00 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDSTS(n, iss, oss)   (0x03 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDPICB(n, iss, oss)   (0x04 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDCBL(n, iss, oss)   (0x08 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDLVI(n, iss, oss)   (0x0c + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDFIFOD(n, iss, oss)   (0x10 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDFMT(n, iss, oss)   (0x12 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDBDPL(n, iss, oss)   (0x18 + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_OSDBDPU(n, iss, oss)   (0x1c + _HDAC_OSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDOFFSET(n, iss, oss)   (0x80 + ((iss) * 0x20) + ((oss) * 0x20) + ((n) * 0x20))
 
#define _HDAC_BSDCTL(n, iss, oss)   (0x00 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDSTS(n, iss, oss)   (0x03 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDPICB(n, iss, oss)   (0x04 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDCBL(n, iss, oss)   (0x08 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDLVI(n, iss, oss)   (0x0c + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDFIFOD(n, iss, oss)   (0x10 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDFMT(n, iss, oss)   (0x12 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDBDPL(n, iss, oss)   (0x18 + _HDAC_BSDOFFSET(n, iss, oss))
 
#define _HDAC_BSDBDBU(n, iss, oss)   (0x1c + _HDAC_BSDOFFSET(n, iss, oss))
 
#define HDAC_GCAP_64OK   0x0001
 
#define HDAC_GCAP_NSDO_MASK   0x0006
 
#define HDAC_GCAP_NSDO_SHIFT   1
 
#define HDAC_GCAP_BSS_MASK   0x00f8
 
#define HDAC_GCAP_BSS_SHIFT   3
 
#define HDAC_GCAP_ISS_MASK   0x0f00
 
#define HDAC_GCAP_ISS_SHIFT   8
 
#define HDAC_GCAP_OSS_MASK   0xf000
 
#define HDAC_GCAP_OSS_SHIFT   12
 
#define HDAC_GCAP_NSDO_1SDO   0x00
 
#define HDAC_GCAP_NSDO_2SDO   0x02
 
#define HDAC_GCAP_NSDO_4SDO   0x04
 
#define HDAC_GCAP_BSS(gcap)    (((gcap) & HDAC_GCAP_BSS_MASK) >> HDAC_GCAP_BSS_SHIFT)
 
#define HDAC_GCAP_ISS(gcap)    (((gcap) & HDAC_GCAP_ISS_MASK) >> HDAC_GCAP_ISS_SHIFT)
 
#define HDAC_GCAP_OSS(gcap)    (((gcap) & HDAC_GCAP_OSS_MASK) >> HDAC_GCAP_OSS_SHIFT)
 
#define HDAC_GCAP_NSDO(gcap)    (((gcap) & HDAC_GCAP_NSDO_MASK) >> HDAC_GCAP_NSDO_SHIFT)
 
#define HDAC_GCTL_CRST   0x00000001
 
#define HDAC_GCTL_FCNTRL   0x00000002
 
#define HDAC_GCTL_UNSOL   0x00000100
 
#define HDAC_WAKEEN_SDIWEN_MASK   0x7fff
 
#define HDAC_WAKEEN_SDIWEN_SHIFT   0
 
#define HDAC_STATESTS_SDIWAKE_MASK   0x7fff
 
#define HDAC_STATESTS_SDIWAKE_SHIFT   0
 
#define HDAC_STATESTS_SDIWAKE(statests, n)
 
#define HDAC_GSTS_FSTS   0x0002
 
#define HDAC_INTCTL_SIE_MASK   0x3fffffff
 
#define HDAC_INTCTL_SIE_SHIFT   0
 
#define HDAC_INTCTL_CIE   0x40000000
 
#define HDAC_INTCTL_GIE   0x80000000
 
#define HDAC_INTSTS_SIS_MASK   0x3fffffff
 
#define HDAC_INTSTS_SIS_SHIFT   0
 
#define HDAC_INTSTS_CIS   0x40000000
 
#define HDAC_INTSTS_GIS   0x80000000
 
#define HDAC_SSYNC_SSYNC_MASK   0x3fffffff
 
#define HDAC_SSYNC_SSYNC_SHIFT   0
 
#define HDAC_CORBWP_CORBWP_MASK   0x00ff
 
#define HDAC_CORBWP_CORBWP_SHIFT   0
 
#define HDAC_CORBRP_CORBRP_MASK   0x00ff
 
#define HDAC_CORBRP_CORBRP_SHIFT   0
 
#define HDAC_CORBRP_CORBRPRST   0x8000
 
#define HDAC_CORBCTL_CMEIE   0x01
 
#define HDAC_CORBCTL_CORBRUN   0x02
 
#define HDAC_CORBSTS_CMEI   0x01
 
#define HDAC_CORBSIZE_CORBSIZE_MASK   0x03
 
#define HDAC_CORBSIZE_CORBSIZE_SHIFT   0
 
#define HDAC_CORBSIZE_CORBSZCAP_MASK   0xf0
 
#define HDAC_CORBSIZE_CORBSZCAP_SHIFT   4
 
#define HDAC_CORBSIZE_CORBSIZE_2   0x00
 
#define HDAC_CORBSIZE_CORBSIZE_16   0x01
 
#define HDAC_CORBSIZE_CORBSIZE_256   0x02
 
#define HDAC_CORBSIZE_CORBSZCAP_2   0x10
 
#define HDAC_CORBSIZE_CORBSZCAP_16   0x20
 
#define HDAC_CORBSIZE_CORBSZCAP_256   0x40
 
#define HDAC_CORBSIZE_CORBSIZE(corbsize)    (((corbsize) & HDAC_CORBSIZE_CORBSIZE_MASK) >> HDAC_CORBSIZE_CORBSIZE_SHIFT)
 
#define HDAC_RIRBWP_RIRBWP_MASK   0x00ff
 
#define HDAC_RIRBWP_RIRBWP_SHIFT   0
 
#define HDAC_RIRBWP_RIRBWPRST   0x8000
 
#define HDAC_RINTCNT_MASK   0x00ff
 
#define HDAC_RINTCNT_SHIFT   0
 
#define HDAC_RIRBCTL_RINTCTL   0x01
 
#define HDAC_RIRBCTL_RIRBDMAEN   0x02
 
#define HDAC_RIRBCTL_RIRBOIC   0x04
 
#define HDAC_RIRBSTS_RINTFL   0x01
 
#define HDAC_RIRBSTS_RIRBOIS   0x04
 
#define HDAC_RIRBSIZE_RIRBSIZE_MASK   0x03
 
#define HDAC_RIRBSIZE_RIRBSIZE_SHIFT   0
 
#define HDAC_RIRBSIZE_RIRBSZCAP_MASK   0xf0
 
#define HDAC_RIRBSIZE_RIRBSZCAP_SHIFT   4
 
#define HDAC_RIRBSIZE_RIRBSIZE_2   0x00
 
#define HDAC_RIRBSIZE_RIRBSIZE_16   0x01
 
#define HDAC_RIRBSIZE_RIRBSIZE_256   0x02
 
#define HDAC_RIRBSIZE_RIRBSZCAP_2   0x10
 
#define HDAC_RIRBSIZE_RIRBSZCAP_16   0x20
 
#define HDAC_RIRBSIZE_RIRBSZCAP_256   0x40
 
#define HDAC_RIRBSIZE_RIRBSIZE(rirbsize)    (((rirbsize) & HDAC_RIRBSIZE_RIRBSIZE_MASK) >> HDAC_RIRBSIZE_RIRBSIZE_SHIFT)
 
#define HDAC_DPLBASE_DPLBASE_MASK   0xffffff80
 
#define HDAC_DPLBASE_DPLBASE_SHIFT   7
 
#define HDAC_DPLBASE_DPLBASE_DMAPBE   0x00000001
 
#define HDAC_SDCTL_SRST   0x000001
 
#define HDAC_SDCTL_RUN   0x000002
 
#define HDAC_SDCTL_IOCE   0x000004
 
#define HDAC_SDCTL_FEIE   0x000008
 
#define HDAC_SDCTL_DEIE   0x000010
 
#define HDAC_SDCTL2_STRIPE_MASK   0x03
 
#define HDAC_SDCTL2_STRIPE_SHIFT   0
 
#define HDAC_SDCTL2_TP   0x04
 
#define HDAC_SDCTL2_DIR   0x08
 
#define HDAC_SDCTL2_STRM_MASK   0xf0
 
#define HDAC_SDCTL2_STRM_SHIFT   4
 
#define HDAC_SDSTS_DESE   (1 << 4)
 
#define HDAC_SDSTS_FIFOE   (1 << 3)
 
#define HDAC_SDSTS_BCIS   (1 << 2)
 

Macro Definition Documentation

◆ _HDAC_BSDBDBU

#define _HDAC_BSDBDBU (   n,
  iss,
  oss 
)    (0x1c + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 114 of file hdac_reg.h.

◆ _HDAC_BSDBDPL

#define _HDAC_BSDBDPL (   n,
  iss,
  oss 
)    (0x18 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 113 of file hdac_reg.h.

◆ _HDAC_BSDCBL

#define _HDAC_BSDCBL (   n,
  iss,
  oss 
)    (0x08 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 109 of file hdac_reg.h.

◆ _HDAC_BSDCTL

#define _HDAC_BSDCTL (   n,
  iss,
  oss 
)    (0x00 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 106 of file hdac_reg.h.

◆ _HDAC_BSDFIFOD

#define _HDAC_BSDFIFOD (   n,
  iss,
  oss 
)    (0x10 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 111 of file hdac_reg.h.

◆ _HDAC_BSDFMT

#define _HDAC_BSDFMT (   n,
  iss,
  oss 
)    (0x12 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 112 of file hdac_reg.h.

◆ _HDAC_BSDLVI

#define _HDAC_BSDLVI (   n,
  iss,
  oss 
)    (0x0c + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 110 of file hdac_reg.h.

◆ _HDAC_BSDOFFSET

#define _HDAC_BSDOFFSET (   n,
  iss,
  oss 
)    (0x80 + ((iss) * 0x20) + ((oss) * 0x20) + ((n) * 0x20))

Definition at line 105 of file hdac_reg.h.

◆ _HDAC_BSDPICB

#define _HDAC_BSDPICB (   n,
  iss,
  oss 
)    (0x04 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 108 of file hdac_reg.h.

◆ _HDAC_BSDSTS

#define _HDAC_BSDSTS (   n,
  iss,
  oss 
)    (0x03 + _HDAC_BSDOFFSET(n, iss, oss))

Definition at line 107 of file hdac_reg.h.

◆ _HDAC_ISDBDPL

#define _HDAC_ISDBDPL (   n,
  iss,
  oss 
)    (0x18 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 91 of file hdac_reg.h.

◆ _HDAC_ISDBDPU

#define _HDAC_ISDBDPU (   n,
  iss,
  oss 
)    (0x1c + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 92 of file hdac_reg.h.

◆ _HDAC_ISDCBL

#define _HDAC_ISDCBL (   n,
  iss,
  oss 
)    (0x08 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 87 of file hdac_reg.h.

◆ _HDAC_ISDCTL

#define _HDAC_ISDCTL (   n,
  iss,
  oss 
)    (0x00 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 84 of file hdac_reg.h.

◆ _HDAC_ISDFIFOD

#define _HDAC_ISDFIFOD (   n,
  iss,
  oss 
)    (0x10 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 89 of file hdac_reg.h.

◆ _HDAC_ISDFMT

#define _HDAC_ISDFMT (   n,
  iss,
  oss 
)    (0x12 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 90 of file hdac_reg.h.

◆ _HDAC_ISDLVI

#define _HDAC_ISDLVI (   n,
  iss,
  oss 
)    (0x0c + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 88 of file hdac_reg.h.

◆ _HDAC_ISDOFFSET

#define _HDAC_ISDOFFSET (   n,
  iss,
  oss 
)    (0x80 + ((n) * 0x20))

Definition at line 83 of file hdac_reg.h.

◆ _HDAC_ISDPICB

#define _HDAC_ISDPICB (   n,
  iss,
  oss 
)    (0x04 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 86 of file hdac_reg.h.

◆ _HDAC_ISDSTS

#define _HDAC_ISDSTS (   n,
  iss,
  oss 
)    (0x03 + _HDAC_ISDOFFSET(n, iss, oss))

Definition at line 85 of file hdac_reg.h.

◆ _HDAC_OSDBDPL

#define _HDAC_OSDBDPL (   n,
  iss,
  oss 
)    (0x18 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 102 of file hdac_reg.h.

◆ _HDAC_OSDBDPU

#define _HDAC_OSDBDPU (   n,
  iss,
  oss 
)    (0x1c + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 103 of file hdac_reg.h.

◆ _HDAC_OSDCBL

#define _HDAC_OSDCBL (   n,
  iss,
  oss 
)    (0x08 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 98 of file hdac_reg.h.

◆ _HDAC_OSDCTL

#define _HDAC_OSDCTL (   n,
  iss,
  oss 
)    (0x00 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 95 of file hdac_reg.h.

◆ _HDAC_OSDFIFOD

#define _HDAC_OSDFIFOD (   n,
  iss,
  oss 
)    (0x10 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 100 of file hdac_reg.h.

◆ _HDAC_OSDFMT

#define _HDAC_OSDFMT (   n,
  iss,
  oss 
)    (0x12 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 101 of file hdac_reg.h.

◆ _HDAC_OSDLVI

#define _HDAC_OSDLVI (   n,
  iss,
  oss 
)    (0x0c + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 99 of file hdac_reg.h.

◆ _HDAC_OSDOFFSET

#define _HDAC_OSDOFFSET (   n,
  iss,
  oss 
)    (0x80 + ((iss) * 0x20) + ((n) * 0x20))

Definition at line 94 of file hdac_reg.h.

◆ _HDAC_OSDPICB

#define _HDAC_OSDPICB (   n,
  iss,
  oss 
)    (0x04 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 97 of file hdac_reg.h.

◆ _HDAC_OSDSTS

#define _HDAC_OSDSTS (   n,
  iss,
  oss 
)    (0x03 + _HDAC_OSDOFFSET(n, iss, oss))

Definition at line 96 of file hdac_reg.h.

◆ HDAC_CORBCTL

#define HDAC_CORBCTL   0x4c /* 1 - CORB Control */

Definition at line 56 of file hdac_reg.h.

◆ HDAC_CORBCTL_CMEIE

#define HDAC_CORBCTL_CMEIE   0x01

Definition at line 190 of file hdac_reg.h.

◆ HDAC_CORBCTL_CORBRUN

#define HDAC_CORBCTL_CORBRUN   0x02

Definition at line 191 of file hdac_reg.h.

◆ HDAC_CORBLBASE

#define HDAC_CORBLBASE   0x40 /* 4 - CORB Lower Base Address */

Definition at line 52 of file hdac_reg.h.

◆ HDAC_CORBRP

#define HDAC_CORBRP   0x4a /* 2 - CORB Read Pointer */

Definition at line 55 of file hdac_reg.h.

◆ HDAC_CORBRP_CORBRP_MASK

#define HDAC_CORBRP_CORBRP_MASK   0x00ff

Definition at line 185 of file hdac_reg.h.

◆ HDAC_CORBRP_CORBRP_SHIFT

#define HDAC_CORBRP_CORBRP_SHIFT   0

Definition at line 186 of file hdac_reg.h.

◆ HDAC_CORBRP_CORBRPRST

#define HDAC_CORBRP_CORBRPRST   0x8000

Definition at line 187 of file hdac_reg.h.

◆ HDAC_CORBSIZE

#define HDAC_CORBSIZE   0x4e /* 1 - CORB Size */

Definition at line 58 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE

#define HDAC_CORBSIZE_CORBSIZE (   corbsize)     (((corbsize) & HDAC_CORBSIZE_CORBSIZE_MASK) >> HDAC_CORBSIZE_CORBSIZE_SHIFT)

Definition at line 210 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE_16

#define HDAC_CORBSIZE_CORBSIZE_16   0x01

Definition at line 203 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE_2

#define HDAC_CORBSIZE_CORBSIZE_2   0x00

Definition at line 202 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE_256

#define HDAC_CORBSIZE_CORBSIZE_256   0x02

Definition at line 204 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE_MASK

#define HDAC_CORBSIZE_CORBSIZE_MASK   0x03

Definition at line 197 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSIZE_SHIFT

#define HDAC_CORBSIZE_CORBSIZE_SHIFT   0

Definition at line 198 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSZCAP_16

#define HDAC_CORBSIZE_CORBSZCAP_16   0x20

Definition at line 207 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSZCAP_2

#define HDAC_CORBSIZE_CORBSZCAP_2   0x10

Definition at line 206 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSZCAP_256

#define HDAC_CORBSIZE_CORBSZCAP_256   0x40

Definition at line 208 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSZCAP_MASK

#define HDAC_CORBSIZE_CORBSZCAP_MASK   0xf0

Definition at line 199 of file hdac_reg.h.

◆ HDAC_CORBSIZE_CORBSZCAP_SHIFT

#define HDAC_CORBSIZE_CORBSZCAP_SHIFT   4

Definition at line 200 of file hdac_reg.h.

◆ HDAC_CORBSTS

#define HDAC_CORBSTS   0x4d /* 1 - CORB Status */

Definition at line 57 of file hdac_reg.h.

◆ HDAC_CORBSTS_CMEI

#define HDAC_CORBSTS_CMEI   0x01

Definition at line 194 of file hdac_reg.h.

◆ HDAC_CORBUBASE

#define HDAC_CORBUBASE   0x44 /* 4 - CORB Upper Base Address */

Definition at line 53 of file hdac_reg.h.

◆ HDAC_CORBWP

#define HDAC_CORBWP   0x48 /* 2 - CORB Write Pointer */

Definition at line 54 of file hdac_reg.h.

◆ HDAC_CORBWP_CORBWP_MASK

#define HDAC_CORBWP_CORBWP_MASK   0x00ff

Definition at line 181 of file hdac_reg.h.

◆ HDAC_CORBWP_CORBWP_SHIFT

#define HDAC_CORBWP_CORBWP_SHIFT   0

Definition at line 182 of file hdac_reg.h.

◆ HDAC_DPIBLBASE

#define HDAC_DPIBLBASE   0x70 /* 4 - DMA Position Buffer Lower Base */

Definition at line 69 of file hdac_reg.h.

◆ HDAC_DPIBUBASE

#define HDAC_DPIBUBASE   0x74 /* 4 - DMA Position Buffer Upper Base */

Definition at line 70 of file hdac_reg.h.

◆ HDAC_DPLBASE_DPLBASE_DMAPBE

#define HDAC_DPLBASE_DPLBASE_DMAPBE   0x00000001

Definition at line 251 of file hdac_reg.h.

◆ HDAC_DPLBASE_DPLBASE_MASK

#define HDAC_DPLBASE_DPLBASE_MASK   0xffffff80

Definition at line 249 of file hdac_reg.h.

◆ HDAC_DPLBASE_DPLBASE_SHIFT

#define HDAC_DPLBASE_DPLBASE_SHIFT   7

Definition at line 250 of file hdac_reg.h.

◆ HDAC_GCAP

#define HDAC_GCAP   0x00 /* 2 - Global Capabilities*/

Definition at line 37 of file hdac_reg.h.

◆ HDAC_GCAP_64OK

#define HDAC_GCAP_64OK   0x0001

Definition at line 121 of file hdac_reg.h.

◆ HDAC_GCAP_BSS

#define HDAC_GCAP_BSS (   gcap)     (((gcap) & HDAC_GCAP_BSS_MASK) >> HDAC_GCAP_BSS_SHIFT)

Definition at line 135 of file hdac_reg.h.

◆ HDAC_GCAP_BSS_MASK

#define HDAC_GCAP_BSS_MASK   0x00f8

Definition at line 124 of file hdac_reg.h.

◆ HDAC_GCAP_BSS_SHIFT

#define HDAC_GCAP_BSS_SHIFT   3

Definition at line 125 of file hdac_reg.h.

◆ HDAC_GCAP_ISS

#define HDAC_GCAP_ISS (   gcap)     (((gcap) & HDAC_GCAP_ISS_MASK) >> HDAC_GCAP_ISS_SHIFT)

Definition at line 137 of file hdac_reg.h.

◆ HDAC_GCAP_ISS_MASK

#define HDAC_GCAP_ISS_MASK   0x0f00

Definition at line 126 of file hdac_reg.h.

◆ HDAC_GCAP_ISS_SHIFT

#define HDAC_GCAP_ISS_SHIFT   8

Definition at line 127 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO

#define HDAC_GCAP_NSDO (   gcap)     (((gcap) & HDAC_GCAP_NSDO_MASK) >> HDAC_GCAP_NSDO_SHIFT)

Definition at line 141 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO_1SDO

#define HDAC_GCAP_NSDO_1SDO   0x00

Definition at line 131 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO_2SDO

#define HDAC_GCAP_NSDO_2SDO   0x02

Definition at line 132 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO_4SDO

#define HDAC_GCAP_NSDO_4SDO   0x04

Definition at line 133 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO_MASK

#define HDAC_GCAP_NSDO_MASK   0x0006

Definition at line 122 of file hdac_reg.h.

◆ HDAC_GCAP_NSDO_SHIFT

#define HDAC_GCAP_NSDO_SHIFT   1

Definition at line 123 of file hdac_reg.h.

◆ HDAC_GCAP_OSS

#define HDAC_GCAP_OSS (   gcap)     (((gcap) & HDAC_GCAP_OSS_MASK) >> HDAC_GCAP_OSS_SHIFT)

Definition at line 139 of file hdac_reg.h.

◆ HDAC_GCAP_OSS_MASK

#define HDAC_GCAP_OSS_MASK   0xf000

Definition at line 128 of file hdac_reg.h.

◆ HDAC_GCAP_OSS_SHIFT

#define HDAC_GCAP_OSS_SHIFT   12

Definition at line 129 of file hdac_reg.h.

◆ HDAC_GCTL

#define HDAC_GCTL   0x08 /* 4 - Global Control */

Definition at line 42 of file hdac_reg.h.

◆ HDAC_GCTL_CRST

#define HDAC_GCTL_CRST   0x00000001

Definition at line 145 of file hdac_reg.h.

◆ HDAC_GCTL_FCNTRL

#define HDAC_GCTL_FCNTRL   0x00000002

Definition at line 146 of file hdac_reg.h.

◆ HDAC_GCTL_UNSOL

#define HDAC_GCTL_UNSOL   0x00000100

Definition at line 147 of file hdac_reg.h.

◆ HDAC_GSTS

#define HDAC_GSTS   0x10 /* 2 - Global Status */

Definition at line 45 of file hdac_reg.h.

◆ HDAC_GSTS_FSTS

#define HDAC_GSTS_FSTS   0x0002

Definition at line 162 of file hdac_reg.h.

◆ HDAC_ICII

#define HDAC_ICII   0x64 /* 4 - Immediate Command Input Interface */

Definition at line 67 of file hdac_reg.h.

◆ HDAC_ICIS

#define HDAC_ICIS   0x68 /* 2 - Immediate Command Status */

Definition at line 68 of file hdac_reg.h.

◆ HDAC_ICOI

#define HDAC_ICOI   0x60 /* 4 - Immediate Command Output Interface */

Definition at line 66 of file hdac_reg.h.

◆ HDAC_INPAY

#define HDAC_INPAY   0x06 /* 2 - Input Payload Capability */

Definition at line 41 of file hdac_reg.h.

◆ HDAC_INSTRMPAY

#define HDAC_INSTRMPAY   0x1a /* 2 - Input Stream Payload Capability */

Definition at line 47 of file hdac_reg.h.

◆ HDAC_INTCTL

#define HDAC_INTCTL   0x20 /* 4 - Interrupt Control */

Definition at line 48 of file hdac_reg.h.

◆ HDAC_INTCTL_CIE

#define HDAC_INTCTL_CIE   0x40000000

Definition at line 167 of file hdac_reg.h.

◆ HDAC_INTCTL_GIE

#define HDAC_INTCTL_GIE   0x80000000

Definition at line 168 of file hdac_reg.h.

◆ HDAC_INTCTL_SIE_MASK

#define HDAC_INTCTL_SIE_MASK   0x3fffffff

Definition at line 165 of file hdac_reg.h.

◆ HDAC_INTCTL_SIE_SHIFT

#define HDAC_INTCTL_SIE_SHIFT   0

Definition at line 166 of file hdac_reg.h.

◆ HDAC_INTSTS

#define HDAC_INTSTS   0x24 /* 4 - Interrupt Status */

Definition at line 49 of file hdac_reg.h.

◆ HDAC_INTSTS_CIS

#define HDAC_INTSTS_CIS   0x40000000

Definition at line 173 of file hdac_reg.h.

◆ HDAC_INTSTS_GIS

#define HDAC_INTSTS_GIS   0x80000000

Definition at line 174 of file hdac_reg.h.

◆ HDAC_INTSTS_SIS_MASK

#define HDAC_INTSTS_SIS_MASK   0x3fffffff

Definition at line 171 of file hdac_reg.h.

◆ HDAC_INTSTS_SIS_SHIFT

#define HDAC_INTSTS_SIS_SHIFT   0

Definition at line 172 of file hdac_reg.h.

◆ HDAC_OUTPAY

#define HDAC_OUTPAY   0x04 /* 2 - Output Payload Capability */

Definition at line 40 of file hdac_reg.h.

◆ HDAC_OUTSTRMPAY

#define HDAC_OUTSTRMPAY   0x18 /* 2 - Output Stream Payload Capability */

Definition at line 46 of file hdac_reg.h.

◆ HDAC_RINTCNT

#define HDAC_RINTCNT   0x5a /* 2 - Response Interrupt Count */

Definition at line 62 of file hdac_reg.h.

◆ HDAC_RINTCNT_MASK

#define HDAC_RINTCNT_MASK   0x00ff

Definition at line 219 of file hdac_reg.h.

◆ HDAC_RINTCNT_SHIFT

#define HDAC_RINTCNT_SHIFT   0

Definition at line 220 of file hdac_reg.h.

◆ HDAC_RIRBCTL

#define HDAC_RIRBCTL   0x5c /* 1 - RIRB Control */

Definition at line 63 of file hdac_reg.h.

◆ HDAC_RIRBCTL_RINTCTL

#define HDAC_RIRBCTL_RINTCTL   0x01

Definition at line 223 of file hdac_reg.h.

◆ HDAC_RIRBCTL_RIRBDMAEN

#define HDAC_RIRBCTL_RIRBDMAEN   0x02

Definition at line 224 of file hdac_reg.h.

◆ HDAC_RIRBCTL_RIRBOIC

#define HDAC_RIRBCTL_RIRBOIC   0x04

Definition at line 225 of file hdac_reg.h.

◆ HDAC_RIRBLBASE

#define HDAC_RIRBLBASE   0x50 /* 4 - RIRB Lower Base Address */

Definition at line 59 of file hdac_reg.h.

◆ HDAC_RIRBSIZE

#define HDAC_RIRBSIZE   0x5e /* 1 - RIRB Size */

Definition at line 65 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE

#define HDAC_RIRBSIZE_RIRBSIZE (   rirbsize)     (((rirbsize) & HDAC_RIRBSIZE_RIRBSIZE_MASK) >> HDAC_RIRBSIZE_RIRBSIZE_SHIFT)

Definition at line 245 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE_16

#define HDAC_RIRBSIZE_RIRBSIZE_16   0x01

Definition at line 238 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE_2

#define HDAC_RIRBSIZE_RIRBSIZE_2   0x00

Definition at line 237 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE_256

#define HDAC_RIRBSIZE_RIRBSIZE_256   0x02

Definition at line 239 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE_MASK

#define HDAC_RIRBSIZE_RIRBSIZE_MASK   0x03

Definition at line 232 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSIZE_SHIFT

#define HDAC_RIRBSIZE_RIRBSIZE_SHIFT   0

Definition at line 233 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSZCAP_16

#define HDAC_RIRBSIZE_RIRBSZCAP_16   0x20

Definition at line 242 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSZCAP_2

#define HDAC_RIRBSIZE_RIRBSZCAP_2   0x10

Definition at line 241 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSZCAP_256

#define HDAC_RIRBSIZE_RIRBSZCAP_256   0x40

Definition at line 243 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSZCAP_MASK

#define HDAC_RIRBSIZE_RIRBSZCAP_MASK   0xf0

Definition at line 234 of file hdac_reg.h.

◆ HDAC_RIRBSIZE_RIRBSZCAP_SHIFT

#define HDAC_RIRBSIZE_RIRBSZCAP_SHIFT   4

Definition at line 235 of file hdac_reg.h.

◆ HDAC_RIRBSTS

#define HDAC_RIRBSTS   0x5d /* 1 - RIRB Status */

Definition at line 64 of file hdac_reg.h.

◆ HDAC_RIRBSTS_RINTFL

#define HDAC_RIRBSTS_RINTFL   0x01

Definition at line 228 of file hdac_reg.h.

◆ HDAC_RIRBSTS_RIRBOIS

#define HDAC_RIRBSTS_RIRBOIS   0x04

Definition at line 229 of file hdac_reg.h.

◆ HDAC_RIRBUBASE

#define HDAC_RIRBUBASE   0x54 /* 4 - RIRB Upper Base Address */

Definition at line 60 of file hdac_reg.h.

◆ HDAC_RIRBWP

#define HDAC_RIRBWP   0x58 /* 2 - RIRB Write Pointer */

Definition at line 61 of file hdac_reg.h.

◆ HDAC_RIRBWP_RIRBWP_MASK

#define HDAC_RIRBWP_RIRBWP_MASK   0x00ff

Definition at line 214 of file hdac_reg.h.

◆ HDAC_RIRBWP_RIRBWP_SHIFT

#define HDAC_RIRBWP_RIRBWP_SHIFT   0

Definition at line 215 of file hdac_reg.h.

◆ HDAC_RIRBWP_RIRBWPRST

#define HDAC_RIRBWP_RIRBWPRST   0x8000

Definition at line 216 of file hdac_reg.h.

◆ HDAC_SDBDPL

#define HDAC_SDBDPL   0x98 /* 4 - Buffer Descriptor Pointer Lower Base */

Definition at line 80 of file hdac_reg.h.

◆ HDAC_SDBDPU

#define HDAC_SDBDPU   0x9C /* 4 - Buffer Descriptor Pointer Upper Base */

Definition at line 81 of file hdac_reg.h.

◆ HDAC_SDCBL

#define HDAC_SDCBL   0x88 /* 4 - Cyclic Buffer Length */

Definition at line 76 of file hdac_reg.h.

◆ HDAC_SDCTL0

#define HDAC_SDCTL0   0x80 /* 3 - Stream Descriptor Control */

Definition at line 71 of file hdac_reg.h.

◆ HDAC_SDCTL1

#define HDAC_SDCTL1   0x81 /* 3 - Stream Descriptor Control */

Definition at line 72 of file hdac_reg.h.

◆ HDAC_SDCTL2

#define HDAC_SDCTL2   0x82 /* 3 - Stream Descriptor Control */

Definition at line 73 of file hdac_reg.h.

◆ HDAC_SDCTL2_DIR

#define HDAC_SDCTL2_DIR   0x08

Definition at line 262 of file hdac_reg.h.

◆ HDAC_SDCTL2_STRIPE_MASK

#define HDAC_SDCTL2_STRIPE_MASK   0x03

Definition at line 259 of file hdac_reg.h.

◆ HDAC_SDCTL2_STRIPE_SHIFT

#define HDAC_SDCTL2_STRIPE_SHIFT   0

Definition at line 260 of file hdac_reg.h.

◆ HDAC_SDCTL2_STRM_MASK

#define HDAC_SDCTL2_STRM_MASK   0xf0

Definition at line 263 of file hdac_reg.h.

◆ HDAC_SDCTL2_STRM_SHIFT

#define HDAC_SDCTL2_STRM_SHIFT   4

Definition at line 264 of file hdac_reg.h.

◆ HDAC_SDCTL2_TP

#define HDAC_SDCTL2_TP   0x04

Definition at line 261 of file hdac_reg.h.

◆ HDAC_SDCTL_DEIE

#define HDAC_SDCTL_DEIE   0x000010

Definition at line 258 of file hdac_reg.h.

◆ HDAC_SDCTL_FEIE

#define HDAC_SDCTL_FEIE   0x000008

Definition at line 257 of file hdac_reg.h.

◆ HDAC_SDCTL_IOCE

#define HDAC_SDCTL_IOCE   0x000004

Definition at line 256 of file hdac_reg.h.

◆ HDAC_SDCTL_RUN

#define HDAC_SDCTL_RUN   0x000002

Definition at line 255 of file hdac_reg.h.

◆ HDAC_SDCTL_SRST

#define HDAC_SDCTL_SRST   0x000001

Definition at line 254 of file hdac_reg.h.

◆ HDAC_SDFIFOS

#define HDAC_SDFIFOS   0x90 /* 2 - FIFOS */

Definition at line 78 of file hdac_reg.h.

◆ HDAC_SDFMT

#define HDAC_SDFMT   0x92 /* 2 - fmt */

Definition at line 79 of file hdac_reg.h.

◆ HDAC_SDLPIB

#define HDAC_SDLPIB   0x84 /* 4 - Link Position in Buffer */

Definition at line 75 of file hdac_reg.h.

◆ HDAC_SDLVI

#define HDAC_SDLVI   0x8C /* 2 - Last Valid Index */

Definition at line 77 of file hdac_reg.h.

◆ HDAC_SDSTS

#define HDAC_SDSTS   0x83 /* 1 - Stream Descriptor Status */

Definition at line 74 of file hdac_reg.h.

◆ HDAC_SDSTS_BCIS

#define HDAC_SDSTS_BCIS   (1 << 2)

Definition at line 268 of file hdac_reg.h.

◆ HDAC_SDSTS_DESE

#define HDAC_SDSTS_DESE   (1 << 4)

Definition at line 266 of file hdac_reg.h.

◆ HDAC_SDSTS_FIFOE

#define HDAC_SDSTS_FIFOE   (1 << 3)

Definition at line 267 of file hdac_reg.h.

◆ HDAC_SSYNC

#define HDAC_SSYNC   0x38 /* 4 - Stream Synchronization */

Definition at line 51 of file hdac_reg.h.

◆ HDAC_SSYNC_SSYNC_MASK

#define HDAC_SSYNC_SSYNC_MASK   0x3fffffff

Definition at line 177 of file hdac_reg.h.

◆ HDAC_SSYNC_SSYNC_SHIFT

#define HDAC_SSYNC_SSYNC_SHIFT   0

Definition at line 178 of file hdac_reg.h.

◆ HDAC_STATESTS

#define HDAC_STATESTS   0x0e /* 2 - State Change Status */

Definition at line 44 of file hdac_reg.h.

◆ HDAC_STATESTS_SDIWAKE

#define HDAC_STATESTS_SDIWAKE (   statests,
  n 
)
Value:
(((((statests) & HDAC_STATESTS_SDIWAKE_MASK) >> \
HDAC_STATESTS_SDIWAKE_SHIFT) >> (n)) & 0x0001)
#define HDAC_STATESTS_SDIWAKE_MASK
Definition: hdac_reg.h:154

Definition at line 157 of file hdac_reg.h.

◆ HDAC_STATESTS_SDIWAKE_MASK

#define HDAC_STATESTS_SDIWAKE_MASK   0x7fff

Definition at line 154 of file hdac_reg.h.

◆ HDAC_STATESTS_SDIWAKE_SHIFT

#define HDAC_STATESTS_SDIWAKE_SHIFT   0

Definition at line 155 of file hdac_reg.h.

◆ HDAC_VMAJ

#define HDAC_VMAJ   0x03 /* 1 - Major Version */

Definition at line 39 of file hdac_reg.h.

◆ HDAC_VMIN

#define HDAC_VMIN   0x02 /* 1 - Minor Version */

Definition at line 38 of file hdac_reg.h.

◆ HDAC_WAKEEN

#define HDAC_WAKEEN   0x0c /* 2 - Wake Enable */

Definition at line 43 of file hdac_reg.h.

◆ HDAC_WAKEEN_SDIWEN_MASK

#define HDAC_WAKEEN_SDIWEN_MASK   0x7fff

Definition at line 150 of file hdac_reg.h.

◆ HDAC_WAKEEN_SDIWEN_SHIFT

#define HDAC_WAKEEN_SDIWEN_SHIFT   0

Definition at line 151 of file hdac_reg.h.

◆ HDAC_WALCLK

#define HDAC_WALCLK   0x30 /* 4 - Wall Clock Counter */

Definition at line 50 of file hdac_reg.h.