| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pci_intr.9,v 1.21 2015/10/13 04:34:38 msaitoh Exp $ | | 1 | .\" $NetBSD: pci_intr.9,v 1.22 2015/10/13 08:44:54 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2000 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2000 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Bill Sommerfeld | | 7 | .\" by Bill Sommerfeld |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -26,42 +26,43 @@ | | | @@ -26,42 +26,43 @@ |
26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .Dd October 13, 2015 | | 30 | .Dd October 13, 2015 |
31 | .Dt PCI_INTR 9 | | 31 | .Dt PCI_INTR 9 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm pci_intr , | | 34 | .Nm pci_intr , |
35 | .Nm pci_intr_map , | | 35 | .Nm pci_intr_map , |
36 | .Nm pci_intr_string , | | 36 | .Nm pci_intr_string , |
37 | .Nm pci_intr_evcnt , | | 37 | .Nm pci_intr_evcnt , |
38 | .Nm pci_intr_establish , | | 38 | .Nm pci_intr_establish , |
39 | .Nm pci_intr_disestablish | | 39 | .Nm pci_intr_disestablish , |
40 | .Nm pci_intr_setattr | | 40 | .Nm pci_intr_setattr |
41 | .Nd PCI bus interrupt manipulation functions | | 41 | .Nd PCI bus interrupt manipulation functions |
42 | .Sh SYNOPSIS | | 42 | .Sh SYNOPSIS |
43 | .In dev/pci/pcivar.h | | 43 | .In dev/pci/pcivar.h |
44 | .Ft int | | 44 | .Ft int |
45 | .Fn pci_intr_map "const struct pci_attach_args *pa" "pci_intr_handle_t *ih" | | 45 | .Fn pci_intr_map "const struct pci_attach_args *pa" "pci_intr_handle_t *ih" |
46 | .Ft const char * | | 46 | .Ft const char * |
47 | .Fn pci_intr_string "pci_chipset_tag_t pc" "pci_intr_handle_t ih" "char *buf" "size_t len" | | 47 | .Fn pci_intr_string "pci_chipset_tag_t pc" "pci_intr_handle_t ih" "char *buf" "size_t len" |
48 | .Ft const struct evcnt * | | 48 | .Ft const struct evcnt * |
49 | .Fn pci_intr_evcnt "pci_chipset_tag_t pc" "pci_intr_handle_t ih" | | 49 | .Fn pci_intr_evcnt "pci_chipset_tag_t pc" "pci_intr_handle_t ih" |
50 | .Ft void * | | 50 | .Ft void * |
51 | .Fn pci_intr_establish "pci_chipset_tag_t pc" "pci_intr_handle_t ih" \ | | 51 | .Fn pci_intr_establish "pci_chipset_tag_t pc" "pci_intr_handle_t ih" \ |
52 | "int ipl" "int (*intrhand)(void *)" "void *intrarg" | | 52 | "int ipl" "int (*intrhand)(void *)" "void *intrarg" |
53 | .Ft void | | 53 | .Ft void |
54 | .Fn pci_intr_disestablish "pci_chipset_tag_t pc" "void *ih" | | 54 | .Fn pci_intr_disestablish "pci_chipset_tag_t pc" "void *ih" |
| | | 55 | .Ft int |
55 | .Fn pci_intr_setattr "pci_chipset_tag_t pc" "pci_intr_handle_t *ih" "int attr" "uint64_t data" | | 56 | .Fn pci_intr_setattr "pci_chipset_tag_t pc" "pci_intr_handle_t *ih" "int attr" "uint64_t data" |
56 | .Sh DESCRIPTION | | 57 | .Sh DESCRIPTION |
57 | The | | 58 | The |
58 | .Nm | | 59 | .Nm |
59 | functions exist to allow device drivers machine-independent access to | | 60 | functions exist to allow device drivers machine-independent access to |
60 | PCI bus interrupts. | | 61 | PCI bus interrupts. |
61 | The functions described in this page are typically declared in a port's | | 62 | The functions described in this page are typically declared in a port's |
62 | .In machine/pci_machdep.h | | 63 | .In machine/pci_machdep.h |
63 | header file; however, drivers should generally include | | 64 | header file; however, drivers should generally include |
64 | .In dev/pci/pcivar.h | | 65 | .In dev/pci/pcivar.h |
65 | to get other PCI-specific declarations as well. | | 66 | to get other PCI-specific declarations as well. |
66 | .Pp | | 67 | .Pp |
67 | Each driver has an | | 68 | Each driver has an |