Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/firewire/sbp.c
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#define ccb_sbp_ptr spriv_ptr1 | #define ccb_sbp_ptr spriv_ptr1 | ||||
#define SBP_NUM_TARGETS 8 /* MAX 64 */ | #define SBP_NUM_TARGETS 8 /* MAX 64 */ | ||||
/* | /* | ||||
* Scan_bus doesn't work for more than 8 LUNs | * Scan_bus doesn't work for more than 8 LUNs | ||||
* because of CAM_SCSI2_MAXLUN in cam_xpt.c | * because of CAM_SCSI2_MAXLUN in cam_xpt.c | ||||
*/ | */ | ||||
#define SBP_NUM_LUNS 64 | #define SBP_NUM_LUNS 64 | ||||
#define SBP_MAXPHYS MIN(MAXPHYS, (512*1024) /* 512KB */) | #define SBP_MAXPHYS (128 * 1024) | ||||
#define SBP_DMA_SIZE PAGE_SIZE | #define SBP_DMA_SIZE PAGE_SIZE | ||||
#define SBP_LOGIN_SIZE sizeof(struct sbp_login_res) | #define SBP_LOGIN_SIZE sizeof(struct sbp_login_res) | ||||
#define SBP_QUEUE_LEN ((SBP_DMA_SIZE - SBP_LOGIN_SIZE) / sizeof(struct sbp_ocb)) | #define SBP_QUEUE_LEN ((SBP_DMA_SIZE - SBP_LOGIN_SIZE) / sizeof(struct sbp_ocb)) | ||||
#define SBP_NUM_OCB (SBP_QUEUE_LEN * SBP_NUM_TARGETS) | #define SBP_NUM_OCB (SBP_QUEUE_LEN * SBP_NUM_TARGETS) | ||||
/* | /* | ||||
* STATUS FIFO addressing | * STATUS FIFO addressing | ||||
* bit | * bit | ||||
▲ Show 20 Lines • Show All 2,773 Lines • Show Last 20 Lines |