diff options
Diffstat (limited to 'sys/arch/sparc/include/eeprom.h')
| -rw-r--r-- | sys/arch/sparc/include/eeprom.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/eeprom.h b/sys/arch/sparc/include/eeprom.h index 298e0baef11..89603af32bf 100644 --- a/sys/arch/sparc/include/eeprom.h +++ b/sys/arch/sparc/include/eeprom.h @@ -1,8 +1,9 @@ -/* $OpenBSD: eeprom.h,v 1.6 1996/08/16 16:28:25 ccappuc Exp $ */ +/* $OpenBSD: eeprom.h,v 1.7 1997/08/08 08:26:14 downsj Exp $ */ /* * Copyright (c) 1995 Theo de Raadt * All rights reserved. + * Portions Copyright (c) 1997, Jason Downs. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -361,4 +362,30 @@ struct eeprom { #ifdef _KERNEL extern char *eeprom_va; int eeprom_uio __P((struct uio *)); + +/* + * Compatibility defines with NetBSD's eeprom.h. + * + * The goal here is to provide enough compatibility for kernel drivers to + * compile without changes; not to make userland utilities compile. Userland + * should use the native interface. + */ +#define EE_CONS_BW EED_CONS_BW +#define EE_CONS_TTYA EED_CONS_TTYA +#define EE_CONS_TTYB EED_CONS_TTYB +#define EE_CONS_COLOR EED_CONS_COLOR +#define EE_CONS_P4OPT EED_CONS_P4 + +#define EE_SCR_1152X900 EED_SCR_1152X900 +#define EE_SCR_1024X1024 EED_SCR_1024X1024 +#define EE_SCR_1600X1280 EED_SCR_1600X1280 +#define EE_SCR_1440X1440 EED_SCR_1440X1440 +#define EE_SCR_640X480 EED_SCR_640X480 +#define EE_SCR_1280X1024 EED_SCR_1280X1024 + +#define eeConsole ee_diag.eed_console +#define eeTtyRows ee_diag.eed_rowsize +#define eeTtyCols ee_diag.eed_colsize +#define eeScreenSize ee_diag.eed_scrsize + #endif /* _KERNEL */ |
