Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
bc_dts_glob_lnx.h File Reference
#include "crystalhd.h"

Go to the source code of this file.

Data Structures

struct  BC_CMD_REG_ACC
 
struct  BC_CMD_DEV_MEM
 
struct  BC_FW_CMD
 
struct  BC_HW_TYPE
 
struct  BC_PCI_CFG
 
struct  BC_VERSION_INFO
 
struct  BC_START_RX_CAP
 
struct  BC_FLUSH_RX_CAP
 
struct  BC_DTS_STATS
 
struct  BC_PROC_INPUT
 
struct  BC_DEC_YUV_BUFFS
 
struct  BC_DEC_OUT_BUFF
 
struct  BC_NOTIFY_MODE
 
struct  BC_CLOCK
 
struct  BC_IOCTL_DATA
 
struct  crystalhd_ioctl_data
 

Macros

#define CRYSTALHD_API_NAME   "crystalhd"
 
#define CRYSTALHD_API_DEV_NAME   "/dev/crystalhd"
 
#define BC_IOC_BASE   'b'
 
#define BC_IOC_VOID   _IOC_NONE
 
#define BC_IOC_IOWR(nr, type)   _IOWR(BC_IOC_BASE, nr, type)
 
#define BC_IOCTL_MB   struct BC_IOCTL_DATA
 
#define BCM_IOC_GET_VERSION   BC_IOC_IOWR(DRV_CMD_VERSION, BC_IOCTL_MB)
 
#define BCM_IOC_GET_HWTYPE   BC_IOC_IOWR(DRV_CMD_GET_HWTYPE, BC_IOCTL_MB)
 
#define BCM_IOC_REG_RD   BC_IOC_IOWR(DRV_CMD_REG_RD, BC_IOCTL_MB)
 
#define BCM_IOC_REG_WR   BC_IOC_IOWR(DRV_CMD_REG_WR, BC_IOCTL_MB)
 
#define BCM_IOC_MEM_RD   BC_IOC_IOWR(DRV_CMD_MEM_RD, BC_IOCTL_MB)
 
#define BCM_IOC_MEM_WR   BC_IOC_IOWR(DRV_CMD_MEM_WR, BC_IOCTL_MB)
 
#define BCM_IOC_FPGA_RD   BC_IOC_IOWR(DRV_CMD_FPGA_RD, BC_IOCTL_MB)
 
#define BCM_IOC_FPGA_WR   BC_IOC_IOWR(DRV_CMD_FPGA_WR, BC_IOCTL_MB)
 
#define BCM_IOC_RD_PCI_CFG   BC_IOC_IOWR(DRV_CMD_RD_PCI_CFG, BC_IOCTL_MB)
 
#define BCM_IOC_WR_PCI_CFG   BC_IOC_IOWR(DRV_CMD_WR_PCI_CFG, BC_IOCTL_MB)
 
#define BCM_IOC_PROC_INPUT   BC_IOC_IOWR(DRV_CMD_PROC_INPUT, BC_IOCTL_MB)
 
#define BCM_IOC_ADD_RXBUFFS   BC_IOC_IOWR(DRV_CMD_ADD_RXBUFFS, BC_IOCTL_MB)
 
#define BCM_IOC_FETCH_RXBUFF   BC_IOC_IOWR(DRV_CMD_FETCH_RXBUFF, BC_IOCTL_MB)
 
#define BCM_IOC_FW_CMD   BC_IOC_IOWR(DRV_ISSUE_FW_CMD, BC_IOCTL_MB)
 
#define BCM_IOC_START_RX_CAP   BC_IOC_IOWR(DRV_CMD_START_RX_CAP, BC_IOCTL_MB)
 
#define BCM_IOC_FLUSH_RX_CAP   BC_IOC_IOWR(DRV_CMD_FLUSH_RX_CAP, BC_IOCTL_MB)
 
#define BCM_IOC_GET_DRV_STAT   BC_IOC_IOWR(DRV_CMD_GET_DRV_STAT, BC_IOCTL_MB)
 
#define BCM_IOC_RST_DRV_STAT   BC_IOC_IOWR(DRV_CMD_RST_DRV_STAT, BC_IOCTL_MB)
 
#define BCM_IOC_NOTIFY_MODE   BC_IOC_IOWR(DRV_CMD_NOTIFY_MODE, BC_IOCTL_MB)
 
#define BCM_IOC_FW_DOWNLOAD   BC_IOC_IOWR(DRV_CMD_FW_DOWNLOAD, BC_IOCTL_MB)
 
#define BCM_IOC_CHG_CLK   BC_IOC_IOWR(DRV_CMD_CHANGE_CLOCK, BC_IOCTL_MB)
 
#define BCM_IOC_END   BC_IOC_VOID
 

Enumerations

enum  BC_DTS_GLOBALS {
  BC_MAX_FW_CMD_BUFF_SZ = 0x40, PCI_CFG_SIZE = 256, BC_IOCTL_DATA_POOL_SIZE = 8, BC_LINK_MAX_OPENS = 3,
  BC_LINK_MAX_SGLS = 1024, BC_TX_LIST_CNT = 2, BC_RX_LIST_CNT = 8, BC_PROC_OUTPUT_TIMEOUT = 3000,
  BC_INFIFO_THRESHOLD = 0x10000
}
 
enum  bc_fw_cmd_flags { BC_FW_CMD_FLAGS_NONE = 0, BC_FW_CMD_PIB_QS = 0x01 }
 
enum  DECOUT_COMPLETION_FLAGS {
  COMP_FLAG_NO_INFO = 0x00, COMP_FLAG_FMT_CHANGE = 0x01, COMP_FLAG_PIB_VALID = 0x02, COMP_FLAG_DATA_VALID = 0x04,
  COMP_FLAG_DATA_ENC = 0x08, COMP_FLAG_DATA_BOT = 0x10
}
 
enum  BC_DRV_CMD {
  DRV_CMD_VERSION = 0, DRV_CMD_GET_HWTYPE, DRV_CMD_REG_RD, DRV_CMD_REG_WR,
  DRV_CMD_FPGA_RD, DRV_CMD_FPGA_WR, DRV_CMD_MEM_RD, DRV_CMD_MEM_WR,
  DRV_CMD_RD_PCI_CFG, DRV_CMD_WR_PCI_CFG, DRV_CMD_FW_DOWNLOAD, DRV_ISSUE_FW_CMD,
  DRV_CMD_PROC_INPUT, DRV_CMD_ADD_RXBUFFS, DRV_CMD_FETCH_RXBUFF, DRV_CMD_START_RX_CAP,
  DRV_CMD_FLUSH_RX_CAP, DRV_CMD_GET_DRV_STAT, DRV_CMD_RST_DRV_STAT, DRV_CMD_NOTIFY_MODE,
  DRV_CMD_CHANGE_CLOCK, DRV_CMD_END
}
 
enum  crystalhd_kmod_ver { crystalhd_kmod_major = 0, crystalhd_kmod_minor = 9, crystalhd_kmod_rev = 27 }
 

Macro Definition Documentation

#define BC_IOC_BASE   'b'

Definition at line 253 of file bc_dts_glob_lnx.h.

#define BC_IOC_IOWR (   nr,
  type 
)    _IOWR(BC_IOC_BASE, nr, type)

Definition at line 255 of file bc_dts_glob_lnx.h.

#define BC_IOC_VOID   _IOC_NONE

Definition at line 254 of file bc_dts_glob_lnx.h.

#define BC_IOCTL_MB   struct BC_IOCTL_DATA

Definition at line 256 of file bc_dts_glob_lnx.h.

#define BCM_IOC_ADD_RXBUFFS   BC_IOC_IOWR(DRV_CMD_ADD_RXBUFFS, BC_IOCTL_MB)

Definition at line 269 of file bc_dts_glob_lnx.h.

#define BCM_IOC_CHG_CLK   BC_IOC_IOWR(DRV_CMD_CHANGE_CLOCK, BC_IOCTL_MB)

Definition at line 278 of file bc_dts_glob_lnx.h.

#define BCM_IOC_END   BC_IOC_VOID

Definition at line 279 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FETCH_RXBUFF   BC_IOC_IOWR(DRV_CMD_FETCH_RXBUFF, BC_IOCTL_MB)

Definition at line 270 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FLUSH_RX_CAP   BC_IOC_IOWR(DRV_CMD_FLUSH_RX_CAP, BC_IOCTL_MB)

Definition at line 273 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FPGA_RD   BC_IOC_IOWR(DRV_CMD_FPGA_RD, BC_IOCTL_MB)

Definition at line 264 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FPGA_WR   BC_IOC_IOWR(DRV_CMD_FPGA_WR, BC_IOCTL_MB)

Definition at line 265 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FW_CMD   BC_IOC_IOWR(DRV_ISSUE_FW_CMD, BC_IOCTL_MB)

Definition at line 271 of file bc_dts_glob_lnx.h.

#define BCM_IOC_FW_DOWNLOAD   BC_IOC_IOWR(DRV_CMD_FW_DOWNLOAD, BC_IOCTL_MB)

Definition at line 277 of file bc_dts_glob_lnx.h.

#define BCM_IOC_GET_DRV_STAT   BC_IOC_IOWR(DRV_CMD_GET_DRV_STAT, BC_IOCTL_MB)

Definition at line 274 of file bc_dts_glob_lnx.h.

#define BCM_IOC_GET_HWTYPE   BC_IOC_IOWR(DRV_CMD_GET_HWTYPE, BC_IOCTL_MB)

Definition at line 259 of file bc_dts_glob_lnx.h.

#define BCM_IOC_GET_VERSION   BC_IOC_IOWR(DRV_CMD_VERSION, BC_IOCTL_MB)

Definition at line 258 of file bc_dts_glob_lnx.h.

#define BCM_IOC_MEM_RD   BC_IOC_IOWR(DRV_CMD_MEM_RD, BC_IOCTL_MB)

Definition at line 262 of file bc_dts_glob_lnx.h.

#define BCM_IOC_MEM_WR   BC_IOC_IOWR(DRV_CMD_MEM_WR, BC_IOCTL_MB)

Definition at line 263 of file bc_dts_glob_lnx.h.

#define BCM_IOC_NOTIFY_MODE   BC_IOC_IOWR(DRV_CMD_NOTIFY_MODE, BC_IOCTL_MB)

Definition at line 276 of file bc_dts_glob_lnx.h.

#define BCM_IOC_PROC_INPUT   BC_IOC_IOWR(DRV_CMD_PROC_INPUT, BC_IOCTL_MB)

Definition at line 268 of file bc_dts_glob_lnx.h.

#define BCM_IOC_RD_PCI_CFG   BC_IOC_IOWR(DRV_CMD_RD_PCI_CFG, BC_IOCTL_MB)

Definition at line 266 of file bc_dts_glob_lnx.h.

#define BCM_IOC_REG_RD   BC_IOC_IOWR(DRV_CMD_REG_RD, BC_IOCTL_MB)

Definition at line 260 of file bc_dts_glob_lnx.h.

#define BCM_IOC_REG_WR   BC_IOC_IOWR(DRV_CMD_REG_WR, BC_IOCTL_MB)

Definition at line 261 of file bc_dts_glob_lnx.h.

#define BCM_IOC_RST_DRV_STAT   BC_IOC_IOWR(DRV_CMD_RST_DRV_STAT, BC_IOCTL_MB)

Definition at line 275 of file bc_dts_glob_lnx.h.

#define BCM_IOC_START_RX_CAP   BC_IOC_IOWR(DRV_CMD_START_RX_CAP, BC_IOCTL_MB)

Definition at line 272 of file bc_dts_glob_lnx.h.

#define BCM_IOC_WR_PCI_CFG   BC_IOC_IOWR(DRV_CMD_WR_PCI_CFG, BC_IOCTL_MB)

Definition at line 267 of file bc_dts_glob_lnx.h.

#define CRYSTALHD_API_DEV_NAME   "/dev/crystalhd"

Definition at line 54 of file bc_dts_glob_lnx.h.

#define CRYSTALHD_API_NAME   "crystalhd"

Definition at line 53 of file bc_dts_glob_lnx.h.

Enumeration Type Documentation

enum BC_DRV_CMD
Enumerator:
DRV_CMD_VERSION 
DRV_CMD_GET_HWTYPE 
DRV_CMD_REG_RD 
DRV_CMD_REG_WR 
DRV_CMD_FPGA_RD 
DRV_CMD_FPGA_WR 
DRV_CMD_MEM_RD 
DRV_CMD_MEM_WR 
DRV_CMD_RD_PCI_CFG 
DRV_CMD_WR_PCI_CFG 
DRV_CMD_FW_DOWNLOAD 
DRV_ISSUE_FW_CMD 
DRV_CMD_PROC_INPUT 
DRV_CMD_ADD_RXBUFFS 
DRV_CMD_FETCH_RXBUFF 
DRV_CMD_START_RX_CAP 
DRV_CMD_FLUSH_RX_CAP 
DRV_CMD_GET_DRV_STAT 
DRV_CMD_RST_DRV_STAT 
DRV_CMD_NOTIFY_MODE 
DRV_CMD_CHANGE_CLOCK 
DRV_CMD_END 

Definition at line 226 of file bc_dts_glob_lnx.h.

Enumerator:
BC_MAX_FW_CMD_BUFF_SZ 
PCI_CFG_SIZE 
BC_IOCTL_DATA_POOL_SIZE 
BC_LINK_MAX_OPENS 
BC_LINK_MAX_SGLS 
BC_TX_LIST_CNT 
BC_RX_LIST_CNT 
BC_PROC_OUTPUT_TIMEOUT 
BC_INFIFO_THRESHOLD 

Definition at line 60 of file bc_dts_glob_lnx.h.

Enumerator:
BC_FW_CMD_FLAGS_NONE 
BC_FW_CMD_PIB_QS 

Definition at line 84 of file bc_dts_glob_lnx.h.

Enumerator:
crystalhd_kmod_major 
crystalhd_kmod_minor 
crystalhd_kmod_rev 

Definition at line 291 of file bc_dts_glob_lnx.h.

Enumerator:
COMP_FLAG_NO_INFO 
COMP_FLAG_FMT_CHANGE 
COMP_FLAG_PIB_VALID 
COMP_FLAG_DATA_VALID 
COMP_FLAG_DATA_ENC 
COMP_FLAG_DATA_BOT 

Definition at line 177 of file bc_dts_glob_lnx.h.