Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2111074rwr; Fri, 21 Apr 2023 04:39:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bWm423xm6ZY4EFTJHFtgkjxG43KG+8u52OrwfCBsAh4jOzuQ3SYPBIL5g0ORoUVKWNFWdd X-Received: by 2002:a05:6a21:9982:b0:e8:dcca:d9cb with SMTP id ve2-20020a056a21998200b000e8dccad9cbmr6652587pzb.5.1682077169580; Fri, 21 Apr 2023 04:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682077169; cv=none; d=google.com; s=arc-20160816; b=pCbA25LqG8XgprvzszQE+I7v910wvsATN81cZFuvpORXU5FM3pX5dOOnO6B3k3N+0u UomCAeC3wUvyD0JBiWqXf7LbJmGDYpKIM9pSQk/l+Ge5Cf0YcVigefQnkmRiLfsM4ELE 7Jo2l+5IWsTzejVY+5CHMWlF2vTs3RnXdaKaFrxUfmOwpDQdDcybJh2ORgU535J0027A d9wkVufGQzynqw9HHIJjbGlYMhminyFbWxfxdY8HEWL5IQiYN6NKRbPl4RDtIrxMLb73 wiT3TkRlW5PXB9nv7F5vHLHNN3ZpbWoVD8TSUjLGKbTq3mF1tPbxe6xMqKk2nVXvjrFK FB3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2XdBu+av0qZxGuaP1nMetGj4D3Yj20NmV5LLc6errWE=; b=rZorEEv3WNvyUu2JKJQEU53dnhs09I7ul8yy8PG7Fs/rFGmYVfeC4CHKwPkH2t88K3 2s44fxuE71woSuNgKrL/Ja7Zk33KP6gPUKhb3pBcLkgsZQgk13uLPUIBa/Qz1gg5rhii WPOBELW6mYNcf9Io183qq+odPsG2plXXQIMC3ivN5KZzd0o3Y7kT6rnJnJjh4hLB1Dbj u38E8aCGvm5fq4SqQGanx9yaZODAhggqieyccAVoWK1cF6ihz9MqELLlWPoShJuIOePy TerTK7F4Z7O6yXDArqPCtz2O35wtrnizeSLvKXB/z3ccCqAZAkOeHdOcDPIP1HKyKRle uDqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=aNse9vV4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a65480b000000b0051352239dc2si3851369pgs.839.2023.04.21.04.39.17; Fri, 21 Apr 2023 04:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=aNse9vV4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbjDULjD (ORCPT + 99 others); Fri, 21 Apr 2023 07:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjDULjC (ORCPT ); Fri, 21 Apr 2023 07:39:02 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2470C155; Fri, 21 Apr 2023 04:38:18 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 3BA001C0E01; Fri, 21 Apr 2023 13:37:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1682077056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2XdBu+av0qZxGuaP1nMetGj4D3Yj20NmV5LLc6errWE=; b=aNse9vV4/YdI8p2PwrhG7v1PhLBPhn46Zi7YAOIkphiD1ARS846CLid8RVs34xQBi4rSv3 0nOH+W3ZcETf0P+jnPeOGZ4D+94zHF4eAzrIzUK6FOi3WJANanxAnWGQ3o4wVYjHjn5qwv 12IiJgnJeQ6ET1zaLk2StdOafSpkKOA= Date: Fri, 21 Apr 2023 13:37:35 +0200 From: Pavel Machek To: Jorge Lopez Cc: hdegoede@redhat.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v10 02/14] HP BIOSCFG driver - biosattr-interface Message-ID: References: <20230419151321.6167-1-jorge.lopez2@hp.com> <20230419151321.6167-3-jorge.lopez2@hp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X09ELK96AjtUktk9" Content-Disposition: inline In-Reply-To: <20230419151321.6167-3-jorge.lopez2@hp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --X09ELK96AjtUktk9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Linux Security components are under development and not published yet. > The only linux component is the driver (hp bioscfg) at this time. > Other published security components are under Windows. >=20 > Signed-off-by: Jorge Lopez > +/* > + * ascii_to_utf16_unicode - Convert ascii string to UTF-16 unicode > + * > + * BIOS supports UTF-16 characters that are 2 bytes long. No variable > + * multi-byte language supported. > + * > + * @p: Unicode buffer address > + * @str: string to convert to unicode > + * > + * Returns a void pointer to the buffer containing unicode string > + */ > +void *ascii_to_utf16_unicode(u16 *p, const u8 *str) > +{ Does this need to go to library somewhere? BR, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --X09ELK96AjtUktk9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZEJ1fwAKCRAw5/Bqldv6 8vJfAJ9GV17J1jjrrXapJv4Y1ULKh0TKogCgnx32XNgfDS28gAnlJLciuHSUfPI= =LREm -----END PGP SIGNATURE----- --X09ELK96AjtUktk9--