1139749Simp/*- 2113584Ssimokawa * Copyright (C) 2002-2003 3103285Sikob * Hidetoshi Shimokawa. All rights reserved. 4103285Sikob * 5103285Sikob * Redistribution and use in source and binary forms, with or without 6103285Sikob * modification, are permitted provided that the following conditions 7103285Sikob * are met: 8103285Sikob * 1. Redistributions of source code must retain the above copyright 9103285Sikob * notice, this list of conditions and the following disclaimer. 10103285Sikob * 2. Redistributions in binary form must reproduce the above copyright 11103285Sikob * notice, this list of conditions and the following disclaimer in the 12103285Sikob * documentation and/or other materials provided with the distribution. 13103285Sikob * 3. All advertising materials mentioning features or use of this software 14103285Sikob * must display the following acknowledgement: 15103285Sikob * 16103285Sikob * This product includes software developed by Hidetoshi Shimokawa. 17103285Sikob * 18103285Sikob * 4. Neither the name of the author nor the names of its contributors 19103285Sikob * may be used to endorse or promote products derived from this software 20103285Sikob * without specific prior written permission. 21103285Sikob * 22103285Sikob * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23103285Sikob * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24103285Sikob * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25103285Sikob * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26103285Sikob * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27103285Sikob * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28103285Sikob * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29103285Sikob * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30103285Sikob * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31103285Sikob * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32103285Sikob * SUCH DAMAGE. 33103285Sikob * 34103285Sikob * $FreeBSD: releng/11.0/sys/dev/firewire/fwmem.h 139749 2005-01-06 01:43:34Z imp $ 35103285Sikob */ 36103285Sikob 37129585Sdfrstruct fw_xfer *fwmem_read_quad(struct fw_device *, caddr_t, uint8_t, 38129585Sdfr uint16_t, uint32_t, void *, void (*)(struct fw_xfer *)); 39129585Sdfrstruct fw_xfer *fwmem_write_quad(struct fw_device *, caddr_t, uint8_t, 40129585Sdfr uint16_t, uint32_t, void *, void (*)(struct fw_xfer *)); 41129585Sdfrstruct fw_xfer *fwmem_read_block(struct fw_device *, caddr_t, uint8_t, 42129585Sdfr uint16_t, uint32_t, int, void *, void (*)(struct fw_xfer *)); 43129585Sdfrstruct fw_xfer *fwmem_write_block(struct fw_device *, caddr_t, uint8_t, 44129585Sdfr uint16_t, uint32_t, int, void *, void (*)(struct fw_xfer *)); 45106810Ssimokawa 46103285Sikobd_open_t fwmem_open; 47103285Sikobd_close_t fwmem_close; 48103285Sikobd_ioctl_t fwmem_ioctl; 49103285Sikobd_read_t fwmem_read; 50103285Sikobd_write_t fwmem_write; 51103285Sikobd_poll_t fwmem_poll; 52103285Sikobd_mmap_t fwmem_mmap; 53120660Ssimokawad_strategy_t fwmem_strategy; 54