| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: usbdi.9,v 1.25 2013/01/22 15:35:08 jmcneill Exp $ | | 1 | .\" $NetBSD: usbdi.9,v 1.26 2013/01/22 15:52:17 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2012 Matthew R. Green | | 3 | .\" Copyright (c) 2012 Matthew R. Green |
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 | .\" 3. The name of the author may not be used to endorse or promote products | | 14 | .\" 3. The name of the author may not be used to endorse or promote products |
| @@ -924,31 +924,31 @@ The | | | @@ -924,31 +924,31 @@ The |
924 | .Fn usb_init_task | | 924 | .Fn usb_init_task |
925 | function takes a pointer to a | | 925 | function takes a pointer to a |
926 | .Ft struct usb_task | | 926 | .Ft struct usb_task |
927 | that will be initalised, a function to call for this task | | 927 | that will be initalised, a function to call for this task |
928 | .Fa func , | | 928 | .Fa func , |
929 | the argument to pass to | | 929 | the argument to pass to |
930 | .Fa func , | | 930 | .Fa func , |
931 | .Fa arg , | | 931 | .Fa arg , |
932 | and the task flags | | 932 | and the task flags |
933 | .Fa flags . | | 933 | .Fa flags . |
934 | If the | | 934 | If the |
935 | .Fa flags | | 935 | .Fa flags |
936 | argument is | | 936 | argument is |
937 | .Dt USB_TASKQ_MPSAFE , | | 937 | .Dv USB_TASKQ_MPSAFE , |
938 | the | | 938 | the |
939 | .Fa func | | 939 | .Fa func |
940 | function will be called without first acquiring | | 940 | function will be called without first acquiring |
941 | .Dt kernel_lock . | | 941 | .Dv kernel_lock . |
942 | .Pp | | 942 | .Pp |
943 | To invoke the task callback the | | 943 | To invoke the task callback the |
944 | .Fn usb_add_task | | 944 | .Fn usb_add_task |
945 | function should be called with the | | 945 | function should be called with the |
946 | .Fa iface | | 946 | .Fa iface |
947 | associated with this device, the task structure | | 947 | associated with this device, the task structure |
948 | .Fa task , | | 948 | .Fa task , |
949 | and the | | 949 | and the |
950 | .Fa queue | | 950 | .Fa queue |
951 | to run against, either | | 951 | to run against, either |
952 | .Dv USB_TASKQ_HC | | 952 | .Dv USB_TASKQ_HC |
953 | for operations initiated by host controllers or | | 953 | for operations initiated by host controllers or |
954 | .Dv USB_TASKQ_DRIVER | | 954 | .Dv USB_TASKQ_DRIVER |