efifsdev.h revision 1.1
11.1Scherry/*	$NetBSD: efifsdev.h,v 1.1 2006/04/07 14:21:32 cherry Exp $	*/
21.1Scherry
31.1Scherry/*
41.1Scherry * Copyright (c) 2005
51.1Scherry *	The NetBSD Foundation.  All rights reserved.
61.1Scherry *
71.1Scherry * Redistribution and use in source and binary forms, with or without
81.1Scherry * modification, are permitted provided that the following conditions
91.1Scherry * are met:
101.1Scherry * 1. Redistributions of source code must retain the above copyright
111.1Scherry *    notice, this list of conditions and the following disclaimer.
121.1Scherry * 2. Redistributions in binary form must reproduce the above copyright
131.1Scherry *    notice, this list of conditions and the following disclaimer in the
141.1Scherry *    documentation and/or other materials provided with the distribution.
151.1Scherry *
161.1Scherry * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
171.1Scherry * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
181.1Scherry * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
191.1Scherry * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
201.1Scherry * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
211.1Scherry * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
221.1Scherry * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
231.1Scherry * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
241.1Scherry * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
251.1Scherry * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
261.1Scherry */
271.1Scherry
281.1Scherryint efifs_dev_strategy(void *, int, daddr_t, size_t, void *, size_t *);
291.1Scherryint efifs_dev_open(struct open_file *, ...);
301.1Scherryint efifs_dev_close(struct open_file *);
311.1Scherryint efifs_dev_init(void);
321.1Scherry
331.1Scherryint efifs_open(const char *, struct open_file *);
341.1Scherryint efifs_close(struct open_file *);
351.1Scherryint efifs_read(struct open_file *, void *, size_t, size_t *);
361.1Scherryint efifs_write(struct open_file *, void *, size_t, size_t *);
371.1Scherryoff_t efifs_seek(struct open_file *, off_t, int );
381.1Scherryint efifs_stat(struct open_file *, struct stat *);
391.1Scherry
40