Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, Can anyone help me with the command for reading registers????? Thanks in advance...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    8

    Command for reading registers

    Hi,

    Can anyone help me with the command for reading registers?????




    Thanks in advance

  2. #2
    Just Joined! sanjaykatiyar's Avatar
    Join Date
    Mar 2007
    Location
    Bangalore
    Posts
    97
    What registers?? Users?

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    8
    i want to know the command or api in linux for reading into a register on a board like mpc8548(powerpc)??

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Are you sure you don't mean an I/O port? There are, AFAIK, no system-level commands to do this, though there are C-language functions that will do this, inb(), inw(), inl(), etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Apr 2009
    Posts
    8
    Could you provide more info on the c language functions that u have mentioned here?

  6. #6
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    133
    read a high level C level book,buddy.
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by rituraj.goswami View Post
    read a high level C level book,buddy.
    And read the man pages. I/O port programming is on the face of it quite simple, but there are often complicating factors, such as the need to wait between writing to one port, and reading the results of the operation from another. Anyway, from what you say, I'd have to say that you lack the experience needed, though "doing the job" is one good way to get the experience. You also need to have a thorough understanding of the board's operations and that requires reading (and re-reading) the board's reference documentation, programmer's guide (if available), etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...