equal
deleted
inserted
replaced
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright (c) 1982, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 1982, 2010, Oracle and/or its affiliates. All rights reserved. |
|
24 * |
|
25 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
24 */ |
26 */ |
25 |
27 |
26 #ifndef _SYS_DKIO_H |
28 #ifndef _SYS_DKIO_H |
27 #define _SYS_DKIO_H |
29 #define _SYS_DKIO_H |
28 |
30 |
513 * firmware update type - temporary or permanent use |
515 * firmware update type - temporary or permanent use |
514 */ |
516 */ |
515 #define FW_TYPE_TEMP 0x0 /* temporary use */ |
517 #define FW_TYPE_TEMP 0x0 /* temporary use */ |
516 #define FW_TYPE_PERM 0x1 /* permanent use */ |
518 #define FW_TYPE_PERM 0x1 /* permanent use */ |
517 |
519 |
|
520 /* |
|
521 * ioctl to free space (e.g. SCSI UNMAP) off a disk. |
|
522 */ |
|
523 #define DKIOCFREE (DKIOC|50) |
|
524 |
|
525 typedef struct dkioc_free_s { |
|
526 uint32_t df_flags; |
|
527 uint32_t df_reserved; /* For easy 64-bit alignment below... */ |
|
528 diskaddr_t df_start; |
|
529 diskaddr_t df_length; |
|
530 } dkioc_free_t; |
|
531 |
|
532 #define DF_WAIT_SYNC 0x00000001 /* Wait for full write-out of free. */ |
518 |
533 |
519 #ifdef __cplusplus |
534 #ifdef __cplusplus |
520 } |
535 } |
521 #endif |
536 #endif |
522 |
537 |