Annotation of sys/arch/hppa64/dev/elroyvar.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: elroyvar.h,v 1.1 2005/04/01 10:40:47 mickey Exp $ */
2:
3: /*
4: * Copyright (c) 2005 Michael Shalayeff
5: * All rights reserved.
6: *
7: * Permission to use, copy, modify, and distribute this software for any
8: * purpose with or without fee is hereby granted, provided that the above
9: * copyright notice and this permission notice appear in all copies.
10: *
11: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15: * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
16: * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17: * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18: */
19:
20: struct elroy_softc {
21: struct device sc_dv;
22:
23: int sc_ver;
24: bus_space_tag_t sc_bt;
25: bus_space_handle_t sc_bh;
26: bus_dma_tag_t sc_dmat;
27: volatile struct elroy_regs *sc_regs;
28: bus_addr_t sc_iobase;
29:
30: u_int32_t sc_imr;
31: int sc_nints;
32:
33: struct hppa64_pci_chipset_tag sc_pc;
34: struct hppa64_bus_space_tag sc_iot;
35: struct hppa64_bus_space_tag sc_memt;
36: char sc_memexname[20];
37: struct extent *sc_memex;
38: struct hppa64_bus_dma_tag sc_dmatag;
39: };
40:
41: void apic_attach(struct elroy_softc *sc);
42: int apic_intr(void *v);
43: int apic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp);
44: const char *apic_intr_string(void *v, pci_intr_handle_t ih);
45: void *apic_intr_establish(void *v, pci_intr_handle_t ih, int pri,
46: int (*handler)(void *), void *arg, char *name);
47: void apic_intr_disestablish(void *v, void *cookie);
48:
49: void elroy_write32(volatile u_int32_t *p, u_int32_t v);
50: u_int32_t elroy_read32(volatile u_int32_t *p);
CVSweb