# US 2003/0233497 A1 · DMA controller and method for checking address of data to be transferred with DMA

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

- Number: US 2003/0233497 A1
- Document ID: US20030233497A1
- Status: Published application
- Kind: A1
- Application number: 10/443,377
- Filed: 2003-05-22
- Published: 2003-12-18
- Earliest claimed: 2002-06-18
- Assignees: VIA Technologies, Inc.
- Inventors: Chien-Yi Shih
- Web page: https://patentgrep.com/patent/US20030233497A1

## 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 address of a data packet to be transferred from a memory to a network interface card within a direct memory access (DMA) is checked. First of all, the address of a descriptor corresponding to the data packet is read from the memory, wherein the descriptor contains information of the address of the data packet. Then, whether the address of the descriptor complies with a certain rule is determined. If the address of the descriptor does not comply with the certain rule, an interrupt signal is asserted to a processor to perform a corresponding interrupt service in order to re-read the address of the descriptor.

## Claims

### Claim 1

A method for checking an address of a data packet to be transferred from a memory to a hardware device by using a direct memory access (DMA), comprising steps of:
reading the address of a descriptor corresponding to said data packet from said memory, said descriptor containing information of said address of said data packet;
determining whether the address of said descriptor complies with a certain rule;
asserting an interrupt signal to a processor to perform a corresponding interrupt service when the address of said descriptor does not comply with said certain rule; and
re-reading the address of said descriptor of said data packet in response to said corresponding interrupt service.

### Claim 2 (depends on 1)

The method according to claim 1 further comprising a step of reading said descriptor of said data packet to realize said address of said data packet according to the address thereof when the address of said descriptor complies with said certain rule.

### Claim 3 (depends on 1)

The method according to claim 1 wherein the address of said descriptor is determined to comply with said certain rule if the address of said descriptor is within a region of said memory specified for storing descriptors and further confined between a first predetermined address and a second predetermined address.

### Claim 4 (depends on 3)

The method according to claim 3 wherein said first and second predetermined addresses are stored in a first and a second registers of a DMA controller of said hardware device, respectively.

### Claim 5 (depends on 1)

The method according to claim 1 wherein the address of said descriptor is determined to comply with said certain rule if the address of said descriptor is one of addresses determined according to an operational formula for storing descriptors.

### Claim 6 (depends on 5)

The method according to claim 5 wherein said addresses for storing said descriptors are determined by a logic operation device of a DMA controller of said hardware device.

### Claim 7 (depends on 1)

The method according to claim 1 wherein said memory is a main memory of a personal computer, and said hardware device is a network interface card, a hard disk drive, a sound card or a modem card.

### Claim 8

A method for transferring a data packet from a memory to a network device by using a direct memory access (DMA), comprising steps of:
reading the address of a descriptor corresponding to said data packet from said memory, said descriptor containing information of said address of said data packet;
checking whether the address of said descriptor is correct by comparing the address of said descriptor with a first and a second predetermined addresses;
asserting an interrupt signal to a processor to perform a corresponding interrupt service when the address of said descriptor is not correct, and re-reading the address of said descriptor of said data packet in response to said corresponding interrupt service; and
locating and reading said descriptor in said memory when a correct address of said descriptor is realized, and transferring said data packet from said memory to said network device according to the information contained in said descriptor.

### Claim 9 (depends on 8)

The method according to claim 8 further comprising steps of:
requesting a specified range of said memory from an operating system of a computer host via a driver for storing descriptors upon said computer host is initialized; and
presetting a starting and an end addresses of said specified range as said first and second predetermined addresses, respectively.

### Claim 10 (depends on 9)

The method according to claim 9 wherein said memory is a main memory, said network device is a network interface card, and said data packet is transferred from said main memory to a DMA controller of said network interface card via a chipset.

### Claim 11 (depends on 10)

The method according to claim 10 wherein said processor asserting said interrupt signal to perform said corresponding interrupt service via said chipset.

### Claim 12 (depends on 8)

The method according to claim 8 wherein the address of said descriptor is determined to be correct when the address of said descriptor is between said first predetermined address and said second predetermined address.

### Claim 13 (depends on 8)

The method according to claim 8 wherein the information of said descriptor contains the address of said data packet in said memory, the length and status of said data packet, and the address of an descriptor corresponding to another data packet next to said data packet.

### Claim 14 (depends on 8)

The method according to claim 8 wherein said data packet is transferred to a first-in first-out (FIFO) buffer of said DMA controller of said network device.

### Claim 15

A direct memory access (DMA) controller, being connected to a chipset that is further connected to a processor and integrated in a hardware device for directly accessing a data packet from a memory, said DMA controller reading the address of a descriptor of said data packet from said memory to locate said descriptor, and transferring said data packet according to the address of said data packet recorded in said descriptor, and said DMA controller comprising a discriminating device connected to said chipset to check whether the read address of said descriptor is correct according to a specified rule.

### Claim 16 (depends on 15)

The DMA controller according to claim 15 wherein the read address of said descriptor is determined to be correct by said discriminating device when the address of said descriptor lies between a first predetermined address and a second predetermined address.

### Claim 17 (depends on 16)

The DMA controller according to claim 16 wherein said first and second predetermined addresses are stored in a first and a second registers of said discriminating device, respectively.

### Claim 18 (depends on 15)

The DMA controller according to claim 15 wherein the read address of said descriptor is determined to be correct by said discriminating device when the address of said descriptor complies with an operational formula.

### Claim 19 (depends on 18)

The DMA controller according to claim 18 wherein whether the address of said descriptor complies with an operational formula is determined by a logic operation circuit of said discriminating device.

### Claim 20 (depends on 15)

The DMA controller according to claim 15 wherein said memory is a main memory, and said hardware device is a network interface card, a hard disk drive, a sound card or a modem card.

### Claim 21 (depends on 20)

The DMA controller according to claim 20 wherein said data packet is transferred from said main memory to a first-in first-out (FIFO) buffer of said DMA controller of said network interface card.
