OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 5:53 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RTL8169 initialization sequence incorrect?
PostPosted: Mon Feb 09, 2009 2:58 am 
Offline

Joined: Sun Feb 08, 2009 7:15 pm
Posts: 1
@szh: People won't find it if you have questions about something and you leave a note hidden on a wiki page - its not a forum.

Moved here for everybody to see
-Combuster


szh appended at 2009-2-9:
Thanks to this article, it helped a lot on developping my OS. but there seems to be some problems on the initilize squences of 8169 chip. I tryed the squences as decribed in the article that:
1, write 0x0000E70F to RxConfig(ioaddr+0x44) and 0x03000700 to TxConfig(ioaddr+0x40)
2, enable Rx/TX
But I found the values I read from RxConfig/TxConfig are not what I wrote until I change the squence to:
1, enable Rx/TX
2, write 0x0000E70F to RxConfig(ioaddr+0x44) and 0x03000700 to TxConfig(ioaddr+0x40)
Is there something wrong with this article/ the chip? Or just my fault?


Top
 Profile  
 
 Post subject: Re: RTL8169 initialization sequence incorrect?
PostPosted: Mon Feb 09, 2009 9:35 am 
Offline
Member
Member
User avatar

Joined: Fri Jun 22, 2007 12:47 pm
Posts: 1598
Location: New Hampshire, USA
It's been a while since I made that article. I'll look into it again and double check some things.

But, for this particular issue, the article is correct at first glance.
You shouldn't/can't initialize the RX/TX operations before setting the RX/TX configurations... It would either not work entirely, or produce unwanted/unpredictable results as the state of the Rx/Tx config registers is iffy. Like I said, it's been a while, but are there any register LOCK/UNLOCK components that I may have overlooked to be able to edit those crucial config registers? If so, those need to be unlocked in order to be written to.

_________________
Website: https://Joscor.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 74 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group