Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2020 16:32:06 +0530
From:      Rajesh Kumar <rajfbsd@gmail.com>
To:        =?UTF-8?B?U3RlZmFuIEXDn2Vy?= <se@freebsd.org>
Cc:        freebsd-drivers@freebsd.org, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Does FreeBSD has a generic PHY library as in Linux?
Message-ID:  <CAAO%2BANPgvLeysLnSzR3xhD3Kt1Qyjpm8J8_58=FSOwwi%2BjXJ1g@mail.gmail.com>
In-Reply-To: <fa36b84d-1c66-82fb-0fa1-b06af1e55133@freebsd.org>
References:  <CAAO%2BANOghLzHBMh94akX0x_iTBGSxK=2sqj45GH_-26i5u=zMA@mail.gmail.com> <fa36b84d-1c66-82fb-0fa1-b06af1e55133@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you all for the response . I will go through the MIIBUS stuff and
come back if I have any questions.

Thanks,
Rajesh.

On Sat, Mar 28, 2020 at 12:18 AM Stefan E=C3=9Fer <se@freebsd.org> wrote:

> Am 26.03.20 um 19:36 schrieb Rajesh Kumar:
> > Hi,
> >
> > I am porting a network driver from Linux to FreeBSD.  The driver in Lin=
ux
> > uses the PHY library (a generic wrapper) to access/config the PHY
> > registers. Do we have anything equivalent in FreeBSD?
> >
> > PHY library routines in Linux:
> >
> > get_phy_device
> > phy_device_register
> > phy_attach_direct
> > phy_start_aneg
> > etc.,
> >
> > FreeBSD being a stable OS for networking and Storage, I assume it shoul=
d
> > have something equivalent to this.  Can anyone point to it? or any
> > documentation related to this?
>
> See
>
>         https://wiki.freebsd.org/MIIBUS
>
> for initial information about the miibus driver that covers most
> PHYs supported by FreeBSD Ethernet devices.
>
> The miibus(4) man-page contains a list of devices that use this
> interface and which might be useful as examples for its use:
>
>         https://www.freebsd.org/cgi/man.cgi?miibus(4)
>
> Regards, STefan
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAO%2BANPgvLeysLnSzR3xhD3Kt1Qyjpm8J8_58=FSOwwi%2BjXJ1g>