at91var.h revision 187599
1155324Simp/*- 2155324Simp * Copyright (c) 2005 Olivier Houchard. All rights reserved. 3155324Simp * 4155324Simp * Redistribution and use in source and binary forms, with or without 5155324Simp * modification, are permitted provided that the following conditions 6155324Simp * are met: 7155324Simp * 1. Redistributions of source code must retain the above copyright 8155324Simp * notice, this list of conditions and the following disclaimer. 9155324Simp * 2. Redistributions in binary form must reproduce the above copyright 10155324Simp * notice, this list of conditions and the following disclaimer in the 11155324Simp * documentation and/or other materials provided with the distribution. 12155324Simp * 13185265Simp * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14185265Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15185265Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16185265Simp * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17185265Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18185265Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19185265Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20185265Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21185265Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22185265Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23185265Simp * SUCH DAMAGE. 24155324Simp */ 25155324Simp 26155324Simp/* $FreeBSD: head/sys/arm/at91/at91var.h 187599 2009-01-22 21:54:26Z imp $ */ 27155324Simp 28155324Simp#ifndef _AT91VAR_H_ 29155324Simp#define _AT91VAR_H_ 30155324Simp 31155324Simp#include <sys/rman.h> 32155324Simp 33155324Simpstruct at91_softc { 34155324Simp device_t dev; 35155324Simp bus_space_tag_t sc_st; 36155324Simp bus_space_handle_t sc_sh; 37155324Simp bus_space_handle_t sc_sys_sh; 38155324Simp struct rman sc_irq_rman; 39155324Simp struct rman sc_mem_rman; 40155324Simp}; 41155324Simp 42155324Simpstruct at91_ivar { 43155324Simp struct resource_list resources; 44155324Simp}; 45155324Simp 46187599Simpextern uint32_t at91_master_clock; 47187599Simp 48155324Simp#endif /* _AT91VAR_H_ */ 49