Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/workqueue.h>
#include <linux/completion.h>
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/bitops.h>
#include <linux/skbuff.h>
#include "../nfc.h"
#include <net/nfc/nci.h>
#include <net/nfc/nci_core.h>
#include <linux/nfc.h>

Go to the source code of this file.

Data Structures

struct  nci_set_config_param
 
struct  nci_rf_discover_select_param
 

Macros

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

Functions

void nci_req_complete (struct nci_dev *ndev, int result)
 
struct nci_devnci_allocate_device (struct nci_ops *ops, __u32 supported_protocols, int tx_headroom, int tx_tailroom)
 
 EXPORT_SYMBOL (nci_allocate_device)
 
void nci_free_device (struct nci_dev *ndev)
 
 EXPORT_SYMBOL (nci_free_device)
 
int nci_register_device (struct nci_dev *ndev)
 
 EXPORT_SYMBOL (nci_register_device)
 
void nci_unregister_device (struct nci_dev *ndev)
 
 EXPORT_SYMBOL (nci_unregister_device)
 
int nci_recv_frame (struct sk_buff *skb)
 
 EXPORT_SYMBOL (nci_recv_frame)
 
int nci_send_cmd (struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 28 of file core.c.

Function Documentation

EXPORT_SYMBOL ( nci_allocate_device  )
EXPORT_SYMBOL ( nci_free_device  )
EXPORT_SYMBOL ( nci_register_device  )
EXPORT_SYMBOL ( nci_unregister_device  )
EXPORT_SYMBOL ( nci_recv_frame  )
MODULE_LICENSE ( "GPL"  )
struct nci_dev* nci_allocate_device ( struct nci_ops ops,
__u32  supported_protocols,
int  tx_headroom,
int  tx_tailroom 
)
read

nci_allocate_device - allocate a new nci device

: device operations : NFC protocols supported by the device

Definition at line 662 of file core.c.

void nci_free_device ( struct nci_dev ndev)

nci_free_device - deallocate nci device

: The nci device to deallocate

Definition at line 706 of file core.c.

int nci_recv_frame ( struct sk_buff skb)

nci_recv_frame - receive frame from NCI drivers

: The sk_buff to receive

Definition at line 803 of file core.c.

int nci_register_device ( struct nci_dev ndev)

nci_register_device - register a nci device in the nfc subsystem

: The nci device to register

Definition at line 718 of file core.c.

void nci_req_complete ( struct nci_dev ndev,
int  result 
)

Definition at line 50 of file core.c.

int nci_send_cmd ( struct nci_dev ndev,
__u16  opcode,
__u8  plen,
void payload 
)

Definition at line 841 of file core.c.

void nci_unregister_device ( struct nci_dev ndev)

nci_unregister_device - unregister a nci device in the nfc subsystem

: The nci device to unregister

Definition at line 786 of file core.c.