Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
hci_h5.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/skbuff.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
#include "hci_uart.h"

Go to the source code of this file.

Data Structures

struct  h5
 

Macros

#define HCI_3WIRE_ACK_PKT   0
 
#define HCI_3WIRE_LINK_PKT   15
 
#define H5_TX_WIN_MAX   4
 
#define H5_ACK_TIMEOUT   msecs_to_jiffies(250)
 
#define H5_SYNC_TIMEOUT   msecs_to_jiffies(100)
 
#define H5_MAX_LEN   (4 + 0xfff + 2)
 
#define H5_HDR_SEQ(hdr)   ((hdr)[0] & 0x07)
 
#define H5_HDR_ACK(hdr)   (((hdr)[0] >> 3) & 0x07)
 
#define H5_HDR_CRC(hdr)   (((hdr)[0] >> 6) & 0x01)
 
#define H5_HDR_RELIABLE(hdr)   (((hdr)[0] >> 7) & 0x01)
 
#define H5_HDR_PKT_TYPE(hdr)   ((hdr)[1] & 0x0f)
 
#define H5_HDR_LEN(hdr)   ((((hdr)[1] >> 4) & 0xff) + ((hdr)[2] << 4))
 
#define SLIP_DELIMITER   0xc0
 
#define SLIP_ESC   0xdb
 
#define SLIP_ESC_DELIM   0xdc
 
#define SLIP_ESC_ESC   0xdd
 

Enumerations

enum  { H5_RX_ESC, H5_TX_ACK_REQ }
 

Functions

int __init h5_init (void)
 
int __exit h5_deinit (void)
 

Macro Definition Documentation

#define H5_ACK_TIMEOUT   msecs_to_jiffies(250)

Definition at line 39 of file hci_h5.c.

#define H5_HDR_ACK (   hdr)    (((hdr)[0] >> 3) & 0x07)

Definition at line 50 of file hci_h5.c.

#define H5_HDR_CRC (   hdr)    (((hdr)[0] >> 6) & 0x01)

Definition at line 51 of file hci_h5.c.

#define H5_HDR_LEN (   hdr)    ((((hdr)[1] >> 4) & 0xff) + ((hdr)[2] << 4))

Definition at line 54 of file hci_h5.c.

#define H5_HDR_PKT_TYPE (   hdr)    ((hdr)[1] & 0x0f)

Definition at line 53 of file hci_h5.c.

#define H5_HDR_RELIABLE (   hdr)    (((hdr)[0] >> 7) & 0x01)

Definition at line 52 of file hci_h5.c.

#define H5_HDR_SEQ (   hdr)    ((hdr)[0] & 0x07)

Definition at line 49 of file hci_h5.c.

#define H5_MAX_LEN   (4 + 0xfff + 2)

Definition at line 46 of file hci_h5.c.

#define H5_SYNC_TIMEOUT   msecs_to_jiffies(100)

Definition at line 40 of file hci_h5.c.

#define H5_TX_WIN_MAX   4

Definition at line 37 of file hci_h5.c.

#define HCI_3WIRE_ACK_PKT   0

Definition at line 33 of file hci_h5.c.

#define HCI_3WIRE_LINK_PKT   15

Definition at line 34 of file hci_h5.c.

#define SLIP_DELIMITER   0xc0

Definition at line 56 of file hci_h5.c.

#define SLIP_ESC   0xdb

Definition at line 57 of file hci_h5.c.

#define SLIP_ESC_DELIM   0xdc

Definition at line 58 of file hci_h5.c.

#define SLIP_ESC_ESC   0xdd

Definition at line 59 of file hci_h5.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
H5_RX_ESC 
H5_TX_ACK_REQ 

Definition at line 62 of file hci_h5.c.

Function Documentation

int __exit h5_deinit ( void  )

Definition at line 744 of file hci_h5.c.

int __init h5_init ( void  )

Definition at line 732 of file hci_h5.c.