Deleted Added
full compact
isp_freebsd.h (317359) isp_freebsd.h (317360)
1/* $FreeBSD: stable/11/sys/dev/isp/isp_freebsd.h 317359 2017-04-24 10:20:36Z mav $ */
1/* $FreeBSD: stable/11/sys/dev/isp/isp_freebsd.h 317360 2017-04-24 10:21:13Z 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

--- 278 unchanged lines hidden (view full) ---

288 bus_dmamap_t iocbmap;
289
290 /*
291 * Command and transaction related related stuff
292 */
293 struct isp_pcmd * pcmd_pool;
294 struct isp_pcmd * pcmd_free;
295
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

--- 278 unchanged lines hidden (view full) ---

288 bus_dmamap_t iocbmap;
289
290 /*
291 * Command and transaction related related stuff
292 */
293 struct isp_pcmd * pcmd_pool;
294 struct isp_pcmd * pcmd_free;
295
296 int sixtyfourbit; /* sixtyfour bit platform */
297 int mbox_sleeping;
298 int mbox_sleep_ok;
299 int mboxbsy;
300 int mboxcmd_done;
301
302 struct callout tmo; /* general timer */
303
304 /*

--- 195 unchanged lines hidden (view full) ---

500{ \
501 ispds_t *d = a; \
502 bus_dma_segment_t *e = b; \
503 uint32_t f = c; \
504 e += f; \
505 d->ds_base = DMA_LO32(e->ds_addr); \
506 d->ds_count = e->ds_len; \
507}
296 int mbox_sleeping;
297 int mbox_sleep_ok;
298 int mboxbsy;
299 int mboxcmd_done;
300
301 struct callout tmo; /* general timer */
302
303 /*

--- 195 unchanged lines hidden (view full) ---

499{ \
500 ispds_t *d = a; \
501 bus_dma_segment_t *e = b; \
502 uint32_t f = c; \
503 e += f; \
504 d->ds_base = DMA_LO32(e->ds_addr); \
505 d->ds_count = e->ds_len; \
506}
507#if (BUS_SPACE_MAXADDR > UINT32_MAX)
508#define XS_NEED_DMA64_SEG(s, n) \
509 (((bus_dma_segment_t *)s)[n].ds_addr + \
510 ((bus_dma_segment_t *)s)[n].ds_len > UINT32_MAX)
511#else
512#define XS_NEED_DMA64_SEG(s, n) (0)
513#endif
508#define XS_ISP(ccb) cam_sim_softc(xpt_path_sim((ccb)->ccb_h.path))
509#define XS_CHANNEL(ccb) cam_sim_bus(xpt_path_sim((ccb)->ccb_h.path))
510#define XS_TGT(ccb) (ccb)->ccb_h.target_id
511#define XS_LUN(ccb) (ccb)->ccb_h.target_lun
512
513#define XS_CDBP(ccb) \
514 (((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \
515 (ccb)->cdb_io.cdb_ptr : (ccb)->cdb_io.cdb_bytes)

--- 215 unchanged lines hidden ---
514#define XS_ISP(ccb) cam_sim_softc(xpt_path_sim((ccb)->ccb_h.path))
515#define XS_CHANNEL(ccb) cam_sim_bus(xpt_path_sim((ccb)->ccb_h.path))
516#define XS_TGT(ccb) (ccb)->ccb_h.target_id
517#define XS_LUN(ccb) (ccb)->ccb_h.target_lun
518
519#define XS_CDBP(ccb) \
520 (((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \
521 (ccb)->cdb_io.cdb_ptr : (ccb)->cdb_io.cdb_bytes)

--- 215 unchanged lines hidden ---