From ac28199ccab741774252b16387aabb70d7abdbcc Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 29 Mar 2018 15:58:49 +0000 Subject: [PATCH] GC never enabled support for SIOCGADDRROM and SIOCGCHIPID. When de(4) was imported in 1997 the world was not ready for these ioctls. In over 20 years that hasn't changed so it seems safe to assume their time will never come. Reviewed by: imp, jhb Approved by: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14889 --- sys/dev/de/if_de.c | 12 ------------ sys/dev/de/if_devar.h | 5 ----- 2 files changed, 17 deletions(-) diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 0393bc5d1e8..8c1912cbbb1 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -4266,18 +4266,6 @@ tulip_ifioctl(struct ifnet * ifp, u_long cmd, caddr_t data) break; } -#ifdef SIOCGADDRROM - case SIOCGADDRROM: { - error = copyout(sc->tulip_rombuf, ifr->ifr_data, sizeof(sc->tulip_rombuf)); - break; - } -#endif -#ifdef SIOCGCHIPID - case SIOCGCHIPID: { - ifr->ifr_metric = (int) sc->tulip_chipid; - break; - } -#endif default: { error = ether_ioctl(ifp, cmd, data); break; diff --git a/sys/dev/de/if_devar.h b/sys/dev/de/if_devar.h index c2aeeb2b843..07aa0995608 100644 --- a/sys/dev/de/if_devar.h +++ b/sys/dev/de/if_devar.h @@ -876,11 +876,6 @@ static const struct { #define TULIP_TXMAP_POSTSYNC(ri, di) \ _TULIP_MAP_SYNC(ri, di, BUS_DMASYNC_POSTWRITE) -#ifdef notyet -#define SIOCGADDRROM _IOW('i', 240, struct ifreq) /* get 128 bytes of ROM */ -#define SIOCGCHIPID _IOWR('i', 241, struct ifreq) /* get chipid */ -#endif - #if defined(TULIP_HDR_DATA) static tulip_softc_t *tulips[TULIP_MAX_DEVICES]; #endif