mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
zap DeviceState->nd
No users left. Also cleanup obsolete helper functions. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4c91cd2810
commit
1cc33683c8
4 changed files with 1 additions and 38 deletions
22
hw/qdev.c
22
hw/qdev.c
|
@ -361,28 +361,6 @@ void qdev_connect_gpio_out(DeviceState * dev, int n, qemu_irq pin)
|
|||
dev->gpio_out[n] = pin;
|
||||
}
|
||||
|
||||
VLANClientState *qdev_get_vlan_client(DeviceState *dev,
|
||||
NetCanReceive *can_receive,
|
||||
NetReceive *receive,
|
||||
NetReceiveIOV *receive_iov,
|
||||
NetCleanup *cleanup,
|
||||
void *opaque)
|
||||
{
|
||||
NICInfo *nd = dev->nd;
|
||||
assert(nd);
|
||||
nd->vc = qemu_new_vlan_client(nd->vlan, nd->netdev,
|
||||
nd->model, nd->name,
|
||||
can_receive, receive, receive_iov,
|
||||
cleanup, opaque);
|
||||
return nd->vc;
|
||||
}
|
||||
|
||||
|
||||
void qdev_get_macaddr(DeviceState *dev, uint8_t *macaddr)
|
||||
{
|
||||
memcpy(macaddr, dev->nd->macaddr, 6);
|
||||
}
|
||||
|
||||
void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd)
|
||||
{
|
||||
qdev_prop_set_macaddr(dev, "mac", nd->macaddr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue