~kris/9p

9hist

92fc4b8b805ab068c711af90153901ed866b2929 — David du Colombier 26 years ago 00da313
Plan 9 from Bell Labs 2000-07-05
2 files changed, 4 insertions(+), 3 deletions(-)

M pc/mem.h
M pc/sdata.c
M pc/mem.h => pc/mem.h +1 -1
@@ 25,7 25,7 @@
#define	HZ		(82)			/* clock frequency */
#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */
#define	TK2SEC(t)	((t)/HZ)		/* ticks to seconds */
#define	MS2TK(t)	(((t)*HZ)/1000)		/* milliseconds to ticks */
#define	MS2TK(t)	(((t)*HZ+500)/1000)	/* milliseconds to closest tick */

/*
 * Fundamental addresses

M pc/sdata.c => pc/sdata.c +3 -2
@@ 604,8 604,9 @@ retry:
	atadmamode(drive);	

	if(DEBUG & DbgCONFIG){
		print("dev %2.2uX config %4.4uX capabilities %4.4uX",
			dev, drive->info[Iconfig], drive->info[Icapabilities]);
		print("dev %2.2uX port %uX config %4.4uX capabilities %4.4uX",
			dev, cmdport,
			drive->info[Iconfig], drive->info[Icapabilities]);
		print(" mwdma %4.4uX", drive->info[Imwdma]);
		if(drive->info[Ivalid] & 0x04)
			print(" udma %4.4uX", drive->info[Iudma]);