A method and system for DMA transfer of data in scatter/gather mode. A
table of buffer descriptors may be used to determine the next buffer to
be used when a current buffer storing data that has been transferred or
will be transferred and may be used in automatic buffer switching, which
does not require processor intervention. Entries in the table of buffer
descriptors are entered programmatically. The method and system also
provide for hardware writing to table of packet descriptors which
describes location and size of incoming data and can indicate whether a
packet of data straddles two or more buffers, thus decoupling packet
sizes from buffer sizes.