# US 2013/0254433 A1 · Direct memory access system and method using the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254433 A1
- Document ID: US20130254433A1
- Status: Published application
- Kind: A1
- Application number: 13/899,579
- Filed: 2013-05-22
- Published: 2013-09-26
- Earliest claimed: 2008-02-20
- Assignees: Ralink Technology Corporation
- Applicants: Ralink Technology Corp.
- Inventors: Kuo-Cheng Lu
- Web page: https://patentgrep.com/patent/US20130254433A1

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The invention discloses a DMA system capable of being adapted to various interfaces. The DMA system includes the following advantages: 1) the software porting effort can be reduced when different interfaces are integrated into a SoC; 2) a flexible DMA that could provide protocol transparency and could be ported into different interfaces easily; 3) a scalable DMA that can support unlimited TX/RX scattering/gathering data segments; 4) a reusable DMA that provides user defined TX information (or RX information) and TX message (or RX message) field; and 5) a high performance DMA that support unaligned segment data pointers and unlimited scattering/gathering data segments, so as to reduce extra memory copies by CPU.

## Claims

### Claim 1

A direct memory access (DMA) system for directly accessing a memory and couple to an interface, the memory stored a TX packet and a corresponding TX descriptor included a TX information, the DMA system comprising:
a DMA transmitter for transmitting the TX information and the TX packet to the interface according to the TX descriptor, wherein the TX information is predetermined to communicate with the interface; and
a DMA receiver for receiving an RX packet and an RX information from the interface according to a RX descriptor, wherein the RX information is predetermined to communicate with the interface.

### Claim 2 (depends on 1)

The DMA system of claim 1, wherein the TX descriptor comprises at least one pointer, at least one length of the TX packet, and the TX information; wherein the RX descriptor comprises at least one pointer, at least one length of RX packet, and the RX information.

### Claim 3 (depends on 1)

The DMA system of claim 1, wherein the DMA transmitter selectively transmits a TX message between the TX packet and the TX information, and the DMA receiver selectively receives an RX message between the RX packet and the RX information, wherein the TX message and the RX message are predetermined to communicate with the interface.

### Claim 4 (depends on 3)

The DMA system of claim 3, wherein at least one of the TX message and the RX message has a variable length.

### Claim 5 (depends on 1)

The DMA system of claim 1, further comprising at least two first hardware indexes and at least two second hardware indexes, wherein the first hardware indexes are used for indicating an ownership of the TX descriptor, and the second hardware indexes are used for indicating an ownership of the RX descriptor.

### Claim 6 (depends on 1)

The DMA system of claim 1, wherein the TX descriptor is a TX descriptor ring, and the RX descriptor is an RX descriptor ring.

### Claim 7 (depends on 6)

The DMA system of claim 6, further comprising a scheduler for arranging the sequence of accessing the TX descriptor ring.

### Claim 8

A method for transmitting/receiving a packet in a direct memory access (DMA) system, the DMA system being used for directly accessing a memory and couple to an interface, the memory stored a TX packet and a corresponding TX descriptor included a TX information, the method comprising the steps of:
transmitting the TX packet and the TX information to the interface according to a TX descriptor, wherein the TX information is predetermined to communicate with the interface; and
receiving an RX packet and an RX information from the interface according to an RX descriptor, wherein the RX information is predetermined to communicate with the interface.

### Claim 9 (depends on 8)

The method of claim 8, wherein the TX descriptor comprises at least one pointer, at least one length of the TX packet, and the TX information; wherein the RX descriptor comprises at least one pointer, at least one length of the RX packet, and the RX information.

### Claim 10 (depends on 8)

The method of claim 8, further comprising the steps of:
selectively transmitting a TX message between the TX packet and the TX information; and
selectively receiving an RX message between the RX packet and the RX information;
wherein the TX message and the RX message are predetermined to communicate with the interface.

### Claim 11 (depends on 10)

The method of claim 10, wherein at least one of the TX message and the RX message has a variable length.

### Claim 12 (depends on 8)

The method of claim 8, further comprising the steps of:
indicating an ownership of the TX descriptor with at least two first hardware indexes; and
indicating an ownership of the RX descriptor with at least two second hardware indexes.

### Claim 13 (depends on 8)

The method of claim 8, wherein the TX descriptor is a TX descriptor ring, and the RX descriptor is an RX descriptor ring.

### Claim 14 (depends on 13)

The method of claim 13, further comprising the step of:
arranging the sequence of accessing the TX descriptor ring with a scheduler.
