RE: Base Address's, etc...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Erickson wrote:
> 	Ah ok, thx for clearing that up for me, at least addition of 
> addresses worked the way I thought. What I am also confused about 
> is HOW this works.

[...]

> Now... how does the computer store a "value" in this address space?

Dan, 

I don't understand your HOW question. Would you please write some guesses
about what you suspect the answer to your question might be, or just a
couple examples of the kind of phrase it would be? It would help to define
the kind of answer you are looking for. 

Thanks,
Ed Vance

---------------------------------------------------------------- 
Ed Vance              edv@macrolink.com
Macrolink, Inc.       1500 N. Kellogg Dr  Anaheim, CA  92807
----------------------------------------------------------------

-----Original Message-----
From: Dan Erickson [mailto:coldoneknight@rogers.com]
Sent: Wednesday, April 17, 2002 2:53 AM
To: kernelnewbies@nl.linux.org
Subject: Re: Base Address's, etc...(reply from Dan to David)


On Wed, 17 Apr 2002, David Stroupe wrote:
> That is correct Dan.  Most times I do something like this:
> 
> #define CTRLREG 3
> #define ANOTHERREG 5
> 
> and then do
> 
> writeb(value, io + CTRLREG);
> writeb(anothervalue, io + ANOTHERREG);
> 
> HTH

	Ah ok, thx for clearing that up for me, at least addition of 
addresses worked the way I thought. What I am also confussed about is 
HOW this works.

For instance, 0x240 expands to 0000 0010 0100 0000 in binary 
(note... I have put the spaces in for readability purposes).

    Now... how does the computer store a "value" in this address space?

    Also.. as I said earlier, 0x240 expands to 0000 0010 0100 0000. 
So... if you say something like writeb(value, io + 3), then you are 
writing a value to 0000 0010 0100 0011 instead of the orginal 0x240, which 
is what you want to do... but highly confusses me on how it works.

Thanks alot

-Dan Erickson-
-ColdOneKnight@rogers.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux