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

Go to the source code of this file.

Data Structures

struct  hdac_mem
 
struct  hdac_irq
 
struct  hdac_dma
 
struct  hdac_rirb
 
struct  hdac_bdle
 
struct  hdac_stream
 
struct  hdac_softc
 

Macros

#define HDAC_CODEC_MAX   16
 
#define HDAC_READ_1(mem, offset)    bus_space_read_1((mem)->mem_tag, (mem)->mem_handle, (offset))
 
#define HDAC_READ_2(mem, offset)    bus_space_read_2((mem)->mem_tag, (mem)->mem_handle, (offset))
 
#define HDAC_READ_4(mem, offset)    bus_space_read_4((mem)->mem_tag, (mem)->mem_handle, (offset))
 
#define HDAC_WRITE_1(mem, offset, value)    bus_space_write_1((mem)->mem_tag, (mem)->mem_handle, (offset), (value))
 
#define HDAC_WRITE_2(mem, offset, value)    bus_space_write_2((mem)->mem_tag, (mem)->mem_handle, (offset), (value))
 
#define HDAC_WRITE_4(mem, offset, value)    bus_space_write_4((mem)->mem_tag, (mem)->mem_handle, (offset), (value))
 
#define HDAC_ISDCTL(sc, n)   (_HDAC_ISDCTL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDSTS(sc, n)   (_HDAC_ISDSTS((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDPICB(sc, n)   (_HDAC_ISDPICB((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDCBL(sc, n)   (_HDAC_ISDCBL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDLVI(sc, n)   (_HDAC_ISDLVI((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDFIFOD(sc, n)   (_HDAC_ISDFIFOD((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDFMT(sc, n)   (_HDAC_ISDFMT((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDBDPL(sc, n)   (_HDAC_ISDBDPL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_ISDBDPU(sc, n)   (_HDAC_ISDBDPU((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDCTL(sc, n)   (_HDAC_OSDCTL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDSTS(sc, n)   (_HDAC_OSDSTS((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDPICB(sc, n)   (_HDAC_OSDPICB((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDCBL(sc, n)   (_HDAC_OSDCBL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDLVI(sc, n)   (_HDAC_OSDLVI((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDFIFOD(sc, n)   (_HDAC_OSDFIFOD((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDBDPL(sc, n)   (_HDAC_OSDBDPL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_OSDBDPU(sc, n)   (_HDAC_OSDBDPU((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDCTL(sc, n)   (_HDAC_BSDCTL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDSTS(sc, n)   (_HDAC_BSDSTS((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDPICB(sc, n)   (_HDAC_BSDPICB((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDCBL(sc, n)   (_HDAC_BSDCBL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDLVI(sc, n)   (_HDAC_BSDLVI((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDFIFOD(sc, n)   (_HDAC_BSDFIFOD((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDBDPL(sc, n)   (_HDAC_BSDBDPL((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_BSDBDPU(sc, n)   (_HDAC_BSDBDPU((n), (sc)->num_iss, (sc)->num_oss))
 
#define HDAC_RIRB_RESPONSE_EX_SDATA_IN_MASK   0x0000000f
 
#define HDAC_RIRB_RESPONSE_EX_SDATA_IN_OFFSET   0
 
#define HDAC_RIRB_RESPONSE_EX_UNSOLICITED   0x00000010
 
#define HDAC_RIRB_RESPONSE_EX_SDATA_IN(response_ex)
 
#define HDAC_F_DMA_NOCACHE   0x00000001
 
#define HDAC_UNSOLQ_MAX   64
 
#define HDAC_UNSOLQ_READY   0
 
#define HDAC_UNSOLQ_BUSY   1
 

Functions

 MALLOC_DECLARE (M_HDAC)
 

Variables

struct hdac_bdle __packed
 

Macro Definition Documentation

◆ HDAC_BSDBDPL

#define HDAC_BSDBDPL (   sc,
  n 
)    (_HDAC_BSDBDPL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 81 of file hdac_private.h.

◆ HDAC_BSDBDPU

#define HDAC_BSDBDPU (   sc,
  n 
)    (_HDAC_BSDBDPU((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 82 of file hdac_private.h.

◆ HDAC_BSDCBL

#define HDAC_BSDCBL (   sc,
  n 
)    (_HDAC_BSDCBL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 78 of file hdac_private.h.

◆ HDAC_BSDCTL

#define HDAC_BSDCTL (   sc,
  n 
)    (_HDAC_BSDCTL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 75 of file hdac_private.h.

◆ HDAC_BSDFIFOD

#define HDAC_BSDFIFOD (   sc,
  n 
)    (_HDAC_BSDFIFOD((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 80 of file hdac_private.h.

◆ HDAC_BSDLVI

#define HDAC_BSDLVI (   sc,
  n 
)    (_HDAC_BSDLVI((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 79 of file hdac_private.h.

◆ HDAC_BSDPICB

#define HDAC_BSDPICB (   sc,
  n 
)    (_HDAC_BSDPICB((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 77 of file hdac_private.h.

◆ HDAC_BSDSTS

#define HDAC_BSDSTS (   sc,
  n 
)    (_HDAC_BSDSTS((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 76 of file hdac_private.h.

◆ HDAC_CODEC_MAX

#define HDAC_CODEC_MAX   16

Definition at line 38 of file hdac_private.h.

◆ HDAC_F_DMA_NOCACHE

#define HDAC_F_DMA_NOCACHE   0x00000001

Definition at line 177 of file hdac_private.h.

◆ HDAC_ISDBDPL

#define HDAC_ISDBDPL (   sc,
  n 
)    (_HDAC_ISDBDPL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 63 of file hdac_private.h.

◆ HDAC_ISDBDPU

#define HDAC_ISDBDPU (   sc,
  n 
)    (_HDAC_ISDBDPU((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 64 of file hdac_private.h.

◆ HDAC_ISDCBL

#define HDAC_ISDCBL (   sc,
  n 
)    (_HDAC_ISDCBL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 59 of file hdac_private.h.

◆ HDAC_ISDCTL

#define HDAC_ISDCTL (   sc,
  n 
)    (_HDAC_ISDCTL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 56 of file hdac_private.h.

◆ HDAC_ISDFIFOD

#define HDAC_ISDFIFOD (   sc,
  n 
)    (_HDAC_ISDFIFOD((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 61 of file hdac_private.h.

◆ HDAC_ISDFMT

#define HDAC_ISDFMT (   sc,
  n 
)    (_HDAC_ISDFMT((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 62 of file hdac_private.h.

◆ HDAC_ISDLVI

#define HDAC_ISDLVI (   sc,
  n 
)    (_HDAC_ISDLVI((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 60 of file hdac_private.h.

◆ HDAC_ISDPICB

#define HDAC_ISDPICB (   sc,
  n 
)    (_HDAC_ISDPICB((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 58 of file hdac_private.h.

◆ HDAC_ISDSTS

#define HDAC_ISDSTS (   sc,
  n 
)    (_HDAC_ISDSTS((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 57 of file hdac_private.h.

◆ HDAC_OSDBDPL

#define HDAC_OSDBDPL (   sc,
  n 
)    (_HDAC_OSDBDPL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 72 of file hdac_private.h.

◆ HDAC_OSDBDPU

#define HDAC_OSDBDPU (   sc,
  n 
)    (_HDAC_OSDBDPU((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 73 of file hdac_private.h.

◆ HDAC_OSDCBL

#define HDAC_OSDCBL (   sc,
  n 
)    (_HDAC_OSDCBL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 69 of file hdac_private.h.

◆ HDAC_OSDCTL

#define HDAC_OSDCTL (   sc,
  n 
)    (_HDAC_OSDCTL((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 66 of file hdac_private.h.

◆ HDAC_OSDFIFOD

#define HDAC_OSDFIFOD (   sc,
  n 
)    (_HDAC_OSDFIFOD((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 71 of file hdac_private.h.

◆ HDAC_OSDLVI

#define HDAC_OSDLVI (   sc,
  n 
)    (_HDAC_OSDLVI((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 70 of file hdac_private.h.

◆ HDAC_OSDPICB

#define HDAC_OSDPICB (   sc,
  n 
)    (_HDAC_OSDPICB((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 68 of file hdac_private.h.

◆ HDAC_OSDSTS

#define HDAC_OSDSTS (   sc,
  n 
)    (_HDAC_OSDSTS((n), (sc)->num_iss, (sc)->num_oss))

Definition at line 67 of file hdac_private.h.

◆ HDAC_READ_1

#define HDAC_READ_1 (   mem,
  offset 
)     bus_space_read_1((mem)->mem_tag, (mem)->mem_handle, (offset))

Definition at line 43 of file hdac_private.h.

◆ HDAC_READ_2

#define HDAC_READ_2 (   mem,
  offset 
)     bus_space_read_2((mem)->mem_tag, (mem)->mem_handle, (offset))

Definition at line 45 of file hdac_private.h.

◆ HDAC_READ_4

#define HDAC_READ_4 (   mem,
  offset 
)     bus_space_read_4((mem)->mem_tag, (mem)->mem_handle, (offset))

Definition at line 47 of file hdac_private.h.

◆ HDAC_RIRB_RESPONSE_EX_SDATA_IN

#define HDAC_RIRB_RESPONSE_EX_SDATA_IN (   response_ex)
Value:
(((response_ex) & HDAC_RIRB_RESPONSE_EX_SDATA_IN_MASK) >> \
HDAC_RIRB_RESPONSE_EX_SDATA_IN_OFFSET)
#define HDAC_RIRB_RESPONSE_EX_SDATA_IN_MASK
Definition: hdac_private.h:138

Definition at line 142 of file hdac_private.h.

◆ HDAC_RIRB_RESPONSE_EX_SDATA_IN_MASK

#define HDAC_RIRB_RESPONSE_EX_SDATA_IN_MASK   0x0000000f

Definition at line 138 of file hdac_private.h.

◆ HDAC_RIRB_RESPONSE_EX_SDATA_IN_OFFSET

#define HDAC_RIRB_RESPONSE_EX_SDATA_IN_OFFSET   0

Definition at line 139 of file hdac_private.h.

◆ HDAC_RIRB_RESPONSE_EX_UNSOLICITED

#define HDAC_RIRB_RESPONSE_EX_UNSOLICITED   0x00000010

Definition at line 140 of file hdac_private.h.

◆ HDAC_UNSOLQ_BUSY

#define HDAC_UNSOLQ_BUSY   1

Definition at line 207 of file hdac_private.h.

◆ HDAC_UNSOLQ_MAX

#define HDAC_UNSOLQ_MAX   64

Definition at line 205 of file hdac_private.h.

◆ HDAC_UNSOLQ_READY

#define HDAC_UNSOLQ_READY   0

Definition at line 206 of file hdac_private.h.

◆ HDAC_WRITE_1

#define HDAC_WRITE_1 (   mem,
  offset,
  value 
)     bus_space_write_1((mem)->mem_tag, (mem)->mem_handle, (offset), (value))

Definition at line 49 of file hdac_private.h.

◆ HDAC_WRITE_2

#define HDAC_WRITE_2 (   mem,
  offset,
  value 
)     bus_space_write_2((mem)->mem_tag, (mem)->mem_handle, (offset), (value))

Definition at line 51 of file hdac_private.h.

◆ HDAC_WRITE_4

#define HDAC_WRITE_4 (   mem,
  offset,
  value 
)     bus_space_write_4((mem)->mem_tag, (mem)->mem_handle, (offset), (value))

Definition at line 53 of file hdac_private.h.

Function Documentation

◆ MALLOC_DECLARE()

MALLOC_DECLARE ( M_HDAC  )

Variable Documentation

◆ __packed