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 * Version for FCA vectors
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * State change codes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * pm_cmd_flag definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_FCA_PM_RW (FC_FCA_PM_READ | FC_FCA_PM_WRITE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Command codes for fca_reset()
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fca_port_manage() command codes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * FCA capability strings
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CAP_UNSOL_BUF "number of unsolicited bufs"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CAP_PAYLOAD_SIZE "exchange payload max"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CAP_POST_RESET_BEHAVIOR "port reset behavior"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CAP_NOSTREAM_ON_UNALIGN_BUF "no dma streaming on unaligned buf"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CAP_FCP_DMA "FCP cmd response in DVMA space"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte void (*port_statec_cb) (opaque_t port_handle, uint32_t state);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* number of virtual ports supported, 0 means unsupported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* permanent port wwn for the port */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte fc_fca_port_info_t *port_info, fc_fca_bind_info_t *bind_info);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_init_pkt) (opaque_t fca_handle, fc_packet_t *pkt, int sleep);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_un_init_pkt) (opaque_t fca_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_els_send) (opaque_t fca_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_get_cap) (opaque_t fca_handle, char *cap, void *ptr);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_set_cap) (opaque_t fca_handle, char *cap, void *ptr);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_getmap) (opaque_t fca_handle, fc_lilpmap_t *map);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_transport) (opaque_t fca_handle, fc_packet_t *pkt);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_ub_alloc) (opaque_t fca_handle, uint64_t *tokens,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uint32_t ub_size, uint32_t *ub_count, uint32_t type);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_ub_free) (opaque_t fca_handle, uint32_t count,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_ub_release) (opaque_t fca_handle, uint32_t count,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_abort) (opaque_t fca_handle, fc_packet_t *pkt, int flags);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_reset) (opaque_t fca_handle, uint32_t cmd);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_port_manage) (opaque_t fca_port, fc_fca_pm_t *arg);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte opaque_t (*fca_get_device) (opaque_t fca_port, fc_portid_t d_id);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int (*fca_notify) (opaque_t fca_handle, uint32_t cmd);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint fc_fca_pkt_error(fc_packet_t *pkt, char **state, char **reason,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#if !defined(__lint)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("unique per fca_bind", fc_fca_port_info))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("unique per fca_bind", fc_fca_bind))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte_NOTE(SCHEME_PROTECTS_DATA("stable data", fca_tran))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* __lint */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _FC_FCAIF_H */