Linux ATA/IDE development
 help / color / mirror / Atom feed
* Re: [PATCH] IDE udma_status = 0x76 and 2.5.30...
@ 2002-08-05 20:31 Petr Vandrovec
  2002-08-05 21:10 ` Andre Hedrick
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vandrovec @ 2002-08-05 20:31 UTC (permalink / raw)
  To: Andre Hedrick; +Cc: linux-ide, linux-kernel

On  5 Aug 02 at 13:08, Andre Hedrick wrote:
> Bit 7: Simplex RO
> Bit 6: Device 1 DMA Capable RW
> Bit 5: Device 0 DMA Capable RW
> Bit 4: Reserved "MUST RETURN ZERO ON READS" !!!     Vendor Write
> Bit 3: Reserved "MUST RETURN ZERO ON READS" !!!     Vendor Write
> Bit 2: Bus Master Interrupt STATUS R Clear W
> Bit 1: Bus Master Error     STATUS R Clear W
> Bit 0: Bus Master Active    STATUS
> 
> Vendor Write, is not a published or listed techincal term.
> It is me trying to present this clearly enough so that the masses will see
> how poorly the general understanding of the basics in 2.5.

If you'll bother with reading code, you'll find that dma status
is reported after:

(dma_stat & 7) != 4 ? (0x10 | dma_stat) : 0;

Because of same code is used in your 2.4.x ide-dma.c (at least in
2.4.19-rc5), I'm really happy that now I know that you are really 
familiar with your code.

Code ORs read value with 0x10 to make sure that it reports non-zero
value when error happens (when chip returs dma_stat == 0x00). And 0x10 
was choosen because of this bit should be always zero, as you know.

Maybe we should print value after ANDing with 0xEF, but why? Everybody
can read code when in doubt.
                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <Pine.LNX.4.10.10208051249520.11932-100000@master.linux-ide.org>]
[parent not found: <20020804222542.GH13053@ppc.vc.cvut.cz>]

end of thread, other threads:[~2002-08-05 21:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-05 20:31 [PATCH] IDE udma_status = 0x76 and 2.5.30 Petr Vandrovec
2002-08-05 21:10 ` Andre Hedrick
2002-08-05 21:19   ` Andre Hedrick
     [not found] <Pine.LNX.4.10.10208051249520.11932-100000@master.linux-ide.org>
2002-08-05 21:42 ` Alan Cox
     [not found] <20020804222542.GH13053@ppc.vc.cvut.cz>
2002-08-05 20:08 ` Andre Hedrick

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