Deleted Added
full compact
isp_library.h (292919) isp_library.h (292921)
1/* $FreeBSD: stable/10/sys/dev/isp/isp_library.h 292919 2015-12-30 11:49:04Z mav $ */
1/* $FreeBSD: stable/10/sys/dev/isp/isp_library.h 292921 2015-12-30 11:49:48Z mav $ */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

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

38typedef enum { ISP_TO_DEVICE, ISP_FROM_DEVICE, ISP_NOXFR} isp_ddir_t;
39int isp_send_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, ispds64_t *);
40
41/*
42 * Handle management functions.
43 *
44 * These handles are associate with a command.
45 */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

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

38typedef enum { ISP_TO_DEVICE, ISP_FROM_DEVICE, ISP_NOXFR} isp_ddir_t;
39int isp_send_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, ispds64_t *);
40
41/*
42 * Handle management functions.
43 *
44 * These handles are associate with a command.
45 */
46int isp_allocate_xs(ispsoftc_t *, XS_T *, uint32_t *);
47XS_T * isp_find_xs(ispsoftc_t *, uint32_t);
48uint32_t isp_find_handle(ispsoftc_t *, XS_T *);
49uint32_t isp_handle_index(ispsoftc_t *, uint32_t);
46uint32_t isp_allocate_handle(ispsoftc_t *, void *, int);
47void *isp_find_xs(ispsoftc_t *, uint32_t);
48uint32_t isp_find_handle(ispsoftc_t *, void *);
50void isp_destroy_handle(ispsoftc_t *, uint32_t);
51
52/*
53 * Request Queue allocation
54 */
55void *isp_getrqentry(ispsoftc_t *);
56
57/*

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

157#include <dev/ic/isp_target.h>
158#elif defined(__FreeBSD__)
159#include <dev/isp/isp_target.h>
160#else
161#include "isp_target.h"
162#endif
163
164int isp_send_tgt_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, void *, uint32_t);
49void isp_destroy_handle(ispsoftc_t *, uint32_t);
50
51/*
52 * Request Queue allocation
53 */
54void *isp_getrqentry(ispsoftc_t *);
55
56/*

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

156#include <dev/ic/isp_target.h>
157#elif defined(__FreeBSD__)
158#include <dev/isp/isp_target.h>
159#else
160#include "isp_target.h"
161#endif
162
163int isp_send_tgt_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, void *, uint32_t);
165
166int isp_allocate_xs_tgt(ispsoftc_t *, void *, uint32_t *);
167void *isp_find_xs_tgt(ispsoftc_t *, uint32_t);
168uint32_t isp_find_tgt_handle(ispsoftc_t *, void *);
169void isp_destroy_tgt_handle(ispsoftc_t *, uint32_t);
170#endif
171int isp_find_pdb_empty(ispsoftc_t *, int, fcportdb_t **);
172int isp_find_pdb_by_wwpn(ispsoftc_t *, int, uint64_t, fcportdb_t **);
173int isp_find_pdb_by_handle(ispsoftc_t *, int, uint16_t, fcportdb_t **);
174int isp_find_pdb_by_portid(ispsoftc_t *, int, uint32_t, fcportdb_t **);
175#ifdef ISP_TARGET_MODE
176void isp_find_chan_by_did(ispsoftc_t *, uint32_t, uint16_t *);
177void isp_add_wwn_entry(ispsoftc_t *, int, uint64_t, uint64_t, uint16_t, uint32_t, uint16_t);

--- 35 unchanged lines hidden ---
164#endif
165int isp_find_pdb_empty(ispsoftc_t *, int, fcportdb_t **);
166int isp_find_pdb_by_wwpn(ispsoftc_t *, int, uint64_t, fcportdb_t **);
167int isp_find_pdb_by_handle(ispsoftc_t *, int, uint16_t, fcportdb_t **);
168int isp_find_pdb_by_portid(ispsoftc_t *, int, uint32_t, fcportdb_t **);
169#ifdef ISP_TARGET_MODE
170void isp_find_chan_by_did(ispsoftc_t *, uint32_t, uint16_t *);
171void isp_add_wwn_entry(ispsoftc_t *, int, uint64_t, uint64_t, uint16_t, uint32_t, uint16_t);

--- 35 unchanged lines hidden ---