2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
22 /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
24 * The NEXTSTEP Software License Agreement specifies the terms
25 * and conditions for redistribution.
32 * Structures and definitions for changer io control commands
35 #define CH_INVERT 0x10000
36 #define CH_ADDR_MASK 0xffff
38 short ch_op
; /* operations defined below */
39 short result
; /* the result */
42 int chm
; /* Transport element */
47 int chm
; /* Transport element */
51 short chmo
; /* Offset of first CHM */
52 short chms
; /* No. of CHM */
53 short slots
; /* No. of Storage Elements */
54 short sloto
; /* Offset of first SE */
55 short imexs
; /* No. of Import/Export Slots */
56 short imexo
; /* Offset of first IM/EX */
57 short drives
; /* No. of CTS */
58 short driveo
; /* Offset of first CTS */
59 short rot
; /* CHM can rotate */
78 u_char add_sense_code
;
79 u_char add_sense_code_qualifier
;
82 /* WARINING LSB only */
83 #define CH_CHOLDER 0x0290 /* Cartridge holder is missing */
84 #define CH_STATUSQ 0x0390 /* Status is questionable */
85 #define CH_CTS_CLOSED 0x0490 /* CTS door is closed */
106 /* Changer IO control command */
107 #define CHIOOP _IOWR('c', 1, struct chop) /* do a mag tape op */
109 #endif /* !_SYS_CHIO_H_ */