1*08a4aba7Sskrll /* $NetBSD: epsocvar.h,v 1.6 2012/11/12 18:00:36 skrll Exp $ */ 229803910Sjoff /* 329803910Sjoff * Copyright (c) 2004 Jesse Off 429803910Sjoff * All rights reserved. 529803910Sjoff * 629803910Sjoff * Redistribution and use in source and binary forms, with or without 729803910Sjoff * modification, are permitted provided that the following conditions 829803910Sjoff * are met: 929803910Sjoff * 1. Redistributions of source code must retain the above copyright 1029803910Sjoff * notice, this list of conditions and the following disclaimer. 1129803910Sjoff * 2. Redistributions in binary form must reproduce the above copyright 1229803910Sjoff * notice, this list of conditions and the following disclaimer in the 1329803910Sjoff * documentation and/or other materials provided with the distribution. 1429803910Sjoff * 1529803910Sjoff * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR 1629803910Sjoff * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1729803910Sjoff * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1829803910Sjoff * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR 1929803910Sjoff * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2029803910Sjoff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2129803910Sjoff * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2229803910Sjoff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2329803910Sjoff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2429803910Sjoff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2529803910Sjoff * SUCH DAMAGE. 2629803910Sjoff */ 2729803910Sjoff 2829803910Sjoff #ifndef _EPSOCVAR_H_ 2929803910Sjoff #define _EPSOCVAR_H_ 3029803910Sjoff 3129803910Sjoff #include <sys/conf.h> 3229803910Sjoff #include <sys/device.h> 3329803910Sjoff #include <sys/queue.h> 3429803910Sjoff 35cf10107dSdyoung #include <sys/bus.h> 3629803910Sjoff 377959c31aShamajima struct epgpio_softc; 387959c31aShamajima 3929803910Sjoff struct epsoc_attach_args { 4029803910Sjoff bus_space_tag_t sa_iot; /* Bus tag */ 4129803910Sjoff bus_dma_tag_t sa_dmat; 4229803910Sjoff bus_addr_t sa_addr; /* i/o address */ 4329803910Sjoff bus_size_t sa_size; 4429803910Sjoff int sa_intr; 45*08a4aba7Sskrll uint32_t sa_hclk; 46*08a4aba7Sskrll uint32_t sa_pclk; 477959c31aShamajima struct epgpio_softc *sa_gpio; 4829803910Sjoff }; 4929803910Sjoff 5029803910Sjoff struct epsoc_softc { 51*08a4aba7Sskrll uint32_t sc_fclk; 52*08a4aba7Sskrll uint32_t sc_hclk; 53*08a4aba7Sskrll uint32_t sc_pclk; 5429803910Sjoff bus_space_tag_t sc_iot; 5529803910Sjoff bus_space_handle_t sc_ioh; 5629803910Sjoff bus_dma_tag_t sc_dmat; 5729803910Sjoff }; 5829803910Sjoff 5929803910Sjoff extern struct epsoc_softc *epsoc_sc; 6029803910Sjoff 6129803910Sjoff #endif /* _EPSOCVAR_H_ */ 62