git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/USB - Interrupt endpoints work
[tpg/acess2.git]
/
KernelLand
/
Modules
/
USB
/
Core
/
usb_io.c
diff --git
a/KernelLand/Modules/USB/Core/usb_io.c
b/KernelLand/Modules/USB/Core/usb_io.c
index
745e8a6
..
a1bf50b
100644
(file)
--- a/
KernelLand/Modules/USB/Core/usb_io.c
+++ b/
KernelLand/Modules/USB/Core/usb_io.c
@@
-11,16
+11,7
@@
#include "usb.h"
#include "usb_lowlevel.h"
#include <workqueue.h>
#include "usb.h"
#include "usb_lowlevel.h"
#include <workqueue.h>
-
-typedef struct sAsyncOp tAsyncOp;
-
-struct sAsyncOp
-{
- tAsyncOp *Next;
- tUSBEndpoint *Endpt;
- int Length;
- void *Data;
-};
+#include "usb_async.h"
// === PROTOTYPES ===
void USB_ReadDescriptor(tUSBInterface *Iface, int Type, int Index, int Length, void *Data);
// === PROTOTYPES ===
void USB_ReadDescriptor(tUSBInterface *Iface, int Type, int Index, int Length, void *Data);
@@
-115,6
+106,8
@@
void USB_AsyncThread(void *Unused)
iface->Driver->Endpoints[op->Endpt->EndpointIdx].DataAvail(
iface, op->Endpt->EndpointIdx,
op->Length, op->Data);
iface->Driver->Endpoints[op->Endpt->EndpointIdx].DataAvail(
iface, op->Endpt->EndpointIdx,
op->Length, op->Data);
+
+ free(op);
}
}
}
}
UCC
git Repository :: git.ucc.asn.au