Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/isci/scil/sci_controller_constants.h
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* This constant defines the maximum number of Scatter-Gather Elements | * This constant defines the maximum number of Scatter-Gather Elements | ||||
* to be used by any SCI component. | * to be used by any SCI component. | ||||
* | * | ||||
* Note: number of elements must be an even number, since descriptors | * Note: number of elements must be an even number, since descriptors | ||||
* posted to hardware always contain pairs of elements (with second | * posted to hardware always contain pairs of elements (with second | ||||
* element set to zeroes if not needed). | * element set to zeroes if not needed). | ||||
*/ | */ | ||||
#define __MAXPHYS_ELEMENTS ((MAXPHYS / PAGE_SIZE) + 1) | #define __MAXPHYS_ELEMENTS ((128 * 1024 / PAGE_SIZE) + 1) | ||||
#define SCI_MAX_SCATTER_GATHER_ELEMENTS ((__MAXPHYS_ELEMENTS + 1) & ~0x1) | #define SCI_MAX_SCATTER_GATHER_ELEMENTS ((__MAXPHYS_ELEMENTS + 1) & ~0x1) | ||||
#endif | #endif | ||||
#ifndef SCI_MIN_SCATTER_GATHER_ELEMENTS | #ifndef SCI_MIN_SCATTER_GATHER_ELEMENTS | ||||
/** | /** | ||||
* This constant defines the minimum number of Scatter-Gather Elements | * This constant defines the minimum number of Scatter-Gather Elements | ||||
* to be used by any SCI component. | * to be used by any SCI component. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |