--- researchv9/sys/sundev/zs_common.c 2018/04/24 17:21:59 1.1 +++ researchv9/sys/sundev/zs_common.c 2018/04/24 17:30:56 1.1.1.2 @@ -26,6 +26,7 @@ static char sccsid[] = "@(#)zs_common.c #include "../sundev/mbvar.h" #include "../sundev/zsreg.h" #include "../sundev/zscom.h" +#include "../sundev/zsvar.h" #define NZSLINE (2*NZS) struct zscom zscom[NZSLINE]; @@ -49,7 +50,7 @@ struct mb_driver zsdriver = { 2 * sizeof(struct zscc_device), "zs", zs_info, 0, 0, 0, }; -char zssoftCAR[NZSLINE]; +int zssoftflags[NZSLINE]; /*ARGSUSED*/ zsprobe(reg, unit) @@ -205,7 +206,8 @@ zsattach(md) zscurr = zs; } zs->zs_unit = md->md_unit * 2 + i; - zssoftCAR[zs->zs_unit] = md->md_flags & (1 << i); + zssoftflags[zs->zs_unit] = (md->md_flags & (1 << i)) ? 1 : 0; + zssoftflags[zs->zs_unit] |= (md->md_flags & ZS_KBDMS); for (j=0; zs_proto[j]; j++) { zso = zs_proto[j]; (*zso->zsop_attach)(zs, speed[i]);