]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/ofw: Refactor ofw parsedev
authorWarner Losh <imp@FreeBSD.org>
Wed, 30 Nov 2022 22:10:23 +0000 (15:10 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 30 Nov 2022 22:30:34 +0000 (15:30 -0700)
commitf9ce8da86434867e1e7172fb56a5504f91c98ce4
tree394dec88ecbf1e3e952816cc6a9acba77b66b85b
parent854001759e59172a2760d3a77f37a287f92053b3
stand/ofw: Refactor ofw parsedev

Both ofw_disk and ofw_net use the same parsedev routine, except for the
string passed in to match the ofw device node's type. Create a routine
to do that and connect these two users up to that.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D37560
stand/libofw/devicename.c
stand/libofw/libofw.h
stand/libofw/ofw_disk.c
stand/libofw/ofw_net.c