1 | /* $NetBSD: fwmem.h,v 1.4 2010/03/29 03:05:27 kiyohara Exp $ */ |
2 | /*- |
3 | * Copyright (C) 2002-2003 |
4 | * Hidetoshi Shimokawa. All rights reserved. |
5 | * |
6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions |
8 | * are met: |
9 | * 1. Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. |
11 | * 2. Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. |
14 | * 3. All advertising materials mentioning features or use of this software |
15 | * must display the following acknowledgement: |
16 | * |
17 | * This product includes software developed by Hidetoshi Shimokawa. |
18 | * |
19 | * 4. Neither the name of the author nor the names of its contributors |
20 | * may be used to endorse or promote products derived from this software |
21 | * without specific prior written permission. |
22 | * |
23 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
24 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
25 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
26 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
27 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
28 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
29 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
30 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
31 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
32 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
33 | * SUCH DAMAGE. |
34 | * |
35 | * $FreeBSD: /repoman/r/ncvs/src/sys/dev/firewire/fwmem.h,v 1.8 2005/01/06 01:42:41 imp Exp $ |
36 | */ |
37 | #ifndef _FWMEM_H_ |
38 | #define _FWMEM_H_ |
39 | |
40 | struct fw_xfer *fwmem_read_quad(struct fw_device *, void *, uint8_t, uint16_t, |
41 | uint32_t, void *, void (*)(struct fw_xfer *)); |
42 | struct fw_xfer *fwmem_write_quad(struct fw_device *, void *, uint8_t, uint16_t, |
43 | uint32_t, void *, void (*)(struct fw_xfer *)); |
44 | struct fw_xfer *fwmem_read_block(struct fw_device *, void *, uint8_t, uint16_t, |
45 | uint32_t, int, void *, |
46 | void (*)(struct fw_xfer *)); |
47 | struct fw_xfer *fwmem_write_block(struct fw_device *, void *, uint8_t, uint16_t, |
48 | uint32_t, int, void *, |
49 | void (*)(struct fw_xfer *)); |
50 | |
51 | dev_type_open(fwmem_open); |
52 | dev_type_close(fwmem_close); |
53 | dev_type_ioctl(fwmem_ioctl); |
54 | dev_type_strategy(fwmem_strategy); |
55 | |
56 | #endif /* _FWMEM_H_ */ |
57 | |