AMD PCNET: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 28: Line 28:
*'''BDP''' is the Bus Configuration Data Port and is used to access the second set of registers
*'''BDP''' is the Bus Configuration Data Port and is used to access the second set of registers
*'''RST''' is used to reset the card.
*'''RST''' is used to reset the card.
== DMA Descriptors ==
The PCNET cards use a series of descriptors to handle DMA.
struct pcnet_descriptor {
uint32_t address; //physical address of buffer
uint16_t length; //length of buffer (rx) or length of packet (tx)
uint16_t status;
uint32_t flags;
uint32_t user;//can be used to store whatever value you want, such as the virtual address of your buffer
};