x86: Add driver for Intel Quark X1000 built-in Ethernet
This patch adds a simple, space-efficient driver for the Ethernet interface built into the Intel Quark X1000. It only allocates a single packet descriptor for each of the transmit and receive directions, computes checksums on the CPU, and enables store-and-forward mode for both transmit and receive directions.
This commit is contained in:
parent
ba09b47d65
commit
abeed93da5
4 changed files with 414 additions and 2 deletions
|
@ -236,7 +236,7 @@ pci_pirq_set_irq(PIRQ pirq, uint8_t irq, uint8_t route_to_legacy)
|
|||
void
|
||||
pci_init(pci_driver_t *c_this, pci_config_addr_t pci_addr, uintptr_t meta)
|
||||
{
|
||||
/* The reg_off (BAR) value is masked to clear non-address bits. */
|
||||
/* The BAR value is masked to clear non-address bits. */
|
||||
c_this->mmio = pci_config_read(pci_addr) & ~0xFFF;
|
||||
c_this->meta = meta;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue