Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ppdev.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/device.h>
#include <linux/ioctl.h>
#include <linux/parport.h>
#include <linux/ctype.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/major.h>
#include <linux/ppdev.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  pp_struct
 

Macros

#define PP_VERSION   "ppdev: user-space parallel port driver"
 
#define CHRDEV   "ppdev"
 
#define PP_CLAIMED   (1<<0)
 
#define PP_EXCL   (1<<1)
 
#define PP_INTERRUPT_TIMEOUT   (10 * HZ) /* 10s */
 
#define PP_BUFFER_SIZE   1024
 
#define PARDEVICE_MAX   8
 
#define ROUND_UP(x, y)   (((x)+(y)-1)/(y))
 

Functions

 module_init (ppdev_init)
 
 module_exit (ppdev_cleanup)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_CHARDEV_MAJOR (PP_MAJOR)
 

Macro Definition Documentation

#define CHRDEV   "ppdev"

Definition at line 74 of file ppdev.c.

#define PARDEVICE_MAX   8

Definition at line 95 of file ppdev.c.

#define PP_BUFFER_SIZE   1024

Definition at line 94 of file ppdev.c.

#define PP_CLAIMED   (1<<0)

Definition at line 89 of file ppdev.c.

#define PP_EXCL   (1<<1)

Definition at line 90 of file ppdev.c.

#define PP_INTERRUPT_TIMEOUT   (10 * HZ) /* 10s */

Definition at line 93 of file ppdev.c.

#define PP_VERSION   "ppdev: user-space parallel port driver"

Definition at line 73 of file ppdev.c.

#define ROUND_UP (   x,
  y 
)    (((x)+(y)-1)/(y))

Definition at line 98 of file ppdev.c.

Function Documentation

MODULE_ALIAS_CHARDEV_MAJOR ( PP_MAJOR  )
module_exit ( ppdev_cleanup  )
module_init ( ppdev_init  )
MODULE_LICENSE ( "GPL"  )