All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] a problem of rtl8019.c
@ 2007-06-20  9:00 buaafree
  0 siblings, 0 replies; 2+ messages in thread
From: buaafree @ 2007-06-20  9:00 UTC (permalink / raw)
  To: u-boot

Hi,all
   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
    rec_head_status = get_reg (RTL8019_DMA_DATA);
    next_packet_pointer = get_reg (RTL8019_DMA_DATA);
    packet_length0 = get_reg (RTL8019_DMA_DATA);
    packet_length1 = get_reg (RTL8019_DMA_DATA);
for reading receive buffer,the four variable of "rec_head_status  next_packet_pointer packet_length0 packet_length1" can't get correct value.But
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.
    Who can tell me why?
    Thanks!
Darren



buaafree
2007-06-20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070620/b207127e/attachment.htm 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] a problem of rtl8019.c
@ 2007-06-20  9:01 buaafree
  0 siblings, 0 replies; 2+ messages in thread
From: buaafree @ 2007-06-20  9:01 UTC (permalink / raw)
  To: u-boot

Hi,all
   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
    rec_head_status = get_reg (RTL8019_DMA_DATA);
    next_packet_pointer = get_reg (RTL8019_DMA_DATA);
    packet_length0 = get_reg (RTL8019_DMA_DATA);
    packet_length1 = get_reg (RTL8019_DMA_DATA);
for reading receive buffer,the four variable of "rec_head_status  next_packet_pointer packet_length0 packet_length1" can't get correct value.But
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.
    Who can tell me why?
    Thanks!
Darren



buaafree
2007-06-20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070620/dcde68ce/attachment.htm 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-20  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-20  9:00 [U-Boot-Users] a problem of rtl8019.c buaafree
  -- strict thread matches above, loose matches on Subject: below --
2007-06-20  9:01 buaafree

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.