AAL2 Implementation
MPC885 PowerQUICC Family Reference Manual, Rev. 2
44-4
Freescale Semiconductor
mechanism is enabled for this channel, the Timer CU count down for this AAL2 channel is also started. If
the Timer CU counter expires before the active buffer becomes full, AAL2 activates in order to pad the
buffer with zeros and mark its BD as ready. This buffer (along with other ready AAL0 buffers of the
channel) is then transmitted in a separate process by the MPC885 according to the APC scheduling or host
scheduling (using
APC
BYPASS
).
If AAL2 is activated to process a channel’s partially filled active buffer before its Timer CU counter
expired, the active buffer is filled with CPS-Packets, the active BD is closed (R bit is set) and the channel’s
Timer CU counter is deactivated. However, if the active buffer is still not full, the Timer CU counter
continues its count down.
44.2.2
AAL2 Receive Overview
The MPC885 receives AAL0 cells and places them in the external memory. Because all of the RxBDs
associated with AAL2 channels must have the I bit set, the same as for the TxBDs, the MPC885 attempts
to generate an interrupt to the host. However, as the IMASK[AAL2] bit is set, AAL2 processing is invoked
instead.
For each activation, the AAL2 receiver processes one active AAL0 buffer. AAL2 does the following:
•
Checks the STF field of the CPS-PDU
•
Breaks the CPS-PDU into CPS-Packets
•
Verifies the HEC for each CPS-PH
•
Copies each CPS-Packet to external memory according to the pointer in the current RPD of the
channel’s AAL2_Rx_Queue
•
Checks the CPS-PDU for errors. If an error is detected, an indication is written to the associated
RPD and the CPS-Packet is discarded. See
Section 44.5.1, “Receive Packet Descriptor (RPD),”
for
a description of the possible errors.
•
If a complete CPS-Packet is retrieved from the active buffer, the RPD will be marked as available
to the host (E = 0). If RPD[INT] is set and the interrupt is not masked by AAL2_RCT[RPI], the
AAL2 adds an entry to the exception queue (with the AAL2 bit and RXB bit set) to signal the host
that a CPS-Packet has been received. The global interrupt count (INT_CNT) is also decremented.
If INT_CNT reaches zero, the global interrupt (GINT) bit in the event register is set and an
interrupt is generated to the host. (The INT_CNT is then restored to the INT_ICNT value.) If the
exception queue is already full, the IQOV bit is set in the event register—entries in the exception
queue are not overwritten. The host may then service the exception queue and process the
appropriate AAL2_Rx_Queues and mark their RPDs as empty (E=1).
•
If only a partial CPS-Packet is retrieved from the AAL0 buffer, AAL2 stores the CPS-Packet
parameters in the channel’s AAL2_RCT. When the AAL2 is next activated to serve this channel
(after a new cell has been placed in an AAL0 buffer), it resumes operation from where it stopped.
•
If the complete AAL0 buffer is processed, its BD is marked empty. If, however, AAL2 could not
finish processing the AAL0 buffer (because there are not enough available RPDs in the
AAL2_Rx_Queue), the CPS-PDU will be discarded and an entry is added to the exception queue
(with the AAL2 bit and OVF bit set) to indicate an AAL2_Rx_Queue overflow.
Содержание PowerQUICC MPC870
Страница 1: ...MPC885 PowerQUICC Family Reference Manual Supports MPC885 MPC880 MPC875 MPC870 MPC885RM Rev 2 04 2006 ...
Страница 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Страница 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Страница 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Страница 192: ...MPC885 Instruction Set MPC885 PowerQUICC Family Reference Manual Rev 2 5 22 Freescale Semiconductor ...
Страница 242: ...Instruction and Data Caches MPC885 PowerQUICC Family Reference Manual Rev 2 7 30 Freescale Semiconductor ...
Страница 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Страница 416: ...External Bus Interface MPC885 PowerQUICC Family Reference Manual Rev 2 13 42 Freescale Semiconductor ...
Страница 440: ...Clocks and Power Control MPC885 PowerQUICC Family Reference Manual Rev 2 14 24 Freescale Semiconductor ...
Страница 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Страница 606: ...SDMA Channels and IDMA Emulation MPC885 PowerQUICC Family Reference Manual Rev 2 19 20 Freescale Semiconductor ...
Страница 738: ...SCC Asynchronous HDLC Mode and IrDA MPC885 PowerQUICC Family Reference Manual Rev 2 25 16 Freescale Semiconductor ...
Страница 780: ...SCC Ethernet Mode MPC885 PowerQUICC Family Reference Manual Rev 2 27 24 Freescale Semiconductor ...
Страница 794: ...SCC Transparent Mode MPC885 PowerQUICC Family Reference Manual Rev 2 28 14 Freescale Semiconductor ...
Страница 848: ...Serial Peripheral Interface SPI MPC885 PowerQUICC Family Reference Manual Rev 2 30 18 Freescale Semiconductor ...
Страница 882: ...Universal Serial Bus USB MPC885 PowerQUICC Family Reference Manual Rev 2 31 34 Freescale Semiconductor ...
Страница 944: ...Parallel I O Ports MPC885 PowerQUICC Family Reference Manual Rev 2 34 26 Freescale Semiconductor ...
Страница 956: ...CPM Interrupt Controller MPC885 PowerQUICC Family Reference Manual Rev 2 35 12 Freescale Semiconductor ...
Страница 1004: ...Buffer Descriptors and Connection Tables MPC885 PowerQUICC Family Reference Manual Rev 2 37 30 Freescale Semiconductor ...
Страница 1022: ...ATM Parameter RAM MPC885 PowerQUICC Family Reference Manual Rev 2 38 18 Freescale Semiconductor ...
Страница 1068: ...ATM Pace Control MPC885 PowerQUICC Family Reference Manual Rev 2 40 22 Freescale Semiconductor ...
Страница 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Страница 1120: ...AAL2 Implementation MPC885 PowerQUICC Family Reference Manual Rev 2 44 30 Freescale Semiconductor ...
Страница 1162: ...Fast Ethernet Controller FEC MPC885 PowerQUICC Family Reference Manual Rev 2 45 40 Freescale Semiconductor ...
Страница 1172: ...SEC Lite Overview MPC885 PowerQUICC Family Reference Manual Rev 2 46 8 Freescale Semiconductor ...
Страница 1176: ...SEC Lite Address Map MPC885 PowerQUICC Family Reference Manual Rev 2 47 4 Freescale Semiconductor ...
Страница 1214: ...SEC Lite Execution Units MPC885 PowerQUICC Family Reference Manual Rev 2 48 38 Freescale Semiconductor ...
Страница 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Страница 1313: ...MPC885 PowerQUICC Family Reference Manual Rev 2 Freescale Semiconductor B 1 Appendix B Serial Communications Performance TBD ...
Страница 1314: ...Serial Communications Performance MPC885 PowerQUICC Family Reference Manual Rev 2 B 2 Freescale Semiconductor ...
Страница 1320: ...Register Quick Reference Guide MPC885 PowerQUICC Family Reference Manual Rev 2 C 6 Freescale Semiconductor ...
Страница 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Страница 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Страница 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Страница 1384: ...Serial ATM Scrambling Reception and SI Programming MPC885 PowerQUICC Family Reference Manual Rev 2 H 6 Freescale Semiconductor ...
Страница 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...