root/dev/ic/slivar.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


    1 /*      $OpenBSD: slivar.h,v 1.4 2007/05/19 04:10:20 dlg Exp $ */
    2 
    3 /*
    4  * Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
    5  *
    6  * Permission to use, copy, modify, and distribute this software for any
    7  * purpose with or without fee is hereby granted, provided that the above
    8  * copyright notice and this permission notice appear in all copies.
    9  *
   10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
   13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   17  */
   18 
   19 struct sli_softc {
   20         struct device           sc_dev;
   21         struct scsi_link        sc_link;
   22 
   23         bus_dma_tag_t           sc_dmat;
   24 
   25         bus_space_tag_t         sc_iot_slim;
   26         bus_space_handle_t      sc_ioh_slim;
   27         bus_size_t              sc_ios_slim;
   28         bus_space_tag_t         sc_iot_reg;
   29         bus_space_handle_t      sc_ioh_reg;
   30         bus_size_t              sc_ios_reg;
   31 };
   32 #define DEVNAME(_s)     ((_s)->sc_dev.dv_xname)
   33 
   34 int     sli_attach(struct sli_softc *);
   35 int     sli_detach(struct sli_softc *, int);
   36 
   37 int     sli_intr(void *);

/* [<][>][^][v][top][bottom][index][help] */