diff options
author | 2011-03-14 14:20:58 +0000 | |
---|---|---|
committer | 2011-03-14 14:20:58 +0000 | |
commit | 1a472878058c273c3bb34da6df8ef0f7516f3b45 (patch) | |
tree | 5aeed9d8385a303a86b9a8479ff097e3108a32a5 | |
parent | Return proper codes so that we don't rc_start if rc_pre failed and we (diff) | |
download | wireguard-openbsd-1a472878058c273c3bb34da6df8ef0f7516f3b45.tar.xz wireguard-openbsd-1a472878058c273c3bb34da6df8ef0f7516f3b45.zip |
- replace a magic number with an address define, as checked against
the omap3530 and dm3730 datasheets.
ok drahn@
-rw-r--r-- | sys/arch/beagle/dev/omehci.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/beagle/dev/omehci.c b/sys/arch/beagle/dev/omehci.c index 98f81147f76..37396d367f2 100644 --- a/sys/arch/beagle/dev/omehci.c +++ b/sys/arch/beagle/dev/omehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omehci.c,v 1.4 2010/09/07 16:21:37 deraadt Exp $ */ +/* $OpenBSD: omehci.c,v 1.5 2011/03/14 14:20:58 jasper Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -37,6 +37,8 @@ #include <dev/usb/ehcireg.h> #include <dev/usb/ehcivar.h> +#define EHCI_HCPCAPBASE 0x48064800 + int omehci_match(struct device *, void *, void *); void omehci_attach(struct device *, struct device *, void *); int omehci_detach(struct device *, int); @@ -58,10 +60,9 @@ struct cfattach omehci_ca = { int omehci_match(struct device *parent, void *match, void *aux) { - struct ahb_attach_args *aa = aux; + struct ahb_attach_args *aa = aux; - /* XXX - 3[45]30 */ - if (aa->aa_addr != 0x48064800) + if (aa->aa_addr != EHCI_HCPCAPBASE) return 0; return (1); |