acpi-build.c (36de884a133f8cf1a18d55c1d76d783db9844abe) acpi-build.c (ca3df95df86de9e261135db26a434ebf829999c6)
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
4 * Copyright (C) 2006 Fabrice Bellard
5 * Copyright (C) 2013 Red Hat Inc
6 *
7 * Author: Michael S. Tsirkin <mst@redhat.com>
8 *

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

675 /* route[2] = "LNK[D|A|B|C]", selection based on pin % 3 */
676 aml_append(while_ctx, initialize_route(route, "LNKD", lnk_idx, 0));
677 aml_append(while_ctx, initialize_route(route, "LNKA", lnk_idx, 1));
678 aml_append(while_ctx, initialize_route(route, "LNKB", lnk_idx, 2));
679 aml_append(while_ctx, initialize_route(route, "LNKC", lnk_idx, 3));
680
681 /* route[0] = 0x[slot]FFFF */
682 aml_append(while_ctx,
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
4 * Copyright (C) 2006 Fabrice Bellard
5 * Copyright (C) 2013 Red Hat Inc
6 *
7 * Author: Michael S. Tsirkin <mst@redhat.com>
8 *

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

675 /* route[2] = "LNK[D|A|B|C]", selection based on pin % 3 */
676 aml_append(while_ctx, initialize_route(route, "LNKD", lnk_idx, 0));
677 aml_append(while_ctx, initialize_route(route, "LNKA", lnk_idx, 1));
678 aml_append(while_ctx, initialize_route(route, "LNKB", lnk_idx, 2));
679 aml_append(while_ctx, initialize_route(route, "LNKC", lnk_idx, 3));
680
681 /* route[0] = 0x[slot]FFFF */
682 aml_append(while_ctx,
683 aml_store(aml_or(aml_shiftleft(slot, aml_int(16)), aml_int(0xFFFF)),
683 aml_store(aml_or(aml_shiftleft(slot, aml_int(16)), aml_int(0xFFFF),
684 NULL),
684 aml_index(route, aml_int(0))));
685 /* route[1] = pin & 3 */
686 aml_append(while_ctx,
687 aml_store(aml_and(pin, aml_int(3)), aml_index(route, aml_int(1))));
688 /* res[pin] = route */
689 aml_append(while_ctx, aml_store(route, aml_index(res, pin)));
690 /* pin++ */
691 aml_append(while_ctx, aml_increment(pin));

--- 1286 unchanged lines hidden ---
685 aml_index(route, aml_int(0))));
686 /* route[1] = pin & 3 */
687 aml_append(while_ctx,
688 aml_store(aml_and(pin, aml_int(3)), aml_index(route, aml_int(1))));
689 /* res[pin] = route */
690 aml_append(while_ctx, aml_store(route, aml_index(res, pin)));
691 /* pin++ */
692 aml_append(while_ctx, aml_increment(pin));

--- 1286 unchanged lines hidden ---