From: jsg Date: Wed, 24 Feb 2021 03:54:05 +0000 (+0000) Subject: remove unused usbdi functions X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b86efbae153b7b7b36707d5e2da03e2e056627a2;p=openbsd remove unused usbdi functions ok mpi@ --- diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c index 4b2cdc5f8b6..efb3ad72a95 100644 --- a/sys/dev/usb/usbdi_util.c +++ b/sys/dev/usb/usbdi_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi_util.c,v 1.45 2021/01/25 14:05:57 mglocker Exp $ */ +/* $OpenBSD: usbdi_util.c,v 1.46 2021/02/24 03:54:05 jsg Exp $ */ /* $NetBSD: usbdi_util.c,v 1.40 2002/07/11 21:14:36 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi_util.c,v 1.14 1999/11/17 22:33:50 n_hibma Exp $ */ @@ -83,19 +83,6 @@ usbd_get_device_status(struct usbd_device *dev, usb_status_t *st) return (usbd_do_request(dev, &req, st)); } -usbd_status -usbd_get_hub_status(struct usbd_device *dev, usb_hub_status_t *st) -{ - usb_device_request_t req; - - req.bmRequestType = UT_READ_CLASS_DEVICE; - req.bRequest = UR_GET_STATUS; - USETW(req.wValue, 0); - USETW(req.wIndex, 0); - USETW(req.wLength, sizeof(usb_hub_status_t)); - return (usbd_do_request(dev, &req, st)); -} - usbd_status usbd_get_hub_descriptor(struct usbd_device *dev, usb_hub_descriptor_t *hd, uint8_t nports) @@ -139,32 +126,6 @@ usbd_get_port_status(struct usbd_device *dev, int port, usb_port_status_t *ps) return (usbd_do_request(dev, &req, ps)); } -usbd_status -usbd_clear_hub_feature(struct usbd_device *dev, int sel) -{ - usb_device_request_t req; - - req.bmRequestType = UT_WRITE_CLASS_DEVICE; - req.bRequest = UR_CLEAR_FEATURE; - USETW(req.wValue, sel); - USETW(req.wIndex, 0); - USETW(req.wLength, 0); - return (usbd_do_request(dev, &req, 0)); -} - -usbd_status -usbd_set_hub_feature(struct usbd_device *dev, int sel) -{ - usb_device_request_t req; - - req.bmRequestType = UT_WRITE_CLASS_DEVICE; - req.bRequest = UR_SET_FEATURE; - USETW(req.wValue, sel); - USETW(req.wIndex, 0); - USETW(req.wLength, 0); - return (usbd_do_request(dev, &req, 0)); -} - usbd_status usbd_set_hub_depth(struct usbd_device *dev, int depth) { diff --git a/sys/dev/usb/usbdi_util.h b/sys/dev/usb/usbdi_util.h index 04c149bd51a..9a6f741ec73 100644 --- a/sys/dev/usb/usbdi_util.h +++ b/sys/dev/usb/usbdi_util.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi_util.h,v 1.30 2021/01/25 14:05:57 mglocker Exp $ */ +/* $OpenBSD: usbdi_util.h,v 1.31 2021/02/24 03:54:05 jsg Exp $ */ /* $NetBSD: usbdi_util.h,v 1.28 2002/07/11 21:14:36 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi_util.h,v 1.9 1999/11/17 22:33:50 n_hibma Exp $ */ @@ -37,13 +37,10 @@ usbd_status usbd_get_desc(struct usbd_device *dev, int type, usbd_status usbd_get_port_status(struct usbd_device *, int, usb_port_status_t *); usbd_status usbd_set_hub_depth(struct usbd_device *, int); -usbd_status usbd_set_hub_feature(struct usbd_device *dev, int); -usbd_status usbd_clear_hub_feature(struct usbd_device *, int); usbd_status usbd_set_port_feature(struct usbd_device *dev, int, int); usbd_status usbd_clear_port_feature(struct usbd_device *, int, int); usbd_status usbd_clear_endpoint_feature(struct usbd_device *, int, int); usbd_status usbd_get_device_status(struct usbd_device *, usb_status_t *); -usbd_status usbd_get_hub_status(struct usbd_device *, usb_hub_status_t *); usbd_status usbd_get_hub_descriptor(struct usbd_device *, usb_hub_descriptor_t *, uint8_t); usbd_status usbd_get_hub_ss_descriptor(struct usbd_device *,