FreeBSD/sys/pc98/pc98/pc98_machdep.c
/*
 * Disconnect phisical memory in 15-16MB region.
 *
 * EPSON PC-486GR, P, SR, SE, HX, HG and HA only.  Other system support
 * this feature with software DIP switch.
 */
Disconnect phisical memory in 15-16MB region.
EPSON PC-486GR, P, SR, SE, HX, HG and HA only.  Other system support
this feature with software DIP switch.
Disconnect phisical memory in 15 - 16MB region . EPSON PC - 486GR P SR SE HX HG and HA only . Other system support this feature with software DIP switch .
static void
init_epson_memwin(void)
{
	switch (epson_machine_id) {
	case EPSON_PC486_HX:
	case EPSON_PC486_HG:
	case EPSON_PC486_HA:
		outb(0x43f, 0x42);
		outw(0xc40, 0x0033);
		outb(0xc48, 0x49);
		outb(0xc4c, 0x00);
		outb(0xc48, 0x48);
		outb(0xc4c, 0xf0);
		outb(0xc48, 0x4d);
		outb(0xc4c, 0x00);
		outb(0xc48, 0x4c);
		outb(0xc4c, 0xff);
		outb(0xc48, 0x4f);
		outb(0xc4c, 0x00);
		outb(0x43f, 0x40);
		break;
	case EPSON_PC486_GR:
	case EPSON_PC486_P:
	case EPSON_PC486_GR_SUPER:
	case EPSON_PC486_GR_PLUS:
	case EPSON_PC486_SE:
	case EPSON_PC486_SR:
		outb(0x43f, 0x42);
		outb(0x467, 0xe0);
		outb(0x567, 0xd8);
		outb(0x43f, 0x40);
		outb(0x467, 0xe0);
		outb(0x567, 0xe0);
		break;
	}
	outb(0x43b, inb(0x43b) & 0xfd);	
}
static void init_epson_memwin ( void ) { switch ( epson_machine_id ) { case EPSON_PC486_HX : case EPSON_PC486_HG : case EPSON_PC486_HA : outb ( 0x43f , 0x42 ) ; outw ( 0xc40 , 0x0033 ) ; outb ( 0xc48 , 0x49 ) ; outb ( 0xc4c , 0x00 ) ; outb ( 0xc48 , 0x48 ) ; outb ( 0xc4c , 0xf0 ) ; outb ( 0xc48 , 0x4d ) ; outb ( 0xc4c , 0x00 ) ; outb ( 0xc48 , 0x4c ) ; outb ( 0xc4c , 0xff ) ; outb ( 0xc48 , 0x4f ) ; outb ( 0xc4c , 0x00 ) ; outb ( 0x43f , 0x40 ) ; break ; case EPSON_PC486_GR : case EPSON_PC486_P : case EPSON_PC486_GR_SUPER : case EPSON_PC486_GR_PLUS : case EPSON_PC486_SE : case EPSON_PC486_SR : outb ( 0x43f , 0x42 ) ; outb ( 0x467 , 0xe0 ) ; outb ( 0x567 , 0xd8 ) ; outb ( 0x43f , 0x40 ) ; outb ( 0x467 , 0xe0 ) ; outb ( 0x567 , 0xe0 ) ; break ; } outb ( 0x43b , inb ( 0x43b ) & 0xfd ) ; }
Disconnect phisical memory in 15-16MB region.
Disconnect phisical memory in 15 - 16MB region .
/* Disable 15MB-16MB caching. */ /* Cache control start. */ /* Disable 0xF00000-0xFFFFFF. */ /* Cache control end. */ /* Disable 0xF00000-0xFFFFFF. */ /* Disable 15MB-16MB RAM and enable memory window. */ /* Clear bit1. */