Claims
- 1. A reception indicator, within a network peripheral that receives information packets for a host system from a communications network, the reception indicator comprising:
- means for storing a slave optimum interrupt time to be used when the network peripheral is operating in a slave mode;
- means for storing a DMA (Direct Memory Access) optimum interrupt time to be used when the network peripheral is operating in a DMA (Direct Memory Access) mode;
- means for asserting a reception signal to the host system at the slave optimum interrupt time before a last byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the slave mode; and
- means for asserting the reception signal to the host system at the DMA optimum time before a last byte of an information packet is expected to be copied to a host memory of the host system when the network peripheral is operating in the DMA mode.
- 2. The reception indicator of claim 1, wherein the means for storing the slave optimum interrupt time further includes:
- means for receiving the slave optimum interrupt time determined within the reception indicator.
- 3. The reception indicator of claim 1, wherein the means for storing the DMA optimum interrupt time further includes:
- means for receiving the DMA optimum interrupt time determined within the reception indicator.
- 4. The reception indicator of claim 1, wherein the slave optimum interrupt time is determined by performing the following operation:
- t.sub.SEG1.sbsb.--.sub.slv.sbsb.--.sub.mode =A.sub.slv.sbsb.--.sub.mode * PACKET.sub.-- SIZE-B.sub.slv.sbsb.--.sub.mode
- wherein:
- t.sub.SEG1.sbsb.--.sub.slv.sbsb.--.sub.mode is an average interrupt time measured from when a first byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the slave mode;
- A.sub.slv.sbsb.--.sub.mode is a slave mode interrupt time coefficient,
- B.sub.slv.sbsb.--.sub.mode is a slave mode interrupt time constant, and
- PACKET.sub.-- SIZE is a number of bytes in a portion of the information packet.
- 5. The reception indicator of claim 1, wherein the means for determining the DMA optimum interrupt time performs the following operation:
- t.sub.SEG1.sbsb.--.sub.dma.sbsb.--.sub.mode =A.sub.dma.sbsb.--.sub.mode *PACKET.sub.-- SIZE-B.sub.dma.sbsb.--.sub.mode
- wherein:
- t.sub.SEG1.sbsb.--.sub.dma.sbsb.--.sub.mode is an average interrupt time measured from when a first byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the DMA mode;
- A.sub.dma.sbsb.--.sub.mode is a DMA mode interrupt time coefficient,
- B.sub.dma.sbsb.--.sub.mode is a DMA mode interrupt time constant, and
- PACKET.sub.-- SIZE is a number of bytes in a portion of the information packet.
- 6. The reception indicator of claim 1, wherein the means for storing the slave optimum interrupt time is a register, and wherein the means for asserting the reception signal to the host system at the slave optimum interrupt time further includes:
- a decrementer for decrementing a length value of an information packet by a length of each portion of the information packet that is received from the communications network; and
- a comparator for comparing the content of the register and the content of the decrementer to generate the reception signal when the content of the decrementer is one of equal to and less than the content of the register.
- 7. The reception indicator of claim 1, wherein the means for storing the DMA optimum interrupt time is a register, and wherein the means for asserting the reception signal to the host system at the DMA optimum interrupt time further includes:
- a decrementer for decrementing a length value of an information packet by a length of each portion of the information packet that is copied to a host memory of the host system; and
- a comparator for comparing the content of the register and the content of the decrementer to generate the reception signal when the content of the decrementer is one of equal to and less than the content of the register.
- 8. The reception indicator of claim 1, wherein the reception signal is not asserted until after a minimum value number of bytes of an information packet has been received by the network peripheral from the communications network when the network peripheral is operating in the slave mode.
- 9. The reception indicator of claim 1, wherein the reception signal is not asserted until after a minimum value number of bytes of an information packet has been copied to a host memory of the host system by the network peripheral when the network peripheral is operating in the DMA mode.
- 10. The reception indicator of claim 1, wherein the slave optimum interrupt time and the DMA optimum interrupt time are each comprised of a respective interrupt latency time, a respective setup time, and a respective copy time.
- 11. A method for providing an interrupt at an optimum interrupt time to a host system for processing information packets received by a network peripheral from a communications network, the method including the steps of:
- determining that the network peripheral is operating in one of a slave mode and a DMA (Direct Memory Access) mode;
- storing a slave optimum interrupt time to be used when the network peripheral is operating in the slave mode;
- storing a DMA (Direct Memory Access) optimum interrupt time to be used when the network peripheral is operating in the DMA mode;
- asserting a reception signal to the host system at the slave optimum interrupt time before a last byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the slave mode; and
- asserting the reception signal to the host system at the DMA optimum time before a last byte of an information packet is expected to be copied to a host memory of the host system when the network peripheral is operating in the DMA mode.
- 12. The method of claim 11, wherein the slave optimum interrupt time is determined by performing the following operation:
- t.sub.SEG1.sbsb.--.sub.slv.sbsb.--.sub.mode =A.sub.slv.sbsb.--.sub.mode *PACKET.sub.-- SIZE-B.sub.slv.sbsb.--.sub.mode
- wherein:
- t.sub.SEG1.sbsb.--.sub.slv.sbsb.--.sub.mode is an average interrupt time measured from when a first byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the slave mode;
- A.sub.slv.sbsb.--.sub.mode is a slave mode interrupt time coefficient,
- B.sub.slv.sbsb.--.sub.mode is a slave mode interrupt time constant, and
- PACKET.sub.-- SIZE is a number of bytes in a portion of the information packet.
- 13. The method of claim 11, wherein the DMA optimum interrupt time is determined by performing the following operation:
- t.sub.SEG1.sbsb.--.sub.dma.sbsb.--.sub.mode =A.sub.dma.sbsb.--.sub.mode *PACKET.sub.-- SIZE-B.sub.dma.sbsb.--.sub.mode
- wherein:
- t.sub.SEG1.sbsb.--.sub.dma.sbsb.--.sub.mode is an average interrupt time measured from when a first byte of an information packet is expected to be received from the communications network when the network peripheral is operating in the DMA mode;
- A.sub.dma.sbsb.--.sub.mode is a DMA mode interrupt time coefficient,
- B.sub.dma.sbsb.--.sub.mode is a DMA mode interrupt time constant, and
- PACKET.sub.-- SIZE is a number of bytes in a portion of the information packet.
- 14. The method of claim 11, wherein the step of asserting the reception signal to the host system at the slave optimum interrupt time, further includes the step of:
- decrementing, within a decrementer, a length value of an information packet by a length of each portion of the information packet that is received from the communications network, and
- comparing the content of the decrementer with the slave optimum interrupt time to generate the reception signal when the content of the decrementer is one of equal to and less than the slave optimum interrupt time, when the network peripheral is operating in the slave mode.
- 15. The method of claim 11, wherein the step of asserting the reception signal to the host system at the DMA optimum interrupt time, further includes the step of:
- decrementing, within a decrementer, a length value of an information packet by a length of each portion of the information packet that is copied to a host memory of the host system; and
- comparing the content of the decrementer with the DMA optimum interrupt time to generate the reception signal when the content of the decrementer is one of equal to and less than the DMA optimum interrupt time, when the network peripheral is operating in the DMA mode.
- 16. The method of claim 11, wherein the reception signal is not asserted until after a minimum value number of bytes of an information packet has been received by the network peripheral from the communications network when the network peripheral is operating in the slave mode.
- 17. The method of claim 11, wherein the reception signal is not asserted until after a minimum value number of bytes of an information packet has been copied to a host memory of the host system by the network peripheral when the network peripheral is operating in the DMA mode.
- 18. The method of claim 11, wherein the slave optimum interrupt time and the DMA optimum interrupt time are each comprised of a respective interrupt latency time, a respective setup time, and a respective copy time.
BACKGROUND OF THE INVENTION
The present patent application is a continuation-in-part of the earlier filed copending patent application, with Ser. No. 08/882,604, filed on Jun. 25, 1997, for which priority is claimed and which is incorporated herein by reference. The detailed description of this earlier filed copending application is incorporated herewith, and the added detailed description for the present patent application is described under Section 5 of the detailed description entitled, "Optimum Interrupt Time for Programmed I/O Mode and for DMA Mode."
US Referenced Citations (8)
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
882604 |
Jun 1997 |
|