Mailbox - NEC uPD98502 User Manual

Network controller
Table of Contents

Advertisement

4.8.4 Mailbox

ATM Cell Processor uses mailboxes as ring buffers in system memory. The structure of a mailbox and the defined
addresses are as follows.
Mailbox start address (A_MSA[3:0])
Mailbox bottom address (A_MBA[3:0])
Mailbox write address (A_MWA[3:0])
Mailbox tail address (A_MTA[3:0])
Upon writing an indication, increments the write pointer (A_MWA[3:0]), sets the MM bit for the corresponding
mailbox in the A_GSR register, and issues an interrupt if it is not masked.
(A_MWA[3:0]), ATM Cell Processor causes A_MWA[3:0] to jump to the start address (A_MSA[3:0]) if A_MWA[3:0]
has reached the bottom address (A_MBA[3:0]). To read an indication, V
A_MTA[3:0] is managed by the V
address of the next indication to the read pointer (A_MTA[3:0]). If the write pointer (A_MWA[3:0]) points to the same
address as that pointed to by the read pointer (A_MTA[3:0]), sets the MF bit of the A_GSR register that corresponds
to the mailbox to indicate that the mailbox is full (the MF state), and issues an interrupt if it is not masked. Once the
mailbox enters the MF state, ATM Cell Processor does not execute any commands.
276
CHAPTER 4 ATM CELL PROCESSOR
:The start address of the mailbox
:The bottom address of the mailbox (address following the last address)
:The write pointer
:The tail address that has been read by the host and which is to be updated
Figure 4-35. Mailbox Structure
A_MSA[3:0]
A_MWA[3:0]
A_MTA[3:0]
A_MBA[3:0]
4120A: Each time V
4120A reads an indication from the mailbox, it writes the
R
R
Preliminary User's Manual S15543EJ1V0UM
When updating the write pointer
4120A uses the read pointer (A_MTA[3:0]).
R

Advertisement

Table of Contents
loading

Table of Contents