RE: A question about /linux/driver/net/e100
De Yu Liu <[email protected]> Thu, 24 Jul 2003 16:20:34 -0700 (PDT)
| Newsgroups | gmane.linux.redhat.axp.kernel |
|---|---|
| Message-ID | <[email protected]> |
--0-1380541380-1059088834=:18601 Content-Type: text/plain; charset=us-ascii Greeting all: The manual i am talking about is intel 8255x manual. You can download it from intel.com. I understand better now. But i still get confused about e100_config.c. Whom it would configure? I mean configure Control/Status Registers(CSR) or (Manegement Data Interface Register)MDI registers. Secondly, i get confused about MII registers(in source code) and MDI registers(in manual). Are they same. Thirdly, is Media Independent Interface(MII) same as (Manegement Data Register)MDI? As i know MII is the interface between MAC controller and PHY. But it seems MDI is also the interface between MAC controller and PHY. So maybe there are two interfaces between MAC controller and PHY. Am i right??? regards, Deyu Oliver Pitzeier <[email protected]> wrote: Hi De Yu Liu! Hi Scott Feldman! De Yu Liu wrote: > Oliver Pitzeier wrote: > > > Greeting all: > > > In /linux/driver/net/e100 directory of RH 9, > > > there are several files like e100_config.c, e100_eeprom.c, > > > e100_main.c, e100_phy.c, e100_proc.c, e100_test.c and etc. What's > > > is the relationship between them? Please draw me a picture like > > > flow chart? Thanks in advance. > > The AXP mailing list is certainly not the right > > place for such questions, but however... We get used to it... Don't > > we? > > I can't access my kernel-repository currently, but I take a guess: [ ... ] > Thanks a lot. No problem... Was just a guess! :) > I think you're right. Not completely... I remembered, that e100_test.c is using other files (_config, _phy, and maybe _proc). So e100_test.c is _NOT_ used by e100_main.c... Can be wrong again... But I guess that's true now.... > But is any relationship between others except *main.c? They do not have any relation-ship... All those files are included by e100_main.c... > What's the role for each file? Every file has some specific functions... e100_config.c is for configuration stuff. e100_eeprom.c is for reading and (maybe) writing the onboard EEPROM. The e100_phy.c has something to do with the MII register stuff and is executed in polled time... e100_proc.c takes care of /proc entries and so on... I guess that's also right... > I look at the manual and try to make a corresponding match between the > topic in manual and each file under .../e100/ directory. What manual? > But i couldn't figure it out. I hope, that I could help you! I believe, that Scott Feldman (the e100 maintainer) can help you MUCH more... Keep me posted CC: while discussing this topic... :) I attached my ascii-art and parts of my previous mail, so Scott can tell me, that I'm completely wrong. :) Best regards, Oliver --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software --0-1380541380-1059088834=:18601 Content-Type: text/html; charset=us-ascii <DIV> <DIV>Greeting all:</DIV> <DIV>The manual i am talking about is intel 8255x manual. You can download it from intel.com.</DIV> <DIV>I understand better now. But i still get confused about <FONT color=#aa5500><STRONG>e100_config.c.</STRONG> </FONT></DIV> <DIV>Whom it would configure? I mean configure Control/Status Registers(CSR) or (Manegement Data Interface Register)MDI registers.</DIV> <DIV>Secondly, i get confused about MII registers(in source code) and MDI registers(in manual). Are they same.</DIV> <DIV>Thirdly, is Media Independent Interface(MII) same as (Manegement Data Register)MDI?</DIV> <DIV>As i know MII is the interface between MAC controller and PHY. But it seems MDI is also the interface between MAC controller and PHY. So maybe there are two interfaces between MAC controller and PHY. Am i right???</DIV> <DIV>regards,</DIV> <DIV>Deyu</DIV> <DIV> </DIV> <DIV><BR><B><I>Oliver Pitzeier <[email protected]></I></B> wrote:</DIV> <DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid; WIDTH: 100%">Hi De Yu Liu!<BR>Hi Scott Feldman!<BR><BR>De Yu Liu <[email protected]>wrote:<BR>> Oliver Pitzeier <[email protected]>wrote:<BR>> > > Greeting all:<BR>> > > In /linux/driver/net/e100 directory of RH 9,<BR>> > > there are several files like e100_config.c, e100_eeprom.c, <BR>> > > e100_main.c, e100_phy.c, e100_proc.c, e100_test.c and etc. What's <BR>> > > is the relationship between them? Please draw me a picture like <BR>> > > flow chart? Thanks in advance.<BR><BR>> > The AXP mailing list is certainly not the right<BR>> > place for such questions, but however... We get used to it... Don't <BR>> > we?<BR><BR>> > I can't access my kernel-repository currently, but I take a guess:<BR><BR>[ ... ]<BR><BR>> Thanks a lot.<BR><BR>No problem... Was just a guess! :)<BR><BR>> I think you're right.<BR><BR>Not completely... I remembered, that e100_test.c is using other files (_config, _phy, and maybe _proc). So e100_test.c is _NOT_ used by e100_main.c... Can be wrong again... But I guess that's true now....<BR><BR>> But is any relationship between others except *main.c?<BR><BR>They do not have any relation-ship... All those files are included by e100_main.c...<BR><BR>> What's the role for each file?<BR><BR>Every file has some specific functions... e100_config.c is for configuration stuff. e100_eeprom.c is for reading and (maybe) writing the onboard EEPROM. The e100_phy.c has something to do with the MII register stuff and is executed in polled time... e100_proc.c takes care of /proc entries and so on... I guess that's also right...<BR><BR>> I look at the manual and try to make a corresponding match between the <BR>> topic in manual and each file under .../e100/ directory.<BR><BR>What manual?<BR><BR>> But i couldn't figure it out.<BR><BR>I hope, th! at I could help you! I believe, that Scott Feldman (the e100 maintainer) can help you MUCH more... Keep me posted CC: while discussing this topic... :)<BR><BR>I attached my ascii-art and parts of my previous mail, so Scott can tell me, that I'm completely wrong. :)<BR><BR>Best regards,<BR>Oliver<BR></BLOCKQUOTE></DIV></DIV><p><hr SIZE=1> Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software --0-1380541380-1059088834=:18601--