Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
plip.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/if_ether.h>
#include <linux/in.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/inetdevice.h>
#include <linux/skbuff.h>
#include <linux/if_plip.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/parport.h>
#include <linux/bitops.h>
#include <net/neighbour.h>
#include <asm/irq.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  plip_local
 
struct  net_local
 

Macros

#define PLIP_MAX   8
 
#define NET_DEBUG   1
 
#define ENABLE(irq)   if (irq != -1) enable_irq(irq)
 
#define DISABLE(irq)   if (irq != -1) disable_irq(irq)
 
#define PLIP_DELAY_UNIT   1
 
#define PLIP_TRIGGER_WAIT   500
 
#define PLIP_NIBBLE_WAIT   3000
 
#define OK   0
 
#define TIMEOUT   1
 
#define ERROR   2
 
#define HS_TIMEOUT   3
 

Typedefs

typedef int(* plip_func )(struct net_device *dev, struct net_local *nl, struct plip_local *snd, struct plip_local *rcv)
 

Enumerations

enum  plip_connection_state {
  PLIP_CN_NONE =0, PLIP_CN_RECEIVE, PLIP_CN_SEND, PLIP_CN_CLOSING,
  PLIP_CN_ERROR
}
 
enum  plip_packet_state {
  PLIP_PK_DONE =0, PLIP_PK_TRIGGER, PLIP_PK_LENGTH_LSB, PLIP_PK_LENGTH_MSB,
  PLIP_PK_DATA, PLIP_PK_CHECKSUM
}
 
enum  plip_nibble_state { PLIP_NB_BEGIN, PLIP_NB_1, PLIP_NB_2 }
 

Functions

 module_param_array (parport, int, NULL, 0)
 
 module_param (timid, int, 0)
 
 MODULE_PARM_DESC (parport,"List of parport device numbers to use by plip")
 
 __setup ("plip=", plip_setup)
 
 module_init (plip_init)
 
 module_exit (plip_cleanup_module)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DISABLE (   irq)    if (irq != -1) disable_irq(irq)

Definition at line 129 of file plip.c.

#define ENABLE (   irq)    if (irq != -1) enable_irq(irq)

Definition at line 128 of file plip.c.

#define ERROR   2

Definition at line 348 of file plip.c.

#define HS_TIMEOUT   3

Definition at line 349 of file plip.c.

#define NET_DEBUG   1

Definition at line 124 of file plip.c.

#define OK   0

Definition at line 346 of file plip.c.

#define PLIP_DELAY_UNIT   1

Definition at line 132 of file plip.c.

#define PLIP_MAX   8

Definition at line 120 of file plip.c.

#define PLIP_NIBBLE_WAIT   3000

Definition at line 138 of file plip.c.

#define PLIP_TRIGGER_WAIT   500

Definition at line 135 of file plip.c.

#define TIMEOUT   1

Definition at line 347 of file plip.c.

Typedef Documentation

typedef int(* plip_func)(struct net_device *dev, struct net_local *nl, struct plip_local *snd, struct plip_local *rcv)

Definition at line 351 of file plip.c.

Enumeration Type Documentation

Enumerator:
PLIP_CN_NONE 
PLIP_CN_RECEIVE 
PLIP_CN_SEND 
PLIP_CN_CLOSING 
PLIP_CN_ERROR 

Definition at line 161 of file plip.c.

Enumerator:
PLIP_NB_BEGIN 
PLIP_NB_1 
PLIP_NB_2 

Definition at line 178 of file plip.c.

Enumerator:
PLIP_PK_DONE 
PLIP_PK_TRIGGER 
PLIP_PK_LENGTH_LSB 
PLIP_PK_LENGTH_MSB 
PLIP_PK_DATA 
PLIP_PK_CHECKSUM 

Definition at line 169 of file plip.c.

Function Documentation

__setup ( )
module_exit ( plip_cleanup_module  )
module_init ( plip_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timid  ,
int  ,
 
)
module_param_array ( parport  ,
int  ,
NULL  ,
 
)
MODULE_PARM_DESC ( parport  ,
"List of parport device numbers to use by plip"   
)