version 1.71, 2010/03/26 20:52:01 |
version 1.71.2.1, 2011/06/06 09:07:53 |
Line 182 struct ispmdvec { |
|
Line 182 struct ispmdvec { |
|
#define ISP_QAVAIL(isp) \ |
#define ISP_QAVAIL(isp) \ |
ISP_QFREE(isp->isp_reqidx, isp->isp_reqodx, RQUEST_QUEUE_LEN(isp)) |
ISP_QFREE(isp->isp_reqidx, isp->isp_reqodx, RQUEST_QUEUE_LEN(isp)) |
|
|
#define ISP_ADD_REQUEST(isp, nxti) \ |
#define ISP_ADD_REQUEST(isp, nxti) \ |
MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN); \ |
MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \ |
ISP_WRITE(isp, isp->isp_rqstinrp, nxti); \ |
ISP_WRITE(isp, isp->isp_rqstinrp, nxti); \ |
isp->isp_reqidx = nxti |
isp->isp_reqidx = nxti |
|
|
#define ISP_SYNC_REQUEST(isp) \ |
#define ISP_SYNC_REQUEST(isp) \ |
MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN); \ |
MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \ |
isp->isp_reqidx = ISP_NXT_QENTRY(isp->isp_reqidx, RQUEST_QUEUE_LEN(isp)); \ |
isp->isp_reqidx = ISP_NXT_QENTRY(isp->isp_reqidx, RQUEST_QUEUE_LEN(isp)); \ |
ISP_WRITE(isp, isp->isp_rqstinrp, isp->isp_reqidx) |
ISP_WRITE(isp, isp->isp_rqstinrp, isp->isp_reqidx) |
|
|
Line 454 typedef struct { |
|
Line 454 typedef struct { |
|
new_portid : 24; |
new_portid : 24; |
uint64_t node_wwn; |
uint64_t node_wwn; |
uint64_t port_wwn; |
uint64_t port_wwn; |
|
uint32_t gone_timer; |
} fcportdb_t; |
} fcportdb_t; |
|
|
#define FC_PORTDB_STATE_NIL 0 |
#define FC_PORTDB_STATE_NIL 0 |
Line 1024 void isp_async(ispsoftc_t *, ispasync_t, |
|
Line 1025 void isp_async(ispsoftc_t *, ispasync_t, |
|
* |
* |
* ISP_INLINE ___inline or not- depending on how |
* ISP_INLINE ___inline or not- depending on how |
* good your debugger is |
* good your debugger is |
|
* ISP_MIN shorthand for ((a) < (b))? (a) : (b) |
* |
* |
* NANOTIME_T nanosecond time type |
* NANOTIME_T nanosecond time type |
* |
* |
Line 1037 void isp_async(ispsoftc_t *, ispasync_t, |
|
Line 1039 void isp_async(ispsoftc_t *, ispasync_t, |
|
* MAXISPREQUEST(ispsoftc_t *) maximum request queue size |
* MAXISPREQUEST(ispsoftc_t *) maximum request queue size |
* for this particular board type |
* for this particular board type |
* |
* |
* MEMORYBARRIER(ispsoftc_t *, barrier_type, offset, size) |
* MEMORYBARRIER(ispsoftc_t *, barrier_type, offset, size, chan) |
* |
* |
* Function/Macro the provides memory synchronization on |
* Function/Macro the provides memory synchronization on |
* various objects so that the ISP's and the system's view |
* various objects so that the ISP's and the system's view |