econa_var.h revision 201468
125401Sjb/*- 250476Speter * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com>. 31573Srgrimes * All rights reserved. 41573Srgrimes * 5107052Sru * Redistribution and use in source and binary forms, with or without 61573Srgrimes * modification, are permitted provided that the following conditions 7102697Stjr * are met: 8122145Sdavidxu * 1. Redistributions of source code must retain the above copyright 9102697Stjr * notice, this list of conditions and the following disclaimer. 10102697Stjr * 2. Redistributions in binary form must reproduce the above copyright 11102697Stjr * notice, this list of conditions and the following disclaimer in the 1272170Sphantom * documentation and/or other materials provided with the distribution. 13121845Stjr * 14121845Stjr * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15104828Stjr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16112177Stjr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17112177Stjr * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 18103218Stjr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19103793Stjr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20103793Stjr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22101305Sbde * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23101305Sbde * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2430447Sbde * SUCH DAMAGE. 25123222Stjr * 26123222Stjr * $FreeBSD: head/sys/arm/econa/econa_var.h 201468 2010-01-04 03:35:45Z rpaulo $ 27123221Stjr */ 28123222Stjr 29102050Stjr#ifndef _ARM_ECONA_VAR_H 30101408Stjr#define _ARM_ECONA_VAR_H 31104406Stjr 32104406Stjrextern bus_space_tag_t obio_tag; 33103218Stjr 34123222Stjrstruct econa_softc { 35102167Stjr device_t dev; 36122727Stjr bus_space_tag_t ec_st; 3730624Sbde bus_space_handle_t ec_sh; 38101305Sbde bus_space_handle_t ec_sys_sh; 3989255Sbde bus_space_handle_t ec_system_sh; 40101408Stjr struct rman ec_irq_rman; 41101408Stjr struct rman ec_mem_rman; 42101408Stjr}; 43101408Stjr 44101408Stjrstruct econa_ivar { 45101408Stjr struct resource_list resources; 46101408Stjr}; 4789255Sbde 4830624Sbdevoid power_on_network_interface (void); 4930624Sbdeunsigned int get_tclk (void); 5030624Sbde 5130624Sbde 52112177Stjr#endif 53103793Stjr