diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-12 10:09:15 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-12 10:09:15 -0400 |
commit | 59f02834f38c63be537f63a702c69b68af913bfa (patch) | |
tree | 86b5c59b50021ae851a8dffb60d3118d76269b94 /src/usb-uhci.h | |
parent | 91031edcb2a6adf2510478bc81a4df68c5e3daf2 (diff) | |
download | seabios-hppa-59f02834f38c63be537f63a702c69b68af913bfa.zip seabios-hppa-59f02834f38c63be537f63a702c69b68af913bfa.tar.gz seabios-hppa-59f02834f38c63be537f63a702c69b68af913bfa.tar.bz2 |
Add stubs for USB OHCI support.
Enable USB wrapper functions to call either ohci or ehci helpers.
Implement pci_config_maskw in place of pci_set_bus_master.
Introduce 'struct usb_pipe' in place of 'void *' for pipes.
Diffstat (limited to 'src/usb-uhci.h')
-rw-r--r-- | src/usb-uhci.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usb-uhci.h b/src/usb-uhci.h index 6ad7e15..b284fcc 100644 --- a/src/usb-uhci.h +++ b/src/usb-uhci.h @@ -1,13 +1,15 @@ #ifndef __USB_UHCI_H #define __USB_UHCI_H +#include "usb.h" // struct usb_pipe + // usb-uhci.c struct usb_s; int uhci_init(struct usb_s *cntl); int uhci_control(u32 endp, int dir, const void *cmd, int cmdsize , void *data, int datasize); -void *uhci_alloc_intr_pipe(u32 endp, int period); -int uhci_poll_intr(void *pipe, void *data); +struct usb_pipe *uhci_alloc_intr_pipe(u32 endp, int period); +int uhci_poll_intr(struct usb_pipe *pipe, void *data); /**************************************************************** @@ -119,7 +121,7 @@ struct uhci_qh { // Software fields struct uhci_td *next_td; - u32 reserved; + struct usb_pipe pipe; } PACKED; #define UHCI_PTR_BITS 0x000F |