1*fb651b61Sjmcneill /* $NetBSD: qemufwcfgvar.h,v 1.1 2017/11/25 16:31:03 jmcneill Exp $ */ 2*fb651b61Sjmcneill 3*fb651b61Sjmcneill /*- 4*fb651b61Sjmcneill * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 5*fb651b61Sjmcneill * All rights reserved. 6*fb651b61Sjmcneill * 7*fb651b61Sjmcneill * Redistribution and use in source and binary forms, with or without 8*fb651b61Sjmcneill * modification, are permitted provided that the following conditions 9*fb651b61Sjmcneill * are met: 10*fb651b61Sjmcneill * 1. Redistributions of source code must retain the above copyright 11*fb651b61Sjmcneill * notice, this list of conditions and the following disclaimer. 12*fb651b61Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright 13*fb651b61Sjmcneill * notice, this list of conditions and the following disclaimer in the 14*fb651b61Sjmcneill * documentation and/or other materials provided with the distribution. 15*fb651b61Sjmcneill * 16*fb651b61Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17*fb651b61Sjmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18*fb651b61Sjmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19*fb651b61Sjmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20*fb651b61Sjmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21*fb651b61Sjmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22*fb651b61Sjmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23*fb651b61Sjmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24*fb651b61Sjmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*fb651b61Sjmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*fb651b61Sjmcneill * SUCH DAMAGE. 27*fb651b61Sjmcneill */ 28*fb651b61Sjmcneill 29*fb651b61Sjmcneill #ifndef _QEMUFWCFGVAR_H 30*fb651b61Sjmcneill #define _QEMUFWCFGVAR_H 31*fb651b61Sjmcneill 32*fb651b61Sjmcneill struct fwcfg_softc { 33*fb651b61Sjmcneill device_t sc_dev; 34*fb651b61Sjmcneill bus_space_tag_t sc_bst; 35*fb651b61Sjmcneill bus_space_handle_t sc_bsh; 36*fb651b61Sjmcneill 37*fb651b61Sjmcneill kmutex_t sc_lock; 38*fb651b61Sjmcneill bool sc_open; 39*fb651b61Sjmcneill }; 40*fb651b61Sjmcneill 41*fb651b61Sjmcneill void fwcfg_attach(struct fwcfg_softc *); 42*fb651b61Sjmcneill 43*fb651b61Sjmcneill #endif /* !_QEMUFWCFGVAR_H */ 44