public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: buaafree <buaafree@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] a problem of rtl8019.c
Date: Wed, 20 Jun 2007 17:00:22 +0800	[thread overview]
Message-ID: <200706201700191877530@gmail.com> (raw)

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 

             reply	other threads:[~2007-06-20  9:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20  9:00 buaafree [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-20  9:01 [U-Boot-Users] a problem of rtl8019.c buaafree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706201700191877530@gmail.com \
    --to=buaafree@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox