mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Fix USB.ZC pointer star formatting.
This commit is contained in:
parent
e46313a0dd
commit
1681e0d930
1 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ extern U0 USBEndAll();
|
||||||
extern U0 USBInitAll();
|
extern U0 USBInitAll();
|
||||||
extern U32 *USBAllocFrameLst(I64 usb_num, I64 size);
|
extern U32 *USBAllocFrameLst(I64 usb_num, I64 size);
|
||||||
|
|
||||||
U8* StatCB(CDoc *, CDocEntry *doc_e, CTask *mem_task)
|
U8 *StatCB(CDoc *, CDocEntry *doc_e, CTask *mem_task)
|
||||||
{
|
{
|
||||||
//This routine shows the stat of the USB ports
|
//This routine shows the stat of the USB ports
|
||||||
U8 *st = MAlloc(128, mem_task);
|
U8 *st = MAlloc(128, mem_task);
|
||||||
|
@ -185,7 +185,7 @@ U0 SetUpTD()
|
||||||
OutU16(d + USBP_PORTSC1, 4);
|
OutU16(d + USBP_PORTSC1, 4);
|
||||||
"<3>\n"; Sleep(100);
|
"<3>\n"; Sleep(100);
|
||||||
|
|
||||||
tds[0] = &tds[4](U8*);
|
tds[0] = &tds[4](U8 *);
|
||||||
tds[1] = 0;
|
tds[1] = 0;
|
||||||
tds[2] = PID_SETUP + DEV_ADD_INIT << 8 + END_PT0 << 15 + LEN_MAX << 21;
|
tds[2] = PID_SETUP + DEV_ADD_INIT << 8 + END_PT0 << 15 + LEN_MAX << 21;
|
||||||
tds[3] = buf;
|
tds[3] = buf;
|
||||||
|
@ -195,11 +195,11 @@ U0 SetUpTD()
|
||||||
tds[4] = TERMINATE;
|
tds[4] = TERMINATE;
|
||||||
tds[5] = 0;
|
tds[5] = 0;
|
||||||
tds[6] = PID_SETUP + DEV_ADD_INIT << 8 + END_PT0 << 15 + LEN_MAX << 21;
|
tds[6] = PID_SETUP + DEV_ADD_INIT << 8 + END_PT0 << 15 + LEN_MAX << 21;
|
||||||
tds[7] = buf(U8*) + 8;
|
tds[7] = buf(U8 *) + 8;
|
||||||
buf[2] = 0 + RQ_SET_ADDR << 8 + DEV_ADD << 16;
|
buf[2] = 0 + RQ_SET_ADDR << 8 + DEV_ADD << 16;
|
||||||
buf[3] = 0 + 0 << 16;
|
buf[3] = 0 + 0 << 16;
|
||||||
|
|
||||||
frm[0] = &tds[0](U8*);
|
frm[0] = &tds[0](U8 *);
|
||||||
for (i = 1; i < 0x1000 / 4; i++)
|
for (i = 1; i < 0x1000 / 4; i++)
|
||||||
frm[i] = TERMINATE;
|
frm[i] = TERMINATE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue