Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 953 → Rev 954

/programs/system/drivers/agp/agp.c
500,8 → 500,6
}
 
 
 
 
void agp_generic_enable(u32_t requested_mode)
{
u32_t bridge_agpstat, temp;
/programs/system/drivers/agp/agp.h
115,4 → 115,28
// void (*agp_destroy_page)(void *);
}agp_t;
 
/*
* min()/max() macros that also do
* strict type-checking.. See the
* "unnecessary" pointer comparison.
*/
#define min(x,y) ({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x < _y ? _x : _y; })
 
#define max(x,y) ({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x > _y ? _x : _y; })
 
 
#define min_t(type,x,y) \
({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
#define max_t(type,x,y) \
({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
 
 
 
/programs/system/drivers/agp/makefile
4,8 → 4,11
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
LDRHD = -shared -T ld.x -s --file-alignment 32
 
HFILES:= agp.h \
syscall.h \
INCLUDES = -I ../include
 
HFILES:= ../include/types.h \
../include/syscall.h \
agp.h \
pci.h \
 
SRC_DEP:= pci.inc \
24,7 → 27,7
kpack.exe agp.dll agp.drv
 
agp.obj : agp.c $(SRC_DEP) $(HFILES) Makefile
$(CC) $(CFLAGS) -o agp.obj agp.c
$(CC) $(INCLUDES) $(CFLAGS) -o agp.obj agp.c