Add some defines for EPSON machines and use them.

This commit is contained in:
Yoshihiro Takahashi 2005-09-14 12:42:39 +00:00
parent 42244f27c2
commit f7b1bf814d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150128
3 changed files with 29 additions and 12 deletions

View File

@ -1633,9 +1633,9 @@ getmemsize(int first)
#ifdef WB_CACHE
default:
#endif
case 0x34: /* PC-486HX */
case 0x35: /* PC-486HG */
case 0x3B: /* PC-486HA */
case EPSON_PC486_HX:
case EPSON_PC486_HG:
case EPSON_PC486_HA:
pg_n = 0;
break;
}

View File

@ -69,9 +69,9 @@ init_epson_memwin(void)
{
/* Disable 15MB-16MB caching. */
switch (epson_machine_id) {
case 0x34: /* PC486HX */
case 0x35: /* PC486HG */
case 0x3B: /* PC486HA */
case EPSON_PC486_HX:
case EPSON_PC486_HG:
case EPSON_PC486_HA:
/* Cache control start. */
outb(0x43f, 0x42);
outw(0xc40, 0x0033);
@ -92,12 +92,12 @@ init_epson_memwin(void)
outb(0x43f, 0x40);
break;
case 0x2B: /* PC486GR/GF */
case 0x30: /* PC486P */
case 0x31: /* PC486GRSuper */
case 0x32: /* PC486GR+ */
case 0x37: /* PC486SE */
case 0x38: /* PC486SR */
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:
/* Disable 0xF00000-0xFFFFFF. */
outb(0x43f, 0x42);
outb(0x467, 0xe0);

View File

@ -72,6 +72,23 @@ extern unsigned char pc98_system_parameter[]; /* in locore.c */
# define PC98_TYPE_CHECK(x) ((pc98_machine_type & (x)) == (x))
/*
* EPSON machine list
*/
#define EPSON_PC386_NOTE_A 0x20
#define EPSON_PC386_NOTE_W 0x22
#define EPSON_PC386_NOTE_AE 0x27
#define EPSON_PC386_NOTE_WR 0x2a
#define EPSON_PC486_GR 0x2b
#define EPSON_PC486_P 0x30
#define EPSON_PC486_GR_SUPER 0x31
#define EPSON_PC486_GR_PLUS 0x32
#define EPSON_PC486_HX 0x34
#define EPSON_PC486_HG 0x35
#define EPSON_PC486_SE 0x37
#define EPSON_PC486_SR 0x38
#define EPSON_PC486_HA 0x3b
#endif /* _KERNEL */
#endif /* __PC98_PC98_PC98_MACHDEP_H__ */