aboutsummaryrefslogtreecommitdiff
path: root/src/usb-hub.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-03-28 15:11:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-03-28 15:11:19 -0400
commitd28b0fe8db0b5af2f4ddeeb48c01fa0c1ed7a920 (patch)
treec411258ae1a7f995d1a854e3b942aedc38962b44 /src/usb-hub.h
parentba285410780c79f39c81dd6f81c521045ba1afa4 (diff)
downloadseabios-hppa-d28b0fe8db0b5af2f4ddeeb48c01fa0c1ed7a920.zip
seabios-hppa-d28b0fe8db0b5af2f4ddeeb48c01fa0c1ed7a920.tar.gz
seabios-hppa-d28b0fe8db0b5af2f4ddeeb48c01fa0c1ed7a920.tar.bz2
Refactor USB hub code.
All four implementations of hubs (and root hubs) were very similar. Replace them with a single implementation that uses callbacks for the three custom parts (detect, reset, disconnect) of each type of hub.
Diffstat (limited to 'src/usb-hub.h')
-rw-r--r--src/usb-hub.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/usb-hub.h b/src/usb-hub.h
index 0994320..7672028 100644
--- a/src/usb-hub.h
+++ b/src/usb-hub.h
@@ -1,16 +1,6 @@
#ifndef __USB_HUB_H
#define __USB_HUB_H
-struct usbhub_s {
- struct usb_pipe *pipe;
- struct usb_s *cntl;
- struct mutex_s lock;
- u32 powerwait;
- u32 port;
- u32 threads;
- u32 devcount;
-};
-
// usb-hub.c
struct usb_pipe;
int usb_hub_init(struct usb_pipe *pipe);