/* * Prolific PL-2301/PL-2302 driver ... http://www.prolific.com.tw/ * * The protocol and handshaking used here should be bug-compatible * with the Linux 2.2 "plusb" driver, by Deti Fliegl. * * HEADS UP: this handshaking isn't all that robust. This driver * gets confused easily if you unplug one end of the cable then * try to connect it again; you'll need to restart both ends. The * "naplink" software (used by some PlayStation/2 developers) does * the handshaking much better! Also, sometimes this hardware * seems to get wedged under load. Prolific docs are weak, and * don't identify differences between PL2301 and PL2302, much less * anything to explain the different PL2302 versions observed. * * NOTE: pl2501 has several modes, including pl2301 and pl2302 * compatibility. Some docs suggest the difference between 2301 * and 2302 is only to make MS-Windows use a different driver... * * pl25a1 glue based on patch from Tony Gibbs. Prolific "docs" on * this chip are as usual incomplete about what control messages * are supported.
*/
/* * Bits 0-4 can be used for software handshaking; they're set from * one end, cleared from the other, "read" with the interrupt byte.
*/ #define PL_S_EN (1<<7) /* (feature only) suspend enable */ /* reserved bit -- rx ready (6) ? */ #define PL_TX_READY (1<<5) /* (interrupt only) transmit ready */ #define PL_RESET_OUT (1<<4) /* reset output pipe */ #define PL_RESET_IN (1<<3) /* reset input pipe */ #define PL_TX_C (1<<2) /* transmission complete */ #define PL_TX_REQ (1<<1) /* transmission received */ #define PL_PEER_E (1<<0) /* peer exists */
staticint pl_reset(struct usbnet *dev)
{ int status;
/* some units seem to need this reset, others reject it utterly. * FIXME be more like "naplink" or windows drivers.
*/
status = pl_set_QuickLink_features(dev,
PL_S_EN|PL_RESET_OUT|PL_RESET_IN|PL_PEER_E); if (status != 0 && netif_msg_probe(dev))
netif_dbg(dev, link, dev->net, "pl_reset --> %d\n", status); return0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.