get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 856669,
    "url": "http://patchwork.ozlabs.org/api/patches/856669/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20180108024558.17983-7-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": "<20180108024558.17983-7-f4bug@amsat.org>",
    "list_archive_url": null,
    "date": "2018-01-08T02:45:35",
    "name": "[06/29] hw/isa: add a generic isa_superio_init()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0de46a46e667c5709d289fb9b6fc91f8cde38a43",
    "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/20180108024558.17983-7-f4bug@amsat.org/mbox/",
    "series": [
        {
            "id": 21847,
            "url": "http://patchwork.ozlabs.org/api/series/21847/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=21847",
            "date": "2018-01-08T02:45:30",
            "name": "remove i386/pc dependency: generic SuperIO, PIIX cleanup",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/21847/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/856669/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/856669/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=\"jVs4cb5U\"; 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 3zFKZW559wz9ryr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  8 Jan 2018 13:52:51 +1100 (AEDT)",
            "from localhost ([::1]:59371 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 1eYNYP-00034I-Ka\n\tfor incoming@patchwork.ozlabs.org; Sun, 07 Jan 2018 21:52:49 -0500",
            "from eggs.gnu.org ([2001:4830:134:3::10]:51271)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1eYNSJ-0006gk-G5\n\tfor qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:46:32 -0500",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1eYNSI-0002MB-IU\n\tfor qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:46:31 -0500",
            "from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:42609)\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 1eYNSI-0002Lz-EU\n\tfor qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:46:30 -0500",
            "by mail-qt0-x243.google.com with SMTP id g9so12060521qth.9\n\tfor <qemu-devel@nongnu.org>; Sun, 07 Jan 2018 18:46:30 -0800 (PST)",
            "from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id\n\td10sm7156245qkg.16.2018.01.07.18.46.26\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 07 Jan 2018 18:46:29 -0800 (PST)"
        ],
        "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=pN54l5060qnSKve+RUs6hFoj4ulmEP357iz1qzBmy3Q=;\n\tb=jVs4cb5UkvqXvKg9ou6HA75I0dyU8xXmr24IJiFsSZmng8OwmlEqu0zYKXUMx9VlHd\n\tNuqYaWvvKtODc7LJOFl0mjdSt0byDAMb6cxi+WJNyPOjTAjF/cFga2G8bCQ0T1LcoRX6\n\tadM5hql/DZ73SeqMnVMAB1e/nEipynUoUxivzJEaT/mbSp4lT1ySaeuIbihGl+9RXYod\n\ttggzAbC1vJDFIrn5Ec/3xnArh8lGLMYzarggyGDjzA7RGUQ6yGLDiiqC/JIp1S038P/x\n\tgvd5Cs3zYenb5OUpvXYjqEDPXj7ziRbwly4uWMgoegbATGHuiooRktnC7TZ2J9+Xntnt\n\tTWqA==",
        "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=pN54l5060qnSKve+RUs6hFoj4ulmEP357iz1qzBmy3Q=;\n\tb=INVhIISN1qRiGp9NJA3wWwkEDzV+I/Beya9LV6dn+zubdmbZAiuDdCSn+DKJHsCLe8\n\tyYy4bBMCLi0Z219+vfNBnO7msdrslK6UeKbN47frVlaj2bm4qW7G3HUba1myywahoKWQ\n\tYeGgHfJ0QIkS1pgpSOoMAL9K6nNxf9/k4vN4Uox61D3Is25Pu4Y1aZcwuwp4vZ7PWhoc\n\trjJ8CIBa/dfhKMb06qevGoKrVT83DRkuwrCwpg6FVnWnQNoP5cpaBAECHo44nQ6ios+/\n\tDopUkCmuX4ZXB+xPHZGrFgC8y/rM7llB7I9fB5PRvF8B7bEFNdq3j1YE90P8UvMu2AiX\n\thMyg==",
        "X-Gm-Message-State": "AKwxytfCE6iRrSF3v4+VeyIV6iOeDjcZiccAYjABeZlHnFtJcCjV4DMw\n\thh4/jmg7wpT8GVhLPzSbwac=",
        "X-Google-Smtp-Source": "ACJfBotJWz9uGylSNjF1OQooNqSz3uhSe60PCP7RTT9z8+ODlrbiJJtAECq1McB9MH5hseUvrLiwwQ==",
        "X-Received": "by 10.200.24.197 with SMTP id o5mr14272694qtk.79.1515379589858; \n\tSun, 07 Jan 2018 18:46:29 -0800 (PST)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>",
        "To": "Paolo Bonzini <pbonzini@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>, =?utf-8?q?Herv=C3=A9_Poussinea?=\n\t=?utf-8?q?u?= <hpoussin@reactos.org>,\n\tAurelien Jarno <aurelien@aurel32.net>, Eduardo Habkost\n\t<ehabkost@redhat.com>, Marcel Apfelbaum <marcel@redhat.com>",
        "Date": "Sun,  7 Jan 2018 23:45:35 -0300",
        "Message-Id": "<20180108024558.17983-7-f4bug@amsat.org>",
        "X-Mailer": "git-send-email 2.15.1",
        "In-Reply-To": "<20180108024558.17983-1-f4bug@amsat.org>",
        "References": "<20180108024558.17983-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 06/29] hw/isa: add a generic isa_superio_init()",
        "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": "Igor Mammedov <imammedo@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?b?w6k=?= <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/isa/superio.h | 17 +++++++++++++++++\n hw/isa/isa-superio.c     | 45 +++++++++++++++++++++++++++++++++++++++++++++\n MAINTAINERS              |  2 ++\n hw/isa/Makefile.objs     |  1 +\n 4 files changed, 65 insertions(+)\n create mode 100644 include/hw/isa/superio.h\n create mode 100644 hw/isa/isa-superio.c",
    "diff": "diff --git a/include/hw/isa/superio.h b/include/hw/isa/superio.h\nnew file mode 100644\nindex 0000000000..e685b96653\n--- /dev/null\n+++ b/include/hw/isa/superio.h\n@@ -0,0 +1,17 @@\n+/*\n+ * Generic ISA Super I/O\n+ *\n+ * Copyright (c) 2018 Philippe Mathieu-Daudé\n+ *\n+ * This work is licensed under the terms of the GNU GPL, version 2 or later.\n+ * See the COPYING file in the top-level directory.\n+ */\n+#ifndef HW_ISA_SUPERIO_H\n+#define HW_ISA_SUPERIO_H\n+\n+#include \"hw/isa/isa.h\"\n+\n+ISADevice *isa_superio_init(ISABus *isa_bus, int serial_count,\n+                            int parallel_count, int drive_count);\n+\n+#endif\ndiff --git a/hw/isa/isa-superio.c b/hw/isa/isa-superio.c\nnew file mode 100644\nindex 0000000000..93d8457c6b\n--- /dev/null\n+++ b/hw/isa/isa-superio.c\n@@ -0,0 +1,45 @@\n+/*\n+ * Generic ISA Super I/O\n+ *\n+ * Copyright (c) 2018 Philippe Mathieu-Daudé\n+ *\n+ * This work is licensed under the terms of the GNU GPL, version 2 or later.\n+ * See the COPYING file in the top-level directory.\n+ */\n+#include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n+#include \"sysemu/blockdev.h\"\n+#include \"hw/isa/superio.h\"\n+#include \"hw/char/serial.h\"\n+#include \"hw/char/parallel.h\"\n+#include \"hw/block/fdc.h\"\n+#include \"hw/input/i8042.h\"\n+\n+ISADevice *isa_superio_init(ISABus *isa_bus, int serial_count,\n+                            int parallel_count, int drive_count)\n+{\n+    serial_hds_isa_init(isa_bus, 0, serial_count);\n+\n+    parallel_hds_isa_init(isa_bus, parallel_count);\n+\n+    if (drive_count) {\n+        DriveInfo **fd;\n+        int i;\n+\n+        if (drive_count > MAX_FD) {\n+            warn_report(\"superio: ignoring %d floppy controllers\",\n+                        drive_count - MAX_FD);\n+            drive_count = MAX_FD;\n+        }\n+        fd = g_new(DriveInfo *, drive_count);\n+\n+        for (i = 0; i < drive_count; i++) {\n+            fd[i] = drive_get(IF_FLOPPY, 0, i);\n+        }\n+        fdctrl_init_isa(isa_bus, fd);\n+\n+        g_free(fd); /* FIXME */\n+    }\n+\n+    return isa_create_simple(isa_bus, TYPE_I8042);\n+}\ndiff --git a/MAINTAINERS b/MAINTAINERS\nindex 7f9e98a046..6f867da743 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -875,6 +875,7 @@ F: hw/input/pckbd.c\n F: hw/intc/apic*\n F: hw/intc/ioapic*\n F: hw/intc/i8259*\n+F: hw/isa/isa-superio.c\n F: hw/misc/debugexit.c\n F: hw/misc/pc-testdev.c\n F: hw/timer/hpet*\n@@ -885,6 +886,7 @@ F: include/hw/display/vga.h\n F: include/hw/char/parallel.h\n F: include/hw/dma/i8257.h\n F: include/hw/i2c/pm_smbus.h\n+F: include/hw/isa/superio.h\n F: include/hw/input/i8042.h\n F: include/hw/timer/hpet.h\n F: include/hw/timer/i8254*\ndiff --git a/hw/isa/Makefile.objs b/hw/isa/Makefile.objs\nindex fb37c55cf2..cac655ba58 100644\n--- a/hw/isa/Makefile.objs\n+++ b/hw/isa/Makefile.objs\n@@ -1,4 +1,5 @@\n common-obj-$(CONFIG_ISA_BUS) += isa-bus.o\n+common-obj-$(CONFIG_ISA_BUS) += isa-superio.o\n common-obj-$(CONFIG_APM) += apm.o\n common-obj-$(CONFIG_I82378) += i82378.o\n common-obj-$(CONFIG_PC87312) += pc87312.o\n",
    "prefixes": [
        "06/29"
    ]
}