Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lp.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/fcntl.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/console.h>
#include <linux/device.h>
#include <linux/wait.h>
#include <linux/jiffies.h>
#include <linux/mutex.h>
#include <linux/compat.h>
#include <linux/parport.h>
#include <linux/lp.h>
#include <asm/irq.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define LP_NO   8
 
#define LP_PREEMPT_REQUEST   1
 
#define LP_PARPORT_CLAIMED   2
 
#define r_dtr(x)   (parport_read_data(lp_table[(x)].dev->port))
 
#define r_str(x)   (parport_read_status(lp_table[(x)].dev->port))
 
#define w_ctr(x, y)   do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0)
 
#define w_dtr(x, y)   do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0)
 

Functions

 module_param_array (parport, charp, NULL, 0)
 
 module_param (reset, bool, 0)
 
 __setup ("lp=", lp_setup)
 
 module_init (lp_init_module)
 
 module_exit (lp_cleanup_module)
 
 MODULE_ALIAS_CHARDEV_MAJOR (LP_MAJOR)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LP_NO   8

Definition at line 140 of file lp.c.

#define LP_PARPORT_CLAIMED   2

Definition at line 156 of file lp.c.

#define LP_PREEMPT_REQUEST   1

Definition at line 155 of file lp.c.

#define r_dtr (   x)    (parport_read_data(lp_table[(x)].dev->port))

Definition at line 160 of file lp.c.

#define r_str (   x)    (parport_read_status(lp_table[(x)].dev->port))

Definition at line 161 of file lp.c.

#define w_ctr (   x,
  y 
)    do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0)

Definition at line 162 of file lp.c.

#define w_dtr (   x,
  y 
)    do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0)

Definition at line 163 of file lp.c.

Function Documentation

__setup ( )
MODULE_ALIAS_CHARDEV_MAJOR ( LP_MAJOR  )
module_exit ( lp_cleanup_module  )
module_init ( lp_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( reset  ,
bool  ,
 
)
module_param_array ( parport  ,
charp  ,
NULL  ,
 
)