123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914 |
- #include <linux/module.h>
- #include <linux/parport.h>
- #include <linux/delay.h>
- #include <linux/sched.h>
- #include <asm/uaccess.h>
- #undef DEBUG
- #ifdef CONFIG_LP_CONSOLE
- #undef DEBUG
- #endif
- #ifdef DEBUG
- #define DPRINTK(stuff...) printk (stuff)
- #else
- #define DPRINTK(stuff...)
- #endif
- size_t parport_ieee1284_write_compat (struct parport *port,
- const void *buffer, size_t len,
- int flags)
- {
- int no_irq = 1;
- ssize_t count = 0;
- const unsigned char *addr = buffer;
- unsigned char byte;
- struct pardevice *dev = port->physport->cad;
- unsigned char ctl = (PARPORT_CONTROL_SELECT
- | PARPORT_CONTROL_INIT);
- if (port->irq != PARPORT_IRQ_NONE) {
- parport_enable_irq (port);
- no_irq = 0;
- }
- port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA;
- parport_write_control (port, ctl);
- parport_data_forward (port);
- while (count < len) {
- unsigned long expire = jiffies + dev->timeout;
- long wait = msecs_to_jiffies(10);
- unsigned char mask = (PARPORT_STATUS_ERROR
- | PARPORT_STATUS_BUSY);
- unsigned char val = (PARPORT_STATUS_ERROR
- | PARPORT_STATUS_BUSY);
-
- do {
-
- if (!parport_wait_peripheral (port, mask, val))
-
- goto ready;
-
- if ((parport_read_status (port) &
- (PARPORT_STATUS_PAPEROUT |
- PARPORT_STATUS_SELECT |
- PARPORT_STATUS_ERROR))
- != (PARPORT_STATUS_SELECT |
- PARPORT_STATUS_ERROR))
-
- goto stop;
-
- if (!time_before (jiffies, expire))
- break;
-
- if (count && no_irq) {
- parport_release (dev);
- schedule_timeout_interruptible(wait);
- parport_claim_or_block (dev);
- }
- else
-
- parport_wait_event (port, wait);
-
- if (signal_pending (current))
- break;
-
- wait *= 2;
- } while (time_before (jiffies, expire));
- if (signal_pending (current))
- break;
- DPRINTK (KERN_DEBUG "%s: Timed out\n", port->name);
- break;
- ready:
-
- byte = *addr++;
- parport_write_data (port, byte);
- udelay (1);
-
- parport_write_control (port, ctl | PARPORT_CONTROL_STROBE);
- udelay (1);
- parport_write_control (port, ctl);
- udelay (1);
-
- count++;
-
- if (time_before (jiffies, expire))
- if (!parport_yield_blocking (dev)
- && need_resched())
- schedule ();
- }
- stop:
- port->physport->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
- return count;
- }
- size_t parport_ieee1284_read_nibble (struct parport *port,
- void *buffer, size_t len,
- int flags)
- {
- #ifndef CONFIG_PARPORT_1284
- return 0;
- #else
- unsigned char *buf = buffer;
- int i;
- unsigned char byte = 0;
- len *= 2;
- for (i=0; i < len; i++) {
- unsigned char nibble;
-
- if (((i & 1) == 0) &&
- (parport_read_status(port) & PARPORT_STATUS_ERROR)) {
- goto end_of_data;
- }
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
-
- port->ieee1284.phase = IEEE1284_PH_REV_DATA;
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_ACK, 0)) {
-
- DPRINTK (KERN_DEBUG
- "%s: Nibble timeout at event 9 (%d bytes)\n",
- port->name, i/2);
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
- break;
- }
-
- nibble = parport_read_status (port) >> 3;
- nibble &= ~8;
- if ((nibble & 0x10) == 0)
- nibble |= 8;
- nibble &= 0xf;
-
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
-
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_ACK,
- PARPORT_STATUS_ACK)) {
-
- DPRINTK (KERN_DEBUG
- "%s: Nibble timeout at event 11\n",
- port->name);
- break;
- }
- if (i & 1) {
-
- byte |= nibble << 4;
- *buf++ = byte;
- } else
- byte = nibble;
- }
- if (i == len) {
-
- if (parport_read_status (port) & PARPORT_STATUS_ERROR) {
- end_of_data:
- DPRINTK (KERN_DEBUG
- "%s: No more nibble data (%d bytes)\n",
- port->name, i/2);
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
- port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE;
- }
- else
- port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL;
- }
- return i/2;
- #endif
- }
- size_t parport_ieee1284_read_byte (struct parport *port,
- void *buffer, size_t len,
- int flags)
- {
- #ifndef CONFIG_PARPORT_1284
- return 0;
- #else
- unsigned char *buf = buffer;
- ssize_t count = 0;
- for (count = 0; count < len; count++) {
- unsigned char byte;
-
- if (parport_read_status (port) & PARPORT_STATUS_ERROR) {
- goto end_of_data;
- }
-
- parport_data_reverse (port);
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
-
- port->physport->ieee1284.phase = IEEE1284_PH_REV_DATA;
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_ACK,
- 0)) {
-
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD,
- 0);
- DPRINTK (KERN_DEBUG "%s: Byte timeout at event 9\n",
- port->name);
- break;
- }
- byte = parport_read_data (port);
- *buf++ = byte;
-
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
-
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_ACK,
- PARPORT_STATUS_ACK)) {
-
- DPRINTK (KERN_DEBUG "%s: Byte timeout at event 11\n",
- port->name);
- break;
- }
-
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE,
- PARPORT_CONTROL_STROBE);
- udelay (5);
-
- parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
- }
- if (count == len) {
-
- if (parport_read_status (port) & PARPORT_STATUS_ERROR) {
- end_of_data:
- DPRINTK (KERN_DEBUG
- "%s: No more byte data (%Zd bytes)\n",
- port->name, count);
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
- port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE;
- }
- else
- port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL;
- }
- return count;
- #endif
- }
- #ifdef CONFIG_PARPORT_1284
- static inline
- int ecp_forward_to_reverse (struct parport *port)
- {
- int retval;
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
- parport_data_reverse (port);
- udelay (5);
-
- parport_frob_control (port,
- PARPORT_CONTROL_INIT,
- 0);
-
- retval = parport_wait_peripheral (port,
- PARPORT_STATUS_PAPEROUT, 0);
- if (!retval) {
- DPRINTK (KERN_DEBUG "%s: ECP direction: reverse\n",
- port->name);
- port->ieee1284.phase = IEEE1284_PH_REV_IDLE;
- } else {
- DPRINTK (KERN_DEBUG "%s: ECP direction: failed to reverse\n",
- port->name);
- port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN;
- }
- return retval;
- }
- static inline
- int ecp_reverse_to_forward (struct parport *port)
- {
- int retval;
-
- parport_frob_control (port,
- PARPORT_CONTROL_INIT
- | PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_INIT
- | PARPORT_CONTROL_AUTOFD);
-
- retval = parport_wait_peripheral (port,
- PARPORT_STATUS_PAPEROUT,
- PARPORT_STATUS_PAPEROUT);
- if (!retval) {
- parport_data_forward (port);
- DPRINTK (KERN_DEBUG "%s: ECP direction: forward\n",
- port->name);
- port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
- } else {
- DPRINTK (KERN_DEBUG
- "%s: ECP direction: failed to switch forward\n",
- port->name);
- port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN;
- }
- return retval;
- }
- #endif
- size_t parport_ieee1284_ecp_write_data (struct parport *port,
- const void *buffer, size_t len,
- int flags)
- {
- #ifndef CONFIG_PARPORT_1284
- return 0;
- #else
- const unsigned char *buf = buffer;
- size_t written;
- int retry;
- port = port->physport;
- if (port->ieee1284.phase != IEEE1284_PH_FWD_IDLE)
- if (ecp_reverse_to_forward (port))
- return 0;
- port->ieee1284.phase = IEEE1284_PH_FWD_DATA;
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD
- | PARPORT_CONTROL_STROBE
- | PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
- for (written = 0; written < len; written++, buf++) {
- unsigned long expire = jiffies + port->cad->timeout;
- unsigned char byte;
- byte = *buf;
- try_again:
- parport_write_data (port, byte);
- parport_frob_control (port, PARPORT_CONTROL_STROBE,
- PARPORT_CONTROL_STROBE);
- udelay (5);
- for (retry = 0; retry < 100; retry++) {
- if (!parport_wait_peripheral (port,
- PARPORT_STATUS_BUSY, 0))
- goto success;
- if (signal_pending (current)) {
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE,
- 0);
- break;
- }
- }
-
- DPRINTK (KERN_DEBUG "%s: ECP transfer stalled!\n", port->name);
- parport_frob_control (port, PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
- udelay (50);
- if (parport_read_status (port) & PARPORT_STATUS_PAPEROUT) {
-
- parport_frob_control (port, PARPORT_CONTROL_INIT, 0);
- break;
- }
- parport_frob_control (port, PARPORT_CONTROL_INIT, 0);
- udelay (50);
- if (!(parport_read_status (port) & PARPORT_STATUS_PAPEROUT))
- break;
- DPRINTK (KERN_DEBUG "%s: Host transfer recovered\n",
- port->name);
- if (time_after_eq (jiffies, expire)) break;
- goto try_again;
- success:
- parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
- udelay (5);
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY))
-
- break;
- }
- port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
- return written;
- #endif
- }
- size_t parport_ieee1284_ecp_read_data (struct parport *port,
- void *buffer, size_t len, int flags)
- {
- #ifndef CONFIG_PARPORT_1284
- return 0;
- #else
- struct pardevice *dev = port->cad;
- unsigned char *buf = buffer;
- int rle_count = 0;
- unsigned char ctl;
- int rle = 0;
- ssize_t count = 0;
- port = port->physport;
- if (port->ieee1284.phase != IEEE1284_PH_REV_IDLE)
- if (ecp_forward_to_reverse (port))
- return 0;
- port->ieee1284.phase = IEEE1284_PH_REV_DATA;
-
- ctl = parport_read_control (port);
- ctl &= ~(PARPORT_CONTROL_STROBE | PARPORT_CONTROL_INIT |
- PARPORT_CONTROL_AUTOFD);
- parport_write_control (port,
- ctl | PARPORT_CONTROL_AUTOFD);
- while (count < len) {
- unsigned long expire = jiffies + dev->timeout;
- unsigned char byte;
- int command;
-
- while (parport_wait_peripheral (port, PARPORT_STATUS_ACK, 0)) {
-
- if (count)
- goto out;
-
- if (!time_before (jiffies, expire))
- goto out;
-
- if (count && dev->port->irq != PARPORT_IRQ_NONE) {
- parport_release (dev);
- schedule_timeout_interruptible(msecs_to_jiffies(40));
- parport_claim_or_block (dev);
- }
- else
-
- parport_wait_event (port, msecs_to_jiffies(40));
-
- if (signal_pending (current))
- goto out;
- }
-
- if (rle)
-
- command = 0;
- else
- command = (parport_read_status (port) &
- PARPORT_STATUS_BUSY) ? 1 : 0;
-
- byte = parport_read_data (port);
-
- if (command) {
- if (byte & 0x80) {
- DPRINTK (KERN_DEBUG "%s: stopping short at "
- "channel command (%02x)\n",
- port->name, byte);
- goto out;
- }
- else if (port->ieee1284.mode != IEEE1284_MODE_ECPRLE)
- DPRINTK (KERN_DEBUG "%s: device illegally "
- "using RLE; accepting anyway\n",
- port->name);
- rle_count = byte + 1;
-
- if (rle_count > (len - count)) {
- DPRINTK (KERN_DEBUG "%s: leaving %d RLE bytes "
- "for next time\n", port->name,
- rle_count);
- break;
- }
- rle = 1;
- }
-
- parport_write_control (port, ctl);
-
- if (parport_wait_peripheral (port, PARPORT_STATUS_ACK,
- PARPORT_STATUS_ACK)) {
-
- DPRINTK (KERN_DEBUG "ECP read timed out at 45\n");
- if (command)
- printk (KERN_WARNING
- "%s: command ignored (%02x)\n",
- port->name, byte);
- break;
- }
-
- parport_write_control (port,
- ctl | PARPORT_CONTROL_AUTOFD);
-
- if (command)
- continue;
-
- if (rle) {
- rle = 0;
- memset (buf, byte, rle_count);
- buf += rle_count;
- count += rle_count;
- DPRINTK (KERN_DEBUG "%s: decompressed to %d bytes\n",
- port->name, rle_count);
- } else {
-
- *buf = byte;
- buf++, count++;
- }
- }
- out:
- port->ieee1284.phase = IEEE1284_PH_REV_IDLE;
- return count;
- #endif
- }
- size_t parport_ieee1284_ecp_write_addr (struct parport *port,
- const void *buffer, size_t len,
- int flags)
- {
- #ifndef CONFIG_PARPORT_1284
- return 0;
- #else
- const unsigned char *buf = buffer;
- size_t written;
- int retry;
- port = port->physport;
- if (port->ieee1284.phase != IEEE1284_PH_FWD_IDLE)
- if (ecp_reverse_to_forward (port))
- return 0;
- port->ieee1284.phase = IEEE1284_PH_FWD_DATA;
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD
- | PARPORT_CONTROL_STROBE
- | PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_AUTOFD
- | PARPORT_CONTROL_INIT);
- for (written = 0; written < len; written++, buf++) {
- unsigned long expire = jiffies + port->cad->timeout;
- unsigned char byte;
- byte = *buf;
- try_again:
- parport_write_data (port, byte);
- parport_frob_control (port, PARPORT_CONTROL_STROBE,
- PARPORT_CONTROL_STROBE);
- udelay (5);
- for (retry = 0; retry < 100; retry++) {
- if (!parport_wait_peripheral (port,
- PARPORT_STATUS_BUSY, 0))
- goto success;
- if (signal_pending (current)) {
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE,
- 0);
- break;
- }
- }
-
- DPRINTK (KERN_DEBUG "%s: ECP transfer stalled!\n", port->name);
- parport_frob_control (port, PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
- udelay (50);
- if (parport_read_status (port) & PARPORT_STATUS_PAPEROUT) {
-
- parport_frob_control (port, PARPORT_CONTROL_INIT, 0);
- break;
- }
- parport_frob_control (port, PARPORT_CONTROL_INIT, 0);
- udelay (50);
- if (!(parport_read_status (port) & PARPORT_STATUS_PAPEROUT))
- break;
- DPRINTK (KERN_DEBUG "%s: Host transfer recovered\n",
- port->name);
- if (time_after_eq (jiffies, expire)) break;
- goto try_again;
- success:
- parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
- udelay (5);
- if (parport_wait_peripheral (port,
- PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY))
-
- break;
- }
- port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
- return written;
- #endif
- }
- size_t parport_ieee1284_epp_write_data (struct parport *port,
- const void *buffer, size_t len,
- int flags)
- {
- unsigned char *bp = (unsigned char *) buffer;
- size_t ret = 0;
-
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_AUTOFD |
- PARPORT_CONTROL_SELECT |
- PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_INIT);
- port->ops->data_forward (port);
- for (; len > 0; len--, bp++) {
-
- parport_write_data (port, *bp);
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY, 0, 10))
- break;
-
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY, 5))
- break;
- ret++;
- }
-
- parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
- return ret;
- }
- size_t parport_ieee1284_epp_read_data (struct parport *port,
- void *buffer, size_t len,
- int flags)
- {
- unsigned char *bp = (unsigned char *) buffer;
- unsigned ret = 0;
-
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_AUTOFD |
- PARPORT_CONTROL_SELECT |
- PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
- port->ops->data_reverse (port);
- for (; len > 0; len--, bp++) {
-
- parport_frob_control (port,
- PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
-
- if (parport_wait_peripheral (port, PARPORT_STATUS_BUSY, 0)) {
- break;
- }
- *bp = parport_read_data (port);
-
- parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY, 5)) {
- break;
- }
- ret++;
- }
- port->ops->data_forward (port);
- return ret;
- }
- size_t parport_ieee1284_epp_write_addr (struct parport *port,
- const void *buffer, size_t len,
- int flags)
- {
- unsigned char *bp = (unsigned char *) buffer;
- size_t ret = 0;
-
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_AUTOFD |
- PARPORT_CONTROL_SELECT |
- PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_INIT);
- port->ops->data_forward (port);
- for (; len > 0; len--, bp++) {
-
- parport_write_data (port, *bp);
- parport_frob_control (port, PARPORT_CONTROL_SELECT,
- PARPORT_CONTROL_SELECT);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY, 0, 10))
- break;
-
- parport_frob_control (port, PARPORT_CONTROL_SELECT, 0);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY, 5))
- break;
- ret++;
- }
-
- parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
- return ret;
- }
- size_t parport_ieee1284_epp_read_addr (struct parport *port,
- void *buffer, size_t len,
- int flags)
- {
- unsigned char *bp = (unsigned char *) buffer;
- unsigned ret = 0;
-
- parport_frob_control (port,
- PARPORT_CONTROL_STROBE |
- PARPORT_CONTROL_AUTOFD |
- PARPORT_CONTROL_SELECT |
- PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
- port->ops->data_reverse (port);
- for (; len > 0; len--, bp++) {
-
- parport_frob_control (port, PARPORT_CONTROL_SELECT,
- PARPORT_CONTROL_SELECT);
-
- if (parport_wait_peripheral (port, PARPORT_STATUS_BUSY, 0)) {
- break;
- }
- *bp = parport_read_data (port);
-
- parport_frob_control (port, PARPORT_CONTROL_SELECT,
- 0);
-
- if (parport_poll_peripheral (port, PARPORT_STATUS_BUSY,
- PARPORT_STATUS_BUSY, 5))
- break;
- ret++;
- }
- port->ops->data_forward (port);
- return ret;
- }
- EXPORT_SYMBOL(parport_ieee1284_ecp_write_data);
- EXPORT_SYMBOL(parport_ieee1284_ecp_read_data);
- EXPORT_SYMBOL(parport_ieee1284_ecp_write_addr);
- EXPORT_SYMBOL(parport_ieee1284_write_compat);
- EXPORT_SYMBOL(parport_ieee1284_read_nibble);
- EXPORT_SYMBOL(parport_ieee1284_read_byte);
- EXPORT_SYMBOL(parport_ieee1284_epp_write_data);
- EXPORT_SYMBOL(parport_ieee1284_epp_read_data);
- EXPORT_SYMBOL(parport_ieee1284_epp_write_addr);
- EXPORT_SYMBOL(parport_ieee1284_epp_read_addr);
|