• Aucun résultat trouvé

DMA Software

N/A
N/A
Protected

Academic year: 2022

Partager "DMA Software"

Copied!
6
0
0

Texte intégral

(1)

DMA Software Guidelines

General DMAProgramming Philosophy

Registers

Commands

Gotcha's

&

Features

JHB. DMA Software Guidelines. t

(2)

Dove lOP Design Review June 13 & 14, 1984

General DMA Programming Philosophy

***The DMA Fifo is the mechanism for transfering both disk IOCSs and disk data***

• Initialize the mode control for the AM2942

FOR EACH TRANSFER

• Setup AM2942 word count register (1-256)

• Setup AM2942 address registers (AS-A1) [This is the offset within a·page] -.

• Setup Page Pointer register (A23-A9)

• Setup Direction Bit

• Once everything is established:

StartDMA

AllowRDC (with appropriate caveats)

• After DMA Interrupt. verify status

JHB. DMA Software Guidelines. 2

(3)

Registers

DMA Command Register (021 Oh)

Direction bit 1 = Memory to Disk

o

= Disk to Memory

DMA Status Register Bits (0210h)

Error bit (1 = error, 0 = no error)-

) \'loo, ~ StateMachine (1 = .

running, 0

= not running)

EndOfTransfer (1 = not done, 0 = done)

~~ . ~ifoOutofBounds (1 = ok, 0 = full or empty)

~ FifoEmpty (1 = not empty, 0 = empty) FifoFull (1. = not full, 0= full)

"A

1" Diagnostic

&

Fifo Half~f~

II

Bit Direction bit returned '. .

RDC Control

&

.

Status

register (0214h)

[meaning to be determined by 8x30S to IOP186 protocol]

AM2942

Control Register (0200h)- .

---. - -- Always programmed to 06h

JHB. DMA Software Guidelines. 1

(4)

Dove lOP Design Review June 13 & 14,1984

Registers (continued)

• Page pointer (write 021Ah)

Data bits 14-0 are used as Address bits 23-09, Data bit 15 is used as Address bit 0

Data bit 15 should always be 0 for word transfers! .

• Page offset (write 020Ah, read 0206h)

Data bits 8-1 are used as Address bits 8-1

• Word count (write 020Ch, read 0204h) Data is expressed in bits 8-1

2's complement of number of words Value

OOh FFh 01h

Words To Transfer 256d (100h)

001d (001h) 255d (OFFh)

• Writing to the Page pointer register re-initializes the Page offset and Word count registers to the last value written

JHB, DMA Software Guidelines, 4

(5)

Commands

StartDMA

Resets the' "extra count" flipflop automatically.

Starts the DMA'state machine running.

Only execute this command once per DMA, operation;

AllowRDC

Tells the arbitor to let the,DMA have cycles Must be reasserted whenever lOP runs and transfer has not completed (remember

yesterday's caveats)

JHB, DMA Software Guidelines,S

(6)

Dove lOP Design Review June 13 & 14,1984

Gotcha's & Features

If an "extra" AllowRDC has occured the DMA may start running immediately after the StartDMA command is

issued'

Bits are shifted left by 1 in Word count and address registers (byte count?)

StartDMA Clears the "

Extra

count" bit

Software must make sure that DMA operations run to completion

Page poin~er re-init~alizes the word count and

offset register . ~

JHB. DMA Software Guidelines. 6

Références

Documents relatifs

Therefore, objective of this study was to investigate whether the number of reported vertigo attacks was equiva- lent between two reporting strategies: (1) event sampling using

1 Division of Balance Disorders, Department of Otorhinolaryngology and Head and Neck Surgery, Maastricht University Medical Center, Maastricht, Netherlands.. 2 Department

CD CHRDY: Card Channel Ready: An adapter which needs more time to transfer data on the Micro Channel pulls this signal low (not ready) to extend the current bus cycle.. There are

Note, however, that kmap is used to get a kernel virtual address for each page; in this way, the function will work even if the user buffer is in high memory.. Some quick tests

-If HLDA drops, DMA drops HLD, delays for one cycle, sends Hold request again - When FIFO unavailable, DMA drops HLD, waits for FIFO available, then sends HLD - DMA continues

Arbitration is handled by an FPLA (Field Programmable Logic Array). The arbitor gives priority to DMA requests, and the buses will always be released for DMA

A two-dimensional representation is either irreducible or has an invariant one-dimensional subspace, which corresponds to a common eigenvector of all transformations representing

Les directives médicales anticipées consistent en un écrit par lequel une personne majeure et apte à consentir à des soins indique, à l’avance, les soins médicaux qu’elle