Deleted Added
full compact
isavar.h (46714) isavar.h (47178)
1/*-
2 * Copyright (c) 1998 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: isavar.h,v 1.4 1999/04/21 07:26:28 peter Exp $
26 * $Id: isavar.h,v 1.5 1999/05/08 18:11:04 peter Exp $
27 */
28
29#define ISA_NPORT_IVARS 2
30#define ISA_NMEM_IVARS 2
31#define ISA_NIRQ_IVARS 2
32#define ISA_NDRQ_IVARS 2
33
34enum isa_device_ivars {

--- 39 unchanged lines hidden (view full) ---

74static __inline void isa_set_ ## A(device_t dev, T t) \
75{ \
76 u_long v = (u_long) t; \
77 BUS_WRITE_IVAR(device_get_parent(dev), dev, ISA_IVAR_ ## B, v); \
78}
79
80ISA_ACCESSOR(port, PORT, int)
81ISA_ACCESSOR(portsize, PORTSIZE, int)
27 */
28
29#define ISA_NPORT_IVARS 2
30#define ISA_NMEM_IVARS 2
31#define ISA_NIRQ_IVARS 2
32#define ISA_NDRQ_IVARS 2
33
34enum isa_device_ivars {

--- 39 unchanged lines hidden (view full) ---

74static __inline void isa_set_ ## A(device_t dev, T t) \
75{ \
76 u_long v = (u_long) t; \
77 BUS_WRITE_IVAR(device_get_parent(dev), dev, ISA_IVAR_ ## B, v); \
78}
79
80ISA_ACCESSOR(port, PORT, int)
81ISA_ACCESSOR(portsize, PORTSIZE, int)
82ISA_ACCESSOR(flags, FLAGS, int)
83ISA_ACCESSOR(irq, IRQ, int)
84ISA_ACCESSOR(drq, DRQ, int)
85ISA_ACCESSOR(maddr, MADDR, int)
86ISA_ACCESSOR(msize, MSIZE, int)
82ISA_ACCESSOR(irq, IRQ, int)
83ISA_ACCESSOR(drq, DRQ, int)
84ISA_ACCESSOR(maddr, MADDR, int)
85ISA_ACCESSOR(msize, MSIZE, int)
86ISA_ACCESSOR(flags, FLAGS, int)
87
87