Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
daisy.c File Reference
#include <linux/module.h>
#include <linux/parport.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  daisydev
 

Macros

#define DPRINTK(stuff...)
 

Functions

int parport_daisy_init (struct parport *port)
 
void parport_daisy_fini (struct parport *port)
 
: name to associate with the device

parport_open - find a device by canonical device number : canonical device number

This function is similar to parport_register_device(), except that it locates a device by its number rather than by the port it is attached to.

All parameters except for are the same as for parport_register_device(). The return value is the same as for parport_register_device().

struct pardeviceparport_open (int devnum, const char *name)
 
void parport_close (struct pardevice *dev)
 
void parport_daisy_deselect_all (struct parport *port)
 
int parport_daisy_select (struct parport *port, int daisy, int mode)
 

Macro Definition Documentation

#define DPRINTK (   stuff...)

Definition at line 36 of file daisy.c.

Function Documentation

void parport_close ( struct pardevice dev)

parport_close - close a device opened with parport_open() : device to close

This is to parport_open() as parport_unregister_device() is to parport_register_device().

Definition at line 265 of file daisy.c.

void parport_daisy_deselect_all ( struct parport port)

Definition at line 348 of file daisy.c.

void parport_daisy_fini ( struct parport port)

Definition at line 175 of file daisy.c.

int parport_daisy_init ( struct parport port)

Definition at line 92 of file daisy.c.

int parport_daisy_select ( struct parport port,
int  daisy,
int  mode 
)

Definition at line 353 of file daisy.c.

struct pardevice* parport_open ( int  devnum,
const char name 
)
read

Definition at line 213 of file daisy.c.