13 void USB_MakeToken(void *Buf, int PID, int Addr, int EndP)
19 tok[1] = (Addr & 0x7F) | ((EndP&1)<<7);
20 tok[2] = ((EndP >> 1) & 0x7) | crc;
24 void USB_SendData(int Controller, int Dev, int Endpoint, void *Data, int Length)
26 Uint8 buf[Length+3+2/*?*/];
28 USB_MakeToken(buf, PID_DATA0, Dev, Endpoint);
30 switch(Controller & 0xF00)
33 UHCI_SendPacket(Controller & 0xFF);