diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-14 14:20:59 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-14 14:20:59 +0000 |
commit | dc30ba65c77d9d871eb5656f48199f4e4c71d8fa (patch) | |
tree | 9499332900dab79fe5cbc1073fc861457923b2ff /sys/arch | |
parent | 1a0e157059573980ca06707d562d4998a720023c (diff) |
- replace a magic number with an address define, as checked against
the omap3530 and dm3730 datasheets.
ok drahn@
Diffstat (limited to 'sys/arch')
-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); |