Deleted Added
full compact
usb_dynamic.h (184610) usb_dynamic.h (185948)
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_dynamic.h 184610 2008-11-04 02:31:03Z alfred $ */
1/* $FreeBSD: head/sys/dev/usb2/core/usb2_dynamic.h 185948 2008-12-11 23:13:02Z 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.

--- 20 unchanged lines hidden (view full) ---

30/* prototypes */
31
32struct usb2_device;
33struct usb2_lookup_info;
34struct usb2_device_request;
35
36/* typedefs */
37
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.

--- 20 unchanged lines hidden (view full) ---

30/* prototypes */
31
32struct usb2_device;
33struct usb2_lookup_info;
34struct usb2_device_request;
35
36/* typedefs */
37
38typedef usb2_error_t (usb2_temp_setup_by_index_t)(struct usb2_device *udev, uint16_t index);
39typedef uint8_t (usb2_test_quirk_t)(const struct usb2_lookup_info *info, uint16_t quirk);
40typedef int (usb2_quirk_ioctl_t)(unsigned long cmd, caddr_t data, int fflag, struct thread *td);
41typedef void (usb2_temp_get_desc_t)(struct usb2_device *udev, struct usb2_device_request *req, const void **pPtr, uint16_t *pLength);
42typedef void (usb2_temp_unsetup_t)(struct usb2_device *udev);
38typedef usb2_error_t (usb2_temp_setup_by_index_t)(struct usb2_device *udev,
39 uint16_t index);
40typedef uint8_t (usb2_test_quirk_t)(const struct usb2_lookup_info *info,
41 uint16_t quirk);
42typedef int (usb2_quirk_ioctl_t)(unsigned long cmd, caddr_t data,
43 int fflag, struct thread *td);
44typedef void (usb2_temp_get_desc_t)(struct usb2_device *udev,
45 struct usb2_device_request *req, const void **pPtr,
46 uint16_t *pLength);
47typedef void (usb2_temp_unsetup_t)(struct usb2_device *udev);
43
44/* global function pointers */
45
46extern usb2_temp_get_desc_t *usb2_temp_get_desc_p;
47extern usb2_temp_setup_by_index_t *usb2_temp_setup_by_index_p;
48extern usb2_temp_unsetup_t *usb2_temp_unsetup_p;
49extern usb2_test_quirk_t *usb2_test_quirk_p;
50extern usb2_quirk_ioctl_t *usb2_quirk_ioctl_p;
51extern devclass_t usb2_devclass_ptr;
52
53/* function prototypes */
54
55void usb2_temp_unload(void *);
56void usb2_quirk_unload(void *);
57void usb2_bus_unload(void *);
58
59uint8_t usb2_test_quirk(const struct usb2_attach_arg *uaa, uint16_t quirk);
60
61#endif /* _USB2_DYNAMIC_H_ */
48
49/* global function pointers */
50
51extern usb2_temp_get_desc_t *usb2_temp_get_desc_p;
52extern usb2_temp_setup_by_index_t *usb2_temp_setup_by_index_p;
53extern usb2_temp_unsetup_t *usb2_temp_unsetup_p;
54extern usb2_test_quirk_t *usb2_test_quirk_p;
55extern usb2_quirk_ioctl_t *usb2_quirk_ioctl_p;
56extern devclass_t usb2_devclass_ptr;
57
58/* function prototypes */
59
60void usb2_temp_unload(void *);
61void usb2_quirk_unload(void *);
62void usb2_bus_unload(void *);
63
64uint8_t usb2_test_quirk(const struct usb2_attach_arg *uaa, uint16_t quirk);
65
66#endif /* _USB2_DYNAMIC_H_ */