Print TxConfig register value to debug board for unlisted rtl8169 clones.

git-svn-id: svn://kolibrios.org@6119 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2016-02-01 18:21:55 +00:00
parent a97446c309
commit 0373dceb83

View File

@ -1,6 +1,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;; ;; ;;
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; ;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;; ;; Distributed under terms of the GNU General Public License ;;
;; ;; ;; ;;
;; RTL8169 driver for KolibriOS ;; ;; RTL8169 driver for KolibriOS ;;
@ -8,7 +8,7 @@
;; Copyright 2007 mike.dld, ;; ;; Copyright 2007 mike.dld, ;;
;; mike.dld@gmail.com ;; ;; mike.dld@gmail.com ;;
;; ;; ;; ;;
;; port to net branch by hidnplayr ;; ;; Port to the new network stack by hidnplayr ;;
;; ;; ;; ;;
;; References: ;; ;; References: ;;
;; r8169.c - linux driver (etherboot project) ;; ;; r8169.c - linux driver (etherboot project) ;;
@ -560,11 +560,15 @@ init_board:
jmp @r jmp @r
@@: @@:
mov eax, [esi+8] mov ecx, [esi+8]
mov [ebx + device.mac_version], eax mov [ebx + device.mac_version], ecx
mov eax, [esi+12] mov ecx, [esi+12]
mov [ebx + device.name], eax mov [ebx + device.name], ecx
DEBUGF 2, "Detected chip: %s\n", eax DEBUGF 2, "Detected chip: %s\n", ecx
cmp dword[esi], 0
jne @f
DEBUGF 2, "TxConfig = 0x%x\n", eax
@@:
xor eax, eax xor eax, eax
ret ret