3 // This is needed for the various HAVE_* macros and PROJECT_* macros.
6 // These are needed to define prototypes and structures for the
7 // functions defined below
13 // This is to include whatever structures and prototypes you define in
15 #include "os_qnxnto.h"
17 // Needed by '-V' option (CVS versioning) of smartd/smartctl. You
18 // should have one *_H_CVSID macro appearing below for each file
19 // appearing with #include "*.h" above. Please list these (below) in
20 // alphabetic/dictionary order.
21 const char *os_XXXX_c_cvsid
="$Id: os_qnxnto.cpp 3191 2010-10-27 19:55:33Z chrfranke $" \
22 ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_QNXNTO_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID
;
25 // This is here to prevent compiler warnings for unused arguments of
27 #define ARGUSED(x) ((void)(x))
29 // Please eliminate the following block: both the #include and
30 // the 'unsupported()' function. They are only here to warn
31 // unsuspecting users that their Operating System is not supported! If
32 // you wish, you can use a similar warning mechanism for any of the
33 // functions in this file that you can not (or choose not to)
38 #include <sys/utsname.h>
40 //----------------------------------------------------------------------------------------------
42 static int ata_sense_data(void *sdata
,int *error
,int *key
,int *asc
,int *ascq
);
43 static int ata_interpret_sense(struct cam_pass_thru
*cpt
,void *sense
,int *status
,int rcount
);
44 static int ata_pass_thru(int fd
,struct cam_pass_thru
*pcpt
);
45 //----------------------------------------------------------------------------------------------
46 static void unsupported(){
47 static int warninggiven
;
53 struct utsname ostype
;
55 osname
=ostype
.sysname
;
61 "############################################################################\n"
62 "WARNING: smartmontools has not been ported to the %s Operating System.\n"
63 "Please see the files os_generic.cpp and os_generic.h for porting instructions.\n"
64 "############################################################################\n\n",
71 // End of the 'unsupported()' block that you should eliminate.
74 // print examples for smartctl. You should modify this function so
75 // that the device paths are sensible for your OS, and to eliminate
76 // unsupported commands (eg, 3ware controllers).
77 void print_smartctl_examples(){
78 printf("=================================================== SMARTCTL EXAMPLES =====\n\n");
79 #ifdef HAVE_GETOPT_LONG
81 " smartctl -a /dev/hd0 (Prints all SMART information)\n\n"
82 " smartctl --smart=on --offlineauto=on --saveauto=on /dev/hd0\n"
83 " (Enables SMART on first disk)\n\n"
84 " smartctl -t long /dev/hd0 (Executes extended disk self-test)\n\n"
85 " smartctl --attributes --log=selftest --quietmode=errorsonly /dev/hd0\n"
86 " (Prints Self-Test & Attribute errors)\n"
87 " smartctl -a --device=3ware,2 /dev/sda\n"
88 " (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)\n"
92 " smartctl -a /dev/hd0 (Prints all SMART information)\n"
93 " smartctl -s on -o on -S on /dev/hd0 (Enables SMART on first disk)\n"
94 " smartctl -t long /dev/hd0 (Executes extended disk self-test)\n"
95 " smartctl -A -l selftest -q errorsonly /dev/hd0\n"
96 " (Prints Self-Test & Attribute errors)\n"
97 " smartctl -a -d 3ware,2 /dev/sda\n"
98 " (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)\n"
104 // tries to guess device type given the name (a path). See utility.h
105 // for return values.
106 static const char *net_dev_prefix
= "/dev/";
107 static const char *net_dev_ata_disk
= "hd";
109 int guess_device_type (const char* dev_name
)
111 int len
,dev_prefix_len
;
112 dev_prefix_len
=strlen(net_dev_prefix
);
113 if(!dev_name
||!(len
=strlen(dev_name
)))
114 return(CONTROLLER_UNKNOWN
);
115 if (!strncmp(net_dev_prefix
,dev_name
,dev_prefix_len
))
117 if(len
<=dev_prefix_len
)
118 return(CONTROLLER_UNKNOWN
);
120 dev_name
+= dev_prefix_len
;
122 if(!strncmp(net_dev_ata_disk
,dev_name
,strlen(net_dev_ata_disk
)))
123 return(CONTROLLER_ATA
);
124 return(CONTROLLER_UNKNOWN
);
127 // makes a list of ATA or SCSI devices for the DEVICESCAN directive of
128 // smartd. Returns number N of devices, or -1 if out of
129 // memory. Allocates N+1 arrays: one of N pointers (devlist); the
130 // other N arrays each contain null-terminated character strings. In
131 // the case N==0, no arrays are allocated because the array of 0
132 // pointers has zero length, equivalent to calling malloc(0).
133 int make_device_names (char*** devlist
, const char* name
) {
140 // Like open(). Return non-negative integer handle, only used by the
141 // functions below. type=="ATA" or "SCSI". If you need to store
142 // extra information about your devices, create a private internal
143 // array within this file (see os_freebsd.cpp for an example). If you
144 // can not open the device (permission denied, does not exist, etc)
145 // set errno as open() does and return <0.
146 int deviceopen(const char *pathname
, char *type
)
148 if(!strcmp(type
, "ATA"))
149 return(open(pathname
,O_RDWR
|O_NONBLOCK
));
154 // Like close(). Acts only on integer handles returned by
155 // deviceopen() above.
156 int deviceclose(int fd
)
160 //----------------------------------------------------------------------------------------------
161 // Interface to ATA devices. See os_linux.cpp for the cannonical example.
162 // DETAILED DESCRIPTION OF ARGUMENTS
163 // device: is the integer handle provided by deviceopen()
164 // command: defines the different operations, see atacmds.h
165 // select: additional input data IF NEEDED (which log, which type of
167 // data: location to write output data, IF NEEDED (1 or 512 bytes).
168 // Note: not all commands use all arguments.
169 // RETURN VALUES (for all commands BUT command==STATUS_CHECK)
170 // -1 if the command failed
171 // 0 if the command succeeded,
172 // RETURN VALUES if command==STATUS_CHECK
173 // -1 if the command failed OR the disk SMART status can't be determined
174 // 0 if the command succeeded and disk SMART status is "OK"
175 // 1 if the command succeeded and disk SMART status is "FAILING"
176 int ata_command_interface(int fd
,smart_command_set command
,int select
,char *data
)
178 struct cam_pass_thru cpt
;
182 memset(&cpt
,0x00,sizeof(struct cam_pass_thru
));
183 cdb
=(CDB
*)cpt
.cam_cdb
;
188 cpt
.cam_flags
= CAM_DIR_IN
;
189 cpt
.cam_cdb_len
= 16;
190 cpt
.cam_dxfer_len
= 512;
191 cpt
.cam_data_ptr
= (uint32_t)data
;
192 cpt
.cam_sense_len
= sizeof(sense
);
193 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
194 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
195 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_PIO_DATA_IN
;
196 cdb
->ata_pass_thru
.flags
= ATA_FLG_T_DIR
|ATA_FLG_TLEN_STPSIU
;
197 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
198 cdb
->ata_pass_thru
.features
= ATA_SMART_READ_VALUES
;
199 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
200 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
202 case READ_THRESHOLDS
:
203 cpt
.cam_flags
= CAM_DIR_IN
;
204 cpt
.cam_cdb_len
= 16;
205 cpt
.cam_dxfer_len
= 512;
206 cpt
.cam_data_ptr
= (uint32_t)data
;
207 cpt
.cam_sense_len
= sizeof(sense
);
208 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
209 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
210 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_PIO_DATA_IN
;
211 cdb
->ata_pass_thru
.flags
= ATA_FLG_T_DIR
|ATA_FLG_TLEN_STPSIU
;
212 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
213 cdb
->ata_pass_thru
.features
= ATA_SMART_READ_THRESHOLDS
;
214 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
215 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
218 cpt
.cam_flags
= CAM_DIR_IN
;
219 cpt
.cam_cdb_len
= 16;
220 cpt
.cam_dxfer_len
= 512;
221 cpt
.cam_data_ptr
= (uint32_t)data
;
222 cpt
.cam_sense_len
= sizeof(sense
);
223 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
224 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
225 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_PIO_DATA_IN
;
226 cdb
->ata_pass_thru
.flags
= ATA_FLG_T_DIR
|ATA_FLG_TLEN_STPSIU
;
227 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
228 cdb
->ata_pass_thru
.features
= ATA_SMART_READ_LOG_SECTOR
;
229 cdb
->ata_pass_thru
.sector_count
= 1;
230 cdb
->ata_pass_thru
.lba_low
= select
;
231 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
232 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
238 cpt
.cam_flags
= CAM_DIR_IN
;
239 cpt
.cam_cdb_len
= 16;
240 cpt
.cam_dxfer_len
= 512;
241 cpt
.cam_data_ptr
= (uint32_t)data
;
242 cpt
.cam_sense_len
= sizeof(sense
);
243 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
244 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
245 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_PIO_DATA_IN
;
246 cdb
->ata_pass_thru
.flags
= ATA_FLG_T_DIR
|ATA_FLG_TLEN_STPSIU
;
247 cdb
->ata_pass_thru
.command
= ATA_IDENTIFY_DEVICE
;
250 cpt
.cam_flags
= CAM_DIR_IN
;
251 cpt
.cam_cdb_len
= 16;
252 cpt
.cam_dxfer_len
= 512;
253 cpt
.cam_data_ptr
= (uint32_t)data
;
254 cpt
.cam_sense_len
= sizeof(sense
);
255 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
256 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
257 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_PIO_DATA_IN
;
258 cdb
->ata_pass_thru
.flags
= ATA_FLG_T_DIR
|ATA_FLG_TLEN_STPSIU
;
259 cdb
->ata_pass_thru
.command
= ATA_IDENTIFY_PACKET_DEVICE
;
262 cpt
.cam_flags
= CAM_DIR_NONE
;
263 cpt
.cam_cdb_len
= 16;
264 cpt
.cam_sense_len
= sizeof(sense
);
265 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
266 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
267 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
268 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
269 cdb
->ata_pass_thru
.features
= ATA_SMART_ENABLE
;
270 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
271 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
274 cpt
.cam_flags
= CAM_DIR_NONE
;
275 cpt
.cam_cdb_len
= 16;
276 cpt
.cam_sense_len
= sizeof(sense
);
277 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
278 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
279 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
280 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
281 cdb
->ata_pass_thru
.features
= ATA_SMART_DISABLE
;
282 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
283 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
286 // NOTE: According to ATAPI 4 and UP, this command is obsolete
287 cpt
.cam_flags
= CAM_DIR_NONE
;
288 cpt
.cam_cdb_len
= 16;
289 cpt
.cam_sense_len
= sizeof(sense
);
290 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
291 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
292 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
293 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
294 cdb
->ata_pass_thru
.features
= ATA_SMART_AUTO_OFFLINE
;
295 cdb
->ata_pass_thru
.lba_low
= select
;
296 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
297 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
300 cpt
.cam_flags
= CAM_DIR_NONE
;
301 cpt
.cam_cdb_len
= 16;
302 cpt
.cam_sense_len
= sizeof(sense
);
303 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
304 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
305 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
306 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
307 cdb
->ata_pass_thru
.features
= ATA_SMART_AUTOSAVE
;
308 cdb
->ata_pass_thru
.sector_count
= select
;
309 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
310 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
312 case IMMEDIATE_OFFLINE
:
313 // NOTE: According to ATAPI 4 and UP, this command is obsolete
314 cpt
.cam_flags
= CAM_DIR_NONE
;
315 cpt
.cam_cdb_len
= 16;
316 cpt
.cam_sense_len
= sizeof(sense
);
317 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
318 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
319 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
320 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
321 cdb
->ata_pass_thru
.features
= ATA_SMART_IMMEDIATE_OFFLINE
;
322 cdb
->ata_pass_thru
.lba_low
= select
;
323 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
324 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
327 // same command, no HDIO in NetBSD
329 cpt
.cam_flags
= CAM_DIR_NONE
;
330 cpt
.cam_cdb_len
= 16;
331 cpt
.cam_sense_len
= sizeof(sense
);
332 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
333 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
334 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
335 cdb
->ata_pass_thru
.flags
= ATA_FLG_CK_COND
;
336 cdb
->ata_pass_thru
.command
= ATA_SMART_CMD
;
337 cdb
->ata_pass_thru
.features
= ATA_SMART_STATUS
;
338 cdb
->ata_pass_thru
.lba_mid
= ATA_SMART_LBA_MID_SIG
;
339 cdb
->ata_pass_thru
.lba_high
= ATA_SMART_LBA_HI_SIG
;
341 case CHECK_POWER_MODE
:
342 cpt
.cam_flags
= CAM_DIR_NONE
;
343 cpt
.cam_cdb_len
= 16;
344 cpt
.cam_sense_len
= sizeof(sense
);
345 cpt
.cam_sense_ptr
= (uint32_t)&sense
;
346 cdb
->ata_pass_thru
.opcode
= SC_ATA_PT16
;
347 cdb
->ata_pass_thru
.protocol
= ATA_PROTO_DATA_NONE
;
348 cdb
->ata_pass_thru
.flags
= ATA_FLG_CK_COND
;
349 cdb
->ata_pass_thru
.command
= ATA_CHECK_POWER_MODE
;
352 pout("Unrecognized command %d in ata_command_interface()\n", command
);
357 if((status
=ata_pass_thru(fd
,&cpt
))==EOK
)
360 if(cpt
.cam_status
!=CAM_REQ_CMP
)
362 ata_interpret_sense(&cpt
,&sense
,&status
,0);
363 if(command
==STATUS
||command
==STATUS_CHECK
)
364 rc
=((sense
.desc
.lba_high
<<8)|sense
.desc
.lba_mid
)==ATA_SMART_SIG
?0:1;
367 if(command
==CHECK_POWER_MODE
)
368 data
[0]=cdb
->ata_pass_thru
.sector_count
;
372 //----------------------------------------------------------------------------------------------
373 int marvell_command_interface(int fd
, smart_command_set command
, int select
, char *data
)
382 //----------------------------------------------------------------------------------------------
383 int highpoint_command_interface(int fd
, smart_command_set command
, int select
, char *data
)
392 //----------------------------------------------------------------------------------------------
393 // Interface to ATA devices behind 3ware escalade/apache RAID
394 // controller cards. Same description as ata_command_interface()
395 // above except that 0 <= disknum <= 15 specifies the ATA disk
396 // attached to the controller, and controller_type specifies the
397 // precise type of 3ware controller. See os_linux.c
398 int escalade_command_interface(int fd
,int disknum
,int controller_type
,smart_command_set command
,int select
,char *data
)
402 ARGUSED(controller_type
);
411 int areca_command_interface(int fd
,int disknum
,smart_command_set command
,int select
,char *data
)
422 //----------------------------------------------------------------------------------------------
424 // Interface to SCSI devices. See os_linux.c
425 int do_scsi_cmnd_io(int fd
,struct scsi_cmnd_io
* iop
,int report
)
433 //----------------------------------------------------------------------------------------------
434 //----------------------------------------------------------------------------------------------
435 static int ata_sense_data(void *sdata
,int *error
,int *key
,int *asc
,int *ascq
)
438 SCSI_SENSE_DESCRIPTOR
*sd
;
439 sf
=(SCSI_SENSE
*)sdata
;
440 sd
=(SCSI_SENSE_DESCRIPTOR
*)sdata
;
442 if(*error
& SENSE_DATA_FMT_DESCRIPTOR
)
444 *key
=sd
->sense
& SK_MSK
;
450 *key
=sf
->sense
& SK_MSK
;
456 //----------------------------------------------------------------------------------------------
457 static int ata_interpret_sense(struct cam_pass_thru
*cpt
,void *sense
,int *status
,int rcount
)
466 if(cpt
->cam_status
&CAM_AUTOSNS_VALID
)
468 ata_sense_data(sense
,&error
,&key
,&asc
,&ascq
);
471 case SK_NO_SENSE
: // No sense data (no error)
475 case SK_RECOVERED
: // Recovered error
478 case ASC_ATA_PASS_THRU
:
481 case ASCQ_ATA_PASS_THRU_INFO_AVAIL
:
493 case SK_NOT_RDY
: // Device not ready
500 case ASCQ_BECOMING_READY
:
501 case ASCQ_CAUSE_NOT_REPORTABLE
:
507 case ASC_MEDIA_NOT_PRESENT
:
513 case SK_MEDIUM
: // Medium error
514 case SK_HARDWARE
: // Hardware error
518 case SK_ILLEGAL
: // Illegal Request (bad command)
522 case SK_UNIT_ATN
: // Unit Attention
525 case ASC_MEDIUM_CHANGED
:
533 case SK_DATA_PROT
: // Data Protect
537 case SK_VENDOR
: // Vendor Specific
538 case SK_CPY_ABORT
: // Copy Aborted
542 case SK_CMD_ABORT
: // Aborted Command
546 case SK_EQUAL
: // Equal
547 case SK_VOL_OFL
: // Volume Overflow
548 case SK_MISCMP
: // Miscompare
549 case SK_RESERVED
: // Reserved
554 switch(cpt
->cam_status
&CAM_STATUS_MASK
)
556 case CAM_REQ_CMP_ERR
: // CCB request completed with an err
560 case CAM_BUSY
: // CAM subsystem is busy
563 case CAM_REQ_INVALID
: // CCB request is invalid
564 case CAM_PATH_INVALID
: // Path ID supplied is invalid
565 case CAM_DEV_NOT_THERE
: // SCSI device not installed/there
566 case CAM_SEL_TIMEOUT
: // Target selection timeout
567 case CAM_LUN_INVALID
: // LUN supplied is invalid
568 case CAM_TID_INVALID
: // Target ID supplied is invalid
572 case CAM_CMD_TIMEOUT
: // Command timeout
573 *status
=rcount
?EAGAIN
:EIO
;
575 case CAM_MSG_REJECT_REC
: // Message reject received
576 case CAM_SCSI_BUS_RESET
: // SCSI bus reset sent/received
577 case CAM_UNCOR_PARITY
: // Uncorrectable parity err occurred
578 case CAM_AUTOSENSE_FAIL
: // Autosense: Request sense cmd fail
579 case CAM_NO_HBA
: // No HBA detected Error
580 case CAM_DATA_RUN_ERR
: // Data overrun/underrun error
584 case CAM_UNEXP_BUSFREE
: // Unexpected BUS free
585 case CAM_SEQUENCE_FAIL
: // Target bus phase sequence failure
588 case CAM_PROVIDE_FAIL
: // Unable to provide requ. capability
592 case CAM_CCB_LEN_ERR
: // CCB length supplied is inadequate
593 case CAM_BDR_SENT
: // A SCSI BDR msg was sent to target
594 case CAM_REQ_TERMIO
: // CCB request terminated by the host
595 case CAM_FUNC_NOTAVAIL
: // The requ. func is not available
596 case CAM_NO_NEXUS
: // Nexus is not established
597 case CAM_IID_INVALID
: // The initiator ID is invalid
598 case CAM_CDB_RECVD
: // The SCSI CDB has been received
602 case CAM_SCSI_BUSY
: // SCSI bus busy
610 //----------------------------------------------------------------------------------------------
611 static int ata_pass_thru(int fd
,struct cam_pass_thru
*pcpt
)
616 struct cam_pass_thru cpt
;
619 SETIOV(&iov
[0],&cpt
,sizeof(cpt
));
620 cpt
.cam_timeout
=cpt
.cam_timeout
?cpt
.cam_timeout
:CAM_TIME_DEFAULT
;
621 if(cpt
.cam_sense_len
)
623 SETIOV(&iov
[1],(void *)cpt
.cam_sense_ptr
,cpt
.cam_sense_len
);
624 cpt
.cam_sense_ptr
=sizeof(cpt
);
627 if(cpt
.cam_dxfer_len
)
629 SETIOV(&iov
[2],(void *)cpt
.cam_data_ptr
,cpt
.cam_dxfer_len
);
630 cpt
.cam_data_ptr
=(paddr_t
)sizeof(cpt
)+cpt
.cam_sense_len
;
633 if((status
=devctlv(fd
,DCMD_CAM_PASS_THRU
,icnt
,icnt
,iov
,iov
,NULL
)))
634 pout("ata_pass_thru devctl: %s\n",strerror(status
));
635 pcpt
->cam_status
=cpt
.cam_status
;
636 pcpt
->cam_scsi_status
=cpt
.cam_scsi_status
;
639 //----------------------------------------------------------------------------------------------