DMA controller and method for checking address of data to be transferred with DMA
AssigneeVIA Technologies, Inc.
InventorChien-Yi Shih
Life of this patent
Estimating the term…
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.
Claims21
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.
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.
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.
Dependencies are inferred from the claim text.