qdev.c (a3206972a9eab65ec8e8f9ae320ad628ba4b58f1) qdev.c (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45)
1/*
2 * Dynamic device configuration and creation.
3 *
4 * Copyright (c) 2009 CodeSourcery
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 492 unchanged lines hidden (view full) ---

501 name ? name : "unnamed-gpio-out", n);
502
503 qemu_irq ret = (qemu_irq)object_property_get_link(OBJECT(dev), propname,
504 NULL);
505
506 return ret;
507}
508
1/*
2 * Dynamic device configuration and creation.
3 *
4 * Copyright (c) 2009 CodeSourcery
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 492 unchanged lines hidden (view full) ---

501 name ? name : "unnamed-gpio-out", n);
502
503 qemu_irq ret = (qemu_irq)object_property_get_link(OBJECT(dev), propname,
504 NULL);
505
506 return ret;
507}
508
509/* disconnect a GPIO ouput, returning the disconnected input (if any) */
509/* disconnect a GPIO output, returning the disconnected input (if any) */
510
511static qemu_irq qdev_disconnect_gpio_out_named(DeviceState *dev,
512 const char *name, int n)
513{
514 char *propname = g_strdup_printf("%s[%d]",
515 name ? name : "unnamed-gpio-out", n);
516
517 qemu_irq ret = (qemu_irq)object_property_get_link(OBJECT(dev), propname,

--- 832 unchanged lines hidden ---
510
511static qemu_irq qdev_disconnect_gpio_out_named(DeviceState *dev,
512 const char *name, int n)
513{
514 char *propname = g_strdup_printf("%s[%d]",
515 name ? name : "unnamed-gpio-out", n);
516
517 qemu_irq ret = (qemu_irq)object_property_get_link(OBJECT(dev), propname,

--- 832 unchanged lines hidden ---