rng200var.h revision 1.1
11.1Smlelstv/* $NetBSD: rng200var.h,v 1.1 2019/09/01 14:44:14 mlelstv Exp $ */ 21.1Smlelstv 31.1Smlelstv/* 41.1Smlelstv * Copyright (c) 2019 The NetBSD Foundation, Inc. 51.1Smlelstv * All rights reserved. 61.1Smlelstv * 71.1Smlelstv * This code is derived from software contributed to The NetBSD Foundation 81.1Smlelstv * by Michael van Elst 91.1Smlelstv * 101.1Smlelstv * Redistribution and use in source and binary forms, with or without 111.1Smlelstv * modification, are permitted provided that the following conditions 121.1Smlelstv * are met: 131.1Smlelstv * 1. Redistributions of source code must retain the above copyright 141.1Smlelstv * notice, this list of conditions and the following disclaimer. 151.1Smlelstv * 2. Redistributions in binary form must reproduce the above copyright 161.1Smlelstv * notice, this list of conditions and the following disclaimer in the 171.1Smlelstv * documentation and/or other materials provided with the distribution. 181.1Smlelstv * 191.1Smlelstv * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Smlelstv * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Smlelstv * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Smlelstv * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Smlelstv * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Smlelstv * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Smlelstv * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Smlelstv * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Smlelstv * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Smlelstv * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Smlelstv * POSSIBILITY OF SUCH DAMAGE. 301.1Smlelstv */ 311.1Smlelstv 321.1Smlelstv#ifndef _IC_RNG200VAR_H_ 331.1Smlelstv#define _IC_RNG200VAR_H_ 341.1Smlelstv 351.1Smlelstv#include <sys/bus.h> 361.1Smlelstv#include <sys/device.h> 371.1Smlelstv#include <sys/mutex.h> 381.1Smlelstv#include <sys/rndsource.h> 391.1Smlelstv 401.1Smlelstvstruct rng200_softc { 411.1Smlelstv bus_space_tag_t sc_bst; 421.1Smlelstv bus_space_handle_t sc_bsh; 431.1Smlelstv 441.1Smlelstv kmutex_t sc_lock; 451.1Smlelstv krndsource_t sc_rndsource; 461.1Smlelstv const char *sc_name; 471.1Smlelstv}; 481.1Smlelstv 491.1Smlelstvvoid rng200_attach(struct rng200_softc *); 501.1Smlelstvvoid rng200_detach(struct rng200_softc *); 511.1Smlelstv 521.1Smlelstv#endif /* !_IC_RNG200VAR_H_ */ 53