Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
core-cdev.c File Reference
#include <linux/bug.h>
#include <linux/compat.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/errno.h>
#include <linux/firewire.h>
#include <linux/firewire-cdev.h>
#include <linux/idr.h>
#include <linux/irqflags.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/kref.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/time.h>
#include <linux/uaccess.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include "core.h"

Go to the source code of this file.

Data Structures

struct  client
 
struct  client_resource
 
struct  address_handler_resource
 
struct  outbound_transaction_resource
 
struct  inbound_transaction_resource
 
struct  descriptor_resource
 
struct  iso_resource
 
struct  event
 
struct  bus_reset_event
 
struct  outbound_transaction_event
 
struct  inbound_transaction_event
 
struct  iso_interrupt_event
 
struct  iso_interrupt_mc_event
 
struct  iso_resource_event
 
struct  outbound_phy_packet_event
 
struct  inbound_phy_packet_event
 
union  ioctl_arg
 

Macros

#define FW_CDEV_KERNEL_VERSION   5
 
#define FW_CDEV_VERSION_EVENT_REQUEST2   4
 
#define FW_CDEV_VERSION_ALLOCATE_REGION_END   4
 
#define GET_PAYLOAD_LENGTH(v)   ((v) & 0xffff)
 
#define GET_INTERRUPT(v)   (((v) >> 16) & 0x01)
 
#define GET_SKIP(v)   (((v) >> 17) & 0x01)
 
#define GET_TAG(v)   (((v) >> 18) & 0x03)
 
#define GET_SY(v)   (((v) >> 20) & 0x0f)
 
#define GET_HEADER_LENGTH(v)   (((v) >> 24) & 0xff)
 

Typedefs

typedef void(* client_resource_release_fn_t )(struct client *, struct client_resource *)
 

Functions

void fw_device_cdev_update (struct fw_device *device)
 
void fw_device_cdev_remove (struct fw_device *device)
 
void fw_cdev_handle_phy_packet (struct fw_card *card, struct fw_packet *p)
 

Variables

struct file_operations fw_device_ops
 

Macro Definition Documentation

#define FW_CDEV_KERNEL_VERSION   5

Definition at line 54 of file core-cdev.c.

#define FW_CDEV_VERSION_ALLOCATE_REGION_END   4

Definition at line 56 of file core-cdev.c.

#define FW_CDEV_VERSION_EVENT_REQUEST2   4

Definition at line 55 of file core-cdev.c.

#define GET_HEADER_LENGTH (   v)    (((v) >> 24) & 0xff)

Definition at line 1059 of file core-cdev.c.

#define GET_INTERRUPT (   v)    (((v) >> 16) & 0x01)

Definition at line 1055 of file core-cdev.c.

#define GET_PAYLOAD_LENGTH (   v)    ((v) & 0xffff)

Definition at line 1054 of file core-cdev.c.

#define GET_SKIP (   v)    (((v) >> 17) & 0x01)

Definition at line 1056 of file core-cdev.c.

#define GET_SY (   v)    (((v) >> 20) & 0x0f)

Definition at line 1058 of file core-cdev.c.

#define GET_TAG (   v)    (((v) >> 18) & 0x03)

Definition at line 1057 of file core-cdev.c.

Typedef Documentation

typedef void(* client_resource_release_fn_t)(struct client *, struct client_resource *)

Definition at line 102 of file core-cdev.c.

Function Documentation

void fw_cdev_handle_phy_packet ( struct fw_card card,
struct fw_packet p 
)

Definition at line 1574 of file core-cdev.c.

void fw_device_cdev_remove ( struct fw_device device)

Definition at line 417 of file core-cdev.c.

void fw_device_cdev_update ( struct fw_device device)

Definition at line 407 of file core-cdev.c.

Variable Documentation

struct file_operations fw_device_ops
Initial value:
= {
.owner = THIS_MODULE,
.llseek = no_llseek,
.open = fw_device_op_open,
.read = fw_device_op_read,
.unlocked_ioctl = fw_device_op_ioctl,
.mmap = fw_device_op_mmap,
.release = fw_device_op_release,
.poll = fw_device_op_poll,
}

Definition at line 1808 of file core-cdev.c.