| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pci_msi.9,v 1.5 2015/07/21 12:05:02 wiz Exp $ | | 1 | .\" $NetBSD: pci_msi.9,v 1.6 2015/07/24 07:40:58 knakahara Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2015 Internet Initiative Japan Inc. | | 3 | .\" Copyright (c) 2015 Internet Initiative Japan Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
| @@ -284,25 +284,25 @@ all allocation function failures. | | | @@ -284,25 +284,25 @@ all allocation function failures. |
284 | On success, | | 284 | On success, |
285 | .Fa counts | | 285 | .Fa counts |
286 | is overwritten by a really allocated count. | | 286 | is overwritten by a really allocated count. |
287 | I.e., if 5 MSI-X is allocated, | | 287 | I.e., if 5 MSI-X is allocated, |
288 | .Fa counts | | 288 | .Fa counts |
289 | is | | 289 | is |
290 | .Bd -literal | | 290 | .Bd -literal |
291 | counts[PCI_INTR_TYPE_MSIX] == 5 | | 291 | counts[PCI_INTR_TYPE_MSIX] == 5 |
292 | counts[PCI_INTR_TYPE_MSI] == 0 | | 292 | counts[PCI_INTR_TYPE_MSI] == 0 |
293 | counts[PCI_INTR_TYPE_INTX] == 0 | | 293 | counts[PCI_INTR_TYPE_INTX] == 0 |
294 | .Ed | | 294 | .Ed |
295 | on return. | | 295 | on return. |
296 | .Pp | | 296 | .Pp |
297 | .Ft pci_intr_type_t | | 297 | .Fn pci_intr_type |
298 | returns the interrupt type of | | 298 | returns the interrupt type of |
299 | .Fa ih . | | 299 | .Fa ih . |
300 | The return value is | | 300 | The return value is |
301 | .Dv PCI_INTR_TYPE_MSIX | | 301 | .Dv PCI_INTR_TYPE_MSIX |
302 | for MSI-X, | | 302 | for MSI-X, |
303 | .Dv PCI_INTR_TYPE_MSI | | 303 | .Dv PCI_INTR_TYPE_MSI |
304 | for MSI, and | | 304 | for MSI, and |
305 | .Dv PCI_INTR_TYPE_INTX | | 305 | .Dv PCI_INTR_TYPE_INTX |
306 | for others. | | 306 | for others. |
307 | .Sh SEE ALSO | | 307 | .Sh SEE ALSO |
308 | .Xr pci_intr 9 | | 308 | .Xr pci_intr 9 |