-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathscsilib.h
53 lines (51 loc) · 2.59 KB
/
scsilib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/****************************************************************************
* *
* COPYRIGHT (c) 2006 - 2021 *
* This Software Provided *
* By *
* Robin's Nest Software Inc. *
* *
* Permission to use, copy, modify, distribute and sell this software and *
* its documentation for any purpose and without fee is hereby granted, *
* provided that the above copyright notice appear in all copies and that *
* both that copyright notice and this permission notice appear in the *
* supporting documentation, and that the name of the author not be used *
* in advertising or publicity pertaining to distribution of the software *
* without specific, written prior permission. *
* *
* THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN *
* NO EVENT SHALL HE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL *
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR *
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS *
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF *
* THIS SOFTWARE. *
* *
****************************************************************************/
#ifndef SCSILIB_AX_H
#define SCSILIB_AX_H
extern int os_open_device(scsi_generic_t *sgp);
extern int os_close_device(scsi_generic_t *sgp);
extern int os_abort_task_set(scsi_generic_t *sgp);
extern int os_clear_task_set(scsi_generic_t *sgp);
extern int os_cold_target_reset(scsi_generic_t *sgp);
extern int os_warm_target_reset(scsi_generic_t *sgp);
extern int os_reset_bus(scsi_generic_t *sgp);
extern int os_reset_ctlr(scsi_generic_t *sgp);
extern int os_reset_device(scsi_generic_t *sgp);
extern int os_reset_lun(scsi_generic_t *sgp);
extern int os_scan(scsi_generic_t *sgp);
extern int os_resumeio(scsi_generic_t *sgp);
extern int os_suspendio(scsi_generic_t *sgp);
extern int os_get_timeout(scsi_generic_t *sgp, unsigned int *timeout);
extern int os_set_timeout(scsi_generic_t *sgp, unsigned timeout);
extern int os_get_qdepth(scsi_generic_t *sgp, unsigned int *qdepth);
extern int os_set_qdepth(scsi_generic_t *sgp, unsigned int qdepth);
extern int os_spt(scsi_generic_t *sgp);
#if defined(_AIX)
extern int os_spta(scsi_generic_t *sgp);
#endif /* defined(_AIX) */
extern hbool_t os_is_retriable(scsi_generic_t *sgp);
extern char *os_host_status_msg(scsi_generic_t *sgp);
extern char *os_driver_status_msg(scsi_generic_t *sgp);
#endif /* SCSILIB_AX_H */