From eee894983a21ad9a0178c80f0618fdae023c5f8d Mon Sep 17 00:00:00 2001 From: b00bl1k Date: Mon, 12 Nov 2018 18:39:44 +0000 Subject: [PATCH] usbftdi: fix errors git-svn-id: svn://kolibrios.org@7552 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/usb/usbftdi/usbftdi.asm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/usb/usbftdi/usbftdi.asm b/drivers/usb/usbftdi/usbftdi.asm index 0c03f3b292..3eeffe8c4c 100644 --- a/drivers/usb/usbftdi/usbftdi.asm +++ b/drivers/usb/usbftdi/usbftdi.asm @@ -13,6 +13,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; format PE DLL native 0.05 +entry START DEBUG = 1 @@ -477,8 +478,8 @@ endl DEBUGF 2,'K : FTDI Reseting PID: %d Dev handler 0x0x%x\n', [edi],\ [edi+4] mov dword[ConfPacket], (FTDI_DEVICE_OUT_REQTYPE) \ - + (SIO_RESET_REQUEST shl 8) \+ - (SIO_RESET_SIO shl 16) + + (SIO_RESET_REQUEST shl 8) \ + + (SIO_RESET_SIO shl 16) jmp .ftdi_out_control_transfer_noinp .ftdi_purge_rx_buf: @@ -549,7 +550,7 @@ endl DEBUGF 2, 'K : FTDI Read pins PID: %d Dev handler 0x0x%x\n', [edi],\ [edi+4] mov ebx, [edi+4] - mov dword[ConfPacket], (FTDI_DEVICE_IN_REQTYPE) / + mov dword[ConfPacket], (FTDI_DEVICE_IN_REQTYPE) \ + (SIO_READ_PINS_REQUEST shl 8) + (0 shl 16) mov ecx, [ebx + ftdi_context.index] mov word[ConfPacket+4], cx @@ -559,7 +560,7 @@ endl mov ecx, esi add ecx, 8 mov word[ConfPacket+8], 0 - invoke USBControlTransferAsync, [ebx + ftdi_context.nullP], esi, ecx, / + invoke USBControlTransferAsync, [ebx + ftdi_context.nullP], esi, ecx, \ 1, control_callback, edi, 0 mov eax, [EventData] mov ebx, [EventData+4] @@ -764,7 +765,7 @@ endl jmp .endswitch .ftdi_get_list: - DEBUGF 2, 'K : FTDI devices\' list request\n' + DEBUGF 2, 'K : FTDI devices list request\n' mov edi, [edi+output] xor ecx, ecx call linkedlist_gethead