diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-24 03:54:06 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-24 03:54:06 +0000 |
commit | 83d5e8227c6bc7ec5ba7902e510371317b4871cd (patch) | |
tree | 0df7cdb0c35278bd8943ee7c7192a310a862dfc9 /sys/dev/usb | |
parent | 31ef714a48885f21166b3f70a425f73aa6563949 (diff) |
remove unused usbdi functions
ok mpi@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usbdi_util.c | 41 | ||||
-rw-r--r-- | sys/dev/usb/usbdi_util.h | 5 |
2 files changed, 2 insertions, 44 deletions
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 $ */ @@ -84,19 +84,6 @@ usbd_get_device_status(struct usbd_device *dev, usb_status_t *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) { @@ -140,32 +127,6 @@ usbd_get_port_status(struct usbd_device *dev, int port, usb_port_status_t *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) { usb_device_request_t req; 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 *, |