From nobody Thu Dec 12 18:19:03 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y8LMX4Lc5z5gZy7; Thu, 12 Dec 2024 18:19:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y8LMX10Zbz3xPm; Thu, 12 Dec 2024 18:19:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734027544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hg15G/C8SabPlMYhqHiM4q7FSVtRrWbyb5gRKEhtYRQ=; b=HQKR8bKmQfk36eauoOss8J7UzPv9bFoe2wsbvifLm/FUabXsxCSB+GOLSHzrXe2ulQD4WK 0FNFaLo+juUR2Mm0AxHenwvNg+SieHMTobfmmFwYTGqUGdeA4EHJqNAk8QVGIGx/LZbCw/ sfgioKlUH6OKMgRgfw7i9PRau8RQA8bucBthrhmYG9O88wtI4WeoyuxdAxbuvhzk75mvER E0h5WHlieK0f9PzpZ2Pp08qC0cUVW46pnyMy5sHByDYO6D+iVlz+UE45wS9Zndrx4I4ybn ntKMn0Czs/XbF0j59v09uL999ELE/nvIKCJ7x7R5uohZqtgp8ZjgLc/xORGEjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734027544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hg15G/C8SabPlMYhqHiM4q7FSVtRrWbyb5gRKEhtYRQ=; b=TBuXdwFeFJlOBkM+DNsch0jOOYLiAkd7aogozAAWWqjiuzDn/9FkM+fQl90L31ssyyBa3C KwdS+BBbplQcfHAPDUotVIo08OQGJa1ORasZ8MyISmDL9lotkG0Mi9WqHRHhRk7y4BsiDI oyQWvREhmRS7s4UvbsTUZmnk/Z4UdNJRgqZsuiBm8Dac5onnKAAt/BDxDXaowH2IYP4xaQ 57PK8dEw1rC6CKyoKpiZOdcpaF1BYwxZ9PWyc43I4IXDEsBfTVkW7n4c0+3iZiwZDBUnO6 I3iDJ1MQRCttkwbCoSoTnDcRN1nnKp2dfgOrObf1P0eH3HclkGsaDAVg0JB1kQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734027544; a=rsa-sha256; cv=none; b=LM4a7AsgQjrYOGwO++OC+H4T10cr7xSgqPjqjGfcjf4NSJByC2SSKsXcw56Q4rrEmeDnVJ 9YYjRa1KMLkLYV20F9EyHYAJm67acBa1edhD0nY+x7IP0ay7UJ/fEx6ZKhh5MdGgUs1oQn 6YLkgbWOKzEb6tgUe1jGLbg/vswIACrRbX6EfhaYLL7QDFq54ecHZrpRmGQ2KBynBVhQ/b LJJE1ZPCS5aKD2ERFocg5NgZw9d5Qqo6AzLGEKBGLY9j1FMWt/kacKrb76mIv/LMf/uXgg 4cf147q1JiQ5nlwsl/9q3nbAz9Xx5JOY/SLuuZK6oPoZhqPEzAWNhsM9nHTVrw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y8LMX0cZHz13Lx; Thu, 12 Dec 2024 18:19:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BCIJ3uH097286; Thu, 12 Dec 2024 18:19:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BCIJ3EP097283; Thu, 12 Dec 2024 18:19:03 GMT (envelope-from git) Date: Thu, 12 Dec 2024 18:19:03 GMT Message-Id: <202412121819.4BCIJ3EP097283@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 7cafe75c8c52 - main - pci: Make generic_pcie_read_ivar non static List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7cafe75c8c52deffcb3e64200eb4187a52cf202d Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=7cafe75c8c52deffcb3e64200eb4187a52cf202d commit 7cafe75c8c52deffcb3e64200eb4187a52cf202d Author: Andrew Turner AuthorDate: 2024-12-12 16:30:16 +0000 Commit: Andrew Turner CommitDate: 2024-12-12 18:00:23 +0000 pci: Make generic_pcie_read_ivar non static Allow this to be called from attachments to allow more ivars to be implemented. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D48046 --- sys/dev/pci/pci_host_generic.c | 4 +--- sys/dev/pci/pci_host_generic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index e9a9e99b4b17..373a54a25a4d 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -67,8 +67,6 @@ static uint32_t generic_pcie_read_config(device_t dev, u_int bus, u_int slot, static void generic_pcie_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, uint32_t val, int bytes); static int generic_pcie_maxslots(device_t dev); -static int generic_pcie_read_ivar(device_t dev, device_t child, int index, - uintptr_t *result); static int generic_pcie_write_ivar(device_t dev, device_t child, int index, uintptr_t value); @@ -362,7 +360,7 @@ generic_pcie_maxslots(device_t dev) return (31); /* max slots per bus acc. to standard */ } -static int +int generic_pcie_read_ivar(device_t dev, device_t child, int index, uintptr_t *result) { diff --git a/sys/dev/pci/pci_host_generic.h b/sys/dev/pci/pci_host_generic.h index 688345e92db5..7aa8852fd30a 100644 --- a/sys/dev/pci/pci_host_generic.h +++ b/sys/dev/pci/pci_host_generic.h @@ -97,5 +97,6 @@ struct resource *pci_host_generic_core_alloc_resource(device_t, device_t, int, int *, rman_res_t, rman_res_t, rman_res_t, u_int); int pci_host_generic_core_release_resource(device_t, device_t, struct resource *); +int generic_pcie_read_ivar(device_t, device_t, int, uintptr_t *); #endif /* __PCI_HOST_GENERIC_H_ */