diff options
author | wma <wma@FreeBSD.org> | 2017-01-25 10:22:07 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-09-15 01:30:35 -0500 |
commit | 3669d23fdbed1f4b6f9e2fc59ca53eca6502d28b (patch) | |
tree | 16aa06410f825af8cf41731735d41196874f9b46 /sys/dev/cesa/cesa.h | |
parent | 49978b40be315b7a4db1014f6d913ff402cee50a (diff) | |
download | FreeBSD-src-3669d23fdbed1f4b6f9e2fc59ca53eca6502d28b.zip FreeBSD-src-3669d23fdbed1f4b6f9e2fc59ca53eca6502d28b.tar.gz |
Use SoC ID - based detection in CESA
This commit introduces following changes in order to get rid of
ifdef's from all around the driver.
* Introduce sc_soc_id field in cesa_softc structure - this value is
obtained in cesa_attach() anyway, so make use of it.
* Replace ifdefs with SoC ID checks.
* Perform PM control status only for relevant SoC's.
Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: zbb
Differential revision: https://reviews.freebsd.org/D9247
(cherry picked from commit 502c029a7943bcfb6235002e301e7f4745414011)
Diffstat (limited to 'sys/dev/cesa/cesa.h')
-rw-r--r-- | sys/dev/cesa/cesa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cesa/cesa.h b/sys/dev/cesa/cesa.h index 38f85d4..0e5f01c 100644 --- a/sys/dev/cesa/cesa.h +++ b/sys/dev/cesa/cesa.h @@ -231,6 +231,7 @@ struct cesa_packet { struct cesa_softc { device_t sc_dev; int32_t sc_cid; + uint32_t sc_soc_id; struct resource *sc_res[RES_CESA_NUM]; void *sc_icookie; bus_dma_tag_t sc_data_dtag; |