diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-15 01:00:16 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-15 01:00:16 +0000 |
commit | 3f8f1d45987c523777fb5dca594107abacbc4063 (patch) | |
tree | a2ce1ccb41dc81d8237117aabb3bf456ebaddc19 /sys/dev/ic/sli.c | |
parent | 72d92b7ca2034f10cc1cb9a24475aa76b1f1c586 (diff) |
start work on a driver for emulex fibre channel controllers.
it is split up into a bus independant chunk (dev/ic/sli*) and the attach
glue (dev/pci/sli_pci.c) cos there are sbus varaints of this chip which i
hope to get my hands on one day.
this does nothing except attach to the LP8000 controllers.
Diffstat (limited to 'sys/dev/ic/sli.c')
-rw-r--r-- | sys/dev/ic/sli.c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/dev/ic/sli.c b/sys/dev/ic/sli.c new file mode 100644 index 00000000000..8d621ae5a7a --- /dev/null +++ b/sys/dev/ic/sli.c @@ -0,0 +1,51 @@ +/* $OpenBSD: sli.c,v 1.1 2007/05/15 01:00:15 dlg Exp $ */ + +/* + * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include <sys/param.h> +#include <sys/systm.h> +#include <sys/buf.h> +#include <sys/device.h> +#include <sys/proc.h> +#include <sys/malloc.h> +#include <sys/kernel.h> + +#include <machine/bus.h> + +#include <scsi/scsi_all.h> +#include <scsi/scsiconf.h> + +#include <dev/ic/slireg.h> +#include <dev/ic/slivar.h> + +struct cfdriver sli_cd = { + NULL, "sli", DV_DULL +}; + +int +sli_attach(struct sli_softc *sc) +{ + printf("\n"); + + return (0); +} + +int +sli_detach(struct sli_softc *sc, int flags) +{ + return (0); +} |