diff options
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 17 | ||||
-rw-r--r-- | sys/alpha/tc/am7990.c | 10 |
2 files changed, 10 insertions, 17 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 04707f9..feec3f7 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -453,14 +453,17 @@ register_netisr(num, handler) return (0); } -void -netisr_sysinit(data) - void *data; +int +unregister_netisr(num) + int num; { - const struct netisrtab *nit; - - nit = (const struct netisrtab *)data; - register_netisr(nit->nit_num, nit->nit_isr); + + if (num < 0 || num >= (sizeof(netisrs)/sizeof(*netisrs)) ) { + printf("unregister_netisr: bad isr number: %d\n", num); + return (EINVAL); + } + netisrs[num] = NULL; + return (0); } /* diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c index 52d239b..1d3cb54 100644 --- a/sys/alpha/tc/am7990.c +++ b/sys/alpha/tc/am7990.c @@ -1019,16 +1019,6 @@ am7990_ioctl(ifp, cmd, data) } break; -#if defined(CCITT) && defined(LLC) - case SIOCSIFCONF_X25: - ifp->if_flags |= IFF_UP; - ifa->ifa_rtrequest = cons_rtrequest; /* XXX */ - error = x25_llcglue(PRC_IFUP, ifa->ifa_addr); - if (error == 0) - am7990_init(sc); - break; -#endif /* CCITT && LLC */ - case SIOCSIFFLAGS: if ((ifp->if_flags & IFF_UP) == 0 && (ifp->if_flags & IFF_RUNNING) != 0) { |