orangepi.c (82e4838249b23c3fe20cee295f9c1b3e6abd68d1) orangepi.c (29d08975d1cc2ec668d9eb430c507a4fee515ea5)
1/*
2 * Orange Pi emulation
3 *
4 * Copyright (C) 2019 Niek Linnenbank <nieklinnenbank@gmail.com>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or

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

72 /* Setup SID properties. Currently using a default fixed SID identifier. */
73 if (qemu_uuid_is_null(&h3->sid.identifier)) {
74 qdev_prop_set_string(DEVICE(h3), "identifier",
75 "02c00081-1111-2222-3333-000044556677");
76 } else if (ldl_be_p(&h3->sid.identifier.data[0]) != 0x02c00081) {
77 warn_report("Security Identifier value does not include H3 prefix");
78 }
79
1/*
2 * Orange Pi emulation
3 *
4 * Copyright (C) 2019 Niek Linnenbank <nieklinnenbank@gmail.com>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or

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

72 /* Setup SID properties. Currently using a default fixed SID identifier. */
73 if (qemu_uuid_is_null(&h3->sid.identifier)) {
74 qdev_prop_set_string(DEVICE(h3), "identifier",
75 "02c00081-1111-2222-3333-000044556677");
76 } else if (ldl_be_p(&h3->sid.identifier.data[0]) != 0x02c00081) {
77 warn_report("Security Identifier value does not include H3 prefix");
78 }
79
80 /* Setup EMAC properties */
81 object_property_set_int(OBJECT(&h3->emac), 1, "phy-addr", &error_abort);
82
80 /* Mark H3 object realized */
81 object_property_set_bool(OBJECT(h3), true, "realized", &error_abort);
82
83 /* Retrieve SD bus */
84 di = drive_get_next(IF_SD);
85 blk = di ? blk_by_legacy_dinfo(di) : NULL;
86 bus = qdev_get_child_bus(DEVICE(h3), "sd-bus");
87

--- 29 unchanged lines hidden ---
83 /* Mark H3 object realized */
84 object_property_set_bool(OBJECT(h3), true, "realized", &error_abort);
85
86 /* Retrieve SD bus */
87 di = drive_get_next(IF_SD);
88 blk = di ? blk_by_legacy_dinfo(di) : NULL;
89 bus = qdev_get_child_bus(DEVICE(h3), "sd-bus");
90

--- 29 unchanged lines hidden ---