From nobody Mon Oct 14 22:36:57 2024 X-Original-To: freebsd-drivers@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 4XSBtb6w5Gz5ZHGZ for ; Mon, 14 Oct 2024 22:37:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSBtb0xJsz431x for ; Mon, 14 Oct 2024 22:37:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=quHmJq5p; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::42a) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-71e5ae69880so1487445b3a.2 for ; Mon, 14 Oct 2024 15:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1728945430; x=1729550230; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FMyt8ND5rwpiPFjjEMWc3P4MVNjDv7bADOco3BpUvS0=; b=quHmJq5poH937H8hZ04MUufzceqWpQnbsd/wk0/Pi5CKtNOPJS1d3y5EybHPsxrPlE fN/sUbUCvkblaq8/yhq0HQ6V+GxNwgwarATl+uLED1cGRoiVebbbPupotJp3wc+sEbxi Yam+z7p/yCE/Q8XsZNlo82gFxDeAoKTjR6F3CApC5HsrMBBCyHa5Kydal4qn2BrGn2Nl IFHFa1OaM7Y3GnwUrj6aTS6pGuVU+ZVP37V6U5pSgFztiDbVNSjcBQnqfJ3ELYiVU4Ta fmfLbJWsngvuwjamzDmdtFsGw/eT/ujVgYPihXzTrDwt/iBiYTKv7hXKF3yLu9WoDTCS SYvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728945430; x=1729550230; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FMyt8ND5rwpiPFjjEMWc3P4MVNjDv7bADOco3BpUvS0=; b=j3iXNi4ib9FXeGq2yBIRL055Vs50bcpFznl9oQnAaLLcvp/se4VnDp8eWdKBZKl/rF uhgjiSKJkSVCWbADaKYV8V0N3xH0gleMzSlT9Ojmaxa/yS9DV4BZ5SQYWNxVL4NJUvcE vfv6Kzlz5NczSr4xO4skCng0C2zy+96zvNYUnIz2ykQ/zjf4v/jh2ATX/pMr4j6BKGeK PzKXtuK/84+lTLlUMypUcLbfUooJ3AOLvfrMu1ljRjpvC4netk3+chXJjOkM1HDM6eZo 4B04xWYpGrfwrjtotIyZBX3SzlfFOuwWr2Kmu76bXhyuw28A8VmE6ia+i0lZp7OTH1ZO WomQ== X-Gm-Message-State: AOJu0YzNGNJy2M8MIgKn2HCjS4OdNHy30iNDvsTW6uhhECHGax2I8jBH qvGsaDQrV8w8UoVw8Q5n460CT8Q4uV53Z06ipENJVBYKhYfIMK6uiHwtMHTZQpkX9lR8uUbloGr z9ckIK4tKRd25cpHtVI26SZG4GSIbe6LgeWf9TA== X-Google-Smtp-Source: AGHT+IF4p9FJuz1bcq8BDEFzk4J88GEHEyIkcuI22JpIUS+i4B89d/I0kr/Ng4uHub1AwbyX3nvKZxWtN3k5OxS+Pg8= X-Received: by 2002:a05:6a00:2353:b0:71e:59d2:9c99 with SMTP id d2e1a72fcca58-71e59d29ef4mr11994342b3a.4.1728945429655; Mon, 14 Oct 2024 15:37:09 -0700 (PDT) List-Id: Writing device drivers for FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-drivers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-drivers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 14 Oct 2024 16:36:57 -0600 Message-ID: Subject: Re: PHY ID value To: orbit Cc: "freebsd-drivers@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000002bd0110624777a0c" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_SOME(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MISSING_XM_UA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42a:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-drivers@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4XSBtb0xJsz431x X-Spamd-Bar: -- --0000000000002bd0110624777a0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 7, 2024 at 7:05=E2=80=AFAM orbit wrote: > Hi, > > In the miidevs file here > https://cgit.freebsd.org/src/plain/sys/dev/mii/miidevs, there are list of > OUIs and PHYs. OUIs are easily obtained as unique identification of a > vendor or manufacturer but how do the PHY ID values were obtained? Let's > say for example, the 0x0020 value of Realtek RTL8201L PHY? > Those generally come from the datasheet, or sometimes from the printf from the kernel when we can't match the ID. Warner --0000000000002bd0110624777a0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



In the miidevs file here=C2=A0= https://cgit.freebsd.o= rg/src/plain/sys/dev/mii/miidevs, there are list of OUIs and PHYs. OUIs= are easily obtained as unique identification of a vendor or manufacturer b= ut how do the PHY ID values were obtained? Let's say for example, the= =C2=A00x0020=C2=A0value of Realtek=C2=A0RTL8201L PHY?

Those generally come from= the datasheet, or sometimes from the printf from the kernel when we can= 9;t match the ID.

Warner=C2=A0
--0000000000002bd0110624777a0c--