freebsd-src/sys/dev/aic7xxx
HP van Braam 6279646f47 aic7xxx: make target mode enable a device hint
Previously it was only possible to enable target mode for these drivers
by rebuilding the kernel with AHC_TMODE_ENABLE or AHD_TMODE_ENABLE and a
bitmask of which units to statically enable for target mode.

There is no space-savings in the driver by not having AHC_TMODE_ENABLE
set, so in addition to the compile time option lets also introduce some
tunables:

hint.ahc.<unit>.tmode_enable=0/1
hint.ahd.<unit>.tmode_enable=0/1

For compatibility the old behavior is retained, but it can be overridden
with tunables

Signed-off-by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1208
2024-05-04 08:40:38 -06:00
..
aicasm aic7xxx: aicasm correct include file 2024-05-04 08:39:02 -06:00
ahc_isa.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
ahc_pci.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
ahd_pci.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx.c aic7xxx: make target mode enable a device hint 2024-05-04 08:40:38 -06:00
aic7xxx.h ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx.reg sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic7xxx.seq aic7xxx: Fix two typos in source code comments 2024-01-22 21:47:23 +01:00
aic7xxx_93cx6.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx_93cx6.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic7xxx_inline.h ahc(4): resolve some minor nits 2024-04-20 22:04:04 -05:00
aic7xxx_osm.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx_osm.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic7xxx_pci.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic7xxx_reg_print.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic7xxx_seq.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic79xx.c aic7xxx: make target mode enable a device hint 2024-05-04 08:40:38 -06:00
aic79xx.h ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic79xx.reg sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic79xx.seq aic7xxx: Fix two typos in source code comments 2024-01-22 21:47:23 +01:00
aic79xx_inline.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic79xx_osm.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic79xx_osm.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic79xx_pci.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic79xx_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic79xx_reg_print.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic79xx_seq.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
aic7770.c ahc(4) clean up old Linux defines 2024-04-23 14:56:11 -06:00
aic_osm_lib.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
aic_osm_lib.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00