diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2014-04-07 05:33:30 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2014-04-07 05:33:30 +0000 |
commit | 9d3cc729fb71b93ec90c22e5ce7593494e7c6365 (patch) | |
tree | abe25e93671b2801c03029dbc034866b85093ebc /sys/arm/cavium/cns11xx/cfi_bus_econa.c | |
parent | 3329109cb9dccb76775378dee4f8e1ab07cd1808 (diff) | |
download | src-9d3cc729fb71b93ec90c22e5ce7593494e7c6365.tar.gz src-9d3cc729fb71b93ec90c22e5ce7593494e7c6365.zip |
Move sys/arm/econa to sys/arm/cavium/cns11xx.
Notes
Notes:
svn path=/head/; revision=264219
Diffstat (limited to 'sys/arm/cavium/cns11xx/cfi_bus_econa.c')
-rw-r--r-- | sys/arm/cavium/cns11xx/cfi_bus_econa.c | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sys/arm/cavium/cns11xx/cfi_bus_econa.c b/sys/arm/cavium/cns11xx/cfi_bus_econa.c new file mode 100644 index 000000000000..d93010f2cd7e --- /dev/null +++ b/sys/arm/cavium/cns11xx/cfi_bus_econa.c @@ -0,0 +1,67 @@ +/*- + * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + +#include <sys/param.h> +#include <sys/systm.h> +#include <sys/bus.h> +#include <sys/conf.h> +#include <sys/kernel.h> +#include <sys/malloc.h> +#include <sys/module.h> +#include <sys/rman.h> +#include <sys/sysctl.h> + +#include <machine/bus.h> + +#include <dev/cfi/cfi_var.h> + +#include <arm/cavium/cns11xx/econa_reg.h> +#include <arm/cavium/cns11xx/econa_var.h> + +static int +cfi_econa_probe(device_t dev) +{ + + return cfi_probe(dev); +} + +static device_method_t cfi_econa_methods[] = { + /* device interface */ + DEVMETHOD(device_probe, cfi_econa_probe), + DEVMETHOD(device_attach, cfi_attach), + DEVMETHOD(device_detach, cfi_detach), + + {0, 0} +}; + +static driver_t cfi_econa_driver = { + cfi_driver_name, + cfi_econa_methods, + sizeof(struct cfi_softc), +}; +DRIVER_MODULE(cfi, econaarm, cfi_econa_driver, cfi_devclass, 0, 0); |