summaryrefslogtreecommitdiff
path: root/sys/arch/pmax/tc/ds-asic-conf.c
blob: b7891790897e91f411851ecbb1cb89f607695d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*	$NetBSD: ds-asic-conf.c,v 1.3 1995/10/09 01:45:29 jonathan Exp $	*/

/*
 * Copyright (c) 1995 Jonathan Stone
 * All rights reserved.
 *
 * DECstation IO ASIC  subslot configuration
 */

#if 0
struct asic_slot {
	struct confargs	as_ca;
	u_int	as_bits;
	intr_handler_t	as_handler;
	void		*as_val;
};
#endif

/* Initial handler must be asic_intrnull or the ASIC newconf code panics */

struct asic_slot kn03_asic_slots[] =
{
	{ { "lance",	  0, KN03_LANCE_SLOT, (u_int) (3 * 0x40000), },
	    KN03_INTR_LANCE, asic_intrnull, (void*) KN03_LANCE_SLOT, },

	{ { "scc",	  1, KN03_SCC0_SLOT, (u_int) (4 * 0x40000), },
	    KN03_INTR_SCC_0, asic_intrnull, (void *)KN03_SCC0_SLOT, },

	{ { "scc",	  2, KN03_SCC1_SLOT, (u_int) (6 * 0x40000), },
	    KN03_INTR_SCC_1, asic_intrnull, (void*)KN03_SCC1_SLOT, },

	{ { "dallas_rtc", 3,  0 /*XXX*/, (u_int) (8* 0x40000), },
	    0, asic_intrnull, (void *)(long) 16 /*XXX*/, },

	{ { "asc",	  4, KN03_SCSI_SLOT, (u_int) (12 * 0x40000), },
	    0, asic_intrnull, (void*)KN03_SCSI_SLOT, },

	{ { NULL, 0, 0, 0 }, 0, NULL, NULL }
};

/* UNTESTED*/
struct asic_slot xine_asic_slots[] =
{
	{ { "lance",	   0, KN03_LANCE_SLOT, (u_int) (3 * 0x40000), },
	    KN03_INTR_LANCE, asic_intrnull, (void*) KN03_LANCE_SLOT, },

	{ { "scc",	   1, KN03_SCC0_SLOT,  (u_int) (4 * 0x40000), },
	    KN03_INTR_SCC_0, asic_intrnull, (void *)KN03_SCC0_SLOT, },

	{ { "dallas_rtc",  2, 0, (u_int) (8* 0x40000), },
	    0, asic_intrnull, (void *)(long) 16 /*XXX*/, },

	{ { "isdn",	   3, XINE_ISDN_SLOT, (u_int) (9* 0x40000), },
	    0, asic_intrnull, (void *)(long) XINE_ISDN_SLOT, },

	{ { "dtop",	   4, XINE_DTOP_SLOT, (u_int) (10* 0x40000), },
	    0, asic_intrnull, (void *)(long) XINE_DTOP_SLOT, },

	{ { "fdc",	   5, XINE_FLOPPY_SLOT, (u_int) (11* 0x40000), },
	    0, asic_intrnull, (void *)(long) XINE_FLOPPY_SLOT, },

	{ { "asc",	   6, XINE_SCSI_SLOT, (u_int) (12 * 0x40000), },
	    0 /*XINE_INTR_SCSI*/, asic_intrnull, (void*)XINE_SCSI_SLOT, },
#if 0
	{ { "frc",   3, (u_int) XINE_SLOT_FRC, (15* 0x40000), },
	    0, asic_intrnull, (void *)(long) XINE_SLOT_FRC, },
#endif
	{ { NULL, 0, 0, }, 0, NULL, NULL }
};

/*
 * The 3MAX (KN02) doesn't even have an asic but for now,
 * configure its system slot as if it did.
 * Instead there's a 4 Mbyte "system" slot with eight 512 Kbyte subslots
 * for system devices:
 * 0=ROM, 1=(reserved), 2=CHKSYN, 3=ERRADDR, 4=DZ, 5=CLOCK, 6=CSR, 7=ROM1
 * These are mapped onto slot numbers as
 * tc0=1, tc1=1, tc2=2, unsed=3, unused=4, scsi=5, ether=6, dc=7
 */

struct asic_slot kn02_asic_slots[] = {
	{ { "dc",	   0, 7, (u_int) (4 * 0x80000), },
	    KN03_INTR_SCC_0, asic_intrnull, (void *) 7, },
	
	{ { "dallas_rtc",  0, 0, (u_int) (5 * 0x80000), },
	    0, 		    asic_intrnull, (void *) 16 /*XXX*/, },

	{ { NULL, 0, 0 },  0, NULL, NULL }
};