1 1.14 thorpej /* $NetBSD: siovar.h,v 1.14 2021/06/25 13:41:33 thorpej Exp $ */ 2 1.1 cgd 3 1.1 cgd /* 4 1.3 cgd * Copyright (c) 1995, 1996 Carnegie-Mellon University. 5 1.1 cgd * All rights reserved. 6 1.1 cgd * 7 1.1 cgd * Author: Chris G. Demetriou 8 1.1 cgd * 9 1.1 cgd * Permission to use, copy, modify and distribute this software and 10 1.1 cgd * its documentation is hereby granted, provided that both the copyright 11 1.1 cgd * notice and this permission notice appear in all copies of the 12 1.1 cgd * software, derivative works or modified versions, and any portions 13 1.1 cgd * thereof, and that both notices appear in supporting documentation. 14 1.1 cgd * 15 1.1 cgd * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16 1.1 cgd * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17 1.1 cgd * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18 1.1 cgd * 19 1.1 cgd * Carnegie Mellon requests users of this software to return to 20 1.1 cgd * 21 1.1 cgd * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU 22 1.1 cgd * School of Computer Science 23 1.1 cgd * Carnegie Mellon University 24 1.1 cgd * Pittsburgh PA 15213-3890 25 1.1 cgd * 26 1.1 cgd * any improvements or extensions that they make and grant Carnegie the 27 1.1 cgd * rights to redistribute these changes. 28 1.1 cgd */ 29 1.1 cgd 30 1.11 dsl void sio_intr_setup(pci_chipset_tag_t, bus_space_tag_t); 31 1.11 dsl void sio_iointr(void *framep, unsigned long vec); 32 1.1 cgd 33 1.12 christos const char *sio_intr_string(void *, int, char *, size_t); 34 1.11 dsl const struct evcnt *sio_intr_evcnt(void *, int); 35 1.13 thorpej void *sio_intr_establish(void *, int, int, int, int, int (*)(void *), 36 1.11 dsl void *); 37 1.11 dsl void sio_intr_disestablish(void *, void *); 38 1.11 dsl int sio_intr_alloc(void *, int, int, int *); 39 1.13 thorpej 40 1.14 thorpej int sio_pirq_intr_map(pci_chipset_tag_t, int, pci_intr_handle_t *); 41 1.13 thorpej const char *sio_pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t, 42 1.13 thorpej char *, size_t); 43 1.13 thorpej const struct evcnt *sio_pci_intr_evcnt(pci_chipset_tag_t, pci_intr_handle_t); 44 1.13 thorpej void *sio_pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t, 45 1.13 thorpej int, int (*)(void *), void *); 46 1.13 thorpej void sio_pci_intr_disestablish(pci_chipset_tag_t, void *); 47 1.13 thorpej 48 1.13 thorpej void *sio_pciide_compat_intr_establish(device_t, 49 1.13 thorpej const struct pci_attach_args *, int, int (*)(void *), void *); 50 1.13 thorpej 51 1.13 thorpej void *sio_isa_intr_establish(void *, int, int, int, int (*)(void *), void *); 52