Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sym/sym_conf.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
* each segment, due to some chips being flawed. | * each segment, due to some chips being flawed. | ||||
*/ | */ | ||||
#define SYM_CONF_DMA_BOUNDARY (1UL << 24) | #define SYM_CONF_DMA_BOUNDARY (1UL << 24) | ||||
/* | /* | ||||
* Max number of scatter/gather entries for an I/O. | * Max number of scatter/gather entries for an I/O. | ||||
* Each entry costs 8 bytes in the internal CCB data structure. | * Each entry costs 8 bytes in the internal CCB data structure. | ||||
* We use at most 33 segments but also no more than required for handling | * We use at most 33 segments but also no more than required for handling | ||||
* MAXPHYS. | * legacy MAXPHYS == 128 * 1024. | ||||
*/ | */ | ||||
#define SYM_CONF_MAX_SG (MIN(33, (MAXPHYS / PAGE_SIZE) + 1)) | #define SYM_CONF_MAX_SG (MIN(33, (128 * 1024 / PAGE_SIZE) + 1)) | ||||
/* | /* | ||||
* Max number of targets. | * Max number of targets. | ||||
* Maximum is 16 and you are advised not to change this value. | * Maximum is 16 and you are advised not to change this value. | ||||
*/ | */ | ||||
#define SYM_CONF_MAX_TARGET (16) | #define SYM_CONF_MAX_TARGET (16) | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |