Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 80 → Rev 81

/shark/trunk/drivers/svga/vgapal.c
67,11 → 67,11
int vga_setpalette(int index, int red, int green, int blue)
{
 
DTP((stderr,"setpalette %i %i %i %i\n",index,red,green,blue));
DTP(("setpalette %i %i %i %i\n",index,red,green,blue));
 
if (__svgalib_grayscale) {
if ((unsigned) index >= sizeof(__svgalib_green_backup) / sizeof(__svgalib_green_backup[0])) {
fprintf(stderr,"vga_setpalette: color index %d out of range\n", index);
cprintf("vga_setpalette: color index %d out of range\n", index);
}
__svgalib_green_backup[index] = green;
 
96,7 → 96,7
else get_lut(index, red, green, blue);
if (__svgalib_grayscale) {
if ((unsigned) index >= sizeof(__svgalib_green_backup) / sizeof(__svgalib_green_backup[0])) {
fprintf(stderr,"vga_getpalette: color index %d out of range\n", index);
cprintf("vga_getpalette: color index %d out of range\n", index);
}
*green = __svgalib_green_backup[index];
}
108,7 → 108,7
{
int i;
 
DTP((stderr,"setpalvec %i %i %x\n",start,num,pal));
DTP(("setpalvec %i %i %x\n",start,num,pal));
 
if ((__svgalib_driverspecs->emul && __svgalib_driverspecs->emul->setpalette) ||
(__svgalib_outpal!=__svgalib_vga_outpal)) {
/shark/trunk/drivers/svga/ics_gendac.c
50,7 → 50,7
unsigned char best_n1 = 16 + 2, best_n2 = 2, best_m = 125 + 2;
 
#if DEBUG_FINDCLOCK
fprintf(stderr,"S3dacsFindClock: Trying to match clock of %0.3f MHz\n", freq_in / 1000.0);
cprintf("S3dacsFindClock: Trying to match clock of %0.3f MHz\n", freq_in / 1000.0);
#endif
ffreq_in = freq_in / 1000.0 / BASE_FREQ;
60,7 → 60,7
/* Check if getting freq_in is possible at all */
if (freq_in < freq_min / 8) {
#if DEBUG_FINDCLOCK
fprintf(stderr,"S3dacsFindClock: %0.3f MHz is too low (lowest is %0.3f MHz)\n",
cprintf("S3dacsFindClock: %0.3f MHz is too low (lowest is %0.3f MHz)\n",
freq_in / 1000.0, freq_min / 1000.0 / 8);
#endif
return 0;
67,7 → 67,7
}
if (freq_in > freq_max / (1 << min_n2)) {
#if DEBUG_FINDCLOCK
fprintf(stderr,"S3dacsFindClock: %0.3f MHz is too high (highest is %0.3f MHz)\n",
cprintf("S3dacsFindClock: %0.3f MHz is too high (highest is %0.3f MHz)\n",
freq_in / 1000.0, freq_max / 1000.0 / (1 << min_n2));
#endif
return 0;
96,7 → 96,7
}
 
#if DEBUG_FINDCLOCK
fprintf(stderr,"S3dacsFindClock: clock wanted %1.6f MHz, found %1.6f MHz (m %d, n1 %d, n2 %d)\n",
cprintf("S3dacsFindClock: clock wanted %1.6f MHz, found %1.6f MHz (m %d, n1 %d, n2 %d)\n",
freq_in / 1000.0,
best_m / ((double) best_n1 * (1 << best_n2)) * BASE_FREQ,
best_m, best_n1, best_n2);
126,7 → 126,7
int n, m;
 
if (!S3dacsFindClock(freq, 0, 100000, 250000, &min_m, &min_n1, &n2)) {
fprintf(stderr,"Bad dot clock %0.3f MHz.\n", freq / 1000.0);
cprintf("Bad dot clock %0.3f MHz.\n", freq / 1000.0);
return;
}
136,7 → 136,7
regs[SDAC_PLL_N1_N2] = n;
#if 0
if (__svgalib_driver_report)
fprintf(stderr,"Initializing DAC PLL values; 0x%02X, 0x%02X.\n", m, n);
cprintf("Initializing DAC PLL values; 0x%02X, 0x%02X.\n", m, n);
#endif
}
 
/shark/trunk/drivers/svga/s3dacs.c
551,11 → 551,11
int min_m, min_n1, n2;
if (!S3dacsFindClock(khz, 0, 40000, 70000, &min_m, &min_n1, &n2)) {
fprintf(stderr,"Bad MCLK %0.3f MHz.\n", khz / 1000.0);
printk(KERN_INFO "Bad MCLK %0.3f MHz.\n", khz / 1000.0);
return;
}
 
fprintf(stderr,"%0.3f MHz MCLK, m = %d, n = %d, r = %d\n", khz / 1000.0, min_m - 2, min_n1 - 2, n2);
printk(KERN_INFO "%0.3f MHz MCLK, m = %d, n = %d, r = %d\n", khz / 1000.0, min_m - 2, min_n1 - 2, n2);
outb(0x3C4, 0x08);
sr8 = inb(0x3C5);
outb(0x3C5, 0x06); /* Unlock. */
/shark/trunk/drivers/svga/attdacs.c
67,12 → 67,12
static void att20c490_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using AT&T20C490-compatible truecolor DAC.\n");
cprintf("svgalib: Using AT&T20C490-compatible truecolor DAC.\n");
#if 0
dactocomm();
inb(PEL_MSK); /* Skip command register. */
fprintf(stderr,"svgalib: DAC Manufacturer ID = 0x%02X, ", inb(PEL_MSK));
fprintf(stderr,"Device ID = 0x%02X.\n", inb(PEL_MSK));
cprintf("svgalib: DAC Manufacturer ID = 0x%02X, ", inb(PEL_MSK));
cprintf("Device ID = 0x%02X.\n", inb(PEL_MSK));
#endif
}
 
156,7 → 156,7
static void att20c498_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using AT&T20C498-compatible DAC, 80 MHz rated.\n");
cprintf("svgalib: Using AT&T20C498-compatible DAC, 80 MHz rated.\n");
}
 
static int att20c498_map_clock(int bpp, int pixelclock)
/shark/trunk/drivers/svga/sierra.c
34,7 → 34,7
{
/* Should probe the exact DAC type. */
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using Sierra 32K DAC.\n");
cprintf("svgalib: Using Sierra 32K DAC.\n");
}
 
static int Sierra_32K_map_clock(int bpp, int pixelclock)
143,7 → 143,7
static void SC15025_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using Sierra 15025/26%c truecolor DAC.\n", SC15025_Rev);
cprintf("svgalib: Using Sierra 15025/26%c truecolor DAC.\n", SC15025_Rev);
}
 
static void SC15025_initializestate(unsigned char *regs, int bpp, int colormode,
325,7 → 325,7
static void SC1148X_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using Sierra 1148x series 32K DAC.\n");
cprintf("svgalib: Using Sierra 1148x series 32K DAC.\n");
}
 
static void SC1148X_initializestate(unsigned char *regs, int bpp, int colormode,
/shark/trunk/drivers/svga/vgamisc.c
54,7 → 54,7
vga_getgraphmem(void)
{
 
DTP((stderr,"getgraphmem\n"));
DTP(("getgraphmem\n"));
 
if (__svgalib_modeinfo_linearset & LINEAR_MODE )
return __svgalib_linearframebuffer;
/shark/trunk/drivers/svga/makefile.cfg
1,224 → 1,6
#----------------------------------------------------------------------
# SVGAlib Compile-time configuration file
#----------------------------------------------------------------------
# If you change ANYTHING in here you MUST 'make clean' and remake what
# you need.
#
# BEWARE! The toggle settings (INCLUDE_*_DRIVER and such) are set when
# the symbols are set. The value is pointless. Even setting a variable
# to n means yes!
 
#MAJOR_VER = 1
#MINOR_VER = 9.17
#VERSION = $(MAJOR_VER).$(MINOR_VER)
 
#----------------------------------------------------------------------
# Kernel module Configuration Section
#----------------------------------------------------------------------
# Char major device used by module
#SVGALIB_HELPER_MAJOR = 209
 
# Linux kernel includes
#ifeq ($(KERNELRELEASE),)
#KERNELRELEASE = $(shell uname -r)
#endif
 
#INCLUDEDIR = /lib/modules/$(KERNELRELEASE)/build/include
 
#DIREXIST = $(shell if [ -e $(INCLUDEDIR) ] ; then echo OK ; fi)
#ifneq ($(DIREXIST), OK)
#INCLUDEDIR = /usr/src/linux/include
#endif
 
#ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
 
#----------------------------------------------------------------------
# Configuration Section
#----------------------------------------------------------------------
# Source directory.
#srcdir = /usr/local/src/svgalib-$(VERSION)
#srcdir = $(shell sh -c pwd)
 
#confdir = $(srcdir)/src/config
 
# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
#TOPDIR=
#prefix = $(TOPDIR)/usr/local
#exec_prefix = $(prefix)
 
# Directory where the shared stubs and static library will be installed.
#libdir = $(exec_prefix)/lib
 
# Directory where the shared library will be installed.
#sharedlibdir = $(exec_prefix)/lib
 
# Directory where the font and textmode utilities will be installed.
#bindir = $(exec_prefix)/bin
 
# Directory where the run-time configuration files will be installed.
#datadir = $(TOPDIR)/etc/vga
 
# Directory where the header files will be installed.
#includedir = $(prefix)/include
 
# Directory where the man files will be installed.
#mandir = $(prefix)/man
 
# Target binary format.
#TARGET_FORMAT = elf
 
# uncomment any of the following line to print some debug messages
# DEBUG = yes
# DEBUG_CONFIG = yes
# DEBUG_ACCEL = yes
# DEBUG_KEYBOARD = yes
 
# uncomment this if your compiler fails on compiling the assembler in
# src/vgaconvplanar.c, gl/inlstring.h, gl/line.c or gl/scale.c
# NO_ASM = y
 
# uncomment if you want to set attribute controller and dac without delay
# This breaks original VGA, but seems to work on new cards.
NO_DELAY = y
 
# Uncomment this if you want root processes to be able to always get a new
# VC. Alas, some games misuse suid root privs and become root, svgalib cannot
# detect this and will allow Joe blow user to open a new virtual VC. If this
# annoys you, comment out the next line (which is the default already)
ROOT_VC_SHORTCUT = y
 
# Uncomment thit to use libc's memcpy, instead of simple while loop.
# Use demos/linearspeed to see which is faster to video memory.
# LIBC_MEMCPY = y
 
# Uncomment this if you want to compile and install the static libs.
# INSTALLSTATICLIB = installstaticlib
 
# Comment this out if you don't want to install the shared libs.
# If you do not install the shared nor the static libs, 'make static'
# first to enforce just building the static lib, then the demos will
# use this local static library!
#INSTALLSHAREDLIB = installsharedlib
 
# Comment this out if you want to keep old shared images. Old header files,
# library stubs and static libraries CANNOT be kept in public locations
# except when you rename them yourself.
# KEEPSHAREDLIBS = keep
 
# Comment this out if you don't want to compile and install the utilities.
#INSTALLUTILS = installutils
 
# Comment this out if you don't want to install the man pages by default
#INSTALLMAN = installman
 
# Remove the '# ' from one of the next two lines if you want to install the
# man pages compressed (with gzip) or not. If you comment out both lines,
# the Makefiles will try to figure out if your system supports gzipped man
# pages and install them when possible.
 
# MANFORMAT = compressed
# MANFORMAT = uncompressed
 
# This is the command to update the man pages whatis database.
# This is a slow command. If you are not very patient, simple
# comment out this line
# MAKEWHATIS = makewhatis # Beware, this will really need a few minutes!
 
# Comment this out if you use devfs only and don't want to make svga nodes
#INSTALLDEV = installdev
 
#
# Comment out any driver that you don't want included in the library.
#
#INCLUDE_ET4000_DRIVER = y
#INCLUDE_OAK_DRIVER = y
#INCLUDE_EGA_DRIVER = y
#INCLUDE_MACH32_DRIVER = y
#INCLUDE_ET3000_DRIVER = y
#INCLUDE_GVGA6400_DRIVER = y
#INCLUDE_ATI_DRIVER = y
INCLUDE_CHIPS_DRIVER = y
 
INCLUDE_APM_DRIVER = y
INCLUDE_NV3_DRIVER = y
INCLUDE_G400_DRIVER = y
INCLUDE_R128_DRIVER = y
INCLUDE_VESA_DRIVER = y
INCLUDE_MX_DRIVER = y
INCLUDE_RENDITION_DRIVER = y
INCLUDE_RAGE_DRIVER = y
INCLUDE_BANSHEE_DRIVER = y
INCLUDE_SIS_DRIVER = y
INCLUDE_I740_DRIVER = y
INCLUDE_I810_DRIVER = y
INCLUDE_LAGUNA_DRIVER = y
INCLUDE_TRIDENT_DRIVER = y
INCLUDE_SAVAGE_DRIVER = y
INCLUDE_MILLENNIUM_DRIVER = y
#INCLUDE_G450C2_DRIVER = y
INCLUDE_PM2_DRIVER = y
 
INCLUDE_NEO_DRIVER = y
INCLUDE_ET6000_DRIVER = y
INCLUDE_FBDEV_DRIVER = y
 
INCLUDE_PARADISE_DRIVER = y
INCLUDE_ARK_DRIVER = y
INCLUDE_S3_DRIVER = y
INCLUDE_CIRRUS_DRIVER = y
INCLUDE_TVGA_DRIVER = y
INCLUDE_ALI_DRIVER = y
 
 
#
# Comment out any adapter you don't want to autodetect.
#
#INCLUDE_ET4000_DRIVER_TEST = y
INCLUDE_CIRRUS_DRIVER_TEST = y
INCLUDE_TVGA_DRIVER_TEST = y
INCLUDE_OAK_DRIVER_TEST = y
INCLUDE_EGA_DRIVER_TEST = y
INCLUDE_MACH32_DRIVER_TEST = y
INCLUDE_GVGA6400_DRIVER_TEST = y
INCLUDE_S3_DRIVER_TEST = y
INCLUDE_ET3000_DRIVER_TEST = y
INCLUDE_ARK_DRIVER_TEST = y
INCLUDE_ATI_DRIVER_TEST = y
INCLUDE_ALI_DRIVER_TEST = y
INCLUDE_CHIPS_DRIVER_TEST = y
INCLUDE_APM_DRIVER_TEST = y
INCLUDE_NV3_DRIVER_TEST = y
INCLUDE_G400_DRIVER_TEST = y
INCLUDE_R128_DRIVER_TEST = y
INCLUDE_ET6000_DRIVER_TEST = y
INCLUDE_MX_DRIVER_TEST = y
INCLUDE_TRIDENT_DRIVER_TEST = y
INCLUDE_PARADISE_DRIVER_TEST = y
INCLUDE_RAGE_DRIVER_TEST = y
INCLUDE_BANSHEE_DRIVER_TEST = y
INCLUDE_SIS_DRIVER_TEST = y
INCLUDE_I740_DRIVER_TEST = y
INCLUDE_I810_DRIVER_TEST = y
INCLUDE_LAGUNA_DRIVER_TEST = y
INCLUDE_NEO_DRIVER_TEST = y
INCLUDE_SAVAGE_DRIVER_TEST = y
INCLUDE_MILLENNIUM_DRIVER_TEST = y
INCLUDE_RENDITION_DRIVER_TEST = y
INCLUDE_PM2_DRIVER_TEST = y
 
#INCLUDE_FBDEV_DRIVER_TEST = y
 
#Might be too dangerous:
#INCLUDE_VESA_DRIVER_TEST = y
 
#
# Comment out any dac support that you don't want included in the library.
#
# you must include SIERRA_DAC, if you include any of SCxxxx DACs.
 
 
INCLUDE_NORMAL_DAC = y
INCLUDE_S3_SDAC_DAC = y
INCLUDE_S3_GENDAC_DAC = y
INCLUDE_S3_TRIO64_DAC = y
230,12 → 12,6
INCLUDE_IBMRGB52x_DAC = y
INCLUDE_SC1148X_DAC = y
INCLUDE_ICS_GENDAC_DAC = y
 
#
# Comment out any dac you don't want to autodetect.
# (not all dacs can be autodetected, at this time)
#
INCLUDE_S3_SDAC_DAC_TEST = y
INCLUDE_S3_GENDAC_DAC_TEST = y
INCLUDE_SC15025_DAC_TEST = y
INCLUDE_ATT20C490_DAC_TEST = y
243,90 → 19,3
INCLUDE_SC1148X_DAC_TEST = y
INCLUDE_ICS_GENDAC_DAC_TEST = y
 
# Location of the svgalib configuration file.
#SVGALIB_CONFIG_FILE = $(datadir)/libvga.config
 
# Defining DYNAMIC enables runtime parsing of the file defined by
# ET4000_REGS (usually /etc/libvga.et4000) for the et4000
# driver. See et4000/README for details. Commenting this out again
# saves binary space.
#
# If you just want to use the et4000.regs in the source directory,
# comment out the definition of DYNAMIC. DYNAMIC allows development of new
# resolutions without recompiling.
#DYNAMIC = y
#ET4000_REGS = $(datadir)/libvga.et4000
 
# The EGA driver may load additional modes (SuperEGA cards) like the
# et4000 driver does. Just define the configuration file below.
# [This should be taken with a grain of salt, EGA is untested.]
#EGA_REGS = $(datadir)/libvga.ega
 
# Defining USE_CLOCKS will cause the ET4000 driver to measure clock
# frequencies (they are not actually used yet).
#USE_CLOCKS = y
 
# Uncomment to allow mouse type overrides
#ALLOW_MOUSE_OVERRIDE = y
 
#----------------------------------------------------------------------
# Compiler Section
#----------------------------------------------------------------------
 
# Compiler used.
#PC = ppc386
#
#ifndef CC
# CC = gcc
#endif
 
 
#ifndef CFLAGS
# OPTIMIZE = -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g
#else
# OPTIMIZE := $(CFLAGS)
#endif
 
# You might want to add -m386 here if you have a recently installed
# (486 configured) compiler on a 386. The only real difference is the
# generous alignment padding of function entry-points for the 486.
#WARN = -Wall -Wstrict-prototypes
#INCLUDES = -I$(srcdir)/include -I.
#CFLAGS = $(WARN) $(DLLFLAGS) $(INCLUDES) $(OPTIMIZE) $(DEFINES)
#LDFLAGS = -s
 
# additional flags for shared lib.
#DLLFLAGS = -fPIC
 
# Utilites used.
#AR = ar
#INSTALL_PROGRAM = install -c -s -m 755 -o root -g bin
#INSTALL_SHLIB = install -c -m 755 -o root -g bin
#INSTALL_DATA = install -c -m 644 -o root -g bin
 
#ifneq ($(ARCH),i386)
# NO_ASM = y
# INCLUDE_VESA_DRIVER=
#
# INCLUDE_CHIPS_DRIVER=
# INCLUDE_ET4000_DRIVER=
# INCLUDE_MACH32_DRIVER=
# INCLUDE_NEO_DRIVER=
# INCLUDE_S3_DRIVER=
# INCLUDE_TVGA_DRIVER=
#endif
 
#ifneq($(INCLUDE_S3_DRIVER),y)
# INCLUDE_NORMAL_DAC =
# INCLUDE_S3_SDAC_DAC =
# INCLUDE_S3_GENDAC_DAC =
# INCLUDE_S3_TRIO64_DAC =
# INCLUDE_SIERRA_DAC =
# INCLUDE_SC15025_DAC =
# INCLUDE_ATT20C490_DAC =
# INCLUDE_ATT20C498_DAC =
# INCLUDE_ICW_DAC =
# INCLUDE_IBMRGB52x_DAC =
# INCLUDE_SC1148X_DAC =
#endif
 
/shark/trunk/drivers/svga/btdacs.c
37,7 → 37,7
static void bt485_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using BT485 DAC, 135 MHz rated.\n");
cprintf("svgalib: Using BT485 DAC, 135 MHz rated.\n");
}
 
static int bt485_map_clock(int bpp, int pixelclock)
/shark/trunk/drivers/svga/IBMRGB52x.c
187,7 → 187,7
}
 
#ifdef DEBUG
fprintf(stderr,"clk %d, setting to %f, m 0x%02x %d, n 0x%02x %d, df %d\n", clk,
cprintf("clk %d, setting to %f, m 0x%02x %d, n 0x%02x %d, df %d\n", clk,
((best_m + 65.0) / best_n) / (8 >> best_df) * ffref,
best_m, best_m, best_n, best_n, best_df);
#endif
204,12 → 204,12
 
idrev = IBMRGB52x_probe();
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using IBM RGB 52%d PaletteDAC, revision %d.\n",
cprintf("svgalib: Using IBM RGB 52%d PaletteDAC, revision %d.\n",
(idrev >> 8) == 1 ? 5 : 4,
idrev & 0xff);
#else
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using IBM RGB 52x PaletteDAC.\n");
cprintf("svgalib: Using IBM RGB 52x PaletteDAC.\n");
#endif
/* set RS2 */
port_out(0x55, 0x3D4);
241,7 → 241,7
IBMRGB52x_fref, &m, &n, &df);
 
if (__svgalib_driver_report)
fprintf(stderr,"clk %d, setting to %.3f, m 0x%02x %d, n 0x%02x %d, df %d\n",
cprintf("clk %d, setting to %.3f, m 0x%02x %d, n 0x%02x %d, df %d\n",
IBMRGB52x_clk, ((m + 65.0) / n) / (8 >> df) * IBMRGB52x_fref / 1000,
m, m, n, n, df);
 
/shark/trunk/drivers/svga/libvga.h
268,15 → 268,15
//#define DEBUG_TRACE
 
#ifdef DEBUG_TRACE
#define DTP(x) fprintf x
#define DTP(x) cprintf x
#else
#define DTP(x)
#endif
 
#ifdef DEBUG
#define DPRINTF(args...) fprintf(stderr, args)
#define DPRINTF cprintf
#else
#define DPRINTF(...)
#define DPRINTF
#endif
 
__END_DECLS
/shark/trunk/drivers/svga/icd2061a.c
255,7 → 255,7
{
if (DAC && !__svgalib_I2061A_clockchip_methods.DAC_initializeState) {
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using ICD2061A or compatible clockchip.\n");
cprintf("svgalib: Using ICD2061A or compatible clockchip.\n");
__svgalib_I2061A_clockchip_methods.DAC_initializeState = DAC->initializeState;
__svgalib_I2061A_clockchip_methods.DAC_saveState = DAC->saveState;
__svgalib_I2061A_clockchip_methods.DAC_restoreState = DAC->restoreState;
/shark/trunk/drivers/svga/icw.c
31,7 → 31,7
if (mi == 0x84) {
if (di == 0x98)
return 1;
fprintf(stderr,"svgalib: ICW_probe: Unknown IC Works DAC.\n");
cprintf("svgalib: ICW_probe: Unknown IC Works DAC.\n");
}
return 0;
}
43,7 → 43,7
static void ICW_init(void)
{
if (__svgalib_driver_report)
fprintf(stderr,"svgalib: Using IC Works DAC (AT&T20C498-compatible).\n");
cprintf("svgalib: Using IC Works DAC (AT&T20C498-compatible).\n");
}
 
static int ICW_map_clock(int bpp, int pixelclock)
/shark/trunk/drivers/svga/vgadrv.c
313,7 → 313,7
static int vgadrv_init(int force, int par1, int par2)
{
if (__svgalib_driver_report)
fprintf(stderr,"Using VGA driver.\n");
cprintf("Using VGA driver.\n");
__svgalib_driverspecs = &__svgalib_vga_driverspecs;
__svgalib_banked_mem_base=0xa0000;
__svgalib_banked_mem_size=0x10000;
/shark/trunk/drivers/svga/makefile
20,49 → 20,6
 
OBJS = $(MODULES) $(RAMDAC)
 
# defines for all files.
ifeq (y, $(NO_ASM))
DEFINES += -DNO_ASSEMBLY
endif
ifdef SVGALIB_CONFIG_FILE
DEFINES += -DSVGALIB_CONFIG_FILE=\"$(SVGALIB_CONFIG_FILE)\"
endif
ifdef ALLOW_MOUSE_OVERRIDE
DEFINES += -DALLOW_MOUSE_OVERRIDE
endif
ifdef DEBUG
DEFINES += -DDEBUG
endif
ifdef DEBUG_ACCEL
DEFINES += -DDEBUG_ACCEL
endif
ifdef DEBUG_KEYBOARD
DEFINES += -DDEBUG_KEYBOARD
endif
ifdef NO_DELAY
DEFINES += -DNO_DELAY
endif
ifdef LIBC_MEMCPY
DEFINES += -DLIBC_MEMCPY
endif
 
# defines for vga.c only.
ifdef ROOT_VC_SHORTCUT
VGA_DEFINES += -DROOT_VC_SHORTCUT
endif
 
ifdef DEBUG_CONF
DEFINES += -DDEBUG_CONF
endif
 
ifdef INCLUDE_NV3_DRIVER
VGA_DEFINES +=-DINCLUDE_NV3_DRIVER
DRIVERS += drivers/nv3.o
ifdef INCLUDE_NV3_DRIVER_TEST
VGA_DEFINES += -DINCLUDE_NV3_DRIVER_TEST
endif
endif
 
# defines for ramdac.c, ramdac.h (and files including it) only.
ifdef INCLUDE_NORMAL_DAC
RAMDAC_DEFINES += -DINCLUDE_NORMAL_DAC