This commit is contained in:
Andrew Pamment 2021-11-27 12:36:24 +10:00
parent c1e4fe6d28
commit 4e3a26de0a

View File

@ -433,7 +433,7 @@ void i825xx_enable(struct ether_t *ether) {
unsigned int val = mmio_read(i825xx_device, REG_CTRL); unsigned int val = mmio_read(i825xx_device, REG_CTRL);
mmio_write(i825xx_device, REG_CTRL, val | CTRL_SLU); mmio_write(i825xx_device, REG_CTRL, val | CTRL_SLU);
ether->state = mmio_read(i825xx_device, REG_STATUS) & STATUS_LU ? 1 : 0); ether->state = (mmio_read(i825xx_device, REG_STATUS) & STATUS_LU ? 1 : 0);
} }
void i825xx_disable(struct ether_t *ether) { void i825xx_disable(struct ether_t *ether) {