Mercurial > mplayer.hg
comparison vidix/s3_regs.h @ 26097:74106358c073
Use MPlayer consistent define naming convention for newly introduce
S3 registers header file.
author | ben |
---|---|
date | Fri, 29 Feb 2008 20:02:37 +0000 |
parents | e6a565ec1a3b |
children | 5b162ba7cee8 |
comparison
equal
deleted
inserted
replaced
26096:e6a565ec1a3b | 26097:74106358c073 |
---|---|
1 #ifndef _SAVAGE_REGS_H | 1 #ifndef MPLAYER_SAVAGE_REGS_H |
2 #define _SAVAGE_REGS_H | 2 #define MPLAYER_SAVAGE_REGS_H |
3 | 3 |
4 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) | 4 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) |
5 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) || (chip==S3_PROSAVAGE)) | 5 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) || (chip==S3_PROSAVAGE)) |
6 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) | 6 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) |
7 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) | 7 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) |
209 #define INREG16(addr) VID_RD16(info->control_base, addr) | 209 #define INREG16(addr) VID_RD16(info->control_base, addr) |
210 #define OUTREG16(addr,val) VID_WR16(info->control_base, addr, val) | 210 #define OUTREG16(addr,val) VID_WR16(info->control_base, addr, val) |
211 | 211 |
212 #define ALIGN_TO(v, n) (((v) + (n-1)) & ~(n-1)) | 212 #define ALIGN_TO(v, n) (((v) + (n-1)) & ~(n-1)) |
213 | 213 |
214 #endif /* _S3_REGS_H */ | 214 #endif /* MPLAYER_S3_REGS_H */ |