<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana><FONT size=2>Hi,all</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2> I have a board with
cpu-s3c2410,eth controller-realtek8019as.I found the function nic_to_pc() in
~/u-boot-1.2.0/drivers/rtl8019.c with a mistake.If using the following
way</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2> rec_head_status =
get_reg (RTL8019_DMA_DATA);<BR> next_packet_pointer = get_reg
(RTL8019_DMA_DATA);<BR> packet_length0 = get_reg
(RTL8019_DMA_DATA);<BR> packet_length1 = get_reg
(RTL8019_DMA_DATA);</FONT></DIV>
<DIV><FONT size=2>for reading receive buffer,the four variable of
"rec_head_status next_packet_pointer packet_length0
packet_length1" can't get correct value.But</FONT></DIV>
<DIV><FONT size=2>if reading the four bytes by using one array to store,it's
ok.In other words,it's wrong,if storing every byte in an individual
variable.</FONT></DIV>
<DIV><FONT size=2> Who can tell me why?</FONT></DIV>
<DIV><FONT size=2> Thanks!</FONT></DIV>
<DIV><FONT size=2>Darren</FONT></DIV>
<DIV align=left><FONT size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2>buaafree</FONT></DIV>
<DIV><FONT size=2>2007-06-20</FONT></FONT></DIV></FONT></BODY></HTML>