1268767Smav/*-
2268767Smav * Copyright (c) 2014 Alexander Motin <mav@FreeBSD.org>
3268767Smav * All rights reserved.
4268767Smav *
5268767Smav * Redistribution and use in source and binary forms, with or without
6268767Smav * modification, are permitted provided that the following conditions
7268767Smav * are met:
8268767Smav * 1. Redistributions of source code must retain the above copyright
9268767Smav *    notice, this list of conditions and the following disclaimer,
10268767Smav *    without modification, immediately at the beginning of the file.
11268767Smav * 2. Redistributions in binary form must reproduce the above copyright
12268767Smav *    notice, this list of conditions and the following disclaimer in the
13268767Smav *    documentation and/or other materials provided with the distribution.
14268767Smav *
15268767Smav * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16268767Smav * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17268767Smav * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18268767Smav * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19268767Smav * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20268767Smav * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21268767Smav * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22268767Smav * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23268767Smav * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24268767Smav * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25268767Smav *
26268767Smav * $FreeBSD: releng/10.3/sys/cam/ctl/ctl_tpc.h 279004 2015-02-19 14:36:03Z mav $
27268767Smav */
28268767Smav
29268767Smav#ifndef	_CTL_TPC_H
30268767Smav#define	_CTL_TPC_H 1
31268767Smav
32268767Smavvoid tpc_done(union ctl_io *io);
33268767Smav
34276614Smavuint64_t tpcl_resolve(struct ctl_softc *softc, int init_port,
35279004Smav    struct scsi_ec_cscd *cscd, uint32_t *ss, uint32_t *ps, uint32_t *pso);
36268767Smavunion ctl_io * tpcl_alloc_io(void);
37268767Smavint tpcl_queue(union ctl_io *io, uint64_t lun);
38268767Smav
39268767Smav#endif	/* _CTL_TPC_H */
40