Deleted Added
full compact
ctl_util.h (229997) ctl_util.h (269587)
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_util.h#2 $
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_util.h#2 $
31 * $FreeBSD: head/sys/cam/ctl/ctl_util.h 229997 2012-01-12 00:34:33Z ken $
31 * $FreeBSD: head/sys/cam/ctl/ctl_util.h 269587 2014-08-05 15:01:30Z mav $
32 */
33/*
34 * CAM Target Layer SCSI library interface
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_UTIL_H

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

56 uint8_t mode, uint8_t buffer_id,
57 uint32_t buffer_offset, ctl_tag_type tag_type,
58 uint8_t control);
59void ctl_scsi_read_write(union ctl_io *io, uint8_t *data_ptr,
60 uint32_t data_len, int read_op, uint8_t byte2,
61 int minimum_cdb_size, uint64_t lba,
62 uint32_t num_blocks, ctl_tag_type tag_type,
63 uint8_t control);
32 */
33/*
34 * CAM Target Layer SCSI library interface
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_UTIL_H

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

56 uint8_t mode, uint8_t buffer_id,
57 uint32_t buffer_offset, ctl_tag_type tag_type,
58 uint8_t control);
59void ctl_scsi_read_write(union ctl_io *io, uint8_t *data_ptr,
60 uint32_t data_len, int read_op, uint8_t byte2,
61 int minimum_cdb_size, uint64_t lba,
62 uint32_t num_blocks, ctl_tag_type tag_type,
63 uint8_t control);
64void ctl_scsi_write_same(union ctl_io *io, uint8_t *data_ptr,
65 uint32_t data_len, uint8_t byte2,
66 uint64_t lba, uint32_t num_blocks,
67 ctl_tag_type tag_type, uint8_t control);
64void ctl_scsi_read_capacity(union ctl_io *io, uint8_t *data_ptr,
65 uint32_t data_len, uint32_t addr, int reladr,
66 int pmi, ctl_tag_type tag_type, uint8_t control);
67void ctl_scsi_read_capacity_16(union ctl_io *io, uint8_t *data_ptr,
68 uint32_t data_len, uint64_t addr, int reladr,
69 int pmi, ctl_tag_type tag_type, uint8_t control);
70void ctl_scsi_mode_sense(union ctl_io *io, uint8_t *data_ptr,
71 uint32_t data_len, int dbd, int llbaa,

--- 48 unchanged lines hidden ---
68void ctl_scsi_read_capacity(union ctl_io *io, uint8_t *data_ptr,
69 uint32_t data_len, uint32_t addr, int reladr,
70 int pmi, ctl_tag_type tag_type, uint8_t control);
71void ctl_scsi_read_capacity_16(union ctl_io *io, uint8_t *data_ptr,
72 uint32_t data_len, uint64_t addr, int reladr,
73 int pmi, ctl_tag_type tag_type, uint8_t control);
74void ctl_scsi_mode_sense(union ctl_io *io, uint8_t *data_ptr,
75 uint32_t data_len, int dbd, int llbaa,

--- 48 unchanged lines hidden ---