fwmem.h revision 1.4
11.4Skiyohara/*	$NetBSD: fwmem.h,v 1.4 2010/03/29 03:05:27 kiyohara Exp $	*/
21.1Skiyohara/*-
31.1Skiyohara * Copyright (C) 2002-2003
41.1Skiyohara * 	Hidetoshi Shimokawa. All rights reserved.
51.4Skiyohara *
61.1Skiyohara * Redistribution and use in source and binary forms, with or without
71.1Skiyohara * modification, are permitted provided that the following conditions
81.1Skiyohara * are met:
91.1Skiyohara * 1. Redistributions of source code must retain the above copyright
101.1Skiyohara *    notice, this list of conditions and the following disclaimer.
111.1Skiyohara * 2. Redistributions in binary form must reproduce the above copyright
121.1Skiyohara *    notice, this list of conditions and the following disclaimer in the
131.1Skiyohara *    documentation and/or other materials provided with the distribution.
141.1Skiyohara * 3. All advertising materials mentioning features or use of this software
151.1Skiyohara *    must display the following acknowledgement:
161.1Skiyohara *
171.1Skiyohara *	This product includes software developed by Hidetoshi Shimokawa.
181.1Skiyohara *
191.1Skiyohara * 4. Neither the name of the author nor the names of its contributors
201.1Skiyohara *    may be used to endorse or promote products derived from this software
211.1Skiyohara *    without specific prior written permission.
221.4Skiyohara *
231.1Skiyohara * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
241.1Skiyohara * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251.1Skiyohara * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
261.1Skiyohara * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
271.1Skiyohara * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
281.1Skiyohara * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
291.1Skiyohara * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
301.1Skiyohara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311.1Skiyohara * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321.1Skiyohara * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331.1Skiyohara * SUCH DAMAGE.
341.4Skiyohara *
351.1Skiyohara * $FreeBSD: /repoman/r/ncvs/src/sys/dev/firewire/fwmem.h,v 1.8 2005/01/06 01:42:41 imp Exp $
361.1Skiyohara */
371.4Skiyohara#ifndef _FWMEM_H_
381.4Skiyohara#define _FWMEM_H_
391.1Skiyohara
401.4Skiyoharastruct fw_xfer *fwmem_read_quad(struct fw_device *, void *, uint8_t, uint16_t,
411.4Skiyohara				uint32_t, void *, void (*)(struct fw_xfer *));
421.4Skiyoharastruct fw_xfer *fwmem_write_quad(struct fw_device *, void *, uint8_t, uint16_t,
431.4Skiyohara				 uint32_t, void *, void (*)(struct fw_xfer *));
441.4Skiyoharastruct fw_xfer *fwmem_read_block(struct fw_device *, void *, uint8_t, uint16_t,
451.4Skiyohara				 uint32_t, int, void *,
461.4Skiyohara				 void (*)(struct fw_xfer *));
471.4Skiyoharastruct fw_xfer *fwmem_write_block(struct fw_device *, void *, uint8_t, uint16_t,
481.4Skiyohara				  uint32_t, int, void *,
491.4Skiyohara				  void (*)(struct fw_xfer *));
501.1Skiyohara
511.1Skiyoharadev_type_open(fwmem_open);
521.1Skiyoharadev_type_close(fwmem_close);
531.1Skiyoharadev_type_ioctl(fwmem_ioctl);
541.1Skiyoharadev_type_strategy(fwmem_strategy);
551.4Skiyohara
561.4Skiyohara#endif	/* _FWMEM_H_ */
57