Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2024 16:36:57 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        orbit <ordinarybit@proton.me>
Cc:        "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>
Subject:   Re: PHY ID value
Message-ID:  <CANCZdfrsQG_CQCY0r3u9WLUdN%2B7EGuvsEP0ADt1CNEUtkzuVcw@mail.gmail.com>
In-Reply-To: <ODKLUSYJTdWTDavtes68B-S4Wp6AJNeCVbtqEwQ9jJy3DAs9qNGDzjI5gKt3taWuPlqeaqKtxWEs_9m41J8R7B0RlviJrlbHZe2dtu3pOIc=@proton.me>
References:  <ODKLUSYJTdWTDavtes68B-S4Wp6AJNeCVbtqEwQ9jJy3DAs9qNGDzjI5gKt3taWuPlqeaqKtxWEs_9m41J8R7B0RlviJrlbHZe2dtu3pOIc=@proton.me>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <ordinarybit@proton.me> 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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 7, 2024 at 7:05=E2=80=AFA=
M orbit &lt;<a href=3D"mailto:ordinarybit@proton.me">ordinarybit@proton.me<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><=
div style=3D"font-family:Arial,sans-serif;font-size:14px">Hi,</div><div sty=
le=3D"font-family:Arial,sans-serif;font-size:14px"><br></div><div style=3D"=
font-family:Arial,sans-serif;font-size:14px">In the miidevs file here=C2=A0=
<span><a rel=3D"noreferrer nofollow noopener" href=3D"https://cgit.freebsd.=
org/src/plain/sys/dev/mii/miidevs" target=3D"_blank">https://cgit.freebsd.o=
rg/src/plain/sys/dev/mii/miidevs</a>, 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&#39;s say for example, the=
=C2=A0<span>0x0020</span>=C2=A0value of Realtek=C2=A0<span>RTL8201L PHY?</s=
pan></span></div></blockquote><div><br></div><div>Those generally come from=
 the datasheet, or sometimes from the printf from the kernel when we can&#3=
9;t match the ID.</div><div><br></div><div>Warner=C2=A0</div></div></div>

--0000000000002bd0110624777a0c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrsQG_CQCY0r3u9WLUdN%2B7EGuvsEP0ADt1CNEUtkzuVcw>