summaryrefslogtreecommitdiff
path: root/src/os/sunos_usb.h
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2022-02-19 21:43:52 +0000
committerZoRo <dos21h@gmail.com>2022-02-19 21:43:52 +0000
commitc6d603981adec7c0099fb48fc3369517b458ee85 (patch)
tree5096f42f05d884ded2336b11f806f49e49eb3732 /src/os/sunos_usb.h
parent3d7c48a6e5c5c532cdd66b3ba5a8c5911bcf2383 (diff)
downloadlibrusb-c6d603981adec7c0099fb48fc3369517b458ee85.tar.gz
librusb-c6d603981adec7c0099fb48fc3369517b458ee85.zip
Compilable rusb for linux
Diffstat (limited to 'src/os/sunos_usb.h')
-rw-r--r--src/os/sunos_usb.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/os/sunos_usb.h b/src/os/sunos_usb.h
deleted file mode 100644
index 2988398..0000000
--- a/src/os/sunos_usb.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- *
- * Copyright (c) 2016, Oracle and/or its affiliates.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef LIBUSB_SUNOS_H
-#define LIBUSB_SUNOS_H
-
-#include <libdevinfo.h>
-#include <pthread.h>
-#include "libusbi.h"
-
-#define READ 0
-#define WRITE 1
-
-typedef struct sunos_device_priv {
- uint8_t cfgvalue; /* active config value */
- uint8_t *raw_cfgdescr; /* active config descriptor */
- char *ugenpath; /* name of the ugen(4) node */
- char *phypath; /* physical path */
-} sunos_dev_priv_t;
-
-typedef struct endpoint {
- int datafd; /* data file */
- int statfd; /* state file */
-} sunos_ep_priv_t;
-
-typedef struct sunos_device_handle_priv {
- uint8_t altsetting[USB_MAXINTERFACES]; /* a interface's alt */
- uint8_t config_index;
- sunos_ep_priv_t eps[USB_MAXENDPOINTS];
- sunos_dev_priv_t *dpriv; /* device private */
-} sunos_dev_handle_priv_t;
-
-typedef struct sunos_transfer_priv {
- struct aiocb aiocb;
- struct libusb_transfer *transfer;
-} sunos_xfer_priv_t;
-
-struct node_args {
- struct libusb_context *ctx;
- struct discovered_devs **discdevs;
- const char *last_ugenpath;
- di_devlink_handle_t dlink_hdl;
-};
-
-struct devlink_cbarg {
- struct node_args *nargs; /* di node walk arguments */
- di_node_t myself; /* the di node */
- di_minor_t minor;
-};
-
-typedef struct walk_link {
- char *path;
- int len;
- char **linkpp;
-} walk_link_t;
-
-/* AIO callback args */
-struct aio_callback_args{
- struct libusb_transfer *transfer;
- struct aiocb aiocb;
-};
-
-#endif /* LIBUSB_SUNOS_H */