ichsmb_var.h (139749) | ichsmb_var.h (147253) |
---|---|
1/*- 2 * ichsmb_var.h 3 * 4 * Copyright (c) 2000 Whistle Communications, Inc. 5 * All rights reserved. 6 * 7 * Subject to the following obligations and disclaimer of warranty, use and 8 * redistribution of this software, in source or object code forms, with or --- 21 unchanged lines hidden (view full) --- 30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 34 * OF SUCH DAMAGE. 35 * 36 * Author: Archie Cobbs <archie@freebsd.org> 37 * | 1/*- 2 * ichsmb_var.h 3 * 4 * Copyright (c) 2000 Whistle Communications, Inc. 5 * All rights reserved. 6 * 7 * Subject to the following obligations and disclaimer of warranty, use and 8 * redistribution of this software, in source or object code forms, with or --- 21 unchanged lines hidden (view full) --- 30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 34 * OF SUCH DAMAGE. 35 * 36 * Author: Archie Cobbs <archie@freebsd.org> 37 * |
38 * $FreeBSD: head/sys/dev/ichsmb/ichsmb_var.h 139749 2005-01-06 01:43:34Z imp $ | 38 * $FreeBSD: head/sys/dev/ichsmb/ichsmb_var.h 147253 2005-06-10 16:12:43Z takawata $ |
39 */ 40 41#ifndef _DEV_ICHSMB_ICHSMB_VAR_H 42#define _DEV_ICHSMB_ICHSMB_VAR_H 43 44#include "smbus_if.h" 45 46/* Per-device private info */ 47struct ichsmb_softc { 48 49 /* Device/bus stuff */ 50 device_t dev; /* this device */ | 39 */ 40 41#ifndef _DEV_ICHSMB_ICHSMB_VAR_H 42#define _DEV_ICHSMB_ICHSMB_VAR_H 43 44#include "smbus_if.h" 45 46/* Per-device private info */ 47struct ichsmb_softc { 48 49 /* Device/bus stuff */ 50 device_t dev; /* this device */ |
51 device_t smb; /* smb device */ |
|
51 struct resource *io_res; /* i/o port resource */ 52 int io_rid; /* i/o port bus id */ 53 bus_space_tag_t io_bst; /* bus space tag */ 54 bus_space_handle_t io_bsh; /* bus space handle */ 55 struct resource *irq_res; /* interrupt resource */ 56 int irq_rid; /* interrupt bus id */ 57 void *irq_handle; /* handle for interrupt code */ 58 --- 21 unchanged lines hidden (view full) --- 80extern smbus_bwrite_t ichsmb_bwrite; 81extern smbus_bread_t ichsmb_bread; 82 83/* Other functions */ 84extern void ichsmb_device_intr(void *cookie); 85extern void ichsmb_release_resources(sc_p sc); 86extern int ichsmb_probe(device_t dev); 87extern int ichsmb_attach(device_t dev); | 52 struct resource *io_res; /* i/o port resource */ 53 int io_rid; /* i/o port bus id */ 54 bus_space_tag_t io_bst; /* bus space tag */ 55 bus_space_handle_t io_bsh; /* bus space handle */ 56 struct resource *irq_res; /* interrupt resource */ 57 int irq_rid; /* interrupt bus id */ 58 void *irq_handle; /* handle for interrupt code */ 59 --- 21 unchanged lines hidden (view full) --- 81extern smbus_bwrite_t ichsmb_bwrite; 82extern smbus_bread_t ichsmb_bread; 83 84/* Other functions */ 85extern void ichsmb_device_intr(void *cookie); 86extern void ichsmb_release_resources(sc_p sc); 87extern int ichsmb_probe(device_t dev); 88extern int ichsmb_attach(device_t dev); |
89extern int ichsmb_detach(device_t dev); |
|
88 89#endif /* _DEV_ICHSMB_ICHSMB_VAR_H */ 90 | 90 91#endif /* _DEV_ICHSMB_ICHSMB_VAR_H */ 92 |