• Home
  • Raw
  • Download

Lines Matching +full:machine +full:- +full:mode +full:- +full:visible

5 :Time-stamp: <2000-02-24 13:30:20 twaugh>
34 Port functions (can be overridden by low-level drivers):
37 port->ops->read_data
38 port->ops->write_data
39 port->ops->read_status
40 port->ops->read_control
41 port->ops->write_control
42 port->ops->frob_control
43 port->ops->enable_irq
44 port->ops->disable_irq
45 port->ops->data_forward
46 port->ops->data_reverse
49 port->ops->epp_write_data
50 port->ops->epp_read_data
51 port->ops->epp_write_addr
52 port->ops->epp_read_addr
55 port->ops->ecp_write_data
56 port->ops->ecp_read_data
57 port->ops->ecp_write_addr
60 port->ops->nibble_read_data
61 port->ops->byte_read_data
62 port->ops->compat_write_data
64 The parport subsystem comprises ``parport`` (the core port-sharing
65 code), and a variety of low-level drivers that actually do the port
66 accesses. Each low-level driver handles a particular style of port
76 IEEE 1284-capable architecture.
78 The port functions are provided by the low-level drivers, although the
82 SPP (Standard Parallel Port) functions modify so-called ``SPP``
85 modelled after common PC implementations. Other low-level drivers may
89 writing in IEEE 1284 EPP mode, and ECP (Extended Capabilities Port)
90 functions are used for IEEE 1284 ECP mode. (What about BECP? Does
95 hardware is not used, the transfer will be software-driven. In order
97 low-level driver specific function is provided, for altering 'fudge
103 parport_register_driver - register a device driver with parport
104 ---------------------------------------------------------------
127 and of each new port as low-level drivers are loaded.
131 function to handle ports going away due to a low-level driver
135 The visible parts of the ``struct parport *`` argument given to
154 hardware. It consists of flags which may be bitwise-ored together:
167 compatibility-mode (printer)
174 want to pass ISA DMA-able memory
177 low-level driver in order to take
229 return -EIO;
242 parport_unregister_driver - tell parport to forget about this driver
243 --------------------------------------------------------------------
291 parport_enumerate - retrieve a list of parallel ports (DEPRECATED)
292 ------------------------------------------------------------------
306 Retrieve the first of a list of valid parallel ports for this machine.
315 A ``struct parport *`` describing a valid parallel port for the machine,
335 port = port->next) {
357 parport_register_device - register to use a port
358 ------------------------------------------------
396 non-zero if the parallel port cannot be released yet -- if zero is
398 re-claimed before use.
410 The ``handle`` is a pointer to driver-specific data, and is passed to
422 The typedefs are not actually defined -- they are only shown in order
425 The visible parts of the returned ``struct pardevice`` are::
462 struct pardevice *dev = private->dev;
471 private->dev = parport_register_device (port, "toaster", preempt,
474 if (!private->dev)
476 return -EIO;
480 parport_claim_or_block (private->dev);
487 parport_claim_or_block (private->dev);
500 parport_unregister_device - finish using a port
501 -----------------------------------------------
526 kfree (dev->private); /* before we lose the pointer */
536 parport_claim, parport_claim_or_block - claim the parallel port for a device
537 ----------------------------------------------------------------------------
555 interruptibly or non-interruptibly.)
572 -EAGAIN The port is unavailable at the moment, but another attempt
582 parport_release - release the parallel port
583 -------------------------------------------
610 written = dev->port->ops->write_ecp_data (dev->port, buf,
624 parport_yield, parport_yield_blocking - temporarily release a parallel port
625 ---------------------------------------------------------------------------
653 A return value of -EAGAIN indicates that the caller no longer owns the
654 port, and it must be re-claimed before use.
660 -EAGAIN Ownership of the parallel port was given away.
670 parport_wait_peripheral - wait for status lines, up to 35ms
671 -----------------------------------------------------------
693 -EINTR a signal is pending
705 parport_poll_peripheral - wait for status lines, in usec
706 --------------------------------------------------------
729 -EINTR a signal is pending
741 parport_wait_event - wait for an event on a port
742 ------------------------------------------------
768 parport_negotiate - perform IEEE 1284 negotiation
769 -------------------------------------------------
778 int parport_negotiate (struct parport *, int mode);
789 0 handshake OK; IEEE 1284 peripheral and mode available
790 -1 handshake failed; peripheral not compliant (or none present)
791 1 handshake OK; IEEE 1284 peripheral present but mode not
802 parport_read - read data from device
803 ------------------------------------
817 Read data from device in current IEEE 1284 transfer mode. This only
832 parport_write - write data to device
833 ------------------------------------
847 Write data to device in current IEEE 1284 transfer mode. This only
862 parport_open - register device for particular device number
863 -----------------------------------------------------------
898 parport_close - unregister device for particular device number
899 --------------------------------------------------------------
922 parport_device_id - obtain IEEE 1284 Device ID
923 ----------------------------------------------
949 ID, and are in big-endian order. The ID is a sequence of pairs of the
957 Many devices have ill-formed IEEE 1284 Device IDs.
966 parport_device_coords - convert device number to device coordinates
967 -------------------------------------------------------------------
982 Convert between device number (zero-based) and device coordinates
998 parport_find_class - find a device by its class
999 -----------------------------------------------
1009 PARPORT_CLASS_LEGACY = 0, /* Non-IEEE1284 device */
1035 The device number of the next device in that class, or -1 if no such
1043 int devnum = -1;
1044 while ((devnum = parport_find_class (PARPORT_CLASS_DIGCAM, devnum)) != -1) {
1056 parport_find_device - find a device by its class
1057 ------------------------------------------------
1078 -1 if no such device exists.
1085 int devnum = -1;
1086 while ((devnum = parport_find_device ("IOMEGA", "ZIP+", devnum)) != -1) {
1098 parport_set_timeout - set the inactivity timeout
1099 ------------------------------------------------
1124 Some of the port->ops functions for a parport may take time, owing to
1140 port->ops->xxx_read/write_yyy
1148 The functions in the port->ops structure (struct parport_operations)
1149 are provided by the low-level driver responsible for that port.
1151 port->ops->read_data - read the data register
1152 ---------------------------------------------
1170 If port->modes contains the PARPORT_MODE_TRISTATE flag and the
1172 returns the value on the data pins. If port->modes contains the
1184 port->ops->write_data - write the data register
1185 -----------------------------------------------
1203 Writes to the data register. May have side-effects (a STROBE pulse,
1213 port->ops->read_status - read the status register
1214 -------------------------------------------------
1234 - PARPORT_STATUS_ERROR (printer fault, "nFault")
1235 - PARPORT_STATUS_SELECT (on-line, "Select")
1236 - PARPORT_STATUS_PAPEROUT (no paper, "PError")
1237 - PARPORT_STATUS_ACK (handshake, "nAck")
1238 - PARPORT_STATUS_BUSY (busy, "Busy")
1249 port->ops->read_control - read the control register
1250 ---------------------------------------------------
1278 port->ops->write_control - write the control register
1279 -----------------------------------------------------
1300 - PARPORT_CONTROL_STROBE (nStrobe)
1302 - PARPORT_CONTROL_AUTOFD (nAutoFd)
1304 - PARPORT_CONTROL_INIT (nInit)
1306 - PARPORT_CONTROL_SELECT (nSelectIn)
1315 port->ops->frob_control - write control register bits
1316 -----------------------------------------------------
1337 the bits in mask, exclusive-or'ing with the bits in val, and writing
1351 port->ops->enable_irq - enable interrupt generation
1352 ---------------------------------------------------
1372 architecture-specific. For the PC architecture, interrupts are
1382 port->ops->disable_irq - disable interrupt generation
1383 -----------------------------------------------------
1411 port->ops->data_forward - enable data drivers
1412 ---------------------------------------------
1430 Enables the data line drivers, for 8-bit host-to-peripheral
1440 port->ops->data_reverse - tristate the buffer
1441 ---------------------------------------------
1459 Places the data bus in a high impedance state, if port->modes has the
1469 port->ops->epp_write_data - write EPP data
1470 ------------------------------------------
1489 Writes data in EPP mode, and returns the number of bytes written.
1492 bitwise-or'ed together:
1495 PARPORT_EPP_FAST Use fast transfers. Some chips provide 16-bit and
1496 32-bit registers. However, if a transfer
1507 port->ops->epp_read_data - read EPP data
1508 ----------------------------------------
1527 Reads data in EPP mode, and returns the number of bytes read.
1530 bitwise-or'ed together:
1533 PARPORT_EPP_FAST Use fast transfers. Some chips provide 16-bit and
1534 32-bit registers. However, if a transfer
1545 port->ops->epp_write_addr - write EPP address
1546 ---------------------------------------------
1568 bitwise-or'ed together:
1571 PARPORT_EPP_FAST Use fast transfers. Some chips provide 16-bit and
1572 32-bit registers. However, if a transfer
1585 port->ops->epp_read_addr - read EPP address
1586 -------------------------------------------
1608 bitwise-or'ed together:
1611 PARPORT_EPP_FAST Use fast transfers. Some chips provide 16-bit and
1612 32-bit registers. However, if a transfer
1625 port->ops->ecp_write_data - write a block of ECP data
1626 -----------------------------------------------------
1659 port->ops->ecp_read_data - read a block of ECP data
1660 ---------------------------------------------------
1694 port->ops->ecp_write_addr - write a block of ECP addresses
1695 ----------------------------------------------------------
1733 port->ops->nibble_read_data - read a block of data in nibble mode
1734 -----------------------------------------------------------------
1753 Reads a block of data in nibble mode. The ``flags`` parameter is ignored.
1767 port->ops->byte_read_data - read a block of data in byte mode
1768 -------------------------------------------------------------
1787 Reads a block of data in byte mode. The ``flags`` parameter is ignored.
1801 port->ops->compat_write_data - write a block of data in compatibility mode
1802 --------------------------------------------------------------------------
1821 Writes a block of data in compatibility mode. The ``flags`` parameter