Use the UE_GET_XFERTYPE macro.

This commit is contained in:
Josef Karthauser 2002-04-06 21:28:57 +00:00
parent 12b1cc8f72
commit 6a69a08a22
3 changed files with 9 additions and 9 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}