Home | History | Annotate | Line # | Download | only in dev
elroyvar.h revision 1.2.4.2
      1  1.2.4.2  rmind /*	$NetBSD: elroyvar.h,v 1.2.4.2 2014/05/18 17:45:10 rmind Exp $	*/
      2  1.2.4.2  rmind 
      3  1.2.4.2  rmind /*	$OpenBSD: elroyvar.h,v 1.3 2007/06/17 14:51:21 kettenis Exp $	*/
      4  1.2.4.2  rmind 
      5  1.2.4.2  rmind /*
      6  1.2.4.2  rmind  * Copyright (c) 2005 Michael Shalayeff
      7  1.2.4.2  rmind  * All rights reserved.
      8  1.2.4.2  rmind  *
      9  1.2.4.2  rmind  * Permission to use, copy, modify, and distribute this software for any
     10  1.2.4.2  rmind  * purpose with or without fee is hereby granted, provided that the above
     11  1.2.4.2  rmind  * copyright notice and this permission notice appear in all copies.
     12  1.2.4.2  rmind  *
     13  1.2.4.2  rmind  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     14  1.2.4.2  rmind  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     15  1.2.4.2  rmind  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     16  1.2.4.2  rmind  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     17  1.2.4.2  rmind  * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
     18  1.2.4.2  rmind  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
     19  1.2.4.2  rmind  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20  1.2.4.2  rmind  */
     21  1.2.4.2  rmind 
     22  1.2.4.2  rmind #include <machine/pdc.h>
     23  1.2.4.2  rmind 
     24  1.2.4.2  rmind struct elroy_softc {
     25  1.2.4.2  rmind 	device_t sc_dv;
     26  1.2.4.2  rmind 
     27  1.2.4.2  rmind 	int sc_ver;
     28  1.2.4.2  rmind 	hppa_hpa_t sc_hpa;
     29  1.2.4.2  rmind 	bus_space_tag_t sc_bt;
     30  1.2.4.2  rmind 	bus_space_handle_t sc_bh;
     31  1.2.4.2  rmind 	bus_dma_tag_t sc_dmat;
     32  1.2.4.2  rmind 	volatile struct elroy_regs *sc_regs;
     33  1.2.4.2  rmind 	bus_addr_t sc_iobase;
     34  1.2.4.2  rmind 
     35  1.2.4.2  rmind 	uint32_t sc_imr;
     36  1.2.4.2  rmind 	int sc_nints;
     37  1.2.4.2  rmind 	int *sc_irq;
     38  1.2.4.2  rmind 
     39  1.2.4.2  rmind 	struct pdc_pat_pci_rt *sc_int_tbl;
     40  1.2.4.2  rmind 	int sc_int_tbl_sz;
     41  1.2.4.2  rmind 
     42  1.2.4.2  rmind 	struct hppa_pci_chipset_tag sc_pc;
     43  1.2.4.2  rmind 	struct hppa_bus_space_tag sc_iot;
     44  1.2.4.2  rmind 	struct hppa_bus_space_tag sc_memt;
     45  1.2.4.2  rmind 	char sc_memexname[20];
     46  1.2.4.2  rmind 	struct extent *sc_memex;
     47  1.2.4.2  rmind 	struct hppa_bus_dma_tag sc_dmatag;
     48  1.2.4.2  rmind };
     49  1.2.4.2  rmind 
     50  1.2.4.2  rmind void apic_attach(struct elroy_softc *);
     51  1.2.4.2  rmind int apic_intr(void *);
     52  1.2.4.2  rmind int apic_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
     53  1.2.4.2  rmind const char *apic_intr_string(void *, pci_intr_handle_t, char *, size_t);
     54  1.2.4.2  rmind void *apic_intr_establish(void *, pci_intr_handle_t, int,
     55  1.2.4.2  rmind     int (*)(void *), void *);
     56  1.2.4.2  rmind void apic_intr_disestablish(void *, void *);
     57  1.2.4.2  rmind 
     58  1.2.4.2  rmind void elroy_write32(volatile uint32_t *, uint32_t);
     59  1.2.4.2  rmind uint32_t elroy_read32(volatile uint32_t *);
     60