camlib.h (50476) | camlib.h (81975) |
---|---|
1/* 2 * Copyright (c) 1997, 1998 Kenneth D. Merry. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/* 2 * Copyright (c) 1997, 1998 Kenneth D. Merry. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/lib/libcam/camlib.h 50476 1999-08-28 00:22:10Z peter $ | 25 * $FreeBSD: head/lib/libcam/camlib.h 81975 2001-08-20 12:53:36Z kris $ |
26 */ 27/* 28 * Buffer encoding/decoding routines taken from the original FreeBSD SCSI 29 * library and slightly modified. The original header file had the following 30 * copyright: 31 */ 32/* Copyright (c) 1994 HD Associates (hd@world.std.com) 33 * All rights reserved. --- 111 unchanged lines hidden (view full) --- 145void cam_device_copy(struct cam_device *src, 146 struct cam_device *dst); 147int cam_get_device(const char *path, char *dev_name, 148 int devnamelen, int *unit); 149 150/* 151 * Buffer encoding/decoding routines, from the old SCSI library. 152 */ | 26 */ 27/* 28 * Buffer encoding/decoding routines taken from the original FreeBSD SCSI 29 * library and slightly modified. The original header file had the following 30 * copyright: 31 */ 32/* Copyright (c) 1994 HD Associates (hd@world.std.com) 33 * All rights reserved. --- 111 unchanged lines hidden (view full) --- 145void cam_device_copy(struct cam_device *src, 146 struct cam_device *dst); 147int cam_get_device(const char *path, char *dev_name, 148 int devnamelen, int *unit); 149 150/* 151 * Buffer encoding/decoding routines, from the old SCSI library. 152 */ |
153int csio_decode(struct ccb_scsiio *csio, char *fmt, ...); | 153int csio_decode(struct ccb_scsiio *csio, char *fmt, ...) __printflike(2, 3); |
154int csio_decode_visit(struct ccb_scsiio *csio, char *fmt, 155 void (*arg_put)(void *, int, void *, int, char *), 156 void *puthook); | 154int csio_decode_visit(struct ccb_scsiio *csio, char *fmt, 155 void (*arg_put)(void *, int, void *, int, char *), 156 void *puthook); |
157int buff_decode(u_int8_t *buff, size_t len, char *fmt, ...); | 157int buff_decode(u_int8_t *buff, size_t len, char *fmt, ...) __printflike(3, 4); |
158int buff_decode_visit(u_int8_t *buff, size_t len, char *fmt, 159 void (*arg_put)(void *, int, void *, int, char *), 160 void *puthook); 161int csio_build(struct ccb_scsiio *csio, u_int8_t *data_ptr, 162 u_int32_t dxfer_len, u_int32_t flags, int retry_count, 163 int timeout, char *cmd_spec, ...); 164int csio_build_visit(struct ccb_scsiio *csio, u_int8_t *data_ptr, 165 u_int32_t dxfer_len, u_int32_t flags, int retry_count, 166 int timeout, char *cmd_spec, 167 int (*arg_get)(void *hook, char *field_name), 168 void *gethook); | 158int buff_decode_visit(u_int8_t *buff, size_t len, char *fmt, 159 void (*arg_put)(void *, int, void *, int, char *), 160 void *puthook); 161int csio_build(struct ccb_scsiio *csio, u_int8_t *data_ptr, 162 u_int32_t dxfer_len, u_int32_t flags, int retry_count, 163 int timeout, char *cmd_spec, ...); 164int csio_build_visit(struct ccb_scsiio *csio, u_int8_t *data_ptr, 165 u_int32_t dxfer_len, u_int32_t flags, int retry_count, 166 int timeout, char *cmd_spec, 167 int (*arg_get)(void *hook, char *field_name), 168 void *gethook); |
169int csio_encode(struct ccb_scsiio *csio, char *fmt, ...); | 169int csio_encode(struct ccb_scsiio *csio, char *fmt, ...) __printflike(2, 3); |
170int buff_encode_visit(u_int8_t *buff, size_t len, char *fmt, 171 int (*arg_get)(void *hook, char *field_name), 172 void *gethook); 173int csio_encode_visit(struct ccb_scsiio *csio, char *fmt, 174 int (*arg_get)(void *hook, char *field_name), 175 void *gethook); 176__END_DECLS 177 178#endif /* _CAMLIB_H */ | 170int buff_encode_visit(u_int8_t *buff, size_t len, char *fmt, 171 int (*arg_get)(void *hook, char *field_name), 172 void *gethook); 173int csio_encode_visit(struct ccb_scsiio *csio, char *fmt, 174 int (*arg_get)(void *hook, char *field_name), 175 void *gethook); 176__END_DECLS 177 178#endif /* _CAMLIB_H */ |