xref: /plan9/sys/src/9/ppc/io.h (revision 458db83292ea45506704800dedf36a95598fc2ec)
1 
2 enum {
3 	BusCBUS		= 0,		/* Corollary CBUS */
4 	BusCBUSII,			/* Corollary CBUS II */
5 	BusEISA,				/* Extended ISA */
6 	BusFUTURE,			/* IEEE Futurebus */
7 	BusINTERN,			/* Internal bus */
8 	BusISA,				/* Industry Standard Architecture */
9 	BusMBI,				/* Multibus I */
10 	BusMBII,				/* Multibus II */
11 	BusMCA,				/* Micro Channel Architecture */
12 	BusMPI,				/* MPI */
13 	BusMPSA,				/* MPSA */
14 	BusNUBUS,			/* Apple Macintosh NuBus */
15 	BusPCI,				/* Peripheral Component Interconnect */
16 	BusPCMCIA,			/* PC Memory Card International Association */
17 	BusTC,				/* DEC TurboChannel */
18 	BusVL,				/* VESA Local bus */
19 	BusVME,				/* VMEbus */
20 	BusXPRESS,			/* Express System Bus */
21 	BusPPC				/* Power PC internal bus */
22 };
23 
24 #define MKBUS(t,b,d,f)	(((t)<<24)|(((b)&0xFF)<<16)|(((d)&0x1F)<<11)|(((f)&0x07)<<8))
25 #define BUSFNO(tbdf)	(((tbdf)>>8)&0x07)
26 #define BUSDNO(tbdf)	(((tbdf)>>11)&0x1F)
27 #define BUSBNO(tbdf)	(((tbdf)>>16)&0xFF)
28 #define BUSTYPE(tbdf)	((tbdf)>>24)
29 #define BUSBDF(tbdf)	((tbdf)&0x00FFFF00)
30 #define BUSUNKNOWN	(-1)
31