Go to the documentation of this file.
13 #include <linux/wait.h>
16 #include <asm/ptrace.h>
241 #define PARPORT_DEVPROC_REGISTERED 0
248 #define DEFAULT_SPIN_TIME 500
300 int (*
pf)(
void *),
void (*kf)(
void *),
350 unsigned long int timeslip = (
jiffies - dev->
time);
368 unsigned long int timeslip = (
jiffies - dev->
time);
376 #define PARPORT_DEV_TRAN 0
377 #define PARPORT_DEV_LURK (1<<0)
378 #define PARPORT_DEV_EXCL (1<<1)
380 #define PARPORT_FLAG_EXCL (1<<1)
388 #define PARPORT_INACTIVITY_O_NONBLOCK 1
402 const void *,
size_t,
int);
404 void *,
size_t,
int);
406 void *,
size_t,
int);
408 void *,
size_t,
int);
410 const void *,
size_t,
int);
412 const void *,
size_t,
int);
414 const void *,
size_t,
int);
416 void *,
size_t,
int);
418 const void *,
size_t,
int);
420 void *,
size_t,
int);
432 static inline void parport_generic_irq(
struct parport *port)
436 if (port->
cad && port->
cad->irq_func)
437 port->
cad->irq_func(port->
cad->private);
448 #if !defined(CONFIG_PARPORT_NOT_PC)
451 #define parport_write_data(p,x) parport_pc_write_data(p,x)
452 #define parport_read_data(p) parport_pc_read_data(p)
453 #define parport_write_control(p,x) parport_pc_write_control(p,x)
454 #define parport_read_control(p) parport_pc_read_control(p)
455 #define parport_frob_control(p,m,v) parport_pc_frob_control(p,m,v)
456 #define parport_read_status(p) parport_pc_read_status(p)
457 #define parport_enable_irq(p) parport_pc_enable_irq(p)
458 #define parport_disable_irq(p) parport_pc_disable_irq(p)
459 #define parport_data_forward(p) parport_pc_data_forward(p)
460 #define parport_data_reverse(p) parport_pc_data_reverse(p)
465 #define parport_write_data(p,x) (p)->ops->write_data(p,x)
466 #define parport_read_data(p) (p)->ops->read_data(p)
467 #define parport_write_control(p,x) (p)->ops->write_control(p,x)
468 #define parport_read_control(p) (p)->ops->read_control(p)
469 #define parport_frob_control(p,m,v) (p)->ops->frob_control(p,m,v)
470 #define parport_read_status(p) (p)->ops->read_status(p)
471 #define parport_enable_irq(p) (p)->ops->enable_irq(p)
472 #define parport_disable_irq(p) (p)->ops->disable_irq(p)
473 #define parport_data_forward(p) (p)->ops->data_forward(p)
474 #define parport_data_reverse(p) (p)->ops->data_reverse(p)