12 #include <linux/module.h>
14 #include <linux/parport.h>
16 #include <asm/setup.h>
24 parport_atari_read_data(
struct parport *
p)
37 parport_atari_write_data(
struct parport *
p,
unsigned char data)
48 parport_atari_read_control(
struct parport *
p)
55 if (!(
sound_ym.rd_data_reg_sel & (1 << 5)))
62 parport_atari_write_control(
struct parport *p,
unsigned char control)
76 parport_atari_frob_control(
struct parport *p,
unsigned char mask,
79 unsigned char old = parport_atari_read_control(p);
80 parport_atari_write_control(p, (old & ~mask) ^ val);
85 parport_atari_read_status(
struct parport *p)
107 parport_atari_enable_irq(
struct parport *p)
113 parport_atari_disable_irq(
struct parport *p)
119 parport_atari_data_forward(
struct parport *p)
131 parport_atari_data_reverse(
struct parport *p)
136 .write_data = parport_atari_write_data,
137 .read_data = parport_atari_read_data,
139 .write_control = parport_atari_write_control,
140 .read_control = parport_atari_read_control,
141 .frob_control = parport_atari_frob_control,
143 .read_status = parport_atari_read_status,
145 .enable_irq = parport_atari_enable_irq,
146 .disable_irq = parport_atari_disable_irq,
148 .data_forward = parport_atari_data_forward,
149 .data_reverse = parport_atari_data_reverse,
151 .init_state = parport_atari_init_state,
152 .save_state = parport_atari_save_state,
153 .restore_state = parport_atari_restore_state,
172 static int __init parport_atari_init(
void)
210 static void __exit parport_atari_exit(
void)