No empty .Rs/.Re
[netbsd-mini2440.git] / sys / dev / isa / pcppivar.h
blob6d8783ee6d07fa7d20bcdc9be18b37db1f833b90
1 /* $NetBSD: pcppivar.h,v 1.8 2008/01/10 07:58:39 dyoung Exp $ */
3 /*
4 * Copyright (c) 1996 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 _PCPPIVAR_H_
31 #define _PCPPIVAR_H_
33 typedef void *pcppi_tag_t;
35 struct pcppi_attach_args {
36 pcppi_tag_t pa_cookie;
39 struct pcppi_softc {
40 device_t sc_dv;
42 bus_space_tag_t sc_iot;
43 bus_space_handle_t sc_ppi_ioh;
44 bus_size_t sc_size;
45 device_t sc_timer;
47 struct callout sc_bell_ch;
49 int sc_bellactive, sc_bellpitch;
50 int sc_slp;
51 int sc_timeout;
54 void pcppi_attach(struct pcppi_softc *);
55 int pcppi_detach(device_t, int);
57 #define PCPPI_BELL_SLEEP 0x01 /* synchronous; sleep for complete */
58 #define PCPPI_BELL_POLL 0x02 /* synchronous; poll for complete */
60 void pcppi_bell(pcppi_tag_t, int, int, int);
62 #endif /* ! _PCPPIVAR_H_ */