diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-07-06 10:00:48 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-07-06 10:00:48 +0000 |
commit | ece6773fa9ef61887a6b2bbdec26806110577919 (patch) | |
tree | 811f580e9bfbb89caaa561e0f5a0db8f0945ec04 /sys/dev/usb/udcf.c | |
parent | e64be731cc85ef85b75803cec931b8d443131774 (diff) |
Use UT_{READ|WRITE}_VENDOR_DEVICE instead of self defined values.
Diffstat (limited to 'sys/dev/usb/udcf.c')
-rw-r--r-- | sys/dev/usb/udcf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c index 3545c085485..9500b2cd58a 100644 --- a/sys/dev/usb/udcf.c +++ b/sys/dev/usb/udcf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udcf.c,v 1.42 2008/07/05 12:11:51 mbalmer Exp $ */ +/* $OpenBSD: udcf.c,v 1.43 2008/07/06 10:00:47 mbalmer Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org> @@ -42,10 +42,8 @@ int udcfdebug = 0; #endif #define DPRINTF(x) DPRINTFN(0, x) -#define UDCF_READ_REQ 0xc0 #define UDCF_READ_IDX 0x1f -#define UDCF_CTRL_REQ 0x40 #define UDCF_CTRL_IDX 0x33 #define UDCF_CTRL_VAL 0x98 @@ -418,13 +416,13 @@ udcf_nc_init_hw(struct udcf_softc *sc) int actlen; /* Prepare the USB request to probe the value */ - sc->sc_req.bmRequestType = UDCF_READ_REQ; + sc->sc_req.bmRequestType = UT_READ_VENDOR_DEVICE; sc->sc_req.bRequest = 1; USETW(sc->sc_req.wValue, 0); USETW(sc->sc_req.wIndex, UDCF_READ_IDX); USETW(sc->sc_req.wLength, 1); - req.bmRequestType = UDCF_CTRL_REQ; + req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = 0; USETW(req.wValue, 0); USETW(req.wIndex, 0); @@ -435,7 +433,7 @@ udcf_nc_init_hw(struct udcf_softc *sc) return -1; } - req.bmRequestType = UDCF_CTRL_REQ; + req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = 0; USETW(req.wValue, UDCF_CTRL_VAL); USETW(req.wIndex, UDCF_CTRL_IDX); |