ctl_ioctl.h (229997) | ctl_ioctl.h (232604) |
---|---|
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: head/sys/cam/ctl/ctl_ioctl.h 229997 2012-01-12 00:34:33Z ken $ | 32 * $FreeBSD: head/sys/cam/ctl/ctl_ioctl.h 232604 2012-03-06 13:43:57Z trasz $ |
33 */ 34/* 35 * CAM Target Layer ioctl interface. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_IOCTL_H_ --- 351 unchanged lines hidden (view full) --- 392 void *value; 393 394 char *kname; 395 void *kvalue; 396}; 397 398typedef enum { 399 CTL_LUNREQ_CREATE, | 33 */ 34/* 35 * CAM Target Layer ioctl interface. 36 * 37 * Author: Ken Merry <ken@FreeBSD.org> 38 */ 39 40#ifndef _CTL_IOCTL_H_ --- 351 unchanged lines hidden (view full) --- 392 void *value; 393 394 char *kname; 395 void *kvalue; 396}; 397 398typedef enum { 399 CTL_LUNREQ_CREATE, |
400 CTL_LUNREQ_RM | 400 CTL_LUNREQ_RM, 401 CTL_LUNREQ_MODIFY, |
401} ctl_lunreq_type; 402 403 404/* 405 * LUN creation parameters: 406 * 407 * flags: Various LUN flags, see ctl_backend.h for a 408 * description of the flag values and meanings. --- 57 unchanged lines hidden (view full) --- 466 * lun_id: The number of the LUN to delete. This must be set. 467 * The LUN must be backed by the given backend. 468 */ 469struct ctl_lun_rm_params { 470 uint32_t lun_id; 471}; 472 473/* | 402} ctl_lunreq_type; 403 404 405/* 406 * LUN creation parameters: 407 * 408 * flags: Various LUN flags, see ctl_backend.h for a 409 * description of the flag values and meanings. --- 57 unchanged lines hidden (view full) --- 467 * lun_id: The number of the LUN to delete. This must be set. 468 * The LUN must be backed by the given backend. 469 */ 470struct ctl_lun_rm_params { 471 uint32_t lun_id; 472}; 473 474/* |
475 * LUN modification parameters: 476 * 477 * lun_id: The number of the LUN to modify. This must be set. 478 * The LUN must be backed by the given backend. 479 * 480 * lun_size_bytes: The size of the LUN in bytes. If zero, update 481 * the size using the backing file size, if possible. 482 */ 483struct ctl_lun_modify_params { 484 uint32_t lun_id; 485 uint64_t lun_size_bytes; 486}; 487 488/* |
|
474 * Union of request type data. Fill in the appropriate union member for 475 * the request type. 476 */ 477union ctl_lunreq_data { 478 struct ctl_lun_create_params create; 479 struct ctl_lun_rm_params rm; | 489 * Union of request type data. Fill in the appropriate union member for 490 * the request type. 491 */ 492union ctl_lunreq_data { 493 struct ctl_lun_create_params create; 494 struct ctl_lun_rm_params rm; |
495 struct ctl_lun_modify_params modify; |
|
480}; 481 482/* 483 * LUN request interface: 484 * 485 * backend: This is required, and is NUL-terminated a string 486 * that is the name of the backend, like "ramdisk" or 487 * "block". --- 117 unchanged lines hidden --- | 496}; 497 498/* 499 * LUN request interface: 500 * 501 * backend: This is required, and is NUL-terminated a string 502 * that is the name of the backend, like "ramdisk" or 503 * "block". --- 117 unchanged lines hidden --- |