comparison vidix/s3_regs.h @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents b5a46071062a
children b11dc6175323
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
28 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) 28 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX))
29 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) || (chip==S3_PROSAVAGE)) 29 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) || (chip==S3_PROSAVAGE))
30 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) 30 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE))
31 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) 31 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000))
32 32
33 /* 33 /*
34 * Chip tags. These are used to group the adapters into 34 * Chip tags. These are used to group the adapters into
35 * related families. 35 * related families.
36 */ 36 */
37 enum S3CHIPTAGS { 37 enum S3CHIPTAGS {
38 S3_UNKNOWN = 0, 38 S3_UNKNOWN = 0,
39 S3_TRIO64V, 39 S3_TRIO64V,
52 52
53 #define S3_NEWMMIO_REGBASE 0x1000000 /* 16MB */ 53 #define S3_NEWMMIO_REGBASE 0x1000000 /* 16MB */
54 #define S3_NEWMMIO_REGSIZE 0x0010000 /* 64KB */ 54 #define S3_NEWMMIO_REGSIZE 0x0010000 /* 64KB */
55 #define S3_NEWMMIO_REGSIZE_SAVAGE 0x0080000 /* 512KB */ 55 #define S3_NEWMMIO_REGSIZE_SAVAGE 0x0080000 /* 512KB */
56 56
57 #define BASE_FREQ 14.31818 57 #define BASE_FREQ 14.31818
58 58
59 /* 59 /*
60 * There are two different streams engines used in the S3 line. 60 * There are two different streams engines used in the S3 line.
61 * The old engine is in the Trio64, Virge, 61 * The old engine is in the Trio64, Virge,
62 * Savage3D, Savage4, SavagePro, and SavageTwister. 62 * Savage3D, Savage4, SavagePro, and SavageTwister.
165 165
166 /* Scaling operations */ 166 /* Scaling operations */
167 #define HSCALING_Shift 0 167 #define HSCALING_Shift 0
168 #define HSCALING_Mask (((1L << 16)-1) << HSCALING_Shift) 168 #define HSCALING_Mask (((1L << 16)-1) << HSCALING_Shift)
169 #define HSCALING(w0,w1) ((((unsigned int)(((double)w0/(double)w1) * (1 << 15))) << HSCALING_Shift) & HSCALING_Mask) 169 #define HSCALING(w0,w1) ((((unsigned int)(((double)w0/(double)w1) * (1 << 15))) << HSCALING_Shift) & HSCALING_Mask)
170 170
171 #define VSCALING_Shift 0 171 #define VSCALING_Shift 0
172 #define VSCALING_Mask (((1L << 20)-1) << VSCALING_Shift) 172 #define VSCALING_Mask (((1L << 20)-1) << VSCALING_Shift)
173 #define VSCALING(h0,h1) ((((unsigned int) (((double)h0/(double)h1) * (1 << 15))) << VSCALING_Shift) & VSCALING_Mask) 173 #define VSCALING(h0,h1) ((((unsigned int) (((double)h0/(double)h1) * (1 << 15))) << VSCALING_Shift) & VSCALING_Mask)
174 174
175 /* Scaling factors */ 175 /* Scaling factors */