diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1998-12-09 23:36:15 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1998-12-09 23:36:15 +0000 |
commit | ff213ddb78391d3b7987d882cee8311e71bfcee6 (patch) | |
tree | 250fd09c4c1fabc311884a9c64176e48dc077267 /sys/dev/usb/ohcivar.h | |
parent | 1e167561f8097938bd2ee681a27aa32b3b30ce93 (diff) | |
download | FreeBSD-src-ff213ddb78391d3b7987d882cee8311e71bfcee6.zip FreeBSD-src-ff213ddb78391d3b7987d882cee8311e71bfcee6.tar.gz |
Various bug fixes:
1) Removed 'emulation' of bitmaps in printfs, FreeBSD seems to have caught
up on that one
2) Fixed a few bugs in the timeout/timo timeout variables
3) First attempt at fixing a bug mentioned by Kazu: uhci_run is not able
start/stop his USB host on his motherboard.
Diffstat (limited to 'sys/dev/usb/ohcivar.h')
-rw-r--r-- | sys/dev/usb/ohcivar.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/dev/usb/ohcivar.h b/sys/dev/usb/ohcivar.h index dfafdb9..e314de2 100644 --- a/sys/dev/usb/ohcivar.h +++ b/sys/dev/usb/ohcivar.h @@ -1,11 +1,12 @@ -/* $NetBSD: ohcivar.h,v 1.2 1998/07/24 21:09:07 augustss Exp $ */ +/* $NetBSD: ohcivar.h,v 1.3 1998/11/25 22:32:04 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * - * Author: Lennart Augustsson <augustss@carlstedt.se> - * Carlstedt Research & Technology + * This code is derived from software contributed to The NetBSD Foundation + * by Lennart Augustsson (augustss@carlstedt.se) at + * Carlstedt Research & Technology. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -61,6 +62,7 @@ typedef struct ohci_soft_td { typedef struct ohci_softc { struct usbd_bus sc_bus; /* base device */ +#if defined(__NetBSD__) void *sc_ih; /* interrupt vectoring */ bus_space_tag_t iot; bus_space_handle_t ioh; @@ -68,7 +70,16 @@ typedef struct ohci_softc { bus_dma_tag_t sc_dmatag; /* DMA tag */ /* XXX should keep track of all DMA memory */ +#elif defined(__FreeBSD__) + int sc_iobase; + int unit; +#endif + +#if defined(__NetBSD__) usb_dma_t sc_hccadma; +#elif defined(__FreeBSD__) + void *sc_hccadma; +#endif struct ohci_hcca *sc_hcca; ohci_soft_ed_t *sc_eds[OHCI_NO_EDS]; u_int sc_bws[OHCI_NO_INTRS]; |