1171626Scognet/*- 2171626Scognet * Copyright (c) 2006 Olivier Houchard 3171626Scognet * All rights reserved. 4171626Scognet * 5171626Scognet * Redistribution and use in source and binary forms, with or without 6171626Scognet * modification, are permitted provided that the following conditions 7171626Scognet * are met: 8171626Scognet * 1. Redistributions of source code must retain the above copyright 9171626Scognet * notice, this list of conditions and the following disclaimer. 10171626Scognet * 2. Redistributions in binary form must reproduce the above copyright 11171626Scognet * notice, this list of conditions and the following disclaimer in the 12171626Scognet * documentation and/or other materials provided with the distribution. 13171626Scognet * 14171626Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND 15171626Scognet * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16171626Scognet * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17171626Scognet * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 18171626Scognet * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19171626Scognet * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20171626Scognet * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21171626Scognet * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22171626Scognet * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23171626Scognet * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24171626Scognet * POSSIBILITY OF SUCH DAMAGE. 25171626Scognet */ 26171626Scognet 27171626Scognet/* $FreeBSD$ */ 28171626Scognet#ifndef I81342VAR_H_ 29171626Scognet#define I81342VAR_H_ 30171626Scognet 31171626Scognet#include <sys/rman.h> 32171626Scognet 33171626Scognetstruct i81342_softc { 34171626Scognet device_t dev; 35171626Scognet bus_space_tag_t sc_st; 36171626Scognet bus_space_handle_t sc_sh; 37171626Scognet bus_space_handle_t sc_atux_sh; 38171626Scognet bus_space_handle_t sc_atue_sh; 39171626Scognet bus_space_tag_t sc_pciio; 40171626Scognet bus_space_tag_t sc_pcimem; 41171626Scognet struct rman sc_irq_rman; 42171626Scognet}; 43171626Scognet 44171626Scognetstruct i81342_pci_map { 45171626Scognet vm_offset_t vaddr; 46171626Scognet vm_paddr_t paddr; 47171626Scognet vm_size_t size; 48171626Scognet struct i81342_pci_map *next; 49171626Scognet}; 50171626Scognet 51171626Scognetstruct i81342_pci_softc { 52171626Scognet device_t sc_dev; 53171626Scognet bus_space_tag_t sc_st; 54171626Scognet bus_space_handle_t sc_atu_sh; 55171626Scognet struct bus_space sc_pciio; 56171626Scognet struct bus_space sc_pcimem; 57171626Scognet struct rman sc_mem_rman; 58171626Scognet struct rman sc_io_rman; 59171626Scognet struct rman sc_irq_rman; 60171626Scognet char sc_is_atux; 61171626Scognet int sc_busno; 62171626Scognet struct i81342_pci_map *sc_pci_mappings; 63171626Scognet}; 64171626Scognet 65171626Scognetvoid i81342_bs_init(bus_space_tag_t, void *); 66171626Scognetvoid i81342_io_bs_init(bus_space_tag_t, void *); 67171626Scognetvoid i81342_mem_bs_init(bus_space_tag_t, void *); 68171626Scognetvoid i81342_sdram_bounds(bus_space_tag_t, bus_space_handle_t, vm_paddr_t *, 69171626Scognet vm_size_t *); 70171626Scognet#endif /*I81342VAR_H_ */ 71