~kris/9p

9hist

b24f48e95ba5d5417b32c6dcda15c313ceaff5bf — David du Colombier 23 years ago 8a21138
Plan 9 from Bell Labs 2003-04-15
2 files changed, 19 insertions(+), 2 deletions(-)

M pc/sd53c8xx.c
M pc/sdata.c
M pc/sd53c8xx.c => pc/sd53c8xx.c +2 -2
@@ 52,8 52,8 @@ extern SDifc sd53c8xxifc;

#else

#define KPRINT	if(1) print
#define IPRINT	if(1) print
#define KPRINT	if(0) print
#define IPRINT	if(0) print
#define DEBUG(n)	(0)
#define IFLUSH()


M pc/sdata.c => pc/sdata.c +17 -0
@@ 1721,6 1721,23 @@ atapnp(void)
			 * Bugfix code here...
			 */
			break;
		case (0x7441<<16)|0x1022:	/* AMD 768 */
			/*
			 * Set:
			 *	0x41	prefetch, postwrite;
			 *	0x43	FIFO configuration 1/2 and 1/2;
			 *	0x44	status register read retry;
			 *	0x46	DMA read and end of sector flush.
			 */
			r = pcicfgr8(p, 0x41);
			pcicfgw8(p, 0x41, r|0xF0);
			r = pcicfgr8(p, 0x43);
			pcicfgw8(p, 0x43, (r & 0x90)|0x2A);
			r = pcicfgr8(p, 0x44);
			pcicfgw8(p, 0x44, r|0x08);
			r = pcicfgr8(p, 0x46);
			pcicfgw8(p, 0x46, (r & 0x0C)|0xF0);
			break;
		case (0x0646<<16)|0x1095:	/* CMD 646 */
		case (0x0571<<16)|0x1106:	/* VIA 82C686 */
		case (0x0211<<16)|0x1166:	/* ServerWorks IB6566 */