summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-04-06 21:28:57 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-04-06 21:28:57 +0000
commit6a69a08a22d19c1ecc3ad2e8c5bd2f0b8676a7f9 (patch)
treebf870b88006db2c12e99f8dbf8a525b6ea6828a0
parent12b1cc8f72808638dec134055001c76e48c99bf6 (diff)
Notes
-rw-r--r--sys/dev/usb/if_aue.c6
-rw-r--r--sys/dev/usb/if_cue.c6
-rw-r--r--sys/dev/usb/if_kue.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index 17d2ef6bbf10..1b72df569916 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -688,13 +688,13 @@ USB_ATTACH(aue)
USB_ATTACH_ERROR_RETURN;
}
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->aue_ed[AUE_ENDPT_RX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->aue_ed[AUE_ENDPT_TX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
sc->aue_ed[AUE_ENDPT_INTR] = ed->bEndpointAddress;
}
}
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c
index 121a9e074560..bda1af46dc73 100644
--- a/sys/dev/usb/if_cue.c
+++ b/sys/dev/usb/if_cue.c
@@ -480,13 +480,13 @@ USB_ATTACH(cue)
USB_ATTACH_ERROR_RETURN;
}
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->cue_ed[CUE_ENDPT_RX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->cue_ed[CUE_ENDPT_TX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
sc->cue_ed[CUE_ENDPT_INTR] = ed->bEndpointAddress;
}
}
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c
index bd9a6b6d18fa..d061e04c023c 100644
--- a/sys/dev/usb/if_kue.c
+++ b/sys/dev/usb/if_kue.c
@@ -430,13 +430,13 @@ USB_ATTACH(kue)
USB_ATTACH_ERROR_RETURN;
}
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->kue_ed[KUE_ENDPT_RX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
sc->kue_ed[KUE_ENDPT_TX] = ed->bEndpointAddress;
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
- (ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
+ UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
sc->kue_ed[KUE_ENDPT_INTR] = ed->bEndpointAddress;
}
}