]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cgem: rework hardware quirk detection
authorMilan Obuch <bsd@dino.sk>
Thu, 7 Apr 2022 12:57:25 +0000 (09:57 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Tue, 12 Apr 2022 22:51:17 +0000 (19:51 -0300)
commit66cc0c61b023a5d8ae1c05897bfaf7726be40934
tree9626fbc55822fda7e7b0bd92f617cc072ab74040
parent86fa80f320dcd5773c55ba0d74173a3d06f2d755
cgem: rework hardware quirk detection

Rather than doing these checks based on the detected hardware variant, allow
quirks to be specified as a set of flags for each compatible string.
This simplifies adding support for new compatible hardware.

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Conclusive Engineering
Differential Revision: https://reviews.freebsd.org/D34764
sys/dev/cadence/if_cgem.c