Texas Instruments TMS320TCI648x manual Start Message Passing, Maintenance, Doorbell Operation

Models: TMS320TCI648x

1 256
Download 256 pages 4.34 Kb
Page 63
Image 63

www.ti.com

SRIO Functional Description

Figure 25. TX Buffer Descriptors

Descriptor

Buffer

Descriptor

Buffer

TX￿queue￿head￿descriptor

pointer

Start Message Passing

SRIO_REGS->Queue0_RXDMA_HDP

=

(int

)RX_DESCP0_0

;

SRIO_REGS->Queue0_TXDMA_HDP

=

(int

)TX_DESCP0_0

;

Port TX￿DMA

state

2.3.5Maintenance

The type 8 MAINTENANCE packet format accesses the RapidIO capability registers (CARs), command and status registers (CSRs), and data structures. Unlike other request formats, the type 8 packet format serves as both the request and the response format for maintenance operations. Type 8 packets contain no addresses and only contain data payloads for write requests and read responses. All configuration register read accesses are word (4-byte) accesses. All configuration register write accesses are also word (4-byte) accesses.

The wrsize field specifies the maximum size of the data payload for multiple double-word transactions. The data payload may not exceed that size but may be smaller if desired. Both the maintenance read and the maintenance write request generate the appropriate maintenance response.

The maintenance port-write operation is a write operation that does not have guaranteed delivery and does not have an associated response. This maintenance operation is useful for sending messages such as error indicators or status information from a device that does not contain an endpoint, such as a switch. The data payload is typically placed in a queue in the targeted endpoint and an interrupt is typically generated to a local processor. A port-write request to a queue that is full or busy servicing another request may be discarded.

SRIO_REGS->LSU1_REG0 =

CSL_FMK( SRIO_LSU1_REG0_RAPIDIO_ADDRESS_MSB,0 );

 

SRIO_REGS->LSU1_REG1 =

CSL_FMK( SRIO_LSU1_REG1_ADDRESS_LSB_CONFIG_OFFSET, (int )car_csr );

SRIO_REGS->LSU1_REG2 =

CSL_FMK( SRIO_LSU1_REG2_DSP_ADDRESS, (int )&xmtBuff[0]);

SRIO_REGS->LSU1_REG3 =

CSL_FMK( SRIO_LSU1_REG3_BYTE_COUNT,byte_count );

 

SRIO_REGS->LSU1_REG4 =

CSL_FMK( SRIO_LSU1_REG4_OUTPORTID,0 )

 

 

CSL_FMK( SRIO_LSU1_REG4_PRIORITY,0 )

 

 

CSL_FMK( SRIO_LSU1_REG4_XAMSB,0 )

//no extended address

 

CSL_FMK( SRIO_LSU1_REG4_ID_SIZE,1 )

 

 

CSL_FMK( SRIO_LSU1_REG4_DESTID,0xBEEF )

 

 

CSL_FMK( SRIO_LSU1_REG4_INTERRUPT_REQ,0 );

 

 

SRIO_REGS->LSU1_REG5 =

CSL_FMK( SRIO_LSU1_REG5_DRBLL_INFO,0x0000 )

 

 

CSL_FMK( SRIO_LSU1_REG5_HOP_COUNT,0x03 )

 

 

CSL_FMK( SRIO_LSU1_REG5_PACKET_TYPE,type );

//type = REQ_MAINT_RD

2.3.6Doorbell Operation

The doorbell operation is shown in Figure 26. It consists of the DOORBELL and RESPONSE transactions (typically a DONE response), and it is used by a processing element to send a very short message to another processing element through the interconnect fabric. The DOORBELL transaction contains the info field to hold information and does not have a data payload. This field is software-defined and can be used

SPRUE13A –September 2006

Serial RapidIO (SRIO)

63

Submit Documentation Feedback

Page 63
Image 63
Texas Instruments TMS320TCI648x manual Start Message Passing, Maintenance, Doorbell Operation