diff options
author | nyan <nyan@FreeBSD.org> | 2005-09-14 12:42:39 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2005-09-14 12:42:39 +0000 |
commit | db6ae269ba7d21c49a7b2e0ad9129194394c8839 (patch) | |
tree | fa82edb4d9fa6bcba0053770d4c8d134b04ce454 /sys/pc98 | |
parent | a40d5ee7726e4fd0241713083a83bc7e7467499f (diff) | |
download | FreeBSD-src-db6ae269ba7d21c49a7b2e0ad9129194394c8839.zip FreeBSD-src-db6ae269ba7d21c49a7b2e0ad9129194394c8839.tar.gz |
Add some defines for EPSON machines and use them.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/pc98_machdep.c | 18 | ||||
-rw-r--r-- | sys/pc98/pc98/pc98_machdep.h | 17 |
3 files changed, 29 insertions, 12 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index d93975d..a5fe2fa 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -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; } diff --git a/sys/pc98/pc98/pc98_machdep.c b/sys/pc98/pc98/pc98_machdep.c index c82647f..1da630f 100644 --- a/sys/pc98/pc98/pc98_machdep.c +++ b/sys/pc98/pc98/pc98_machdep.c @@ -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); diff --git a/sys/pc98/pc98/pc98_machdep.h b/sys/pc98/pc98/pc98_machdep.h index 9bce981..f9248af 100644 --- a/sys/pc98/pc98/pc98_machdep.h +++ b/sys/pc98/pc98/pc98_machdep.h @@ -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__ */ |