From nobody Sat May 18 04:13:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 170822013282522.05451726582703; Sat, 17 Feb 2024 17:35:32 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.682519.1061619 (Exim 4.92) (envelope-from ) id 1rbW50-000509-7W; Sun, 18 Feb 2024 01:34:54 +0000 Received: by outflank-mailman (output) from mailman id 682519.1061619; Sun, 18 Feb 2024 01:34:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rbW50-000502-2D; Sun, 18 Feb 2024 01:34:54 +0000 Received: by outflank-mailman (input) for mailman id 682519; Sun, 18 Feb 2024 01:34:52 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rbW4y-0004zw-FS for xen-devel@lists.xenproject.org; Sun, 18 Feb 2024 01:34:52 +0000 Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id e6da7471-cdfd-11ee-8a52-1f161083a0e0; Sun, 18 Feb 2024 02:34:49 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id E42671C00079; Sat, 17 Feb 2024 20:34:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 17 Feb 2024 20:34:46 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Feb 2024 20:34:43 -0500 (EST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e6da7471-cdfd-11ee-8a52-1f161083a0e0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1708220085; x=1708306485; bh=AU9JacD3M6P4ufXSFjP46LL0rxd7nWVR 0IwQtMoYP8E=; b=b4lP9LvSM4NAibaLeF+jttCMRv15OqJD6XFnFaDb6wxX/ioj pNLLBrs26Ela0fPx8+Urf3BborVGIndJ5TilLOAK9uXMEnrjmjxbK3BItXugqyTE ZzaxPDx/C1hh6qbnjRFHpu2x6cIVMsZai8/6dcxRk46YxU/Ve3fVHCN3dw1BKURZ 5mJUc8eRmIEeYIAoO1mPeE24vA9OuQKszTElD/PnI+bEFkJ9cGNqUVzUwvmiTUVn dzDJacsnFI5PXpXkEASHY010KAOja7SvmAT3qxaP7WPpQ8umflTNN6rv3VWo0anM YEsM2TOyQrFtp3XFyjNi2VhjWF1knUH+dUt8ng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1708220085; x=1708306485; bh=AU9JacD3M6P4u fXSFjP46LL0rxd7nWVR0IwQtMoYP8E=; b=csIL74bWjCqynx+cDDqtjAcwSmCDs Ju8UKfLJ5+BV+WJcC5+djITjIQw3oWDcR5tJNVxcxlLr+sWYPr2MYUqFDrVyrVs4 T6EV5/Jk2+5du4flLuNAvE5NTe841w6VVV5aZ8lUV742idr/WPjx9dvklzGEGeZw vQHQvlsYTV3Bw7H+dsway1uzSndFX9InXs/M/SmFB+3yK42/34DfRJPRw93g7HXQ jQYDtL1gLP+xYPP6B4v0PC9HFPMKHYa79jhc1XE5Ukcwp6LNXsSW+K85b6Dij12H /LOHf8QNP9sS6ekCQ9teQ0R2XkllHpra2LFRBLu68KyvPgW7JpthqqLJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomhepofgrrhgvkhcu ofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinhhvih hsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuggftrfgrthhtvghrnhepleekhfdu leetleelleetteevfeefteffkeetteejheelgfegkeelgeehhfdthedvnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghksehi nhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH] ns16550: add Asix AX99100 serial card Date: Sun, 18 Feb 2024 02:34:29 +0100 Message-ID: <20240218013431.274451-1-marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1708220134527100001 It's 4-port serial card, each port is presented as a separate function. According to the specification, it features 256-byte TX FIFO buffer. Signed-off-by: Marek Marczykowski-G=C3=B3recki --- It's a card plugged into a box that can function as yet another gitlab runn= er. --- xen/drivers/char/ns16550.c | 12 ++++++++++++ xen/include/xen/pci_ids.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 97bf0985344a..00c0da3f373c 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -92,6 +92,7 @@ struct ns16550_config { param_exar_xr17v354, param_exar_xr17v358, param_intel_lpss, + param_asix_ax99100, } param; }; =20 @@ -842,6 +843,12 @@ static const struct ns16550_config_param __initconst u= art_param[] =3D { .mmio =3D 1, .max_ports =3D 1, }, + [param_asix_ax99100] =3D { + .reg_width =3D 1, + .lsr_mask =3D UART_LSR_THRE, + .max_ports =3D 1, + .fifo_size =3D 256, + }, }; =20 static const struct ns16550_config __initconst uart_config[] =3D @@ -1170,6 +1177,11 @@ static const struct ns16550_config __initconst uart_= config[] =3D .dev_id =3D 0x7adc, .param =3D param_intel_lpss }, + { + .vendor_id =3D PCI_VENDOR_ID_ASIX, + .dev_id =3D 9100, + .param =3D param_asix_ax99100 + }, }; =20 static int __init diff --git a/xen/include/xen/pci_ids.h b/xen/include/xen/pci_ids.h index e798477a7e23..2a19f4ab7872 100644 --- a/xen/include/xen/pci_ids.h +++ b/xen/include/xen/pci_ids.h @@ -11,3 +11,5 @@ #define PCI_VENDOR_ID_BROADCOM 0x14e4 =20 #define PCI_VENDOR_ID_INTEL 0x8086 + +#define PCI_VENDOR_ID_ASIX 0x125b --=20 2.43.0