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/slivar.h | |
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/slivar.h')
-rw-r--r-- | sys/dev/ic/slivar.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/dev/ic/slivar.h b/sys/dev/ic/slivar.h new file mode 100644 index 00000000000..fd06163e627 --- /dev/null +++ b/sys/dev/ic/slivar.h @@ -0,0 +1,26 @@ +/* $OpenBSD: slivar.h,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. + */ + +struct sli_softc { + struct device sc_dev; + struct scsi_link sc_link; +}; +#define DEVNAME(_s) ((_s)->sc_dev.dv_xname) + +int sli_attach(struct sli_softc *); +int sli_detach(struct sli_softc *, int); |