1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.h 257381 2013-10-30 14:04:47Z nwhitehorn $ */ |
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 --- 489 unchanged lines hidden (view full) --- 499 uint32_t f = c; \ 500 e += f; \ 501 d->ds_base = DMA_LO32(e->ds_addr); \ 502 d->ds_count = e->ds_len; \ 503} 504#define XS_ISP(ccb) cam_sim_softc(xpt_path_sim((ccb)->ccb_h.path)) 505#define XS_CHANNEL(ccb) cam_sim_bus(xpt_path_sim((ccb)->ccb_h.path)) 506#define XS_TGT(ccb) (ccb)->ccb_h.target_id |
507#define XS_LUN(ccb) (uint32_t)((ccb)->ccb_h.target_lun) |
508 509#define XS_CDBP(ccb) \ 510 (((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \ 511 (ccb)->cdb_io.cdb_ptr : (ccb)->cdb_io.cdb_bytes) 512 513#define XS_CDBLEN(ccb) (ccb)->cdb_len 514#define XS_XFRLEN(ccb) (ccb)->dxfer_len 515#define XS_TIME(ccb) (ccb)->ccb_h.timeout --- 232 unchanged lines hidden --- |