[drivers/usbother] grammar fixes in comments

This commit is contained in:
2025-06-12 09:17:10 +03:00
committed by Mikhail Frolov
parent 389ad8b926
commit d5655958f0
2 changed files with 11 additions and 11 deletions

View File

@@ -11,8 +11,8 @@
; ;
; n = 0 .. count driver with ID table ; n = 0 .. count driver with ID table
; nt = count driver with ID table ; nt = count driver with ID table
; ID_drv_table + 0*(n-1)| 4 | ID_TABLE | offset of base to table VID:PID ; ID_drv_table + 0*(n-1)| 4 | ID_TABLE | offset from base to table VID:PID
; ID_drv_table + 4*(n-1)| 4 | DRV_NAME | offset of base to name the driver ; ID_drv_table + 4*(n-1)| 4 | DRV_NAME | offset from base to name of driver
; ID_drv_table + 8*nt | 8 | __ZERO | terminaror of list ; ID_drv_table + 8*nt | 8 | __ZERO | terminaror of list
; k = 0 .. count driver on class code ; k = 0 .. count driver on class code
@@ -21,7 +21,7 @@
; Class_table + 1*(k-1) | 1 | USB_CLASS | main usb class code (M) ; Class_table + 1*(k-1) | 1 | USB_CLASS | main usb class code (M)
; Class_table + 2*(k-1) | 1 | USB_SUBCLASS | USB subclass code or zero(V) ; Class_table + 2*(k-1) | 1 | USB_SUBCLASS | USB subclass code or zero(V)
; Class_table + 2*(k-1) | 1 | USB_PROTOCOL | USB protocol code or zero(V) ; Class_table + 2*(k-1) | 1 | USB_PROTOCOL | USB protocol code or zero(V)
; Class_table + 4*(k-1) | 4 | DRV_NAME | offset of base to name the driver ; Class_table + 4*(k-1) | 4 | DRV_NAME | offset from base to name of driver
; Class_table + 8*kt | 8 | __ZERO | terminaror of list ; Class_table + 8*kt | 8 | __ZERO | terminaror of list
; i = 0 .. count VID:PID ; i = 0 .. count VID:PID

View File

@@ -89,7 +89,7 @@ struct DRV_CONTEXT
config_descr dd ? config_descr dd ?
interface_descr dd ? interface_descr dd ?
ep rd 64 ; 32 IN + 32 OUT endpointers pipe ep rd 64 ; 32 IN + 32 OUT endpoints' pipes
ends ends
DRV_CONTEXT.ep0 fix (DRV_CONTEXT.ep + 0) DRV_CONTEXT.ep0 fix (DRV_CONTEXT.ep + 0)
@@ -315,7 +315,7 @@ proc AddDevice stdcall, .config_pipe:dword, \
; get in ecx class code ; get in ecx class code
mov eax, [.interface] mov eax, [.interface]
mov ecx, dword[eax + INTERFACE_DESCR.bInterfaceClass] ; 24-31bits mov ecx, dword[eax + INTERFACE_DESCR.bInterfaceClass] ; 24-31 bits
mov edi, [drv_list] mov edi, [drv_list]
add edi, [edi + 4] add edi, [edi + 4]
@@ -325,11 +325,11 @@ proc AddDevice stdcall, .config_pipe:dword, \
; check class ; check class
movzx eax, byte[edi] ; length movzx eax, byte[edi] ; length
and eax, 11b ; protect - max length = 3 and eax, 11b ; protect - max length = 3
lea eax, [eax*8] ; 1 = 8; 2 = 16; 3 = 24 lea eax, [eax*8] ; 1 = 8; 2 = 16; 3 = 24
xor edx, edx xor edx, edx
bts edx, eax bts edx, eax
dec edx ; bitmask dec edx ; bitmask
mov eax, [edi] mov eax, [edi]
shr eax, 8 shr eax, 8
@@ -512,11 +512,11 @@ drv_name db 'usbother', 0
default_list: db '/sys/settings/usbdrv.dat', 0 default_list: db '/sys/settings/usbdrv.dat', 0
str_1: db 'USBOTHER: Not found ID driver', 13, 10, 0 str_1: db 'USBOTHER: Driver ID not found', 13, 10, 0
str_2: db 'USBOTHER: Check found driver: ', 0, 13, 10, 0 str_2: db 'USBOTHER: Check found driver: ', 0, 13, 10, 0
str_3: db 'USBOTHER: Device driver good', 13, 10, 0 str_3: db 'USBOTHER: Device driver is good', 13, 10, 0
str_4: db 'USBOTHER: Device driver fail prob', 13, 10, 0 str_4: db 'USBOTHER: Device driver fail prob', 13, 10, 0
str_5: db 'USBOTHER: Load device driver error', 13, 10, 0 str_5: db 'USBOTHER: Device driver load error', 13, 10, 0
str_newline: db 13,10,0 str_newline: db 13,10,0
data fixups data fixups