1 /* 2 * libdi - scsipt SCSI Device Interface Library 3 * 4 * Copyright (C) 1993-2004 Ti Kan 5 * E-mail: xmcd@amb.org 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 22 /* 23 * SCO UNIX/Open Desktop/Open Server support 24 * 25 * This software fragment contains code that interfaces the 26 * application to the SCO UNIX operating system. The name "SCO" 27 * is used here for identification purposes only. 28 */ 29 #ifndef __OS_SCO_H__ 30 #define __OS_SCO_H__ 31 32 #if defined(_SCO_SVR3) && \ 33 (defined(DI_SCSIPT) || defined(CDDA_RD_SCSIPT)) && \ 34 !defined(DEMO_ONLY) 35 36 #ifndef lint 37 static char *_os_sco_h_ident_ = "@(#)os_sco.h 6.27 04/01/14"; 38 #endif 39 40 #include <sys/scsi.h> 41 #include <sys/scsicmd.h> 42 43 44 #define OS_MODULE /* Indicate that this is compiled on a supported OS */ 45 #define SETUID_ROOT /* Setuid root privilege is required */ 46 47 #define SCO_MAX_XFER (32 * 1024) /* Max per-request data length */ 48 49 50 /* Public function prototypes */ 51 extern bool_t pthru_send(di_dev_t *, int, byte_t *, size_t, byte_t *, size_t, 52 byte_t *, size_t, byte_t, int, bool_t); 53 extern di_dev_t *pthru_open(char *); 54 extern void pthru_close(di_dev_t *); 55 extern void pthru_enable(di_dev_t *, int); 56 extern void pthru_disable(di_dev_t *, int); 57 extern bool_t pthru_is_enabled(di_dev_t *, int); 58 extern size_t pthru_maxfer(di_dev_t *); 59 extern char *pthru_vers(void); 60 61 #endif /* _SCO_SVR3 DI_SCSIPT CDDA_RD_SCSIPT DEMO_ONLY */ 62 63 #endif /* __OS_SCO_H__ */ 64 65