e52e522f8ba63f4374514ae3e94d81a1bfab53b8
[dragonfly.git] / sys / i386 / include / uc_device.h
1 /**
2  ** Copyright (c) 1995
3  **      Michael Smith, msmith@freebsd.org.  All rights reserved.
4  **
5  ** This code contains a module marked :
6
7  * Copyright (c) 1991 Regents of the University of California.
8  * All rights reserved.
9  * Copyright (c) 1994 Jordan K. Hubbard
10  * All rights reserved.
11  * Copyright (c) 1994 David Greenman
12  * All rights reserved.
13  *
14  * Many additional changes by Bruce Evans
15  *
16  * This code is derived from software contributed by the
17  * University of California Berkeley, Jordan K. Hubbard,
18  * David Greenman and Bruce Evans.
19
20  ** As such, it contains code subject to the above copyrights.
21  ** The module and its copyright can be found below.
22  ** 
23  ** Redistribution and use in source and binary forms, with or without
24  ** modification, are permitted provided that the following conditions
25  ** are met:
26  ** 1. Redistributions of source code must retain the above copyright
27  **    notice, this list of conditions and the following disclaimer as
28  **    the first lines of this file unmodified.
29  ** 2. Redistributions in binary form must reproduce the above copyright
30  **    notice, this list of conditions and the following disclaimer in the
31  **    documentation and/or other materials provided with the distribution.
32  ** 3. All advertising materials mentioning features or use of this software
33  **    must display the following acknowledgment:
34  **      This product includes software developed by Michael Smith.
35  ** 4. The name of the author may not be used to endorse or promote products
36  **    derived from this software without specific prior written permission.
37  **
38  ** THIS SOFTWARE IS PROVIDED BY MICHAEL SMITH ``AS IS'' AND ANY EXPRESS OR
39  ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
41  ** IN NO EVENT SHALL MICHAEL SMITH BE LIABLE FOR ANY DIRECT, INDIRECT,
42  ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
43  ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44  ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
45  ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
46  ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
47  ** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48  **
49  ** $FreeBSD: src/sys/i386/include/uc_device.h,v 1.1.2.1 2000/07/14 10:21:34 jhb Exp $
50  ** $DragonFly: src/sys/i386/include/Attic/uc_device.h,v 1.2 2003/06/17 04:28:36 dillon Exp $
51  **/
52
53 #ifndef _I386_MACHINE_UC_DEVICE_H
54 #define _I386_MACHINE_UC_DEVICE_H
55
56 /*
57  * Per device structure.  This just happens to resemble the old isa_device
58  * but that is by accident.  It is NOT the same.
59  */
60 struct uc_device {
61         int     id_id;          /* device id */
62         char    *id_name;       /* device name */
63         int     id_iobase;      /* base i/o address */
64         u_int   id_irq;         /* interrupt request */
65         int     id_drq;         /* DMA request */
66         caddr_t id_maddr;       /* physical i/o memory address on bus (if any)*/
67         int     id_msize;       /* size of i/o memory */
68         int     id_unit;        /* unit number */
69         int     id_flags;       /* flags */
70         int     id_enabled;     /* is device enabled */
71         struct uc_device *id_next; /* used in uc_devlist in userconfig() */
72 };
73
74 #endif