isp_freebsd.h (239502) | isp_freebsd.h (256705) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.h 239502 2012-08-21 16:18:11Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.h 256705 2013-10-17 20:19:15Z mav $ */ |
2/*- 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions 4 * 5 * Copyright (c) 1997-2008 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 80 unchanged lines hidden (view full) --- 90#if __FreeBSD_version < 225469 91#define SDFIXED(x) (&x) 92#else 93#define SDFIXED(x) ((struct scsi_sense_data_fixed *)(&x)) 94#endif 95 96#define ISP_TARGET_FUNCTIONS 1 97#define ATPDPSIZE 4096 | 2/*- 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions 4 * 5 * Copyright (c) 1997-2008 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 80 unchanged lines hidden (view full) --- 90#if __FreeBSD_version < 225469 91#define SDFIXED(x) (&x) 92#else 93#define SDFIXED(x) ((struct scsi_sense_data_fixed *)(&x)) 94#endif 95 96#define ISP_TARGET_FUNCTIONS 1 97#define ATPDPSIZE 4096 |
98#define ATPDPHASHSIZE 16 99#define ATPDPHASH(x) ((((x) >> 24) ^ ((x) >> 16) ^ ((x) >> 8) ^ (x)) & \ 100 ((ATPDPHASHSIZE) - 1)) |
|
98 99#include <dev/isp/isp_target.h> | 101 102#include <dev/isp/isp_target.h> |
100 101typedef struct { 102 void * next; | 103typedef struct atio_private_data { 104 LIST_ENTRY(atio_private_data) next; |
103 uint32_t orig_datalen; 104 uint32_t bytes_xfered; 105 uint32_t bytes_in_transit; 106 uint32_t tag; /* typically f/w RX_ID */ 107 uint32_t lun; 108 uint32_t nphdl; 109 uint32_t sid; 110 uint32_t portid; --- 57 unchanged lines hidden (view full) --- 168 uint32_t hold; 169 uint32_t 170 enabled : 1, 171 atio_count : 15, 172 inot_count : 15; 173 inot_private_data_t * restart_queue; 174 inot_private_data_t * ntfree; 175 inot_private_data_t ntpool[ATPDPSIZE]; | 105 uint32_t orig_datalen; 106 uint32_t bytes_xfered; 107 uint32_t bytes_in_transit; 108 uint32_t tag; /* typically f/w RX_ID */ 109 uint32_t lun; 110 uint32_t nphdl; 111 uint32_t sid; 112 uint32_t portid; --- 57 unchanged lines hidden (view full) --- 170 uint32_t hold; 171 uint32_t 172 enabled : 1, 173 atio_count : 15, 174 inot_count : 15; 175 inot_private_data_t * restart_queue; 176 inot_private_data_t * ntfree; 177 inot_private_data_t ntpool[ATPDPSIZE]; |
176 atio_private_data_t * atfree; | 178 LIST_HEAD(, atio_private_data) atfree; 179 LIST_HEAD(, atio_private_data) atused[ATPDPHASHSIZE]; |
177 atio_private_data_t atpool[ATPDPSIZE]; 178} tstate_t; 179 180#define LUN_HASH_SIZE 32 181#define LUN_HASH_FUNC(lun) ((lun) & (LUN_HASH_SIZE - 1)) 182 183#endif 184 --- 560 unchanged lines hidden --- | 180 atio_private_data_t atpool[ATPDPSIZE]; 181} tstate_t; 182 183#define LUN_HASH_SIZE 32 184#define LUN_HASH_FUNC(lun) ((lun) & (LUN_HASH_SIZE - 1)) 185 186#endif 187 --- 560 unchanged lines hidden --- |