summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-12 23:27:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-12 23:27:44 +0000
commitbbdb9613f309b9e7f04cf39b96cb8f28abb437a6 (patch)
tree53132a8dc2426a6ba0f7cd49a4cfa764f1c2f4ed /sys
parent39ba5aaf8b5185dba439b447169202b06adab619 (diff)
resurrect this treasure (still needed to build microcode)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ezload.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/dev/usb/ezload.h b/sys/dev/usb/ezload.h
new file mode 100644
index 00000000000..4ad9b4ed743
--- /dev/null
+++ b/sys/dev/usb/ezload.h
@@ -0,0 +1,44 @@
+/* $OpenBSD: ezload.h,v 1.7 2014/07/12 23:27:43 deraadt Exp $ */
+/* $NetBSD: ezload.h,v 1.2 2001/01/18 20:28:23 jdolecek Exp $ */
+
+/*
+ * Copyright (c) 2000 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Lennart Augustsson <lennart@augustsson.net>.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+struct ezdata {
+ u_int8_t length;
+ u_int16_t address;
+ u_int8_t *data;
+};
+
+#ifdef _KERNEL
+usbd_status ezload_reset(struct usbd_device *, int);
+usbd_status ezload_download(struct usbd_device *, const char *name,
+ const u_char *buf, size_t buflen);
+usbd_status ezload_downloads_and_reset(struct usbd_device *, char **);
+#endif