usb_dynamic.h (193045) | usb_dynamic.h (194228) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_dynamic.h 193045 2009-05-29 18:46:57Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_dynamic.h 194228 2009-06-15 01:02:43Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 15 unchanged lines hidden (view full) --- 25 */ 26 27#ifndef _USB2_DYNAMIC_H_ 28#define _USB2_DYNAMIC_H_ 29 30/* prototypes */ 31 32struct usb_device; | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 15 unchanged lines hidden (view full) --- 25 */ 26 27#ifndef _USB2_DYNAMIC_H_ 28#define _USB2_DYNAMIC_H_ 29 30/* prototypes */ 31 32struct usb_device; |
33struct usb_lookup_info; | 33struct usbd_lookup_info; |
34struct usb_device_request; 35 36/* typedefs */ 37 | 34struct usb_device_request; 35 36/* typedefs */ 37 |
38typedef usb_error_t (usb2_temp_setup_by_index_t)(struct usb_device *udev, | 38typedef usb_error_t (usb_temp_setup_by_index_t)(struct usb_device *udev, |
39 uint16_t index); | 39 uint16_t index); |
40typedef usb_error_t (usb2_test_huawei_autoinst_t)(struct usb_device *udev, | 40typedef usb_error_t (usb_test_huawei_autoinst_t)(struct usb_device *udev, |
41 struct usb_attach_arg *uaa); | 41 struct usb_attach_arg *uaa); |
42typedef uint8_t (usb2_test_quirk_t)(const struct usb_lookup_info *info, | 42typedef uint8_t (usb_test_quirk_t)(const struct usbd_lookup_info *info, |
43 uint16_t quirk); | 43 uint16_t quirk); |
44typedef int (usb2_quirk_ioctl_t)(unsigned long cmd, caddr_t data, | 44typedef int (usb_quirk_ioctl_t)(unsigned long cmd, caddr_t data, |
45 int fflag, struct thread *td); | 45 int fflag, struct thread *td); |
46typedef void (usb2_temp_unsetup_t)(struct usb_device *udev); | 46typedef void (usb_temp_unsetup_t)(struct usb_device *udev); |
47 48/* global function pointers */ 49 | 47 48/* global function pointers */ 49 |
50extern usb_handle_req_t *usb2_temp_get_desc_p; 51extern usb2_temp_setup_by_index_t *usb2_temp_setup_by_index_p; 52extern usb2_temp_unsetup_t *usb2_temp_unsetup_p; 53extern usb2_test_quirk_t *usb2_test_quirk_p; 54extern usb2_test_huawei_autoinst_t *usb2_test_huawei_autoinst_p; 55extern usb2_quirk_ioctl_t *usb2_quirk_ioctl_p; 56extern devclass_t usb2_devclass_ptr; | 50extern usb_handle_req_t *usb_temp_get_desc_p; 51extern usb_temp_setup_by_index_t *usb_temp_setup_by_index_p; 52extern usb_temp_unsetup_t *usb_temp_unsetup_p; 53extern usb_test_quirk_t *usb_test_quirk_p; 54extern usb_test_huawei_autoinst_t *usb_test_huawei_autoinst_p; 55extern usb_quirk_ioctl_t *usb_quirk_ioctl_p; 56extern devclass_t usb_devclass_ptr; |
57 58/* function prototypes */ 59 | 57 58/* function prototypes */ 59 |
60void usb2_test_huawei_unload(void *); 61void usb2_temp_unload(void *); 62void usb2_quirk_unload(void *); 63void usb2_bus_unload(void *); | 60void usb_test_huawei_unload(void *); 61void usb_temp_unload(void *); 62void usb_quirk_unload(void *); 63void usb_bus_unload(void *); |
64 | 64 |
65uint8_t usb2_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk); | 65uint8_t usb_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk); |
66 67#endif /* _USB2_DYNAMIC_H_ */ | 66 67#endif /* _USB2_DYNAMIC_H_ */ |