1/*
2 * Copyright (c) 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
--- 11 unchanged lines hidden (view full) ---
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sbin/camcontrol/camcontrol.h 50476 1999-08-28 00:22:10Z peter $
29 */
30
31#ifndef _CAMCONTROL_H
32#define _CAMCONTROL_H
33/*
34 * get_hook: Structure for evaluating args in a callback.
35 */
36struct get_hook
--- 4 unchanged lines hidden (view full) ---
41};
42
43void mode_sense(struct cam_device *device, int mode_page, int page_control,
44 int dbd, int retry_count, int timeout, u_int8_t *data,
45 int datalen);
46void mode_select(struct cam_device *device, int save_pages, int retry_count,
47 int timeout, u_int8_t *data, int datalen);
48void mode_edit(struct cam_device *device, int page, int page_control, int dbd,
49 int edit, int retry_count, int timeout);
50char *cget(void *hook, char *name);
51int iget(void *hook, char *name);
52void arg_put(void *hook, int letter, void *arg, int count, char *name);
53void usage(int verbose);
54#endif /* _CAMCONTROL_H */
2 * Copyright (c) 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
--- 11 unchanged lines hidden (view full) ---
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sbin/camcontrol/camcontrol.h 50476 1999-08-28 00:22:10Z peter $
29 */
30
31#ifndef _CAMCONTROL_H
32#define _CAMCONTROL_H
33/*
34 * get_hook: Structure for evaluating args in a callback.
35 */
36struct get_hook
--- 4 unchanged lines hidden (view full) ---
41};
42
43void mode_sense(struct cam_device *device, int mode_page, int page_control,
44 int dbd, int retry_count, int timeout, u_int8_t *data,
45 int datalen);
46void mode_select(struct cam_device *device, int save_pages, int retry_count,
47 int timeout, u_int8_t *data, int datalen);
48void mode_edit(struct cam_device *device, int page, int page_control, int dbd,
49 int edit, int retry_count, int timeout);
50char *cget(void *hook, char *name);
51int iget(void *hook, char *name);
52void arg_put(void *hook, int letter, void *arg, int count, char *name);
53void usage(int verbose);
54#endif /* _CAMCONTROL_H */