summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ezload.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 15:20:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 15:20:14 +0000
commit5844a156c3a421f5f6299304aed52ebe119bf0a0 (patch)
tree2043e8c2a005918705ab7743e7d29204734cc176 /sys/dev/usb/ezload.h
parent161132942c7ffc3eaa5e23d828f5d9c0215fe9b8 (diff)
filesystem firmware loading for uyap(4). this should work, i wrote it very
carefully. unfortunately, we cannot find anyone who has one of these devices in our entire user community, thus far. commit it anyways. whoever finds one can contact me if there is a problem.
Diffstat (limited to 'sys/dev/usb/ezload.h')
-rw-r--r--sys/dev/usb/ezload.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/ezload.h b/sys/dev/usb/ezload.h
index e62e4cb6569..de2797181be 100644
--- a/sys/dev/usb/ezload.h
+++ b/sys/dev/usb/ezload.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ezload.h,v 1.2 2001/05/03 02:20:32 aaron Exp $ */
+/* $OpenBSD: ezload.h,v 1.3 2004/12/19 15:20:13 deraadt Exp $ */
/* $NetBSD: ezload.h,v 1.2 2001/01/18 20:28:23 jdolecek Exp $ */
/*
@@ -43,6 +43,9 @@ struct ezdata {
u_int8_t *data;
};
+#ifdef _KERNEL
usbd_status ezload_reset(usbd_device_handle, int);
-usbd_status ezload_download(usbd_device_handle, const struct ezdata *);
-usbd_status ezload_downloads_and_reset(usbd_device_handle, const struct ezdata **);
+usbd_status ezload_download(usbd_device_handle, const char *name,
+ const u_char *buf, size_t buflen);
+usbd_status ezload_downloads_and_reset(usbd_device_handle, char **);
+#endif