]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r340883
authorarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Dec 2018 10:05:03 +0000 (10:05 +0000)
committerarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Dec 2018 10:05:03 +0000 (10:05 +0000)
commit4ec2112154127ead1605f91c2246440559bf0e0b
treed2fc10f563a834a68af05a430b0e585c32e47523
parent5fa444333675724871ad380664bf9910dade63b5
MFC r340883

sfxge(4): fix diagnostics support build without Siena

The compilation failed because __efx_sram_pattern_fns was used in
efx_nic.c, but defined in efx_sram.c which is only needed when
supporting Siena.

To fix it move all the code using __efx_sram_pattern_fns into
Siena-specific files (except for the definition in efx_sram.c itself,
as that file only needs to be included in Siena-supporting builds
anyway).

The functions to test registers and tables are unlikely to apply to any
new hardware and so can be moved into Siena files. Since Huntington
such tests have been implemented in firmware.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Differential Revision:  https://reviews.freebsd.org/D18117

git-svn-id: svn://svn.freebsd.org/base/stable/10@342496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sfxge/common/efx_impl.h
sys/dev/sfxge/common/efx_nic.c
sys/dev/sfxge/common/siena_impl.h
sys/dev/sfxge/common/siena_nic.c