Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ozcdev.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/uaccess.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include "ozconfig.h"
#include "ozprotocol.h"
#include "oztrace.h"
#include "ozappif.h"
#include "ozeltbuf.h"
#include "ozpd.h"
#include "ozproto.h"
#include "ozevent.h"

Go to the source code of this file.

Data Structures

struct  oz_cdev
 
struct  oz_serial_ctx
 

Macros

#define OZ_RD_BUF_SZ   256
 

Functions

int oz_cdev_open (struct inode *inode, struct file *filp)
 
int oz_cdev_release (struct inode *inode, struct file *filp)
 
ssize_t oz_cdev_read (struct file *filp, char __user *buf, size_t count, loff_t *fpos)
 
ssize_t oz_cdev_write (struct file *filp, const char __user *buf, size_t count, loff_t *fpos)
 
long oz_cdev_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
 
unsigned int oz_cdev_poll (struct file *filp, poll_table *wait)
 
int oz_cdev_register (void)
 
int oz_cdev_deregister (void)
 
int oz_cdev_init (void)
 
void oz_cdev_term (void)
 
int oz_cdev_start (struct oz_pd *pd, int resume)
 
void oz_cdev_stop (struct oz_pd *pd, int pause)
 
void oz_cdev_rx (struct oz_pd *pd, struct oz_elt *elt)
 
void oz_cdev_heartbeat (struct oz_pd *pd)
 

Variables

struct classg_oz_class
 
struct file_operations oz_fops
 

Macro Definition Documentation

#define OZ_RD_BUF_SZ   256

Definition at line 24 of file ozcdev.c.

Function Documentation

int oz_cdev_deregister ( void  )

Definition at line 373 of file ozcdev.c.

void oz_cdev_heartbeat ( struct oz_pd pd)

Definition at line 529 of file ozcdev.c.

int oz_cdev_init ( void  )

Definition at line 386 of file ozcdev.c.

long oz_cdev_ioctl ( struct file filp,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 235 of file ozcdev.c.

int oz_cdev_open ( struct inode inode,
struct file filp 
)

Definition at line 73 of file ozcdev.c.

unsigned int oz_cdev_poll ( struct file filp,
poll_table wait 
)

Definition at line 299 of file ozcdev.c.

ssize_t oz_cdev_read ( struct file filp,
char __user buf,
size_t  count,
loff_t *  fpos 
)

Definition at line 93 of file ozcdev.c.

int oz_cdev_register ( void  )

Definition at line 332 of file ozcdev.c.

int oz_cdev_release ( struct inode inode,
struct file filp 
)

Definition at line 85 of file ozcdev.c.

void oz_cdev_rx ( struct oz_pd pd,
struct oz_elt elt 
)

Definition at line 469 of file ozcdev.c.

int oz_cdev_start ( struct oz_pd pd,
int  resume 
)

Definition at line 403 of file ozcdev.c.

void oz_cdev_stop ( struct oz_pd pd,
int  pause 
)

Definition at line 440 of file ozcdev.c.

void oz_cdev_term ( void  )

Definition at line 395 of file ozcdev.c.

ssize_t oz_cdev_write ( struct file filp,
const char __user buf,
size_t  count,
loff_t *  fpos 
)

Definition at line 145 of file ozcdev.c.

Variable Documentation

struct class* g_oz_class

Definition at line 46 of file ozcdev.c.

Initial value:
= {
.owner = THIS_MODULE,
.open = oz_cdev_open,
.release = oz_cdev_release,
.read = oz_cdev_read,
.write = oz_cdev_write,
.unlocked_ioctl = oz_cdev_ioctl,
.poll = oz_cdev_poll
}

Definition at line 320 of file ozcdev.c.