get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/817605/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 817605,
    "url": "http://patchwork.ozlabs.org/api/patches/817605/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922154014.29350-20-f4bug@amsat.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170922154014.29350-20-f4bug@amsat.org>",
    "list_archive_url": null,
    "date": "2017-09-22T15:39:59",
    "name": "[19/34] hw/acpi: ACPI_PM_* defines are not restricted to i386 arch",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "325861a205a170cc313aa378030d507b9e1274fc",
    "submitter": {
        "id": 70924,
        "url": "http://patchwork.ozlabs.org/api/people/70924/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "f4bug@amsat.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170922154014.29350-20-f4bug@amsat.org/mbox/",
    "series": [
        {
            "id": 4657,
            "url": "http://patchwork.ozlabs.org/api/series/4657/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4657",
            "date": "2017-09-22T15:39:40",
            "name": "remove i386/pc dependency from non-PC world (part 1)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4657/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817605/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817605/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jpSohIl1\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xzJ0y66nmz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 01:53:22 +1000 (AEST)",
            "from localhost ([::1]:59636 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvQGW-0006LJ-SQ\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 11:53:20 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:41876)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ59-00059k-PZ\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 11:41:38 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ58-0003V0-S2\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 11:41:35 -0400",
            "from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:37009)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvQ58-0003Ut-O2; Fri, 22 Sep 2017 11:41:34 -0400",
            "by mail-qt0-x243.google.com with SMTP id u48so888417qtc.4;\n\tFri, 22 Sep 2017 08:41:34 -0700 (PDT)",
            "from yoga.lan ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id\n\tz75sm71742qkb.71.2017.09.22.08.41.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 22 Sep 2017 08:41:33 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=Z/vylf1C4XC/eLYnmksZh8YoUspYr1bGIiB6ltwpn0g=;\n\tb=jpSohIl1TCUaO+/zLWRvE4nkmoafD1w06+ixz9RUn/UbLhjrMAEKzY0Z1OgSBh0/vn\n\tx/Hl49OjYHKCfwECHkN9A3wDiqYXtIzRjtwZ3wUGr/YcZ94KRJJbQfyWFl+1824vIgh/\n\tYy6o+NEmMDRhvFmhFhVn6R5ba7/vHGaV37ykQvJGzplkHq1D7rhymgrqEXt/1YbuaSkq\n\tfO97H8lB5yDTU54XshXE4UuWlORws0Y3MkKny8IzqUWEyezi9yF1zv7TFOogph1p1GCd\n\tWzqpVjesBi1e5hAA+8g4PBVNIxK78K1zs1tFX46fPJc/pLRs7krPXJ9sOFsaDYsweaix\n\tBR7Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=Z/vylf1C4XC/eLYnmksZh8YoUspYr1bGIiB6ltwpn0g=;\n\tb=XPPIkmroZUdRoLZaRxb4D6WAS3wlngLkcAt/W5o/hpC6rlHDNtt3DmHVMxFcy7fNE+\n\tVyMAmuUVRltz+s2zbZezl4VNxmk8PwV54SJDWX33Dbe8onIzXmmSDu1khn2QvejCAdjX\n\tI4RQ7Goax8oPB8CyBxnWMdsGROz1JwyFOOxpHteW6b12qB2ARehjAXq3jaDp0G3tXpTI\n\tM8EbWmAKS+hUP8dVh3Cp+QKpZiwLs0BaFFeQYxx95VpTV2fInGp36n/UNjrLa18+E97k\n\tOM8RL+M35Pwk4oqNk71dVSmyehrvhDTfCs9MKWAviuPbX2KImq7apFu2RFLwRL464R5z\n\tXVUQ==",
        "X-Gm-Message-State": "AHPjjUiIQd2O9hoMLu7XDcEDuGaMVLqxhXWryl9M+ieS6/N6aht/mmHt\n\txUCLAzKOzakoNllNZQ4oEhk=",
        "X-Google-Smtp-Source": "AOwi7QChIGRy0mjtm0C6EvYkkbYkmLdVlRxiCIDf4UPJwZaX1Zi2Bd187RJYuJD4zOFUUYTvHuqftg==",
        "X-Received": "by 10.237.57.38 with SMTP id l35mr9032867qte.118.1506094894234; \n\tFri, 22 Sep 2017 08:41:34 -0700 (PDT)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>",
        "To": "Peter Maydell <peter.maydell@linaro.org>, Thomas Huth <thuth@redhat.com>,\n\tPaolo Bonzini <pbonzini@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>, \n\tIgor Mammedov <imammedo@redhat.com>",
        "Date": "Fri, 22 Sep 2017 12:39:59 -0300",
        "Message-Id": "<20170922154014.29350-20-f4bug@amsat.org>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170922154014.29350-1-f4bug@amsat.org>",
        "References": "<20170922154014.29350-1-f4bug@amsat.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400d:c0d::243",
        "Subject": "[Qemu-devel] [PATCH 19/34] hw/acpi: ACPI_PM_* defines are not\n\trestricted to i386 arch",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?=\n\t<f4bug@amsat.org>, \tqemu-devel@nongnu.org",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n---\n include/hw/acpi/acpi.h | 12 ++++++++++++\n include/hw/i386/pc.h   | 13 -------------\n 2 files changed, 12 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h\nindex 7b3d93cf0d..30013b0464 100644\n--- a/include/hw/acpi/acpi.h\n+++ b/include/hw/acpi/acpi.h\n@@ -39,6 +39,18 @@\n #define ACPI_PM2_REGISTER_WIDTH         8\n #define ACPI_PM_TIMER_WIDTH             32\n \n+/* PC-style peripherals (also used by other machines).  */\n+#define ACPI_PM_PROP_S3_DISABLED \"disable_s3\"\n+#define ACPI_PM_PROP_S4_DISABLED \"disable_s4\"\n+#define ACPI_PM_PROP_S4_VAL \"s4_val\"\n+#define ACPI_PM_PROP_SCI_INT \"sci_int\"\n+#define ACPI_PM_PROP_ACPI_ENABLE_CMD \"acpi_enable_cmd\"\n+#define ACPI_PM_PROP_ACPI_DISABLE_CMD \"acpi_disable_cmd\"\n+#define ACPI_PM_PROP_PM_IO_BASE \"pm_io_base\"\n+#define ACPI_PM_PROP_GPE0_BLK \"gpe0_blk\"\n+#define ACPI_PM_PROP_GPE0_BLK_LEN \"gpe0_blk_len\"\n+#define ACPI_PM_PROP_TCO_ENABLED \"enable_tco\"\n+\n /* PM Timer ticks per second (HZ) */\n #define PM_TIMER_FREQUENCY  3579545\n \ndiff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h\nindex 087d184ef5..b1b4c918af 100644\n--- a/include/hw/i386/pc.h\n+++ b/include/hw/i386/pc.h\n@@ -151,19 +151,6 @@ struct PCMachineClass {\n #define PC_MACHINE_CLASS(klass) \\\n     OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)\n \n-/* PC-style peripherals (also used by other machines).  */\n-\n-#define ACPI_PM_PROP_S3_DISABLED \"disable_s3\"\n-#define ACPI_PM_PROP_S4_DISABLED \"disable_s4\"\n-#define ACPI_PM_PROP_S4_VAL \"s4_val\"\n-#define ACPI_PM_PROP_SCI_INT \"sci_int\"\n-#define ACPI_PM_PROP_ACPI_ENABLE_CMD \"acpi_enable_cmd\"\n-#define ACPI_PM_PROP_ACPI_DISABLE_CMD \"acpi_disable_cmd\"\n-#define ACPI_PM_PROP_PM_IO_BASE \"pm_io_base\"\n-#define ACPI_PM_PROP_GPE0_BLK \"gpe0_blk\"\n-#define ACPI_PM_PROP_GPE0_BLK_LEN \"gpe0_blk_len\"\n-#define ACPI_PM_PROP_TCO_ENABLED \"enable_tco\"\n-\n /* parallel.c */\n \n void parallel_hds_isa_init(ISABus *bus, int n);\n",
    "prefixes": [
        "19/34"
    ]
}