aboutsummaryrefslogtreecommitdiff
path: root/src/usb-uhci.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-02-17 23:24:42 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-02-17 23:24:42 -0500
commit7149fc813139cf564a4456815461c18a8b208e89 (patch)
treeb0866113b1380d34b1d9e1d4a1ffd8fc375f289f /src/usb-uhci.h
parent3c160dde75b9920f048d4276026d680d0f582dc9 (diff)
downloadseabios-hppa-7149fc813139cf564a4456815461c18a8b208e89.zip
seabios-hppa-7149fc813139cf564a4456815461c18a8b208e89.tar.gz
seabios-hppa-7149fc813139cf564a4456815461c18a8b208e89.tar.bz2
Initial support for booting from USB drives.
This patch adds initial support for USB Mass Storage Controllers. This includes support for bulk transfers on UHCI controllers. Code to detect a USB MSC device is added, and wrappers for sending "cdb" block commands over USB are added. The scsi "inquiry" command is also added.
Diffstat (limited to 'src/usb-uhci.h')
-rw-r--r--src/usb-uhci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usb-uhci.h b/src/usb-uhci.h
index d9c10ae..d7ebb4e 100644
--- a/src/usb-uhci.h
+++ b/src/usb-uhci.h
@@ -8,6 +8,8 @@ struct usb_s;
void uhci_init(void *data);
int uhci_control(u32 endp, int dir, const void *cmd, int cmdsize
, void *data, int datasize);
+struct usb_pipe *uhci_alloc_bulk_pipe(u32 endp);
+int uhci_send_bulk(struct usb_pipe *pipe, int dir, void *data, int datasize);
struct usb_pipe *uhci_alloc_intr_pipe(u32 endp, int frameexp);
int uhci_poll_intr(struct usb_pipe *pipe, void *data);