Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
core.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/nfc.h>
#include <net/nfc/nfc.h>
#include <net/nfc/hci.h>
#include <net/nfc/llc.h>
#include "hci.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "hci: %s: " fmt, __func__
 
#define HCI_CMDS_HEADROOM   1
 
#define HCI_CB_TYPE_TRANSCEIVE   1
 

Functions

void nfc_hci_resp_received (struct nfc_hci_dev *hdev, u8 result, struct sk_buff *skb)
 
void nfc_hci_cmd_received (struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, struct sk_buff *skb)
 
void nfc_hci_event_received (struct nfc_hci_dev *hdev, u8 pipe, u8 event, struct sk_buff *skb)
 
struct nfc_hci_devnfc_hci_allocate_device (struct nfc_hci_ops *ops, struct nfc_hci_init_data *init_data, u32 protocols, const char *llc_name, int tx_headroom, int tx_tailroom, int max_link_payload)
 
 EXPORT_SYMBOL (nfc_hci_allocate_device)
 
void nfc_hci_free_device (struct nfc_hci_dev *hdev)
 
 EXPORT_SYMBOL (nfc_hci_free_device)
 
int nfc_hci_register_device (struct nfc_hci_dev *hdev)
 
 EXPORT_SYMBOL (nfc_hci_register_device)
 
void nfc_hci_unregister_device (struct nfc_hci_dev *hdev)
 
 EXPORT_SYMBOL (nfc_hci_unregister_device)
 
void nfc_hci_set_clientdata (struct nfc_hci_dev *hdev, void *clientdata)
 
 EXPORT_SYMBOL (nfc_hci_set_clientdata)
 
voidnfc_hci_get_clientdata (struct nfc_hci_dev *hdev)
 
 EXPORT_SYMBOL (nfc_hci_get_clientdata)
 
void nfc_hci_driver_failure (struct nfc_hci_dev *hdev, int err)
 
 EXPORT_SYMBOL (nfc_hci_driver_failure)
 
void nfc_hci_recv_frame (struct nfc_hci_dev *hdev, struct sk_buff *skb)
 
 EXPORT_SYMBOL (nfc_hci_recv_frame)
 
 subsys_initcall (nfc_hci_init)
 
 module_exit (nfc_hci_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("NFC HCI Core")
 

Macro Definition Documentation

#define HCI_CB_TYPE_TRANSCEIVE   1

Definition at line 552 of file core.c.

#define HCI_CMDS_HEADROOM   1

Definition at line 34 of file core.c.

#define pr_fmt (   fmt)    "hci: %s: " fmt, __func__

Definition at line 20 of file core.c.

Function Documentation

EXPORT_SYMBOL ( nfc_hci_allocate_device  )
EXPORT_SYMBOL ( nfc_hci_free_device  )
EXPORT_SYMBOL ( nfc_hci_register_device  )
EXPORT_SYMBOL ( nfc_hci_unregister_device  )
EXPORT_SYMBOL ( nfc_hci_set_clientdata  )
EXPORT_SYMBOL ( nfc_hci_get_clientdata  )
EXPORT_SYMBOL ( nfc_hci_driver_failure  )
EXPORT_SYMBOL ( nfc_hci_recv_frame  )
MODULE_DESCRIPTION ( "NFC HCI Core"  )
module_exit ( nfc_hci_exit  )
MODULE_LICENSE ( "GPL"  )
struct nfc_hci_dev* nfc_hci_allocate_device ( struct nfc_hci_ops ops,
struct nfc_hci_init_data init_data,
u32  protocols,
const char llc_name,
int  tx_headroom,
int  tx_tailroom,
int  max_link_payload 
)
read

Definition at line 732 of file core.c.

void nfc_hci_cmd_received ( struct nfc_hci_dev hdev,
u8  pipe,
u8  cmd,
struct sk_buff skb 
)

Definition at line 163 of file core.c.

void nfc_hci_driver_failure ( struct nfc_hci_dev hdev,
int  err 
)

Definition at line 845 of file core.c.

void nfc_hci_event_received ( struct nfc_hci_dev hdev,
u8  pipe,
u8  event,
struct sk_buff skb 
)

Definition at line 279 of file core.c.

void nfc_hci_free_device ( struct nfc_hci_dev hdev)

Definition at line 781 of file core.c.

void* nfc_hci_get_clientdata ( struct nfc_hci_dev hdev)

Definition at line 839 of file core.c.

void nfc_hci_recv_frame ( struct nfc_hci_dev hdev,
struct sk_buff skb 
)
inline

Definition at line 851 of file core.c.

int nfc_hci_register_device ( struct nfc_hci_dev hdev)

Definition at line 789 of file core.c.

void nfc_hci_resp_received ( struct nfc_hci_dev hdev,
u8  result,
struct sk_buff skb 
)

Definition at line 147 of file core.c.

void nfc_hci_set_clientdata ( struct nfc_hci_dev hdev,
void clientdata 
)

Definition at line 833 of file core.c.

void nfc_hci_unregister_device ( struct nfc_hci_dev hdev)

Definition at line 811 of file core.c.

subsys_initcall ( nfc_hci_init  )