/openbmc/linux/include/linux/ |
H A D | parport.h | 21 struct parport; 73 void (*enable_irq)(struct parport *); 74 void (*disable_irq)(struct parport *); 135 struct parport *port; 186 struct parport { struct 201 struct parport *physport; argument 248 struct parport *slaves[3]; argument 257 void (*attach) (struct parport *); 258 void (*detach) (struct parport *); 259 void (*match_port)(struct parport *); [all …]
|
H A D | parport_pc.h | 46 struct parport *port; 85 static inline void dump_parport_state (char *str, struct parport *p) in dump_parport_state() 149 static __inline__ void parport_pc_data_reverse (struct parport *p) in parport_pc_data_reverse() 154 static __inline__ void parport_pc_data_forward (struct parport *p) in parport_pc_data_forward() 159 static __inline__ void parport_pc_write_control (struct parport *p, in parport_pc_write_control() 220 static __inline__ void parport_pc_disable_irq(struct parport *p) in parport_pc_disable_irq() 225 static __inline__ void parport_pc_enable_irq(struct parport *p) in parport_pc_enable_irq() 230 extern void parport_pc_release_resources(struct parport *p); 232 extern int parport_pc_claim_resources(struct parport *p); 235 extern struct parport *parport_pc_probe_port(unsigned long base, [all …]
|
/openbmc/linux/drivers/parport/ |
H A D | parport_gsc.h | 77 static inline unsigned char parport_gsc_read_data(struct parport *p) in parport_gsc_read_data() 106 static inline void parport_gsc_data_reverse(struct parport *p) in parport_gsc_data_reverse() 111 static inline void parport_gsc_data_forward(struct parport *p) in parport_gsc_data_forward() 116 static inline void parport_gsc_write_control(struct parport *p, in parport_gsc_write_control() 134 static inline unsigned char parport_gsc_read_control(struct parport *p) in parport_gsc_read_control() 144 static inline unsigned char parport_gsc_frob_control(struct parport *p, in parport_gsc_frob_control() 171 static inline unsigned char parport_gsc_read_status(struct parport *p) in parport_gsc_read_status() 176 static inline void parport_gsc_disable_irq(struct parport *p) in parport_gsc_disable_irq() 181 static inline void parport_gsc_enable_irq(struct parport *p) in parport_gsc_enable_irq() 186 extern void parport_gsc_release_resources(struct parport *p); [all …]
|
H A D | parport_atari.c | 22 static struct parport *this_port; 25 parport_atari_read_data(struct parport *p) in parport_atari_read_data() 38 parport_atari_write_data(struct parport *p, unsigned char data) in parport_atari_write_data() 49 parport_atari_read_control(struct parport *p) in parport_atari_read_control() 77 parport_atari_frob_control(struct parport *p, unsigned char mask, in parport_atari_frob_control() 86 parport_atari_read_status(struct parport *p) in parport_atari_read_status() 108 parport_atari_enable_irq(struct parport *p) in parport_atari_enable_irq() 114 parport_atari_disable_irq(struct parport *p) in parport_atari_disable_irq() 120 parport_atari_data_forward(struct parport *p) in parport_atari_data_forward() 132 parport_atari_data_reverse(struct parport *p) in parport_atari_data_reverse() [all …]
|
H A D | parport_amiga.c | 32 static void amiga_write_data(struct parport *p, unsigned char data) in amiga_write_data() 40 static unsigned char amiga_read_data(struct parport *p) in amiga_read_data() 54 static void amiga_write_control(struct parport *p, unsigned char control) in amiga_write_control() 60 static unsigned char amiga_read_control( struct parport *p) in amiga_read_control() 91 static unsigned char amiga_read_status(struct parport *p) in amiga_read_status() 100 static void amiga_enable_irq(struct parport *p) in amiga_enable_irq() 105 static void amiga_disable_irq(struct parport *p) in amiga_disable_irq() 110 static void amiga_data_forward(struct parport *p) in amiga_data_forward() 117 static void amiga_data_reverse(struct parport *p) in amiga_data_reverse() 192 struct parport *p; in amiga_parallel_probe() [all …]
|
H A D | daisy.c | 35 struct parport *port; 45 static int mux_present(struct parport *port); 46 static int num_mux_ports(struct parport *port); 47 static int select_port(struct parport *port); 48 static int assign_addrs(struct parport *port); 69 static struct parport *clone_parport(struct parport *real, int muxport) in clone_parport() 105 int parport_daisy_init(struct parport *port) in parport_daisy_init() 203 void parport_daisy_fini(struct parport *port) in parport_daisy_fini() 245 struct parport *port; in parport_open() 412 static int mux_present(struct parport *port) in mux_present() [all …]
|
H A D | parport_ip32.c | 128 static struct parport *this_port; 287 ({ const struct parport *__p = (p); \ 495 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context() 496 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context() 769 struct parport * const p = dev_id; in parport_ip32_interrupt() 1100 struct parport *p, void *buf, in parport_ip32_epp_read() 1139 struct parport *p, const void *buf, in parport_ip32_epp_write() 1268 struct parport * const physport = p->physport; in parport_ip32_fwp_wait_polling() 1309 struct parport * const physport = p->physport; in parport_ip32_fwp_wait_interrupt() 1429 struct parport * const physport = p->physport; in parport_ip32_fifo_write_block_dma() [all …]
|
H A D | share.c | 61 static void dead_onearg(struct parport *p){} in dead_onearg() 156 struct parport *port = _port; in driver_check() 183 struct parport *port = _port; in driver_detach() 376 struct parport *parport_get_port(struct parport *port) in parport_get_port() 384 void parport_del_port(struct parport *port) in parport_del_port() 438 struct parport *tmp; in parport_register_port() 479 struct parport *p = list_entry(l, struct parport, full_list); in parport_register_port() 842 struct parport *port; in parport_unregister_device() 917 struct parport *port, *result = NULL; in parport_find_number() 948 struct parport *port, *result = NULL; in parport_find_base() [all …]
|
H A D | parport_sunbpp.c | 51 static void parport_sunbpp_disable_irq(struct parport *p) in parport_sunbpp_disable_irq() 61 static void parport_sunbpp_enable_irq(struct parport *p) in parport_sunbpp_enable_irq() 79 static unsigned char parport_sunbpp_read_data(struct parport *p) in parport_sunbpp_read_data() 86 static unsigned char status_sunbpp_to_pc(struct parport *p) in status_sunbpp_to_pc() 109 static unsigned char control_sunbpp_to_pc(struct parport *p) in control_sunbpp_to_pc() 130 static unsigned char parport_sunbpp_read_control(struct parport *p) in parport_sunbpp_read_control() 191 static unsigned char parport_sunbpp_read_status(struct parport *p) in parport_sunbpp_read_status() 196 static void parport_sunbpp_data_forward (struct parport *p) in parport_sunbpp_data_forward() 206 static void parport_sunbpp_data_reverse (struct parport *p) in parport_sunbpp_data_reverse() 276 struct parport *p; in bpp_probe() [all …]
|
H A D | parport_mfc3.c | 74 static struct parport *this_port[MAX_MFC] = {NULL, }; 80 static void mfc3_write_data(struct parport *p, unsigned char data) in mfc3_write_data() 89 static unsigned char mfc3_read_data(struct parport *p) in mfc3_read_data() 124 static void mfc3_write_control(struct parport *p, unsigned char control) in mfc3_write_control() 130 static unsigned char mfc3_read_control( struct parport *p) in mfc3_read_control() 164 static unsigned char mfc3_read_status(struct parport *p) in mfc3_read_status() 188 static void mfc3_enable_irq(struct parport *p) in mfc3_enable_irq() 193 static void mfc3_disable_irq(struct parport *p) in mfc3_disable_irq() 198 static void mfc3_data_forward(struct parport *p) in mfc3_data_forward() 206 static void mfc3_data_reverse(struct parport *p) in mfc3_data_reverse() [all …]
|
H A D | parport_gsc.c | 51 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() 81 void parport_gsc_save_state(struct parport *p, struct parport_state *s) in parport_gsc_save_state() 86 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) in parport_gsc_restore_state() 133 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() 197 static int parport_PS2_supported(struct parport *pb) in parport_PS2_supported() 228 static struct parport *parport_gsc_probe_port(unsigned long base, in parport_gsc_probe_port() 234 struct parport tmp; in parport_gsc_probe_port() 235 struct parport *p = &tmp; in parport_gsc_probe_port() 335 struct parport *p; in parport_init_chip() 369 struct parport *p = dev_get_drvdata(&dev->dev); in parport_remove_chip()
|
H A D | procfs.c | 46 struct parport *port = (struct parport *)table->extra1; in do_active_device() 126 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr() 153 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq() 180 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma() 207 struct parport *port = (struct parport *)table->extra1; in do_hardware_modes() 430 int parport_proc_register(struct parport *port) in parport_proc_register() 503 int parport_proc_unregister(struct parport *port) in parport_proc_unregister() 519 struct parport * port = device->port; in parport_device_proc_register() 606 int parport_proc_register(struct parport *pp) in parport_proc_register() 611 int parport_proc_unregister(struct parport *pp) in parport_proc_unregister()
|
H A D | ieee1284.c | 36 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() 43 struct parport *port = from_timer(port, t, timer); in timeout_waiting_on_port() 64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() 107 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral() 156 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral() 214 static void parport_ieee1284_terminate (struct parport *port) in parport_ieee1284_terminate() 317 int parport_negotiate (struct parport *port, int mode) in parport_negotiate() 536 static int parport_ieee1284_ack_data_avail (struct parport *port) in parport_ieee1284_ack_data_avail() 552 struct parport *port = handle; in parport_ieee1284_interrupt() 591 size_t (*fn) (struct parport *, const void *, size_t, int); in parport_write() [all …]
|
H A D | parport_pc.c | 139 static int change_mode(struct parport *p, int m) in change_mode() 208 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() 1388 static int get_superio_dma(struct parport *p) in get_superio_dma() 1874 static int irq_probe_ECP(struct parport *pb) in irq_probe_ECP() 1902 static int irq_probe_EPP(struct parport *pb) in irq_probe_EPP() 1941 static int irq_probe_SPP(struct parport *pb) in irq_probe_SPP() 2035 struct parport *p; in __parport_pc_probe_port() 2863 struct parport *ports[2]; 3004 struct parport *pdata; in parport_pc_pnp_probe() 3043 struct parport *pdata = (struct parport *)pnp_get_drvdata(dev); in parport_pc_pnp_remove() [all …]
|
H A D | BUGS-parport | 1 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/>.
|
H A D | Makefile | 6 parport-objs := share.o ieee1284.o ieee1284_ops.o procfs.o 9 parport-objs += daisy.o probe.o 12 obj-$(CONFIG_PARPORT) += parport.o
|
H A D | ieee1284_ops.c | 35 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() 144 size_t parport_ieee1284_read_nibble (struct parport *port, in parport_ieee1284_read_nibble() 232 size_t parport_ieee1284_read_byte (struct parport *port, in parport_ieee1284_read_byte() 323 int ecp_forward_to_reverse (struct parport *port) in ecp_forward_to_reverse() 355 int ecp_reverse_to_forward (struct parport *port) in ecp_reverse_to_forward() 388 size_t parport_ieee1284_ecp_write_data (struct parport *port, in parport_ieee1284_ecp_write_data() 474 size_t parport_ieee1284_ecp_read_data (struct parport *port, in parport_ieee1284_ecp_read_data() 618 size_t parport_ieee1284_ecp_write_addr (struct parport *port, in parport_ieee1284_ecp_write_addr() 709 size_t parport_ieee1284_epp_write_data (struct parport *port, in parport_ieee1284_epp_write_data() 753 size_t parport_ieee1284_epp_read_data (struct parport *port, in parport_ieee1284_epp_read_data() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-parport.c | 128 static int parport[MAX_DEVICE] = {0, -1, -1, -1}; variable 129 module_param_array(parport, int, NULL, 0); 130 MODULE_PARM_DESC(parport, 163 static unsigned char port_read_data(struct parport *p) in port_read_data() 168 static unsigned char port_read_status(struct parport *p) in port_read_status() 173 static unsigned char port_read_control(struct parport *p) in port_read_control() 204 static inline int line_get(struct parport *data, in line_get() 264 static void i2c_parport_attach(struct parport *port) in i2c_parport_attach() 281 if (parport[i] == -1) in i2c_parport_attach() 283 if (port->number == parport[i]) in i2c_parport_attach() [all …]
|
/openbmc/linux/Documentation/driver-api/ |
H A D | parport-lowlevel.rst | 64 The parport subsystem comprises ``parport`` (the core port-sharing 111 #include <linux/parport.h> 138 struct parport 140 struct parport *next; /* next parport in list */ 250 #include <linux/parport.h> 299 #include <linux/parport.h> 331 struct parport *port; 365 #include <linux/parport.h> 507 #include <linux/parport.h> 544 #include <linux/parport.h> [all …]
|
H A D | miscellaneous.rst | 4 .. kernel-doc:: include/linux/parport.h 7 .. kernel-doc:: drivers/parport/ieee1284.c 10 .. kernel-doc:: drivers/parport/share.c 13 .. kernel-doc:: drivers/parport/daisy.c
|
/openbmc/linux/drivers/usb/misc/ |
H A D | uss720.c | 49 struct parport *pp; 99 struct parport *pp; in async_complete() 257 static int change_mode(struct parport *pp, int m) in change_mode() 307 static int clear_epp_timeout(struct parport *pp) in clear_epp_timeout() 322 struct parport *pp = (struct parport *)dev_id; 388 static void parport_uss720_disable_irq(struct parport *pp) in parport_uss720_disable_irq() 399 static void parport_uss720_enable_irq(struct parport *pp) in parport_uss720_enable_irq() 410 static void parport_uss720_data_forward (struct parport *pp) in parport_uss720_data_forward() 421 static void parport_uss720_data_reverse (struct parport *pp) in parport_uss720_data_reverse() 678 struct parport *pp; in uss720_probe() [all …]
|
/openbmc/linux/sound/drivers/ |
H A D | mts64.c | 133 static int mts64_probe(struct parport *p); 134 static u16 mts64_read(struct parport *p); 135 static u8 mts64_read_char(struct parport *p); 200 static int mts64_device_init(struct parport *p) in mts64_device_init() 226 struct parport *p = mts->pardev->port; in mts64_device_open() 240 struct parport *p = mts->pardev->port; in mts64_device_close() 276 static int mts64_probe(struct parport *p) in mts64_probe() 300 static u16 mts64_read(struct parport *p) in mts64_read() 324 static u8 mts64_read_char(struct parport *p) in mts64_read_char() 412 struct parport *p = mts->pardev->port; in mts64_write_midi() [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | parport.rst | 4 The ``parport`` code provides parallel-port support under Linux. This 23 If you load the `parport`` code as a module, say:: 25 # insmod parport 27 to load the generic ``parport`` code. You then must load the 80 parport=0x3bc parport=0x378,7 parport=0x278,auto,nofifo 84 parport support entirely. Adding ``parport=auto`` to the kernel 94 directory entry for each parallel port for which parport is 98 The ``/proc/sys/dev/parport`` directory tree looks like:: 100 parport 215 # insmod lp parport=0,2 [all …]
|
/openbmc/linux/drivers/input/joystick/ |
H A D | walkera0701.c | 56 struct parport *parport; member 185 parport_enable_irq(w->parport); in walkera0701_open() 193 parport_disable_irq(w->parport); in walkera0701_close() 199 static void walkera0701_attach(struct parport *pp) in walkera0701_attach() 215 w->parport = pp; in walkera0701_attach() 246 w->input_dev->phys = w->parport->name; in walkera0701_attach() 253 w->input_dev->dev.parent = w->parport->dev; in walkera0701_attach() 280 static void walkera0701_detach(struct parport *port) in walkera0701_detach() 284 if (!w->pardevice || w->parport->number != port->number) in walkera0701_detach() 289 w->parport = NULL; in walkera0701_detach()
|
/openbmc/linux/drivers/ata/pata_parport/ |
H A D | pata_parport.c | 481 struct parport *parport; member 493 static struct pi_adapter *pi_init_one(struct parport *parport, in pi_init_one() argument 500 struct pi_device_match match = { .parport = parport, .proto = pr }; in pi_init_one() 542 pi->port = parport->base; in pi_init_one() 588 struct parport *parport; in pata_parport_register_driver() local 610 pi_init_one(parport, pr, -1, -1, -1); in pata_parport_register_driver() 641 struct parport *parport; in new_device_store() local 672 parport = parport_find_number(port_num); in new_device_store() 673 if (!parport) { in new_device_store() 681 if (pi_init_one(parport, pr, mode, unit, in new_device_store() [all …]
|