fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fctl does not support downward compatibility. When there is any change of
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * non-private structure or non-static interface in fctl, the module revision
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * number needs to be bumped up here, and for each ulp, the module revision
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * number in fc_ulp_modinfo needs to be updated.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Flag definitions to fc_ulp_get_portmap function.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fc_ulp_port_reset() command codes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * port attach callback commands
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * port detach callback commands
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte fc_ulp_rscn_info_t map_rscn_info; /* xport's RSCN info */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte fc_reset_action_t port_reset_action; /* FCA reset action */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte fc_dma_behavior_t port_dma_behavior; /* FCA DMA behavior */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte void (*ulp_statec_callback) (opaque_t ulp_handle,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#if !defined(__lint)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("unique for attach", ulp_port_info))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("stable data", ulp_modinfo))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("unique per request", fc_portmap))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* __lint */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_init_packet(opaque_t port_handle, fc_packet_t *pkt, int sleep);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_uninit_packet(opaque_t port_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_getportmap(opaque_t port_handle, fc_portmap_t **map,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_login(opaque_t port_handle, fc_packet_t **ulp_pkt,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteopaque_t fc_ulp_get_remote_port(opaque_t port_handle, la_wwn_t *pwwn,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_port_ns(opaque_t port_handle, opaque_t pd, fc_ns_cmd_t *ns_req);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_transport(opaque_t port_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_issue_els(opaque_t port_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_uballoc(opaque_t port_handle, uint32_t *count,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_ubfree(opaque_t port_handle, uint32_t count,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_ubrelease(opaque_t port_handle, uint32_t count,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_abort(opaque_t port_handle, fc_packet_t *pkt, int flags);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_linkreset(opaque_t port_handle, la_wwn_t *pwwn, int sleep);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_port_reset(opaque_t port_handle, uint32_t cmd);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_port_login_params(opaque_t port_handle,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_port_instance(opaque_t port_handle);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_pkt_error(fc_packet_t *pkt, char **state, char **reason,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_pwwn_by_did(opaque_t port_handle, fc_portid_t d_id,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_pwwn_to_portmap(opaque_t port_handle, la_wwn_t *bytes,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteopaque_t fc_ulp_get_fca_device(opaque_t port_handle, fc_portid_t d_id);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_port_notify(opaque_t port_handle, uint32_t cmd);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid fc_ulp_disable_relogin(opaque_t *fc_port, la_wwn_t *pwwn);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid fc_ulp_enable_relogin(opaque_t *fc_port, la_wwn_t *pwwn);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid fc_ulp_copy_portmap(fc_portmap_t *map, opaque_t pd);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_adapter_paths(char *pathList, int count);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuint32_t fc_ulp_get_rscn_count(opaque_t port_handle);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid fc_ulp_hold_remote_port(opaque_t port_handle);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_npiv_port_list(opaque_t port_handle, char *pathList);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_ulp_get_npiv_port_num(opaque_t port_handle);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid fc_ulp_log_device_event(opaque_t port_handle, int type);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _FC_ULPIF_H */