mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
26 lines
797 B
Plaintext
26 lines
797 B
Plaintext
$NetBSD: patch-eg,v 1.1 2012/06/07 21:35:37 ryoon Exp $
|
|
|
|
Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
|
|
(PR lib/43832: ssp causes common names to be defines)
|
|
|
|
--- hw/etraxfs_eth.c.orig 2011-08-08 18:28:42 +0000
|
|
+++ hw/etraxfs_eth.c
|
|
@@ -184,7 +184,7 @@ static void mdio_read_req(struct qemu_md
|
|
|
|
phy = bus->devs[bus->addr];
|
|
if (phy && phy->read)
|
|
- bus->data = phy->read(phy, bus->req);
|
|
+ bus->data = (*phy->read)(phy, bus->req);
|
|
else
|
|
bus->data = 0xffff;
|
|
}
|
|
@@ -347,7 +347,7 @@ static void eth_validate_duplex(struct f
|
|
int new_mm = 0;
|
|
|
|
phy = eth->mdio_bus.devs[eth->phyaddr];
|
|
- phy_duplex = !!(phy->read(phy, 18) & (1 << 11));
|
|
+ phy_duplex = !!((*phy->read)(phy, 18) & (1 << 11));
|
|
mac_duplex = !!(eth->regs[RW_REC_CTRL] & 128);
|
|
|
|
if (mac_duplex != phy_duplex)
|