sfxge(4): support Medford bootcfg partition layout in common code
authorarybchik <arybchik@FreeBSD.org>
Wed, 28 Dec 2016 17:49:33 +0000 (17:49 +0000)
committerarybchik <arybchik@FreeBSD.org>
Wed, 28 Dec 2016 17:49:33 +0000 (17:49 +0000)
commit9602dbf4c3a96c382d196a8f65aa338bbfb28826
treef8b27e0c8af729fa0cca95e415b1b0746ff511b1
parentefbfa9904f89999e969a4ad85772e5b158ac06dd
sfxge(4): support Medford bootcfg partition layout in common code

For Siena and Huntington, the per-port bootcfg (aka expcfg) is
stored in a dedicated 4Kbyte partition for each port.

For Medford, the per-PF bootcfg is stored in a 2Kbyte sector
within a single shared partition. Update the common code to support
the new bootcfg layout.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision:  https://reviews.freebsd.org/D8932
sys/dev/sfxge/common/efx_bootcfg.c