1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

Remove some #if 0'd and commented-out code.

Fix a COMPAT_43 type.
This commit is contained in:
Brian Somers 1998-08-12 23:44:22 +00:00
parent c7323482f4
commit 28c1826359
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38294
2 changed files with 4 additions and 68 deletions

View File

@ -1,5 +1,5 @@
/*-
* dgb.c $Id: dgb.c,v 1.36 1998/06/07 17:09:53 dfr Exp $
* dgb.c $Id: dgb.c,v 1.37 1998/08/12 16:16:10 bde Exp $
*
* Digiboard driver.
*
@ -559,38 +559,7 @@ dgbattach(dev)
if(sc->type==PCXEVE) {
t=(((u_long)sc->pmem>>8) & 0xFFE0) | 0x10 /* enable windowing */;
/* IRQ isn't used */
#if 0
switch(dev->id_irq) {
case IRQ3:
t|=0x1;
break;
case IRQ5:
t|=2;
break;
case IRQ7:
t|=3;
break;
case IRQ10:
t|=4;
break;
case IRQ11:
t|=5;
break;
case IRQ12:
t|=6;
break;
case IRQ15:
t|=7;
break;
default:
printf("dgb%d: wrong IRQ mask 0x%x\n",dev->id_unit,dev->id_irq);
sc->status=DISABLED;
return 0;
}
#endif
outb(sc->port+2,t & 0xFF);
outb(sc->port+3,t>>8);
} else if(sc->type==PCXE) {
@ -1396,7 +1365,6 @@ dgbpoll(unit_c)
}
if(size) {
/*if (0) {*/
if (tp->t_state & TS_CAN_BYPASS_L_RINT) {
DPRINT1(DB_RXDATA,"!");
towin(sc,port->rxwin);
@ -1583,7 +1551,7 @@ dgbioctl(dev, cmd, data, flag, p)
int tiocm_xxx;
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
int oldcmd;
u_long oldcmd;
struct termios term;
#endif

View File

@ -1,5 +1,5 @@
/*-
* dgb.c $Id: dgb.c,v 1.36 1998/06/07 17:09:53 dfr Exp $
* dgb.c $Id: dgb.c,v 1.37 1998/08/12 16:16:10 bde Exp $
*
* Digiboard driver.
*
@ -559,38 +559,7 @@ dgbattach(dev)
if(sc->type==PCXEVE) {
t=(((u_long)sc->pmem>>8) & 0xFFE0) | 0x10 /* enable windowing */;
/* IRQ isn't used */
#if 0
switch(dev->id_irq) {
case IRQ3:
t|=0x1;
break;
case IRQ5:
t|=2;
break;
case IRQ7:
t|=3;
break;
case IRQ10:
t|=4;
break;
case IRQ11:
t|=5;
break;
case IRQ12:
t|=6;
break;
case IRQ15:
t|=7;
break;
default:
printf("dgb%d: wrong IRQ mask 0x%x\n",dev->id_unit,dev->id_irq);
sc->status=DISABLED;
return 0;
}
#endif
outb(sc->port+2,t & 0xFF);
outb(sc->port+3,t>>8);
} else if(sc->type==PCXE) {
@ -1396,7 +1365,6 @@ dgbpoll(unit_c)
}
if(size) {
/*if (0) {*/
if (tp->t_state & TS_CAN_BYPASS_L_RINT) {
DPRINT1(DB_RXDATA,"!");
towin(sc,port->rxwin);
@ -1583,7 +1551,7 @@ dgbioctl(dev, cmd, data, flag, p)
int tiocm_xxx;
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
int oldcmd;
u_long oldcmd;
struct termios term;
#endif