// SPDX-License-Identifier: GPL-2.0-or-later /* * (c) 1997-1998 Grant R. Guenther <grant@torque.net> * * dstr.c is a low-level protocol driver for the DataStor EP2000 parallel * to IDE adapter chip.
*/
/* * cont = 0 - access the IDE register file * cont = 1 - access the IDE command set
*/ staticint cont_map[2] = { 0x20, 0x40 };
staticint dstr_read_regr(struct pi_adapter *pi, int cont, int regr)
{ int a, b, r;
r = regr + cont_map[cont];
w0(0x81); P1; if (pi->mode)
w0(0x11); else
w0(1);
P2; w0(r); P1;
switch (pi->mode) { case 0:
w2(6); a = r1(); w2(4); w2(6); b = r1(); w2(4); return j44(a, b); case 1:
w0(0); w2(0x26); a = r0(); w2(4); return a; case 2: case 3: case 4:
w2(0x24); a = r4(); w2(4); return a;
}
return -1;
}
staticvoid dstr_write_regr(struct pi_adapter *pi, int cont, int regr, int val)
{ int r = regr + cont_map[cont];
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Grant R. Guenther ");
MODULE_DESCRIPTION("DataStor EP2000 parallel port IDE adapter protocol driver");
module_pata_parport_driver(dstr);
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.