Home
last modified time | relevance | path

Searched refs:parport (Results 1 – 25 of 92) sorted by relevance

1234

/linux-2.6.39/include/linux/
Dparport.h107 struct parport;
153 void (*write_data)(struct parport *, unsigned char);
154 unsigned char (*read_data)(struct parport *);
156 void (*write_control)(struct parport *, unsigned char);
157 unsigned char (*read_control)(struct parport *);
158 unsigned char (*frob_control)(struct parport *, unsigned char mask,
161 unsigned char (*read_status)(struct parport *);
164 void (*enable_irq)(struct parport *);
165 void (*disable_irq)(struct parport *);
168 void (*data_forward) (struct parport *);
[all …]
Dparport_pc.h42 struct parport *port;
62 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data()
70 static __inline__ unsigned char parport_pc_read_data(struct parport *p) in parport_pc_read_data()
81 static inline void dump_parport_state (char *str, struct parport *p) in dump_parport_state()
127 static __inline__ unsigned char __parport_pc_frob_control (struct parport *p, in __parport_pc_frob_control()
145 static __inline__ void parport_pc_data_reverse (struct parport *p) in parport_pc_data_reverse()
150 static __inline__ void parport_pc_data_forward (struct parport *p) in parport_pc_data_forward()
155 static __inline__ void parport_pc_write_control (struct parport *p, in parport_pc_write_control()
173 static __inline__ unsigned char parport_pc_read_control(struct parport *p) in parport_pc_read_control()
183 static __inline__ unsigned char parport_pc_frob_control (struct parport *p, in parport_pc_frob_control()
[all …]
/linux-2.6.39/drivers/parport/
Dparport_gsc.h85 static inline void parport_gsc_write_data(struct parport *p, unsigned char d) in parport_gsc_write_data()
93 static inline unsigned char parport_gsc_read_data(struct parport *p) in parport_gsc_read_data()
105 static inline unsigned char __parport_gsc_frob_control(struct parport *p, in __parport_gsc_frob_control()
123 static inline void parport_gsc_data_reverse(struct parport *p) in parport_gsc_data_reverse()
128 static inline void parport_gsc_data_forward(struct parport *p) in parport_gsc_data_forward()
133 static inline void parport_gsc_write_control(struct parport *p, in parport_gsc_write_control()
151 static inline unsigned char parport_gsc_read_control(struct parport *p) in parport_gsc_read_control()
161 static inline unsigned char parport_gsc_frob_control(struct parport *p, in parport_gsc_frob_control()
188 static inline unsigned char parport_gsc_read_status(struct parport *p) in parport_gsc_read_status()
193 static inline void parport_gsc_disable_irq(struct parport *p) in parport_gsc_disable_irq()
[all …]
Dparport_atari.c21 static struct parport *this_port = NULL;
24 parport_atari_read_data(struct parport *p) in parport_atari_read_data()
37 parport_atari_write_data(struct parport *p, unsigned char data) in parport_atari_write_data()
48 parport_atari_read_control(struct parport *p) in parport_atari_read_control()
62 parport_atari_write_control(struct parport *p, unsigned char control) in parport_atari_write_control()
76 parport_atari_frob_control(struct parport *p, unsigned char mask, in parport_atari_frob_control()
85 parport_atari_read_status(struct parport *p) in parport_atari_read_status()
97 parport_atari_save_state(struct parport *p, struct parport_state *s) in parport_atari_save_state()
102 parport_atari_restore_state(struct parport *p, struct parport_state *s) in parport_atari_restore_state()
107 parport_atari_enable_irq(struct parport *p) in parport_atari_enable_irq()
[all …]
Ddaisy.c41 struct parport *port;
50 static int mux_present(struct parport *port);
51 static int num_mux_ports(struct parport *port);
52 static int select_port(struct parport *port);
53 static int assign_addrs(struct parport *port);
56 static void add_dev(int devnum, struct parport *port, int daisy) in add_dev()
74 static struct parport *clone_parport(struct parport *real, int muxport) in clone_parport()
76 struct parport *extra = parport_register_port(real->base, in clone_parport()
92 int parport_daisy_init(struct parport *port) in parport_daisy_init()
117 struct parport *extra = clone_parport(port, i); in parport_daisy_init()
[all …]
Dshare.c56 static void dead_write_lines (struct parport *p, unsigned char b){} in dead_write_lines()
57 static unsigned char dead_read_lines (struct parport *p) { return 0; } in dead_read_lines()
58 static unsigned char dead_frob_lines (struct parport *p, unsigned char b, in dead_frob_lines()
60 static void dead_onearg (struct parport *p){} in dead_onearg()
62 static void dead_state (struct parport *p, struct parport_state *s) { } in dead_state()
63 static size_t dead_write (struct parport *p, const void *b, size_t l, int f) in dead_write()
65 static size_t dead_read (struct parport *p, void *b, size_t l, int f) in dead_read()
104 static void attach_driver_chain(struct parport *port) in attach_driver_chain()
113 static void detach_driver_chain(struct parport *port) in detach_driver_chain()
156 struct parport *port; in parport_register_driver()
[all …]
Dparport_amiga.c37 static void amiga_write_data(struct parport *p, unsigned char data) in amiga_write_data()
45 static unsigned char amiga_read_data(struct parport *p) in amiga_read_data()
76 static void amiga_write_control(struct parport *p, unsigned char control) in amiga_write_control()
82 static unsigned char amiga_read_control( struct parport *p) in amiga_read_control()
88 static unsigned char amiga_frob_control( struct parport *p, unsigned char mask, unsigned char val) in amiga_frob_control()
132 static unsigned char amiga_read_status(struct parport *p) in amiga_read_status()
141 static void amiga_enable_irq(struct parport *p) in amiga_enable_irq()
146 static void amiga_disable_irq(struct parport *p) in amiga_disable_irq()
151 static void amiga_data_forward(struct parport *p) in amiga_data_forward()
158 static void amiga_data_reverse(struct parport *p) in amiga_data_reverse()
[all …]
Dparport_ax88796.c36 struct parport *parport; member
50 static inline struct ax_drvdata *pp_to_drv(struct parport *p) in pp_to_drv()
56 parport_ax88796_read_data(struct parport *p) in parport_ax88796_read_data()
64 parport_ax88796_write_data(struct parport *p, unsigned char data) in parport_ax88796_write_data()
72 parport_ax88796_read_control(struct parport *p) in parport_ax88796_read_control()
94 parport_ax88796_write_control(struct parport *p, unsigned char control) in parport_ax88796_write_control()
123 parport_ax88796_read_status(struct parport *p) in parport_ax88796_read_status()
148 parport_ax88796_frob_control(struct parport *p, unsigned char mask, in parport_ax88796_frob_control()
162 parport_ax88796_enable_irq(struct parport *p) in parport_ax88796_enable_irq()
176 parport_ax88796_disable_irq(struct parport *p) in parport_ax88796_disable_irq()
[all …]
Dparport_ip32.c141 static struct parport *this_port = NULL;
300 ({ const struct parport *__p = (p); \
331 static void parport_ip32_dump_state(struct parport *p, char *str, in parport_ip32_dump_state()
507 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context()
508 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context()
592 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
612 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
621 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
657 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
659 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
[all …]
Dparport_mfc3.c78 static struct parport *this_port[MAX_MFC] = {NULL, };
84 static void mfc3_write_data(struct parport *p, unsigned char data) in mfc3_write_data()
93 static unsigned char mfc3_read_data(struct parport *p) in mfc3_read_data()
128 static void mfc3_write_control(struct parport *p, unsigned char control) in mfc3_write_control()
134 static unsigned char mfc3_read_control( struct parport *p) in mfc3_read_control()
140 static unsigned char mfc3_frob_control( struct parport *p, unsigned char mask, unsigned char val) in mfc3_frob_control()
188 static void mfc3_write_status( struct parport *p, unsigned char status)
195 static unsigned char mfc3_read_status(struct parport *p) in mfc3_read_status()
205 static void mfc3_change_mode( struct parport *p, int m)
227 static void mfc3_enable_irq(struct parport *p) in mfc3_enable_irq()
[all …]
Dparport_sunbpp.c50 static void parport_sunbpp_disable_irq(struct parport *p) in parport_sunbpp_disable_irq()
60 static void parport_sunbpp_enable_irq(struct parport *p) in parport_sunbpp_enable_irq()
70 static void parport_sunbpp_write_data(struct parport *p, unsigned char d) in parport_sunbpp_write_data()
78 static unsigned char parport_sunbpp_read_data(struct parport *p) in parport_sunbpp_read_data()
86 static void control_pc_to_sunbpp(struct parport *p, unsigned char status)
106 static unsigned char status_sunbpp_to_pc(struct parport *p) in status_sunbpp_to_pc()
129 static unsigned char control_sunbpp_to_pc(struct parport *p) in control_sunbpp_to_pc()
150 static unsigned char parport_sunbpp_read_control(struct parport *p) in parport_sunbpp_read_control()
155 static unsigned char parport_sunbpp_frob_control(struct parport *p, in parport_sunbpp_frob_control()
201 static void parport_sunbpp_write_control(struct parport *p, unsigned char d) in parport_sunbpp_write_control()
[all …]
Dprocfs.c37 struct parport *port = (struct parport *)table->extra1; in do_active_device()
117 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr()
145 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq()
173 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma()
201 struct parport *port = (struct parport *)table->extra1; in do_hardware_modes()
474 int parport_proc_register(struct parport *port) in parport_proc_register()
510 int parport_proc_unregister(struct parport *port) in parport_proc_unregister()
524 struct parport * port = device->port; in parport_device_proc_register()
579 int parport_proc_register(struct parport *pp) in parport_proc_register()
584 int parport_proc_unregister(struct parport *pp) in parport_proc_unregister()
Dparport_gsc.c58 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout()
88 void parport_gsc_save_state(struct parport *p, struct parport_state *s) in parport_gsc_save_state()
93 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) in parport_gsc_restore_state()
140 static int __devinit parport_SPP_supported(struct parport *pb) in parport_SPP_supported()
204 static int __devinit parport_PS2_supported(struct parport *pb) in parport_PS2_supported()
235 struct parport *__devinit parport_gsc_probe_port (unsigned long base, in parport_gsc_probe_port()
242 struct parport tmp; in parport_gsc_probe_port()
243 struct parport *p = &tmp; in parport_gsc_probe_port()
351 struct parport *p; in parport_init_chip()
386 struct parport *p = dev_get_drvdata(&dev->dev); in parport_remove_chip()
Dieee1284.c42 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup()
47 static struct parport *port_from_cookie[PARPORT_MAX];
69 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event()
120 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral()
169 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral()
227 static void parport_ieee1284_terminate (struct parport *port) in parport_ieee1284_terminate()
334 int parport_negotiate (struct parport *port, int mode) in parport_negotiate()
560 static int parport_ieee1284_ack_data_avail (struct parport *port) in parport_ieee1284_ack_data_avail()
576 struct parport *port = handle; in parport_ieee1284_interrupt()
607 ssize_t parport_write (struct parport *port, const void *buffer, size_t len) in parport_write()
[all …]
DBUGS-parport1 Currently known (or at least suspected) bugs in parport:
6 o parport_pc_ecp_read_block_pio() is broken. parport will revert to the
9 See <URL:http://people.redhat.com/twaugh/parport/>.
DMakefile5 parport-objs := share.o ieee1284.o ieee1284_ops.o procfs.o
8 parport-objs += daisy.o probe.o
11 obj-$(CONFIG_PARPORT) += parport.o
Dparport_pc.c112 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol()
126 static inline void frob_set_mode(struct parport *p, int mode) in frob_set_mode()
138 static int change_mode(struct parport *p, int m) in change_mode()
204 static int get_fifo_residue(struct parport *p)
255 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout()
293 static void parport_pc_save_state(struct parport *p, struct parport_state *s) in parport_pc_save_state()
301 static void parport_pc_restore_state(struct parport *p, in parport_pc_restore_state()
313 static size_t parport_pc_epp_read_data(struct parport *port, void *buf, in parport_pc_epp_read_data()
379 static size_t parport_pc_epp_write_data(struct parport *port, const void *buf, in parport_pc_epp_write_data()
407 static size_t parport_pc_epp_read_addr(struct parport *port, void *buf, in parport_pc_epp_read_addr()
[all …]
/linux-2.6.39/drivers/i2c/busses/
Di2c-parport.c56 static void port_write_data(struct parport *p, unsigned char d) in port_write_data()
61 static void port_write_control(struct parport *p, unsigned char d) in port_write_control()
66 static unsigned char port_read_data(struct parport *p) in port_read_data()
71 static unsigned char port_read_status(struct parport *p) in port_read_status()
76 static unsigned char port_read_control(struct parport *p) in port_read_control()
81 static void (*port_write[])(struct parport *, unsigned char) = {
87 static unsigned char (*port_read[])(struct parport *) = {
95 static inline void line_set(struct parport *data, int state, in line_set()
107 static inline int line_get(struct parport *data, in line_get()
120 line_set((struct parport *) data, state, &adapter_parm[type].setscl); in parport_setscl()
[all …]
/linux-2.6.39/Documentation/
Dparport-lowlevel.txt62 The parport subsystem comprises 'parport' (the core port-sharing
67 The parport interface to the device driver author can be broken down
71 driver and the parport subsystem: acquiring a list of available ports,
77 core parport module provides generic 'defaults' for some routines.
101 parport_register_driver - register a device driver with parport
106 #include <linux/parport.h>
110 void (*attach) (struct parport *);
111 void (*detach) (struct parport *);
129 The visible parts of the 'struct parport *' argument given to
132 struct parport
[all …]
Dparport.txt1 The `parport' code provides parallel-port support under Linux. This
5 You can pass parameters to the parport code to override its automatic
12 The parport code is split into two parts: generic (which deals with
20 If you load the parport code as a module, say
22 # insmod parport
24 to load the generic parport code. You then must load the
29 to tell the parport code that you want three PC-style ports, one at
68 The probe information is available from files in /proc/sys/dev/parport/.
74 If you compile the parport code into the kernel, then you can use
78 parport=0x3bc parport=0x378,7 parport=0x278,auto,nofifo
[all …]
/linux-2.6.39/drivers/usb/misc/
Duss720.c65 struct parport *pp;
113 struct parport *pp; in async_complete()
206 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_f… in get_1284_register()
241 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_fl… in set_1284_register()
268 static int change_mode(struct parport *pp, int m) in change_mode()
318 static int clear_epp_timeout(struct parport *pp) in clear_epp_timeout()
333 struct parport *pp = (struct parport *)dev_id;
346 static void parport_uss720_write_data(struct parport *pp, unsigned char d) in parport_uss720_write_data()
351 static unsigned char parport_uss720_read_data(struct parport *pp) in parport_uss720_read_data()
360 static void parport_uss720_write_control(struct parport *pp, unsigned char d) in parport_uss720_write_control()
[all …]
/linux-2.6.39/sound/drivers/
Dmts64.c142 static void mts64_enable_readout(struct parport *p);
143 static void mts64_disable_readout(struct parport *p);
144 static int mts64_device_ready(struct parport *p);
145 static int mts64_device_init(struct parport *p);
149 static int mts64_probe(struct parport *p);
150 static u16 mts64_read(struct parport *p);
151 static u8 mts64_read_char(struct parport *p);
152 static void mts64_smpte_start(struct parport *p,
156 static void mts64_smpte_stop(struct parport *p);
157 static void mts64_write_command(struct parport *p, u8 c);
[all …]
/linux-2.6.39/Documentation/i2c/busses/
Di2c-parport-light1 Kernel driver i2c-parport-light
5 This driver is a light version of i2c-parport. It doesn't depend
6 on the parport driver, and uses direct I/O access instead. This might be
8 parport handling is not an option. The drawback is a reduced portability
11 Please see i2c-parport for documentation.
15 * type: type of adapter (see i2c-parport or modinfo)
/linux-2.6.39/drivers/input/joystick/
Dwalkera0701.c60 struct parport *parport; member
190 parport_enable_irq(w->parport); in walkera0701_open()
198 parport_disable_irq(w->parport); in walkera0701_close()
201 static int walkera0701_connect(struct walkera_dev *w, int parport) in walkera0701_connect() argument
205 w->parport = parport_find_number(parport); in walkera0701_connect()
206 if (w->parport == NULL) in walkera0701_connect()
209 if (w->parport->irq == -1) { in walkera0701_connect()
215 w->pardevice = parport_register_device(w->parport, "walkera0701", in walkera0701_connect()
233 w->input_dev->phys = w->parport->name; in walkera0701_connect()
268 parport_put_port(w->parport); in walkera0701_connect()
[all …]
/linux-2.6.39/drivers/char/
Dlp.c150 static struct parport *console_registered;
196 static int lp_negotiate(struct parport * port, int mode) in lp_negotiate()
299 struct parport *port = lp_table[minor].dev->port; in lp_write()
418 struct parport *port = lp_table[minor].dev->port; in lp_read()
772 struct parport *port = dev->port; in lp_console_write()
831 static char *parport[LP_NO]; variable
834 module_param_array(parport, charp, NULL, 0);
869 static int lp_register(int nr, struct parport *port) in lp_register()
902 static void lp_attach (struct parport *port) in lp_attach()
932 static void lp_detach (struct parport *port) in lp_detach()
[all …]

1234