1/* $NetBSD: latchreg.h,v 1.1 2002/03/24 15:47:20 bjh21 Exp $ */
2/*-
3 * Copyright (c) 1997, 1998, 2001 Ben Harris
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 *    derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28/*
29 * latchreg.h - Archimedes internal latches
30 */
31
32#ifndef _LATCHREG_H
33#define _LATCHREG_H
34
35/* Register offsets for latches (bus_space units) */
36
37#define LATCH_A		0x10
38#define LATCH_B		0x06
39
40/* Latch A controls some of the floppy disc system (all active-low). */
41#define LATCHA_NSEL0	0x01	/* Floppy drive 0 select */
42#define LATCHA_NSEL1	0x02	/* Floppy drive 1 select */
43#define LATCHA_NSEL2	0x04	/* Floppy drive 2 select */
44#define LATCHA_NSEL3	0x08	/* Floppy drive 3 select */
45#define LATCHA_NSIDE1	0x10	/* Floppy side select. */
46#define LATCHA_NMOTORON	0x20	/* Motor on/off */
47#define LATCHA_NINUSE	0x40	/* 'In Use' */
48/* Bit 7 not used */
49
50/* Latch B does all sorts of random stuff (mostly active-low). */
51/* Bit 0 reserved */
52#define LATCHB_NDDEN	0x02	/* Floppy disc density setting */
53/* Bit 2 reserved */
54#define LATCHB_NFDCR	0x08	/* Floppy controller reset */
55#define LATCHB_NPSTB	0x10	/* Printer strobe line */
56#define LATCHB_AUX1	0x20	/* Spare (VIDC Enhancer?) */
57#define LATCHB_AUX2	0x40	/* Spare */
58/* Bit 7 not used */
59
60#endif /* !_LATCHREG_H */
61