![](http://datasheet.mmic.net.cn/390000/TNETA1561_datasheet_16838730/TNETA1561_39.png)
TNETA1561
ATM SEGMENTATION AND REASSEMBLY DEVICE
WITH PCI HOST INTERFACE
SDNS028B – OCTOBER 1994 – REVISED JANUARY 1996
39
POST OFFICE BOX 655303
DALLAS, TEXAS 75265
PRINCIPLES OF OPERATION
RX completion-ring word 1 – start-of-buffer pointer
Unused (bits 31–28)
Start-of-buffer pointer – 16 byte aligned (bits 27–0)
The 28-bit start-of-buffer pointer is provided to the host in the RX completion ring to enable it to locate the
reassembled packet.
RX completion-ring word 2 – ATM header
ATM header byte 1
ATM header byte 2
ATM header byte 3
ATM header byte 4
The 4-byte header from the last cell in the reassembled packet is passed to the host.
RX completion-ring word 3 – control
Control (bits 31–29)
Unused (bits 28–22)
Congestion cells received (bits 21–11)
Packet length (bits 10–0)
OWN (bit 31)
This completion-ring entry is owned by the PCI SAR when the OWN bit is set and it is owned by the host when
the OWN bit is zero. If the OWN bit of the next entry in the respective receive completion ring is zero when the
PCI SAR polls it to post the completion-of-packet processing, an error indicator in the status register is set and
an interrupt is generated. This causes the buffer that the PCI SAR attempted to post to be lost. The PCI SAR
clears the OWN bit in the receive completion ring after it posts the packet. The host then owns the entry and
can retrieve various pointers to the packet.
packet overflow (bit 30)
The packet-overflow bit is set if the receive buffer overflowed while processing the current packet. Every packet
that ends in a buffer overflow is immediately terminated and a completion-ring entry is posted to the host.
CRC condition (bit 29)
The PCI SAR forwards AAL5 packets with a CRC error to the host. This bit is set when a packet is received with
an AAL CRC error.
congestion cells received (bits 21–11)
The number of cells received in the packet with the EFCN indication set is forwarded to the host to implement
associated feedback mechanisms to squelch the source.
packet length (bits 10–0)
All received data is passed to the host in units of 48 bytes. The packet length in 48-byte payload units from
word 0 of the receive DMA block is passed to the host in two’s-complement notation. This value is always zero
for null-AAL packets. The length of an AAL5 or AAL3/4 packet in integer units is obtained by subtracting this
value from the reassembly-buffer length reserved for the packet.
registers
The PCI SAR has defined two types of registers: the PCI configuration-space registers and control and status
registers. The PCI-SAR internal registers have a PCI bus physical-address base value read from BASE REG 0
of the PCI configuration space. This section describes several host-accessible internal PCI-SAR registers.
Host-write accesses to nonexistent registers are ignored. A null word (32 zeros) is returned to the host on a read
access from a nonexistent register.
– PCI SAR configuration-space registers:
These registers are initialized by the system-initialization procedure (BIOS device-initialization
routine) to program the operation of the PCI SAR device with a PCI-bus interface.
– PCI SAR control and status registers:
These registers provide PCI SAR device status and control information.