#include "../lib/list.h"
#include "../../malloc.h"
#include "../../bootmii_ppc.h" //printf
+#include "../../string.h" //memset
/**
* Initialize USB stack.
u8 runloop = 1;
u16 restlength = irp->len;
char *td_buf_ptr = irp->buffer;
+ char mybuf[64];
//u8 togl=irp->dev->epTogl[(irp->endpoint & 0x7F)];
u8 togl = irp->dev->epTogl[(irp->endpoint & 0x7F)];
td->pid = USB_PID_SETUP;
td->buffer = irp->buffer;
td->actlen = 8; /* control message are always 8 bytes */
+ memcpy(mybuf, td->buffer, td->actlen);
togl = 0;
td->togl = togl; /* start with data0 */
else
togl = 0;
/**** send token ****/
+ printf("togl: %d\n", togl);
hcdi_enqueue(td);
+#if 0
+ memcpy(td->buffer, mybuf, td->actlen);
+#endif
/***************** Data Stage ***********************/
/**
}
/**** send token ****/
+ printf("togl: %d\n", togl);
hcdi_enqueue(td);
/* pruefe ob noch weitere Pakete vom Device abgeholt werden muessen */
td->pid = USB_PID_IN;
}
/**** send token ****/
+ printf("togl: %d\n", togl);
hcdi_enqueue(td);
free(td);
else
togl = 0;
/**** send token ****/
+ printf("togl: %d\n", togl);
hcdi_enqueue(td);
free(td);
}