From nobody Fri Apr 12 21:56:36 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 4VGVl86zb0z5GD9b; Fri, 12 Apr 2024 21:56:36 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VGVl86FnKz4n87; Fri, 12 Apr 2024 21:56:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712958996; 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=aBvbC6xq4SwgaSlZCs/I+58UNCrHo+bYEmDrnFRQFgU=; b=lf43jk3VbabDcq8241m09CuR+hcHKZXi+A/ZXWf1F5fntkG0ww2cA1EUfTvGCv4OtKZga4 NUP8dFpmzdsCkiLKkp1G/OQwTYuYjS/HVJLG9UlSRGIgMKWXSedsveHi4aXBUVFgMHpu9A lxi9MKvod08wdHLgXQrftsPBNfjgeABL/MR3Ldlo/X8Oundy5NlUXLCjxbIWgQgMUo5juX jEDyRn0YU8XSjV4I5RAVbGsENPkdQU++M+NBZqovMUBYRlzr9wVjom8sNr1dH8j9Z9NGLr uBcJQUVKd58fxmUJcgaXfcX2W79B9dX/x7TIuHLQcZXh9Gd0ldgU1c/A77A7Jw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712958996; a=rsa-sha256; cv=none; b=ZC00JxkzInEmsccKFuB/E4FMVQQh82Q2bqotJr3id0Uymw0vz1HPewSg1otvBLBI+XWjCi vICFqzyIzgClS7Tl4QeX3etBBj7AUm9h44SfZ7frGzAHvDTjJu5bJX5X7fZr39zI1KiLUf //6iJLnKj3uCSaFds98WEFGMXrdILvLeoCoKbHa+OVKghkyktYbBAYSr8oAk3A0G6SpgqC xLyF8ctXsWOiFdrSUQtldObt3aixRbJ/fwwibtks+8rc8nb0UViyK+C9K8dufVAMpujLFh xWRfuKzEmBAOjeH4xCT/A/A4Y2RMea68Sm/2aaGGNAvy8YGTVRGf95dHZQXK/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712958996; 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=aBvbC6xq4SwgaSlZCs/I+58UNCrHo+bYEmDrnFRQFgU=; b=QFKVND7KhatJ5ihnYLmS1JWZe+w66+L9ilewlpw6DEOOPvnaUQqoz88cTGCdLhGlsHeOgj iDnGKxuWqgdrzrvNgcwqzD4as8Idzv3nHvpS9ZqjhttJ6Yz6SbhpNrPxv15FQZgoSX4B93 b6pnnuj5rfnA7HyhDoEy139XOOPMbcGZx+6c4PzcbEtyR7FOFzz9sVH7yFMe3+AsBHW1pf 2Dz8znKAmi0TB8aWzSTij2iiqXYFESgRGA2B1766LsaOBSazfbSZatNoAXQPB6Z3s0Dhnu fkV6k6NV3esV3TOss+gh8/PV7OBIwftYqZGl7A2x+vE14TePPhPgYghedxwkcw== 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 4VGVl85pg2z15ny; Fri, 12 Apr 2024 21:56:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43CLuaaJ050140; Fri, 12 Apr 2024 21:56:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43CLuaEa050137; Fri, 12 Apr 2024 21:56:36 GMT (envelope-from git) Date: Fri, 12 Apr 2024 21:56:36 GMT Message-Id: <202404122156.43CLuaEa050137@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2cf0c51793da - main - genet: add module (if_genet.ko) 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2cf0c51793da5a2fc03db8990fc2feb3f9aa119f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2cf0c51793da5a2fc03db8990fc2feb3f9aa119f commit 2cf0c51793da5a2fc03db8990fc2feb3f9aa119f Author: Lexi Winter AuthorDate: 2024-04-12 21:41:11 +0000 Commit: Warner Losh CommitDate: 2024-04-12 21:54:32 +0000 genet: add module (if_genet.ko) The driver already had the appropriate module macros, it just wasn't hooked into the build system. Since this device is specific to the Raspberry Pi 4, only build it for AArch64. Reviewed by: imp, emaste (earlier version) Pull Request: https://github.com/freebsd/freebsd-src/pull/1139 --- sys/modules/Makefile | 6 ++++++ sys/modules/genet/Makefile | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index aab0865a842d..d83a75ef2d4d 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -154,6 +154,7 @@ SUBDIR= \ if_edsc \ ${_if_enc} \ if_epair \ + ${_genet} \ ${_if_gif} \ ${_if_gre} \ ${_if_me} \ @@ -641,6 +642,11 @@ _cxgbe= cxgbe _mpi3mr=mpi3mr .endif +# Specific to the Raspberry Pi. +.if ${MACHINE_CPUARCH} == "aarch64" +_genet= genet +.endif + .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" || \ ${MACHINE_ARCH:Mpowerpc64*} _ice= ice diff --git a/sys/modules/genet/Makefile b/sys/modules/genet/Makefile new file mode 100644 index 000000000000..fac165c688ba --- /dev/null +++ b/sys/modules/genet/Makefile @@ -0,0 +1,9 @@ + +.PATH: ${SRCTOP}/sys/arm64/broadcom/genet + +KMOD= if_genet +SRCS= if_genet.c +SRCS+= bus_if.h device_if.h gpio_if.h miibus_if.h ofw_bus_if.h syscon_if.h +SRCS+= opt_device_polling.h opt_platform.h + +.include