plan 9 kernel history: overview | file list | diff list

1993/0210/power/segment.h (diff list | history)

1993/0120/sys/src/9/power/segment.h:2,191993/0210/sys/src/9/power/segment.h:2,16 (short | long | prev | next)
1991/0705    
 * Attach segment types 
 */ 
 
typedef struct Physseg Physseg; 
struct Physseg 
1993/0210    
#define VME16IO3	0x17C10000	 
#define VME32TDFB	(0x30000000+128*MB) 
 
Physseg physseg[] = 
1991/0705    
{ 
	ulong	attr;			/* Segment attributes */ 
	char	*name;			/* Attach name */ 
	ulong	pa;			/* Physical address */ 
	ulong	size;			/* Maximum segment size in pages */ 
1993/0120    
	Page	*(*pgalloc)(Segment*, ulong);	/* Allocation if we need it */ 
1991/0705    
	void	(*pgfree)(Page*); 
}physseg[] = { 
1991/0802    
	{ SG_PHYSICAL,	"lock",		0,	1024*BY2PG,	lkpage,		lkpgfree }, 
1993/0120    
	{ SG_SHARED,	"shared",	0,	SEGMAXSIZE,	0, 	0 }, 
	{ SG_BSS,	"memory",	0,	SEGMAXSIZE,	0,	0 }, 
	{ 0,		0,		0,	0,		0,	0 }, 
1993/0210    
	{ SG_SHARED,	"shared",	0,	SEGMAXSIZE,	0, 0 }, 
	{ SG_BSS,	"memory",	0,	SEGMAXSIZE,	0, 0 }, 
	{ SG_PHYSICAL,	"vme16",	VME16IO3, 	64*1024,	0, 0 }, 
	{ SG_PHYSICAL,	"tdsfb",	VME32TDFB, 	4*MB,		0, 0 }, 
	{ 0,		0,		0,	0,		0, 0 }, 
1991/0705    
}; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)