fix
This commit is contained in:
parent
c1e4fe6d28
commit
4e3a26de0a
2
i825xx.c
2
i825xx.c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user