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