Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / dev / tc / ioasicvar.h
blob7e35da6bdf1b2ef05eb17a5363dc59f464388b9c
1 /* $NetBSD: ioasicvar.h,v 1.19 2005/12/11 12:24:00 christos Exp $ */
3 /*
4 * Copyright (c) 1995 Carnegie-Mellon University.
5 * All rights reserved.
7 * Author: Chris G. Demetriou
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 #ifndef _DEV_TC_IOASICVAR_H_
31 #define _DEV_TC_IOASICVAR_H_
33 struct ioasic_dev {
34 const char *iad_modname;
35 tc_offset_t iad_offset;
36 void *iad_cookie;
37 u_int32_t iad_intrbits;
40 struct ioasicdev_attach_args {
41 char iada_modname[TC_ROM_LLEN+1];
42 tc_offset_t iada_offset;
43 tc_addr_t iada_addr;
44 void *iada_cookie;
47 struct ioasic_softc {
48 struct device sc_dv;
49 bus_space_tag_t sc_bst;
50 bus_space_handle_t sc_bsh;
51 bus_dma_tag_t sc_dmat;
53 tc_addr_t sc_base; /* XXX offset XXX */
56 extern struct cfdriver ioasic_cd;
59 * XXX Some drivers need direct access to IOASIC registers.
61 extern tc_addr_t ioasic_base;
63 const struct evcnt *ioasic_intr_evcnt(device_t, void *);
64 void ioasic_intr_establish(device_t, void *,
65 int, int (*)(void *), void *);
66 void ioasic_intr_disestablish(device_t, void *);
67 void ioasic_attach_devs(struct ioasic_softc *,
68 struct ioasic_dev *, int);
70 #endif /* _DEV_TC_IOASICVAR_ */