A P P E N D I N G T O T H E E N D O F A C H A I N - Intel 81342 Developer's Manual

Table of Contents

Advertisement

5 . 4 . 3

A p p e n d i n g t o t h e E n d o f a C h a i n

O n c e t h e A D M A h a s s t a r t e d p r o c e s s i n g a c h a i n o f d e s c r i p t o r s , a p p l i c a t i o n s o f t w a r e m a y
n e e d t o a p p e n d a c h a i n d e s c r i p t o r t o t h e c u r r e n t c h a i n w i t h o u t i n t e r r u p t i n g t h e t r a n s f e r
i n p r o g r e s s . T h e m e c h a n i s m u s e d f o r p e r f o r m i n g t h i s a c t i o n i s c o n t r o l l e d b y t h e C h a i n
R e s u m e b i t i n t h e A D M A C o n t r o l R e g i s t e r ( A C C R ) .
T h e A D M A r e a d s t h e s u b s e q u e n t c h a i n d e s c r i p t o r e a c h t i m e i t c o m p l e t e s t h e c u r r e n t
c h a i n d e s c r i p t o r a n d t h e A D M A N e x t D e s c r i p t o r A d d r e s s R e g i s t e r ( A N D A R ) i s n o n - z e r o .
A N D A R a l w a y s c o n t a i n s t h e a d d r e s s o f t h e n e x t c h a i n d e s c r i p t o r t o b e r e a d a n d t h e
A D M A D e s c r i p t o r A d d r e s s R e g i s t e r ( A D A R ) a l w a y s c o n t a i n s t h e a d d r e s s o f t h e c u r r e n t
c h a i n d e s c r i p t o r .
T h e p r o c e d u r e f o r a p p e n d i n g c h a i n s r e q u i r e s t h e s o f t w a r e t o f i n d t h e l a s t c h a i n
d e s c r i p t o r i n t h e c u r r e n t c h a i n a n d c h a n g e t h e N e x t D e s c r i p t o r A d d r e s s i n t h a t
d e s c r i p t o r t o t h e a d d r e s s o f t h e n e w c h a i n t o b e a p p e n d e d . T h e s o f t w a r e t h e n s e t s t h e
C h a i n R e s u m e b i t i n t h e A C C R . I t d o e s n o t m a t t e r w h e n t h e u n i t i s a c t i v e o r n o t .
T h e A D M A e x a m i n e s t h e C h a i n R e s u m e b i t o f t h e A C C R w h e n t h e u n i t i s i d l e o r u p o n
c o m p l e t i o n o f a c h a i n o f t r a n s f e r s . W h e n t h i s b i t i s s e t , t h e A D M A r e - r e a d s t h e N e x t
D e s c r i p t o r A d d r e s s o f t h e c u r r e n t c h a i n d e s c r i p t o r a n d l o a d i t i n t o A N D A R . T h e a d d r e s s
o f t h e c u r r e n t c h a i n d e s c r i p t o r i s c o n t a i n e d i n A D A R . T h e A D M A c l e a r s t h e C h a i n
R e s u m e b i t a n d t h e n e x a m i n e s A N D A R . W h e n A N D A R i s n o t z e r o , t h e A D M A r e a d s t h e
c h a i n d e s c r i p t o r u s i n g t h i s n e w a d d r e s s a n d b e g i n a n e w o p e r a t i o n . W h e n A N D A R i s
z e r o , t h e A D M A r e m a i n s o r r e t u r n t o i d l e .
T h e r e a r e t h r e e c a s e s t o c o n s i d e r :
1 . T h e A D M A c o m p l e t e s a n A D M A o p e r a t i o n a n d i t i s n o t t h e l a s t d e s c r i p t o r i n t h e
c h a i n . I n t h i s c a s e , t h e A D M A c l e a r s t h e C h a i n R e s u m e b i t a n d r e a d s t h e n e x t c h a i n
d e s c r i p t o r . T h e a p p e n d e d d e s c r i p t o r i s r e a d w h e n t h e A D M A r e a c h e s t h e e n d o f t h e
o r i g i n a l c h a i n .
2 . T h e c h a n n e l c o m p l e t e s a n A D M A t r a n s f e r a n d i t i s t h e l a s t d e s c r i p t o r i n t h e c h a i n .
I n t h i s c a s e , t h e A D M A e x a m i n e s t h e s t a t e o f t h e C h a i n R e s u m e b i t . W h e n t h e b i t i s
s e t , t h e A D M A r e - r e a d s t h e c u r r e n t d e s c r i p t o r t o g e t t h e a d d r e s s o f t h e a p p e n d e d
c h a i n d e s c r i p t o r . W h e n t h e b i t i s c l e a r , t h e A D M A r e t u r n s t o i d l e .
3 . T h e A D M A i s i d l e . I n t h i s c a s e , t h e A D M A e x a m i n e s t h e s t a t e o f t h e C h a i n R e s u m e
b i t w h e n t h e A C C R i s w r i t t e n . W h e n t h e b i t i s s e t , t h e A D M A r e - r e a d s t h e l a s t
d e s c r i p t o r f r o m t h e m o s t - r e c e n t c h a i n t o g e t t h e a p p e n d e d c h a i n d e s c r i p t o r .
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 I / O P r o c e s s o r s
D e v e l o p e r ' s M a n u a l
4 8 4
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 — A p p l i c a t i o n D M A U n i t
O r d e r N u m b e r : 3 1 5 0 3 7 - 0 0 2 U S
D e c e m b e r 2 0 0 7

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents