ctl_ioctl.h (265508) | ctl_ioctl.h (265509) |
---|---|
1/*- 2 * Copyright (c) 2003 Silicon Graphics International Corp. 3 * Copyright (c) 2011 Spectra Logic Corporation 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: --- 15 unchanged lines hidden (view full) --- 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGES. 30 * 31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_ioctl.h#4 $ | 1/*- 2 * Copyright (c) 2003 Silicon Graphics International Corp. 3 * Copyright (c) 2011 Spectra Logic Corporation 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: --- 15 unchanged lines hidden (view full) --- 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGES. 30 * 31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_ioctl.h#4 $ |
32 * $FreeBSD: stable/10/sys/cam/ctl/ctl_ioctl.h 265508 2014-05-07 07:31:25Z trasz $ | 32 * $FreeBSD: stable/10/sys/cam/ctl/ctl_ioctl.h 265509 2014-05-07 07:32:45Z trasz $ |
33 */ 34/* 35 * CAM Target Layer ioctl interface. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_IOCTL_H_ --- 580 unchanged lines hidden (view full) --- 621 /* 622 * We actually need those in all cases, but leave the ICL_KERNEL_PROXY, 623 * to remember to remove them along with rest of proxy code, eventually. 624 */ 625 CTL_ISCSI_LISTEN, 626 CTL_ISCSI_ACCEPT, 627 CTL_ISCSI_SEND, 628 CTL_ISCSI_RECEIVE, | 33 */ 34/* 35 * CAM Target Layer ioctl interface. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_IOCTL_H_ --- 580 unchanged lines hidden (view full) --- 621 /* 622 * We actually need those in all cases, but leave the ICL_KERNEL_PROXY, 623 * to remember to remove them along with rest of proxy code, eventually. 624 */ 625 CTL_ISCSI_LISTEN, 626 CTL_ISCSI_ACCEPT, 627 CTL_ISCSI_SEND, 628 CTL_ISCSI_RECEIVE, |
629 CTL_ISCSI_CLOSE, | |
630#endif 631} ctl_iscsi_type; 632 633typedef enum { 634 CTL_ISCSI_DIGEST_NONE, 635 CTL_ISCSI_DIGEST_CRC32C 636} ctl_iscsi_digest; 637 --- 58 unchanged lines hidden (view full) --- 696#ifdef ICL_KERNEL_PROXY 697struct ctl_iscsi_listen_params { 698 int iser; 699 int domain; 700 int socktype; 701 int protocol; 702 struct sockaddr *addr; 703 socklen_t addrlen; | 629#endif 630} ctl_iscsi_type; 631 632typedef enum { 633 CTL_ISCSI_DIGEST_NONE, 634 CTL_ISCSI_DIGEST_CRC32C 635} ctl_iscsi_digest; 636 --- 58 unchanged lines hidden (view full) --- 695#ifdef ICL_KERNEL_PROXY 696struct ctl_iscsi_listen_params { 697 int iser; 698 int domain; 699 int socktype; 700 int protocol; 701 struct sockaddr *addr; 702 socklen_t addrlen; |
703 int portal_id; |
|
704 int spare[4]; 705}; 706 707struct ctl_iscsi_accept_params { 708 int connection_id; | 704 int spare[4]; 705}; 706 707struct ctl_iscsi_accept_params { 708 int connection_id; |
709 struct sockaddr *initiator_addr; 710 int portal_id; |
|
709 int spare[4]; 710}; 711 712struct ctl_iscsi_send_params { 713 int connection_id; 714 void *bhs; 715 size_t spare; 716 void *spare2; --- 7 unchanged lines hidden (view full) --- 724 void *bhs; 725 size_t spare; 726 void *spare2; 727 size_t data_segment_len; 728 void *data_segment; 729 int spare3[4]; 730}; 731 | 711 int spare[4]; 712}; 713 714struct ctl_iscsi_send_params { 715 int connection_id; 716 void *bhs; 717 size_t spare; 718 void *spare2; --- 7 unchanged lines hidden (view full) --- 726 void *bhs; 727 size_t spare; 728 void *spare2; 729 size_t data_segment_len; 730 void *data_segment; 731 int spare3[4]; 732}; 733 |
732struct ctl_iscsi_close_params { 733 int connection_id; 734 int spare[4]; 735}; | |
736#endif /* ICL_KERNEL_PROXY */ 737 738union ctl_iscsi_data { 739 struct ctl_iscsi_handoff_params handoff; 740 struct ctl_iscsi_list_params list; 741 struct ctl_iscsi_logout_params logout; 742 struct ctl_iscsi_terminate_params terminate; 743#ifdef ICL_KERNEL_PROXY 744 struct ctl_iscsi_listen_params listen; 745 struct ctl_iscsi_accept_params accept; 746 struct ctl_iscsi_send_params send; 747 struct ctl_iscsi_receive_params receive; | 734#endif /* ICL_KERNEL_PROXY */ 735 736union ctl_iscsi_data { 737 struct ctl_iscsi_handoff_params handoff; 738 struct ctl_iscsi_list_params list; 739 struct ctl_iscsi_logout_params logout; 740 struct ctl_iscsi_terminate_params terminate; 741#ifdef ICL_KERNEL_PROXY 742 struct ctl_iscsi_listen_params listen; 743 struct ctl_iscsi_accept_params accept; 744 struct ctl_iscsi_send_params send; 745 struct ctl_iscsi_receive_params receive; |
748 struct ctl_iscsi_close_params close; | |
749#endif 750}; 751 752/* 753 * iSCSI interface 754 * 755 * status: The status of the request. See above for the 756 * description of the values of this field. --- 43 unchanged lines hidden --- | 746#endif 747}; 748 749/* 750 * iSCSI interface 751 * 752 * status: The status of the request. See above for the 753 * description of the values of this field. --- 43 unchanged lines hidden --- |