isp_library.h (196008) | isp_library.h (203444) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/isp_library.h 196008 2009-08-01 01:04:26Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/isp_library.h 203444 2010-02-03 21:09:32Z mjacob $ */ |
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); 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); 40 41/* 42 * Handle management functions. 43 * 44 * These handles are associate with a command. 45 */ |
46int isp_save_xs(ispsoftc_t *, XS_T *, uint32_t *); | 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 *); | 47XS_T * isp_find_xs(ispsoftc_t *, uint32_t); 48uint32_t isp_find_handle(ispsoftc_t *, XS_T *); |
49uint32_t isp_handle_index(uint32_t); | 49uint32_t isp_handle_index(ispsoftc_t *, uint32_t); |
50void isp_destroy_handle(ispsoftc_t *, uint32_t); 51 52/* 53 * Request Queue allocation 54 */ 55void *isp_getrqentry(ispsoftc_t *); 56 57/* --- 93 unchanged lines hidden (view full) --- 151#elif defined(__FreeBSD__) 152#include <dev/isp/isp_target.h> 153#else 154#include "isp_target.h" 155#endif 156 157int isp_send_tgt_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, void *, uint32_t); 158 | 50void isp_destroy_handle(ispsoftc_t *, uint32_t); 51 52/* 53 * Request Queue allocation 54 */ 55void *isp_getrqentry(ispsoftc_t *); 56 57/* --- 93 unchanged lines hidden (view full) --- 151#elif defined(__FreeBSD__) 152#include <dev/isp/isp_target.h> 153#else 154#include "isp_target.h" 155#endif 156 157int isp_send_tgt_cmd(ispsoftc_t *, void *, void *, uint32_t, uint32_t, isp_ddir_t, void *, uint32_t); 158 |
159#define IS_TARGET_HANDLE(x) ((x) & 0x8000) 160 161int isp_save_xs_tgt(ispsoftc_t *, void *, uint32_t *); | 159int isp_allocate_xs_tgt(ispsoftc_t *, void *, uint32_t *); |
162void *isp_find_xs_tgt(ispsoftc_t *, uint32_t); 163uint32_t isp_find_tgt_handle(ispsoftc_t *, void *); 164void isp_destroy_tgt_handle(ispsoftc_t *, uint32_t); 165 166int isp_find_pdb_by_wwn(ispsoftc_t *, int, uint64_t, fcportdb_t **); 167int isp_find_pdb_by_loopid(ispsoftc_t *, int, uint32_t, fcportdb_t **); 168int isp_find_pdb_by_sid(ispsoftc_t *, int, uint32_t, fcportdb_t **); 169void isp_find_chan_by_did(ispsoftc_t *, uint32_t, uint16_t *); --- 44 unchanged lines hidden --- | 160void *isp_find_xs_tgt(ispsoftc_t *, uint32_t); 161uint32_t isp_find_tgt_handle(ispsoftc_t *, void *); 162void isp_destroy_tgt_handle(ispsoftc_t *, uint32_t); 163 164int isp_find_pdb_by_wwn(ispsoftc_t *, int, uint64_t, fcportdb_t **); 165int isp_find_pdb_by_loopid(ispsoftc_t *, int, uint32_t, fcportdb_t **); 166int isp_find_pdb_by_sid(ispsoftc_t *, int, uint32_t, fcportdb_t **); 167void isp_find_chan_by_did(ispsoftc_t *, uint32_t, uint16_t *); --- 44 unchanged lines hidden --- |