FreeBSD/Linux Kernel Cross Reference
sys/dev/ic/silivar.h
1 /* $OpenBSD: silivar.h,v 1.7 2010/08/05 20:21:36 kettenis 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 sili_port;
20
21 struct sili_softc {
22 struct device sc_dev;
23
24 bus_dma_tag_t sc_dmat;
25
26 bus_space_tag_t sc_iot_global;
27 bus_space_handle_t sc_ioh_global;
28 bus_size_t sc_ios_global;
29
30 bus_space_tag_t sc_iot_port;
31 bus_space_handle_t sc_ioh_port;
32 bus_size_t sc_ios_port;
33
34 u_int sc_nports;
35 struct sili_port *sc_ports;
36
37 struct atascsi *sc_atascsi;
38 };
39 #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname)
40
41 int sili_attach(struct sili_softc *);
42 int sili_detach(struct sili_softc *, int);
43
44 void sili_resume(struct sili_softc *);
45
46 int sili_intr(void *);
Cache object: b13336f39f6e1844544b5214357e1221
|