USRE41010E1 - System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal - Google Patents

System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal Download PDF

Info

Publication number
USRE41010E1
USRE41010E1 US10/667,241 US66724103A USRE41010E US RE41010 E1 USRE41010 E1 US RE41010E1 US 66724103 A US66724103 A US 66724103A US RE41010 E USRE41010 E US RE41010E
Authority
US
United States
Prior art keywords
data
memory access
status signal
access controller
data unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US10/667,241
Inventor
Kevin M. Christiansen
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apple Inc
Original Assignee
Apple Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apple Inc filed Critical Apple Inc
Priority to US10/667,241 priority Critical patent/USRE41010E1/en
Application granted granted Critical
Publication of USRE41010E1 publication Critical patent/USRE41010E1/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system

Definitions

  • the present invention relates to a method of and apparatus for using the status bits of a channel status register of a direct memory access (DMA) channel to control channel operation. It more particularly relates to the use of status bits to indicate when an external device has completed a data transmission and to indicate an end of a received data packet.
  • DMA direct memory access
  • DMA channels transfer data to and from main system memory with minimal burden on the system CPU.
  • Each channel controls itself and any attached I/O devices by executing instructions called channel commands.
  • Channel commands are organized into very simple programs called channel programs, also referred to as a “buffer descriptor list” in a descriptor based DMA system such as the DBDMA system created by Apple Computer, Inc., the assignee of the present application.
  • a DMA engine or controller may control operation of one or more channels.
  • the DMA controller may contain one register file which stores the current channel program pointers for each channel, and another register file which contains the current context (address, count, and flags) for each of the channels.
  • An example of such an implementation is the Apple Grand Central I/O Controller which services eleven DMA channels.
  • the function of the DMA controller is to arbitrate data transfer requests from various I/O devices in the system. These devices may operate only in slave mode DMA, that is, they may make requests which indicate that they have data in receive registers which is available to be received by the system, or that they have space available in transmission registers for data to be sent by the system. Also, the I/O device may indicate that either a transmit or receiver operation is complete by the generation of status information such as an interrupt which would normally require the attention of host processor.
  • DMA controller which could handle data and status information without calling on the host processor.
  • DMA controller which is able to process multiple complete transmit or receive operations without calling on the host processor.
  • This object is achieved through the provision of a method of transferring a data unit between a computer system memory and an external system through an I/O device using a memory access controller where the memory access controller includes a register for storing status information which the memory access controller uses to control its own operation.
  • a “data unit” is a discrete grouping of data such as would normally be transferred all at a time, such as a package of data in an Ethernet application.
  • the memory access controller together with the I/O device transfer the data unit between the computer system memory and the external system. This may be a transmit operation in which the data unit is sent from the memory to the external system, or a receive operation in which the data unit is received from the external system.
  • the I/O device Upon completion of the operation, the I/O device sends a data status signal to the memory access controller.
  • the memory access controller then stores an indication of the data status signal.
  • the memory access controller retrieves the data unit from the computer system memory and transmits the data unit to the I/O device.
  • the I/O device then transmits the data unit to the external system, and, upon successful completion of this task, sends the data status signal which indicates a successful transmission of data unit to the external system by the I/O device.
  • the memory access controller stores an indication of the data status signal by setting a bit in its channel status register. The memory access controller waits until the bit reflects a value of the data status signal indicating successful transmission of a data unit to the external system before taking additional action such as requesting status information or sending another data unit.
  • the I/O device transmits the data unit as received from the external system to the memory access controller. It then sends a data status signal indicating forwarding of an end of the data unit from the external system.
  • the memory access controller sets a bit in its channel status register and requests data unit information form the I/O device. The memory access controller then appends the data unit information to the end of the received data unit. This permits flexible storage.
  • the external system may be a network and the I/O device may be an Ethernet controller, in which case the data unit corresponds to a data packet.
  • the data status signal is preferably an interrupt signal.
  • the memory access controller is a DMA channel controller, and there are two DMA channels, a receive channel and a transmit channel, with the interrupt from the receive channel being masked.
  • the data status signal may be an end-of-packet signal.
  • the data unit is stored in at least one of a plurality of buffers allocated in the system memory with each of the plurality of buffers being smaller than a maximum data unit size.
  • the data unit information preferably comprises a plurality of status bytes.
  • a computer system embodying the invention preferably includes a computer system memory and an I/O device connected to an external system to transfer data units between the computer system memory and an external system.
  • the I/O device including a data status signal generator generates a data status signal upon completion of transfer of a data unit.
  • a memory access controller connected to the computer system memory and the I/O device includes a register for storing status information which the memory access controller uses to control its own operation.
  • the memory access controller receives the data status signal and stores an indication of a value of the data status signal in the register.
  • the data status signal indicates a successful transmission of data unit to the external system by the I/O device.
  • the I/O device transmits the data unit received from the external system to the memory access controller.
  • the data memory access controller uses the data status signal to append data unit information to the end of the data unit.
  • FIG. 1 is a functional block diagram of a computer system according to one embodiment of the present invention.
  • FIG. 2 illustrates organization of information in a channel control register according to one embodiment of the present invention
  • FIG. 3 illustrates organization of information in a channel status register according to one embodiment of the present invention
  • FIG. 4 is a functional block diagram of an I/O controller used with an Ethernet controller in accordance with one embodiment of the present invention
  • FIG. 5 is a flowchart illustrating the operation of an Ethernet transmit channel according to a presently preferred embodiment of the invention.
  • FIG. 6 is a chart illustrating operation of an an Ethernet transmit channel according to a presently preferred embodiment of the invention.
  • FIG. 7 illustrates designations of Ethernet transmit channel status bits according to one embodiment of the present invention
  • FIG. 8 is a flowchart illustrating the operation of the Ethernet receive channel.
  • FIG. 9 illustrates designations of Ethernet receive channel status bits according to one embodiment of the present invention.
  • FIG. 1 illustrates an integrated I/O controller 10 in a system according to one embodiment of the present invention.
  • a plurality of I/O devices or external device controllers 20 are connected through a plurality of interfaces 30 to a bus 40 within the I/O controller 10 .
  • Each I/O device is in turn connected to an external device system 50 .
  • the I/O controller 10 also contains a DMA engine 60 and a bus interface 70 which are used to control the flow of data from the I/O devices 20 out onto an external system bus 80 where the data can be stored in a memory 90 or used by other devices.
  • a DMA controller is more completely described in U.S. patent application Nos. 08/340,248 and 08/340,249, both of which are incorporated herein by reference.
  • the I/O controller 10 includes a channel control register 100 and a channel status register 110 which are mapped onto system memory 90 .
  • the channel control register 100 contains bits which control the operational state of the DMA channel.
  • One organization scheme for the information stored in the channel control register 100 is illustrated in FIG. 2 . As can be seen, the channel control register 100 is divided into two fields: a mask field 120 and a data field 130 .
  • the mask field 120 selects which of the bits in the data field 130 are modified by a write operation.
  • the channel status register 110 is illustrated in FIG. 3 . It provides access to the DMA channel's internal status bits. In other words, the eight general purpose status bits are written through the channel control register and read through the channel status register. The bits s 7 -s 0 can be used for general purpose status operations. DMA tests these bits after the completion of each channel command to determine if various actions should be taken by the DMA channel. These status bits thus can be used for general purpose status and control. Their meaning may be channel specific, and they can be controlled either by hardware or software. They may effect conditional interrupt, branch, and wait conditions.
  • one or more of the I/O devices 20 is capable of sending status information back to the I/O controller 10 .
  • the I/O device 20 is an Ethernet controller. It will be understood by one of ordinary skill in the art, however, that the invention may be embodied in connection with other I/O devices.
  • FIG. 4 a system is disclosed wherein one of the I/O interfaces is embodied as an Ethernet I/O module 130 , and wherein one of the I/O devices is embodied as an Ethernet controller 140 which connects to an external Ethernet network 150 .
  • the Ethernet controller 140 performs all of the low-level protocol handling and provides first-in first-out (FIFO) memory for data buffers in the form of a receive FIFO 160 and a transmit FIFO 170 .
  • the Ethernet controller 140 has a slave mode DMA interface 180 , with separate request lines for transmit and receive.
  • the Ethernet controller 140 When there is space to put additional data in the transmit FIFO 170 , the Ethernet controller 140 asserts a DMA request. Similarly, the Ethernet controller 140 asserts a receive DMA request when data is available in the receive FIFO 160 .
  • the Ethernet controller 140 is a register based peripheral. It is configured using simple memory mapped I/O read or write commands. From a software standpoint, the Ethernet controller 140 operates as a data conduit to and from the Ethernet network 150 through a register based function program, DMA data movement, and interrupt driven event handling.
  • the Ethernet controller 140 is connected to the I/O controller 10 through an Ethernet I/O module 130 . (Additional elements within the I/O controller 10 are the same as those shown in FIG. 1 and are omitted from FIG. 4 for clarity.)
  • the Ethernet controller 140 is also connected to an external media network 150 through a media interface 190 in a media access controller 200 .
  • the media access controller 200 moves data to the receive FIFO 160 and the transmit FIFO 170 .
  • the Ethernet controller 140 communicates with the Ethernet I/O module 130 over DMA request lines 210 , address lines 220 , a chip select line 230 , and an interrupt line 240 .
  • the Ethernet I/O module 130 in the I/O controller 10 provides the necessary interfaces to the Ethernet controller 140 .
  • the Ethernet I/O module 130 performs the read or write cycle directly with the Ethernet controller 140 .
  • the I/O controller 10 has two DMA channels for Ethernet: a receive channel and a transmit channel.
  • the Ethernet I/O module 130 moves data in and out of the Ethernet controller 140 's FIFOs 160 and 170 , respectively, and retrieves the status information from the Ethernet controller 140 after DMA is completed.
  • the DMA request from the Ethernet controller 140 along with an active running DMA channel command triggers a DMA transfer.
  • step S 1 in FIG. 5 the memory access controller, which in the example is I/O controller 10 , transfers a data unit in the form of one or more data packets from the memory 90 (see FIG. 1 ) to an I/O device, labelled an external device controller, e.g., Ethernet controller 140 .
  • an external device controller e.g., Ethernet controller 140
  • the external device controller 140 then sends the data unit to the external system 150
  • the memory access controller 10 transfers the data unit to the bus interface 180 which transfers the data packets to the transmit FIFO buffer 170 .
  • the I/O device controller 140 then transmits the data unit to the external system 150 .
  • the I/O device controller 140 waits to receive an indication from the external system 150 that the data unit has been successfully transmitted.
  • the I/O device controller 140 After the I/O device controller 140 has received the indication from the external system 150 , in step S 3 , it sends an interrupt signal over interrupt line 240 to the memory access controller 10 .
  • the media access controller 200 sets its status registers 250 to a setting that indicates that the complete packet was sent.
  • the interrupt signal causes a bit to be set in the memory access controller 10 's channel status register 110 which, in the example shown in FIG. 3 , is bit s 5 , thus storing an indication of receipt of the interrupt signal.
  • This information can then be used to control subsequent operation of the memory access controller 10 .
  • the memory access controller can be in a wait condition until the status bit is set, which will cause the memory access controller to execute a next instruction.
  • it can be used to prompt the memory access controller 10 to request status information from the status registers 250 , which the external device controller then provides.
  • the process can be repeated to transmit another packet before the channel goes idle. Assuming normal operation, the system processor does not need to be interrupted until the last packet has been sent.
  • the Ethernet controller 140 will also produce an interrupt signal if an error occurs during transmission.
  • FIG. 7 One example of how the bits s 7 -s 0 can be arranged in the channel status register 110 is illustrated in FIG. 7 , wherein only the bits s 7 , s 5 , and sO may be asserted to generate actions by the DMA channel.
  • the DMA controller 60 interprets the set status bit to means that the packet was transmitted by the Ethernet controller 140 .
  • the I/O controller 10 reads the status information stored in the status registers 250 .
  • the interrupt signal can also be transmitted only after the completion of the last data packet in a data stream.
  • step S 1 ′ data packets are being written into a system memory 90 from an external device 150 .
  • the Ethernet controller 140 determines that data packet transmission to the I/O controller 10 has been completed (step S 2 ′)
  • the Ethernet controller 140 sets the status register 250 to indicate the status of the packet that was just transmitted and generates an interrupt signal as a status bit in step S 3 ′.
  • FIG. 9 One example of how the status bits can be arranged for the receive channel status register is illustrated in FIG. 9 .
  • the status bit s 6 indicates that the packet has been sent. By tying the interrupt signal to the s 6 bit of the receive channel status register, the interrupt signal will indicate to the I/O controller 10 that the end of the packet has been received.
  • the I/O controller 10 In response to receipt of the interrupt/status bit, the I/O controller 10 requests the status information contained in the status registers 250 in the Ethernet controller 140 in step S 4 ′.
  • the Ethernet controller 140 then in step S 5 ′ sends the status information (which, for example, may be four bytes) to the I/O controller 10 which writes the status information on to the end of the received packet in step S 6 ′.
  • the status bit s 6 can be used to indicate the end of a packet, which in turn means that the buffer size can be made smaller than the maximum data packet size. This allows for a more efficient use of the available buffer space since the buffers are no longer tied to a one-to-one correspondence with the data packets.

Abstract

A method and system for transferring units of data between a computer memory and an external system in which a DMA controller stores and uses information from an I/O device interfacing with the external system to transfer data more efficiently.

Description

RELATED APPLICATIONS
This application is a continuation application of U.S. Reissue Application Ser. No. 09/972,847, filed Oct. 4, 2001, which is a reissue application of U.S. Pat. No. 5,961,614, issued Oct. 5, 1999, which is a continuation-in-part of U.S. Application No. 08/436,969, filed May 8, 1995, and entitled “Communication Interface with Improved Packet Transfer,” now abandoned.”
FIELD
The present invention relates to a method of and apparatus for using the status bits of a channel status register of a direct memory access (DMA) channel to control channel operation. It more particularly relates to the use of status bits to indicate when an external device has completed a data transmission and to indicate an end of a received data packet.
BACKGROUND
DMA channels transfer data to and from main system memory with minimal burden on the system CPU. Each channel controls itself and any attached I/O devices by executing instructions called channel commands. Channel commands are organized into very simple programs called channel programs, also referred to as a “buffer descriptor list” in a descriptor based DMA system such as the DBDMA system created by Apple Computer, Inc., the assignee of the present application.
A DMA engine or controller may control operation of one or more channels. The DMA controller may contain one register file which stores the current channel program pointers for each channel, and another register file which contains the current context (address, count, and flags) for each of the channels. An example of such an implementation is the Apple Grand Central I/O Controller which services eleven DMA channels.
The function of the DMA controller is to arbitrate data transfer requests from various I/O devices in the system. These devices may operate only in slave mode DMA, that is, they may make requests which indicate that they have data in receive registers which is available to be received by the system, or that they have space available in transmission registers for data to be sent by the system. Also, the I/O device may indicate that either a transmit or receiver operation is complete by the generation of status information such as an interrupt which would normally require the attention of host processor.
It would be beneficial to have a DMA controller which could handle data and status information without calling on the host processor. In particular, it would be useful to have a DMA controller which is able to process multiple complete transmit or receive operations without calling on the host processor.
SUMMARY
It is an object of the present invention to overcome the deficiencies of the prior art by using status bits to facilitate the transfer and efficient storage of packets of data.
This object is achieved through the provision of a method of transferring a data unit between a computer system memory and an external system through an I/O device using a memory access controller where the memory access controller includes a register for storing status information which the memory access controller uses to control its own operation. A “data unit” is a discrete grouping of data such as would normally be transferred all at a time, such as a package of data in an Ethernet application. The memory access controller together with the I/O device transfer the data unit between the computer system memory and the external system. This may be a transmit operation in which the data unit is sent from the memory to the external system, or a receive operation in which the data unit is received from the external system. Upon completion of the operation, the I/O device sends a data status signal to the memory access controller. The memory access controller then stores an indication of the data status signal.
More specifically, in the case of an example of a data transmit operation, the memory access controller retrieves the data unit from the computer system memory and transmits the data unit to the I/O device. The I/O device then transmits the data unit to the external system, and, upon successful completion of this task, sends the data status signal which indicates a successful transmission of data unit to the external system by the I/O device. The memory access controller stores an indication of the data status signal by setting a bit in its channel status register. The memory access controller waits until the bit reflects a value of the data status signal indicating successful transmission of a data unit to the external system before taking additional action such as requesting status information or sending another data unit.
In the case of an example of a receive operation, the I/O device transmits the data unit as received from the external system to the memory access controller. It then sends a data status signal indicating forwarding of an end of the data unit from the external system. In response, the memory access controller sets a bit in its channel status register and requests data unit information form the I/O device. The memory access controller then appends the data unit information to the end of the received data unit. This permits flexible storage.
The external system may be a network and the I/O device may be an Ethernet controller, in which case the data unit corresponds to a data packet. The data status signal is preferably an interrupt signal.
In one particular embodiment, the memory access controller is a DMA channel controller, and there are two DMA channels, a receive channel and a transmit channel, with the interrupt from the receive channel being masked.
In the case of a receive operation, the data status signal may be an end-of-packet signal. The data unit is stored in at least one of a plurality of buffers allocated in the system memory with each of the plurality of buffers being smaller than a maximum data unit size. The data unit information preferably comprises a plurality of status bytes.
In another aspect, a computer system embodying the invention preferably includes a computer system memory and an I/O device connected to an external system to transfer data units between the computer system memory and an external system. The I/O device including a data status signal generator generates a data status signal upon completion of transfer of a data unit. A memory access controller connected to the computer system memory and the I/O device includes a register for storing status information which the memory access controller uses to control its own operation. The memory access controller receives the data status signal and stores an indication of a value of the data status signal in the register. In a transmit operation, the data status signal indicates a successful transmission of data unit to the external system by the I/O device. During a data receiving operation the I/O device transmits the data unit received from the external system to the memory access controller. The data memory access controller uses the data status signal to append data unit information to the end of the data unit.
BRIEF DESCRIPTION OF THE DRAWINGS
The accompanying drawings, with are incorporated in and constitute a part of the specification, schematically illustrate a preferred embodiment of the present invention and, together with the general description given above and the detailed description of the preferred embodiment given below, serve to explain the principles of the present invention, in which:
FIG. 1 is a functional block diagram of a computer system according to one embodiment of the present invention;
FIG. 2 illustrates organization of information in a channel control register according to one embodiment of the present invention;
FIG. 3 illustrates organization of information in a channel status register according to one embodiment of the present invention;
FIG. 4 is a functional block diagram of an I/O controller used with an Ethernet controller in accordance with one embodiment of the present invention;
FIG. 5 is a flowchart illustrating the operation of an Ethernet transmit channel according to a presently preferred embodiment of the invention;
FIG. 6 is a chart illustrating operation of an an Ethernet transmit channel according to a presently preferred embodiment of the invention;
FIG. 7 illustrates designations of Ethernet transmit channel status bits according to one embodiment of the present invention;
FIG. 8 is a flowchart illustrating the operation of the Ethernet receive channel; and
FIG. 9 illustrates designations of Ethernet receive channel status bits according to one embodiment of the present invention.
DETAILED DESCRIPTION
FIG. 1 illustrates an integrated I/O controller 10 in a system according to one embodiment of the present invention. A plurality of I/O devices or external device controllers 20 are connected through a plurality of interfaces 30 to a bus 40 within the I/O controller 10. Each I/O device is in turn connected to an external device system 50. The I/O controller 10 also contains a DMA engine 60 and a bus interface 70 which are used to control the flow of data from the I/O devices 20 out onto an external system bus 80 where the data can be stored in a memory 90 or used by other devices. A DMA controller is more completely described in U.S. patent application Nos. 08/340,248 and 08/340,249, both of which are incorporated herein by reference.
The I/O controller 10 includes a channel control register 100 and a channel status register 110 which are mapped onto system memory 90. The channel control register 100 contains bits which control the operational state of the DMA channel. One organization scheme for the information stored in the channel control register 100 is illustrated in FIG. 2. As can be seen, the channel control register 100 is divided into two fields: a mask field 120 and a data field 130. The mask field 120 selects which of the bits in the data field 130 are modified by a write operation.
The channel status register 110 is illustrated in FIG. 3. It provides access to the DMA channel's internal status bits. In other words, the eight general purpose status bits are written through the channel control register and read through the channel status register. The bits s7-s0 can be used for general purpose status operations. DMA tests these bits after the completion of each channel command to determine if various actions should be taken by the DMA channel. These status bits thus can be used for general purpose status and control. Their meaning may be channel specific, and they can be controlled either by hardware or software. They may effect conditional interrupt, branch, and wait conditions.
In the present invention, one or more of the I/O devices 20 is capable of sending status information back to the I/O controller 10. This will now be discussed for the example where the I/O device 20 is an Ethernet controller. It will be understood by one of ordinary skill in the art, however, that the invention may be embodied in connection with other I/O devices.
Turning to FIG. 4, a system is disclosed wherein one of the I/O interfaces is embodied as an Ethernet I/O module 130, and wherein one of the I/O devices is embodied as an Ethernet controller 140 which connects to an external Ethernet network 150. The Ethernet controller 140 performs all of the low-level protocol handling and provides first-in first-out (FIFO) memory for data buffers in the form of a receive FIFO 160 and a transmit FIFO 170. The Ethernet controller 140 has a slave mode DMA interface 180, with separate request lines for transmit and receive.
When there is space to put additional data in the transmit FIFO 170, the Ethernet controller 140 asserts a DMA request. Similarly, the Ethernet controller 140 asserts a receive DMA request when data is available in the receive FIFO 160.
The Ethernet controller 140 is a register based peripheral. It is configured using simple memory mapped I/O read or write commands. From a software standpoint, the Ethernet controller 140 operates as a data conduit to and from the Ethernet network 150 through a register based function program, DMA data movement, and interrupt driven event handling.
As mentioned, the Ethernet controller 140 is connected to the I/O controller 10 through an Ethernet I/O module 130. (Additional elements within the I/O controller 10 are the same as those shown in FIG. 1 and are omitted from FIG. 4 for clarity.) The Ethernet controller 140 is also connected to an external media network 150 through a media interface 190 in a media access controller 200. The media access controller 200 moves data to the receive FIFO 160 and the transmit FIFO 170. The Ethernet controller 140 communicates with the Ethernet I/O module 130 over DMA request lines 210, address lines 220, a chip select line 230, and an interrupt line 240.
The Ethernet I/O module 130 in the I/O controller 10 provides the necessary interfaces to the Ethernet controller 140. When the host accesses the Ethernet controller 140 registers using memory mapped reads or writes, the Ethernet I/O module 130 performs the read or write cycle directly with the Ethernet controller 140.
The I/O controller 10 has two DMA channels for Ethernet: a receive channel and a transmit channel. During Ethernet receive and transmit DMA operations, the Ethernet I/O module 130 moves data in and out of the Ethernet controller 140's FIFOs 160 and 170, respectively, and retrieves the status information from the Ethernet controller 140 after DMA is completed. The DMA request from the Ethernet controller 140 along with an active running DMA channel command triggers a DMA transfer.
A process for transmitting data packets from the system memory to an external device such as the Ethernet controller 24 will now be described with reference to FIGS. 4, 5, and 6. In step S1 in FIG. 5, the memory access controller, which in the example is I/O controller 10, transfers a data unit in the form of one or more data packets from the memory 90 (see FIG. 1) to an I/O device, labelled an external device controller, e.g., Ethernet controller 140. This is also shown graphically in FIG. 6. The external device controller 140 then sends the data unit to the external system 150 Specifically, the memory access controller 10 transfers the data unit to the bus interface 180 which transfers the data packets to the transmit FIFO buffer 170. The I/O device controller 140 then transmits the data unit to the external system 150. In step S2, the I/O device controller 140 waits to receive an indication from the external system 150 that the data unit has been successfully transmitted. After the I/O device controller 140 has received the indication from the external system 150, in step S3, it sends an interrupt signal over interrupt line 240 to the memory access controller 10. In the specific embodiment depicted, the media access controller 200 sets its status registers 250 to a setting that indicates that the complete packet was sent.
The interrupt signal causes a bit to be set in the memory access controller 10's channel status register 110 which, in the example shown in FIG. 3, is bit s5, thus storing an indication of receipt of the interrupt signal. This information can then be used to control subsequent operation of the memory access controller 10. For example, the memory access controller can be in a wait condition until the status bit is set, which will cause the memory access controller to execute a next instruction. Also, as shown in step S4, it can be used to prompt the memory access controller 10 to request status information from the status registers 250, which the external device controller then provides. The process can be repeated to transmit another packet before the channel goes idle. Assuming normal operation, the system processor does not need to be interrupted until the last packet has been sent.
The Ethernet controller 140 will also produce an interrupt signal if an error occurs during transmission.
One example of how the bits s7-s0 can be arranged in the channel status register 110 is illustrated in FIG. 7, wherein only the bits s7, s5, and sO may be asserted to generate actions by the DMA channel. In this example, the DMA controller 60 interprets the set status bit to means that the packet was transmitted by the Ethernet controller 140. As a result, the I/O controller 10 reads the status information stored in the status registers 250. It will be appreciated by one skilled in the art that the interrupt signal can also be transmitted only after the completion of the last data packet in a data stream.
The operation of an exemplary Ethernet receive channel is illustrated in FIG. 8. In step S1′, data packets are being written into a system memory 90 from an external device 150. When the Ethernet controller 140 determines that data packet transmission to the I/O controller 10 has been completed (step S2′), the Ethernet controller 140 sets the status register 250 to indicate the status of the packet that was just transmitted and generates an interrupt signal as a status bit in step S3′. One example of how the status bits can be arranged for the receive channel status register is illustrated in FIG. 9. In this embodiment of the present invention, the status bit s6 indicates that the packet has been sent. By tying the interrupt signal to the s6 bit of the receive channel status register, the interrupt signal will indicate to the I/O controller 10 that the end of the packet has been received.
In response to receipt of the interrupt/status bit, the I/O controller 10 requests the status information contained in the status registers 250 in the Ethernet controller 140 in step S4′. The Ethernet controller 140 then in step S5′ sends the status information (which, for example, may be four bytes) to the I/O controller 10 which writes the status information on to the end of the received packet in step S6′. Thus, the status bit s6 can be used to indicate the end of a packet, which in turn means that the buffer size can be made smaller than the maximum data packet size. This allows for a more efficient use of the available buffer space since the buffers are no longer tied to a one-to-one correspondence with the data packets.
It will be appreciated by those skilled in the art that the present invention can be embodied in other specific forms without departing from the spirit or essential character thereof. The presently disclosed embodiments are therefore considered in all respects to be illustrative and not restrictive. The scope of the invention is indicated by the appended claims rather than the foregoing description, and all changes which come within the meaning and range of equivalents thereof are intended to be embraced herein.

Claims (20)

1. A method of transferring a data unit from a computer system memory and to an external system through an I/O device using a memory access controller, said memory access controller including a register for storing information which the memory access controller uses to control its own operation, said method comprising the steps of:
a first step, executed by said memory access controller, of retrieving said data unit from said computer system memory and transmitting said data unit to said I/O device;
a second step, executed by said I/O device, of transmitting said data unit retrieved and transmitted in said first step to said external system;
a third step, executed by said I/O device, of sending a data status signal to said memory access controller when said second step is complete; and
a fourth step, executed by said memory access controller, of storing an indication of said data status signal sent in said third step in said register.
2. A method as in claim 1 wherein said data status signal indicates a successful transmission of said data unit to said external system by said I/O device, wherein said register is a channel status register, and wherein a bit of said channel status register assumes a value indicative of receipt of said data status signal.
3. A method as claimed in claim 1 2 wherein said memory access controller waits until said bit reflects a value of said data status signal indicating successful transmission of a data unit to the external system before sending another data unit.
4. A method as claimed in claim 1 wherein said external system is a network, said I/O device is an Ethernet controller, and said data unit is a packet.
5. A method as claimed in claim 1 wherein said data status signal is an interrupt signal.
6. A method as claimed in claim 1 wherein said memory access controller is a DMA channel controller.
7. A method as claimed in claim 1 wherein there are two DMA channels, a receive channel and a transmit channel, and wherein an interrupt from a said receive channel is masked.
8. A computer system comprising:
a computer system memory;
an I/O device connected to an external system to transfer data units between said computer system memory and an external system; , said I/O device including a data status signal generator which generates a data status signal upon completion of transfer of a data unit;
a memory access controller connected to said computer system memory and said I/O device; said memory access controller including a register for storing status information which the memory access controller uses to control its own operation, wherein said memory access controller receives said data status signal and stores an indication of a value of said data status signal in said register, wherein during a data transmit operation the memory access controller retrieves said data unit from said computer system memory and transfers said data unit to said I/O device and said I/O device transmits said data unit to said external system and wherein the said data transfer status signal is sent from the I/O device to the memory access controller after the transfer of said data unit to said I/O device.
9. A computer system as claimed in claim 8 wherein said data status signal indicates a successful transmission of a data unit to said external system by said I/O device, wherein said register is a channel status register, and wherein a bit of the channel status register is arranged to reflect a value of said data status signal.
10. A computer system as claimed in claim 9 wherein said memory access controller waits until said bit reflects a value of said data status signal indicating successful transmission of a data unit to the external system before sending another data unit.
11. The method of claim 1 wherein the data status signal indicates the end of the data unit.
12. The method of claim 1 wherein the data status signal is used to control the operation of the memory access controller.
13. The method of claim 1 wherein the memory access controller executes an instruction in response to the data status signal.
14. The method of claim 1 wherein the data status signal is used to prompt the memory access controller to request information from the I/O device.
15. The method of claim 1 wherein the data status signal is used to keep a channel process active.
16. The system of claim 8 wherein the data status signal indicates the end of the data unit.
17. The system of claim 8 wherein the data status signal is used to control the operation of the memory access controller.
18. The system of claim 8 wherein the memory access controller executes an instruction in response to receipt of the data status signal.
19. The system of claim 8 wherein the data status signal is used to prompt the memory access controller to request information from the I/O device.
20. The system of claim 8 wherein the data status signal is used to keep a channel process active.
US10/667,241 1995-05-08 2003-09-18 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal Expired - Lifetime USRE41010E1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/667,241 USRE41010E1 (en) 1995-05-08 2003-09-18 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US43696995A 1995-05-08 1995-05-08
US08/647,451 US5961614A (en) 1995-05-08 1996-05-07 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal
US97284701A 2001-10-04 2001-10-04
US10/667,241 USRE41010E1 (en) 1995-05-08 2003-09-18 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US08/647,451 Reissue US5961614A (en) 1995-05-08 1996-05-07 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal

Publications (1)

Publication Number Publication Date
USRE41010E1 true USRE41010E1 (en) 2009-11-24

Family

ID=23734541

Family Applications (2)

Application Number Title Priority Date Filing Date
US08/647,451 Ceased US5961614A (en) 1995-05-08 1996-05-07 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal
US10/667,241 Expired - Lifetime USRE41010E1 (en) 1995-05-08 2003-09-18 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US08/647,451 Ceased US5961614A (en) 1995-05-08 1996-05-07 System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal

Country Status (1)

Country Link
US (2) US5961614A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6145030A (en) * 1998-03-27 2000-11-07 Intel Corporation System for managing input/output address accesses at a bridge/memory controller
US6275877B1 (en) * 1998-10-27 2001-08-14 James Duda Memory access controller
US6430628B1 (en) * 1998-12-08 2002-08-06 Intel Corporation Method and apparatus for reducing direct memory access transfers using smart coalescing
US6842457B1 (en) * 1999-05-21 2005-01-11 Broadcom Corporation Flexible DMA descriptor support
US6665306B1 (en) * 1999-11-24 2003-12-16 Intel Corporation Immediate cut-off protocol and interface for a packet-based bus connecting processors
US6499077B1 (en) * 1999-12-30 2002-12-24 Intel Corporation Bus interface unit for reflecting state information for a transfer request to a requesting device
GB2359906B (en) * 2000-02-29 2004-10-20 Virata Ltd Method and apparatus for DMA data transfer
US6829660B2 (en) * 2001-12-12 2004-12-07 Emulex Design & Manufacturing Corporation Supercharge message exchanger
DE102009023199A1 (en) * 2009-05-29 2010-12-02 Siemens Aktiengesellschaft communication system
US9563586B2 (en) * 2013-04-11 2017-02-07 Apple Inc. Shims for processor interface

Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680755A (en) 1985-11-14 1987-07-14 Hewlett Packard Company Real-time end of packet signal generator
US4700358A (en) 1985-11-18 1987-10-13 Hayes Microcomputer Products, Inc. Synchronous/asynchronous modem
US4757446A (en) 1986-04-01 1988-07-12 Wang Laboratories, Inc. High-speed link for connecting peer systems
US4942515A (en) 1986-03-31 1990-07-17 Wang Laboratories, Inc. Serial communications controller with FIFO register for storing supplemental data and counter for counting number of words within each transferred frame
US4989113A (en) 1987-03-13 1991-01-29 Texas Instruments Incorporated Data processing device having direct memory access with improved transfer control
US5136580A (en) 1990-05-16 1992-08-04 Microcom Systems, Inc. Apparatus and method for learning and filtering destination and source addresses in a local area network system
US5247517A (en) 1989-10-20 1993-09-21 Novell, Inc. Method and apparatus for analyzing networks
US5247626A (en) 1990-05-29 1993-09-21 Advanced Micro Devices, Inc. Fddi controller having flexible buffer management
US5361372A (en) 1991-12-27 1994-11-01 Digital Equipment Corporation Memory management for data transmission networks
US5379381A (en) 1991-08-12 1995-01-03 Stratus Computer, Inc. System using separate transfer circuits for performing different transfer operations respectively and scanning I/O devices status upon absence of both operations
US5400326A (en) 1993-12-22 1995-03-21 International Business Machines Corporation Network bridge
US5434872A (en) 1992-07-28 1995-07-18 3Com Corporation Apparatus for automatic initiation of data transmission
US5457681A (en) 1992-06-05 1995-10-10 Washington University ATM-Ethernet portal/concentrator
US5488724A (en) 1990-05-29 1996-01-30 Advanced Micro Devices, Inc. Network controller with memory request and acknowledgement signals and a network adapter therewith
US5513320A (en) 1990-04-27 1996-04-30 National Semiconductor Corporation Transmit data descriptor structure in a media access control/host system interface that implements flexible transmit data descriptor structure unit
US5528587A (en) 1993-06-30 1996-06-18 International Business Machines Corporation Programmable high performance data communication adapter for high speed packet transmission networks
US5537413A (en) 1988-08-12 1996-07-16 Digital Equipment Corporation Frame removal mechanism for token ring networks
US5568608A (en) 1992-12-14 1996-10-22 E-Systems, Inc. Method for protecting data in media recording peripheral devices
US5584010A (en) * 1988-11-25 1996-12-10 Mitsubishi Denki Kabushiki Kaisha Direct memory access control device and method in a multiprocessor system accessing local and shared memory
US5611046A (en) 1992-11-18 1997-03-11 Canon Kabushiki Kaisha Method and apparatus for interfacing a peripheral to a local area network
US5612742A (en) 1994-10-19 1997-03-18 Imedia Corporation Method and apparatus for encoding and formatting data representing a video program to provide multiple overlapping presentations of the video program
US5614685A (en) * 1991-06-27 1997-03-25 Yamaha Corporation Digital signal processor for musical tone synthesizers and the like
US5625842A (en) 1988-05-18 1997-04-29 Zilog, Inc. System for the automatic transfer of message status in digital data communication
US5696989A (en) 1990-06-25 1997-12-09 Nec Corporation Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
US5720770A (en) 1995-10-06 1998-02-24 Pacesetter, Inc. Cardiac stimulation system with enhanced communication and control capability

Patent Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680755A (en) 1985-11-14 1987-07-14 Hewlett Packard Company Real-time end of packet signal generator
US4700358A (en) 1985-11-18 1987-10-13 Hayes Microcomputer Products, Inc. Synchronous/asynchronous modem
US4942515A (en) 1986-03-31 1990-07-17 Wang Laboratories, Inc. Serial communications controller with FIFO register for storing supplemental data and counter for counting number of words within each transferred frame
US4757446A (en) 1986-04-01 1988-07-12 Wang Laboratories, Inc. High-speed link for connecting peer systems
US4989113A (en) 1987-03-13 1991-01-29 Texas Instruments Incorporated Data processing device having direct memory access with improved transfer control
US5625842A (en) 1988-05-18 1997-04-29 Zilog, Inc. System for the automatic transfer of message status in digital data communication
US5537413A (en) 1988-08-12 1996-07-16 Digital Equipment Corporation Frame removal mechanism for token ring networks
US5584010A (en) * 1988-11-25 1996-12-10 Mitsubishi Denki Kabushiki Kaisha Direct memory access control device and method in a multiprocessor system accessing local and shared memory
US5247517A (en) 1989-10-20 1993-09-21 Novell, Inc. Method and apparatus for analyzing networks
US5513320A (en) 1990-04-27 1996-04-30 National Semiconductor Corporation Transmit data descriptor structure in a media access control/host system interface that implements flexible transmit data descriptor structure unit
US5136580A (en) 1990-05-16 1992-08-04 Microcom Systems, Inc. Apparatus and method for learning and filtering destination and source addresses in a local area network system
US5247626A (en) 1990-05-29 1993-09-21 Advanced Micro Devices, Inc. Fddi controller having flexible buffer management
US5488724A (en) 1990-05-29 1996-01-30 Advanced Micro Devices, Inc. Network controller with memory request and acknowledgement signals and a network adapter therewith
US5696989A (en) 1990-06-25 1997-12-09 Nec Corporation Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
US5614685A (en) * 1991-06-27 1997-03-25 Yamaha Corporation Digital signal processor for musical tone synthesizers and the like
US5379381A (en) 1991-08-12 1995-01-03 Stratus Computer, Inc. System using separate transfer circuits for performing different transfer operations respectively and scanning I/O devices status upon absence of both operations
US5361372A (en) 1991-12-27 1994-11-01 Digital Equipment Corporation Memory management for data transmission networks
US5457681A (en) 1992-06-05 1995-10-10 Washington University ATM-Ethernet portal/concentrator
US5434872A (en) 1992-07-28 1995-07-18 3Com Corporation Apparatus for automatic initiation of data transmission
US5732094A (en) 1992-07-28 1998-03-24 3Com Corporation Method for automatic initiation of data transmission
US5611046A (en) 1992-11-18 1997-03-11 Canon Kabushiki Kaisha Method and apparatus for interfacing a peripheral to a local area network
US5568608A (en) 1992-12-14 1996-10-22 E-Systems, Inc. Method for protecting data in media recording peripheral devices
US5528587A (en) 1993-06-30 1996-06-18 International Business Machines Corporation Programmable high performance data communication adapter for high speed packet transmission networks
US5400326A (en) 1993-12-22 1995-03-21 International Business Machines Corporation Network bridge
US5612742A (en) 1994-10-19 1997-03-18 Imedia Corporation Method and apparatus for encoding and formatting data representing a video program to provide multiple overlapping presentations of the video program
US5720770A (en) 1995-10-06 1998-02-24 Pacesetter, Inc. Cardiac stimulation system with enhanced communication and control capability

Also Published As

Publication number Publication date
US5961614A (en) 1999-10-05

Similar Documents

Publication Publication Date Title
JP3336816B2 (en) Multimedia communication device and method
KR0142175B1 (en) Circuit Architecture to Support Multichannel DM Operation
US6397316B2 (en) System for reducing bus overhead for communication with a network interface
US5752078A (en) System for minimizing latency data reception and handling data packet error if detected while transferring data packet from adapter memory to host memory
US5151895A (en) Terminal server architecture
US6154793A (en) DMA with dynamically assigned channels, flexible block boundary notification and recording, type code checking and updating, commands, and status reporting
JP3601955B2 (en) Data transfer method and computer system suitable for it
US5153884A (en) Intelligent network interface circuit
EP0674276B1 (en) A computer system
EP0141742A2 (en) Buffer system for input/output portion of digital data processing system
JPS5810235A (en) Interface circuit
JPH08288941A (en) Computer system and message transfer method
KR910017798A (en) Comprehensive data link controller with synchronous link interface and asynchronous host processor interface
EP0877983A1 (en) Application programming interface for data transfer and bus management over a bus structure
US6889266B1 (en) Method for delivering packet boundary or other metadata to and from a device using direct memory controller
USRE41010E1 (en) System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal
JPH0824320B2 (en) Method and device for buffer chaining in communication control device
JPH09167127A (en) Method and device for adjustment of data transfer between hardware and software
JPS623362A (en) Data reception system
US5923852A (en) Method and system for fast data transmissions in a processing system utilizing interrupts
US5432910A (en) Coupling apparatus and method for increasing the connection capability of a communication system
US6233628B1 (en) System and method for transferring data using separate pipes for command and data
KR970007257B1 (en) Packet transmission system and method utilizing both data bus and dedicated control lines
JP2924783B2 (en) Remote read processing method and device
JP3674720B2 (en) Data transfer method in parallel computer

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY