summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/usb_if.h
blob: 6f4a15a3d89fb1918c89d4bd0af83b6b3546a252 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from source file
 *   dev/usb/usb_if.m
 * with
 *   makeobjops.awk
 *
 * See the source file for legal information
 */


#ifndef _usb_if_h_
#define _usb_if_h_

/** @brief Unique descriptor for the USB_HANDLE_REQUEST() method */
extern struct kobjop_desc usb_handle_request_desc;
/** @brief A function implementing the USB_HANDLE_REQUEST() method */
typedef int usb_handle_request_t(device_t dev, const void *req,
                                 /* pointer to the device request */ void **pptr, /* data pointer */ uint16_t *plen, /* maximum transfer length */ uint16_t offset, /* data offset */ uint8_t *pstate);

static __inline int USB_HANDLE_REQUEST(device_t dev, const void *req,
                                       /* pointer to the device request */ void **pptr, /* data pointer */ uint16_t *plen, /* maximum transfer length */ uint16_t offset, /* data offset */ uint8_t *pstate)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,usb_handle_request);
	return ((usb_handle_request_t *) _m)(dev, req, pptr, plen, offset, pstate);
}

#endif /* _usb_if_h_ */