public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Stupid PCI Bit-naming convention question
@ 2001-12-06 22:34 Calin A. Culianu
  2001-12-06 23:51 ` H. Peter Anvin
  0 siblings, 1 reply; 3+ messages in thread
From: Calin A. Culianu @ 2001-12-06 22:34 UTC (permalink / raw)
  To: linux-kernel


In my attempts to investigate whether or not my m/b is afflicted by the
VIA KT266 hardware bug at device 1106:3099 register 0x95, bits 5,6,7, I
have a dumb question:  Namely, how are bits numbered?

I would assume that bits are numbered from smallest value to largest,
indexed at 0, so that bit 7 is the '128' component of a byte and bit 0 is
the '1' component.. correct?




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

* Re: Stupid PCI Bit-naming convention question
  2001-12-06 22:34 Stupid PCI Bit-naming convention question Calin A. Culianu
@ 2001-12-06 23:51 ` H. Peter Anvin
  0 siblings, 0 replies; 3+ messages in thread
From: H. Peter Anvin @ 2001-12-06 23:51 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <Pine.LNX.4.30.0112061732040.22686-100000@rtlab.med.cornell.edu>
By author:    "Calin A. Culianu" <calin@ajvar.org>
In newsgroup: linux.dev.kernel
> 
> In my attempts to investigate whether or not my m/b is afflicted by the
> VIA KT266 hardware bug at device 1106:3099 register 0x95, bits 5,6,7, I
> have a dumb question:  Namely, how are bits numbered?
> 
> I would assume that bits are numbered from smallest value to largest,
> indexed at 0, so that bit 7 is the '128' component of a byte and bit 0 is
> the '1' component.. correct?
> 

Yes.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>

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

* Stupid PCI Bit-naming convention question
@ 2001-12-07  8:36 Zwane Mwaikambo
  0 siblings, 0 replies; 3+ messages in thread
From: Zwane Mwaikambo @ 2001-12-07  8:36 UTC (permalink / raw)
  To: calin; +Cc: Linux Kernel

Most things in computers start from 0, so an 8bit variable starts at
bit0-7. With 2^x determining the highest value an x bit variable can hold.

Cheers,
	Zwane Mwaikambo



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

end of thread, other threads:[~2001-12-07  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06 22:34 Stupid PCI Bit-naming convention question Calin A. Culianu
2001-12-06 23:51 ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2001-12-07  8:36 Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox