source: trunk/src/ifd/sys-osx.c @ 1137

Revision 1137, 2.0 KB checked in by alonbl, 3 years ago (diff)

Allow driver to specify events to poll

Line 
1/*
2 * Mac OS X specific implementation - TO BE DONE
3 *
4 * Copyright (C) 2003 Olaf Kirch <okir@suse.de>
5 *
6 */
7
8#include "internal.h"
9#if defined(__APPLE__)
10#include <sys/types.h>
11#include <stdio.h>
12#include <openct/driver.h>
13
14/*
15 * USB handling
16 */
17int ifd_sysdep_usb_poll_presence(ifd_device_t * dev, struct pollfd *pfd)
18{
19        return -1;
20}
21
22int ifd_sysdep_usb_get_eventfd(ifd_device_t * dev, short *events)
23{
24        return -1;
25}
26
27int ifd_sysdep_usb_control(ifd_device_t * dev, unsigned int requesttype,
28                           unsigned int request, unsigned int value,
29                           unsigned int index, void *data, size_t len,
30                           long timeout)
31{
32        return -1;
33}
34
35int ifd_sysdep_usb_set_configuration(ifd_device_t * dev, int config)
36{
37        return -1;
38}
39
40int ifd_sysdep_usb_set_interface(ifd_device_t * dev, int ifc, int alt)
41{
42        return -1;
43}
44
45int ifd_sysdep_usb_claim_interface(ifd_device_t * dev, int interface)
46{
47        return -1;
48}
49
50int ifd_sysdep_usb_release_interface(ifd_device_t * dev, int interface)
51{
52        return -1;
53}
54
55/*
56 * USB bulk transfer
57 */
58int ifd_sysdep_usb_bulk(ifd_device_t * dev, int ep, void *buffer, size_t len,
59                        long timeout)
60{
61        return -1;
62}
63
64/*
65 * USB URB capture
66 */
67struct ifd_usb_capture {
68        int type;
69        int endpoint;
70        size_t maxpacket;
71        unsigned int interface;
72};
73
74int ifd_sysdep_usb_begin_capture(ifd_device_t * dev, int type, int endpoint,
75                                 size_t maxpacket, ifd_usb_capture_t ** capret)
76{
77        return -1;
78}
79
80int ifd_sysdep_usb_capture_event(ifd_device_t * dev, ifd_usb_capture_t * cap,
81                           void *buffer, size_t len)
82{
83        return IFD_ERROR_NOT_SUPPORTED;
84}
85
86int ifd_sysdep_usb_capture(ifd_device_t * dev, ifd_usb_capture_t * cap,
87                           void *buffer, size_t len, long timeout)
88{
89        return -1;
90}
91
92int ifd_sysdep_usb_end_capture(ifd_device_t * dev, ifd_usb_capture_t * cap)
93{
94        return -1;
95}
96
97int ifd_sysdep_usb_open(const char *device)
98{
99        return -1;
100}
101
102int ifd_sysdep_usb_reset(ifd_device_t * dev)
103{
104        return -1;
105}
106
107/*
108 * Scan all usb devices to see if there is one we support
109 */
110int ifd_scan_usb(void)
111{
112        return 0;
113}
114
115#endif
Note: See TracBrowser for help on using the repository browser.