Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
caif_hsi.h File Reference
#include <net/caif/caif_layer.h>
#include <net/caif/caif_device.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  cfhsi_desc
 
struct  cfhsi_cb_ops
 
struct  cfhsi_ops
 
struct  cfhsi_rx_state
 
struct  cfhsi_config
 
struct  cfhsi
 

Macros

#define CFHSI_MAX_PKTS   15
 
#define CFHSI_MAX_EMB_FRM_SZ   96
 
#define CFHSI_DBG_PREFILL   0
 
#define CFHSI_DESC_SZ   (sizeof(struct cfhsi_desc))
 
#define CFHSI_DESC_SHORT_SZ   (CFHSI_DESC_SZ - CFHSI_MAX_EMB_FRM_SZ)
 
#define CFHSI_MAX_CAIF_FRAME_SZ   4096
 
#define CFHSI_MAX_PAYLOAD_SZ   (CFHSI_MAX_PKTS * CFHSI_MAX_CAIF_FRAME_SZ)
 
#define CFHSI_BUF_SZ_TX   (CFHSI_DESC_SZ + CFHSI_MAX_PAYLOAD_SZ)
 
#define CFHSI_BUF_SZ_RX   ((2 * CFHSI_DESC_SZ) + CFHSI_MAX_PAYLOAD_SZ)
 
#define CFHSI_PIGGY_DESC   (0x01 << 7)
 
#define CFHSI_TX_STATE_IDLE   0
 
#define CFHSI_TX_STATE_XFER   1
 
#define CFHSI_RX_STATE_DESC   0
 
#define CFHSI_RX_STATE_PAYLOAD   1
 
#define CFHSI_WAKE_UP   0
 
#define CFHSI_WAKE_UP_ACK   1
 
#define CFHSI_WAKE_DOWN_ACK   2
 
#define CFHSI_AWAKE   3
 
#define CFHSI_WAKELOCK_HELD   4
 
#define CFHSI_SHUTDOWN   5
 
#define CFHSI_FLUSH_FIFO   6
 
#define CFHSI_INACTIVITY_TOUT   (1 * HZ)
 
#define CFHSI_WAKE_TOUT   (3 * HZ)
 
#define CFHSI_MAX_RX_RETRIES   (10 * HZ)
 

Enumerations

enum  {
  CFHSI_PRIO_CTL = 0, CFHSI_PRIO_VI, CFHSI_PRIO_VO, CFHSI_PRIO_BEBK,
  CFHSI_PRIO_LAST
}
 
enum  ifla_caif_hsi {
  __IFLA_CAIF_HSI_UNSPEC, __IFLA_CAIF_HSI_INACTIVITY_TOUT, __IFLA_CAIF_HSI_AGGREGATION_TOUT, __IFLA_CAIF_HSI_HEAD_ALIGN,
  __IFLA_CAIF_HSI_TAIL_ALIGN, __IFLA_CAIF_HSI_QHIGH_WATERMARK, __IFLA_CAIF_HSI_QLOW_WATERMARK, __IFLA_CAIF_HSI_MAX
}
 

Functions

struct cfhsi_opscfhsi_get_ops (void)
 

Variables

struct platform_driver cfhsi_driver
 

Macro Definition Documentation

#define CFHSI_AWAKE   3

Definition at line 78 of file caif_hsi.h.

#define CFHSI_BUF_SZ_RX   ((2 * CFHSI_DESC_SZ) + CFHSI_MAX_PAYLOAD_SZ)

Definition at line 63 of file caif_hsi.h.

#define CFHSI_BUF_SZ_TX   (CFHSI_DESC_SZ + CFHSI_MAX_PAYLOAD_SZ)

Definition at line 60 of file caif_hsi.h.

#define CFHSI_DBG_PREFILL   0

Definition at line 31 of file caif_hsi.h.

#define CFHSI_DESC_SHORT_SZ   (CFHSI_DESC_SZ - CFHSI_MAX_EMB_FRM_SZ)

Definition at line 50 of file caif_hsi.h.

#define CFHSI_DESC_SZ   (sizeof(struct cfhsi_desc))

Definition at line 44 of file caif_hsi.h.

#define CFHSI_FLUSH_FIFO   6

Definition at line 81 of file caif_hsi.h.

#define CFHSI_INACTIVITY_TOUT   (1 * HZ)

Definition at line 84 of file caif_hsi.h.

#define CFHSI_MAX_CAIF_FRAME_SZ   4096

Definition at line 55 of file caif_hsi.h.

#define CFHSI_MAX_EMB_FRM_SZ   96

Definition at line 25 of file caif_hsi.h.

#define CFHSI_MAX_PAYLOAD_SZ   (CFHSI_MAX_PKTS * CFHSI_MAX_CAIF_FRAME_SZ)

Definition at line 57 of file caif_hsi.h.

#define CFHSI_MAX_PKTS   15

Definition at line 19 of file caif_hsi.h.

#define CFHSI_MAX_RX_RETRIES   (10 * HZ)

Definition at line 92 of file caif_hsi.h.

#define CFHSI_PIGGY_DESC   (0x01 << 7)

Definition at line 66 of file caif_hsi.h.

#define CFHSI_RX_STATE_DESC   0

Definition at line 71 of file caif_hsi.h.

#define CFHSI_RX_STATE_PAYLOAD   1

Definition at line 72 of file caif_hsi.h.

#define CFHSI_SHUTDOWN   5

Definition at line 80 of file caif_hsi.h.

#define CFHSI_TX_STATE_IDLE   0

Definition at line 68 of file caif_hsi.h.

#define CFHSI_TX_STATE_XFER   1

Definition at line 69 of file caif_hsi.h.

#define CFHSI_WAKE_DOWN_ACK   2

Definition at line 77 of file caif_hsi.h.

#define CFHSI_WAKE_TOUT   (3 * HZ)

Definition at line 88 of file caif_hsi.h.

#define CFHSI_WAKE_UP   0

Definition at line 75 of file caif_hsi.h.

#define CFHSI_WAKE_UP_ACK   1

Definition at line 76 of file caif_hsi.h.

#define CFHSI_WAKELOCK_HELD   4

Definition at line 79 of file caif_hsi.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CFHSI_PRIO_CTL 
CFHSI_PRIO_VI 
CFHSI_PRIO_VO 
CFHSI_PRIO_BEBK 
CFHSI_PRIO_LAST 

Definition at line 127 of file caif_hsi.h.

enum ifla_caif_hsi - CAIF HSI NetlinkRT parameters. : Inactivity timeout before taking the HSI wakeline down, in milliseconds. When using RT Netlink to create, destroy or configure a CAIF HSI interface, enum ifla_caif_hsi is used to specify the configuration attributes.

Enumerator:
__IFLA_CAIF_HSI_UNSPEC 
__IFLA_CAIF_HSI_INACTIVITY_TOUT 
__IFLA_CAIF_HSI_AGGREGATION_TOUT 
__IFLA_CAIF_HSI_HEAD_ALIGN 
__IFLA_CAIF_HSI_TAIL_ALIGN 
__IFLA_CAIF_HSI_QHIGH_WATERMARK 
__IFLA_CAIF_HSI_QLOW_WATERMARK 
__IFLA_CAIF_HSI_MAX 

Definition at line 188 of file caif_hsi.h.

Function Documentation

struct cfhsi_ops* cfhsi_get_ops ( void  )
read

Variable Documentation

struct platform_driver cfhsi_driver