Mercurial > mplayer.hg
comparison vidix/nvidia_vid.c @ 24568:83c2e53e6e4d
add some commented register dumping code
author | faust3 |
---|---|
date | Thu, 20 Sep 2007 17:55:25 +0000 |
parents | a5255ffdcfaf |
children | f89d135bcae0 |
comparison
equal
deleted
inserted
replaced
24567:02249da619ce | 24568:83c2e53e6e4d |
---|---|
1126 .frame_sel = nv_frame_sel, | 1126 .frame_sel = nv_frame_sel, |
1127 .get_eq = nv_get_eq, | 1127 .get_eq = nv_get_eq, |
1128 .set_eq = nv_set_eq, | 1128 .set_eq = nv_set_eq, |
1129 .set_gkey = nv_set_gkeys, | 1129 .set_gkey = nv_set_gkeys, |
1130 }; | 1130 }; |
1131 | |
1132 | |
1133 #if 0 | |
1134 //gcc -o nvidia_vid nvidia_vid.c -I ../ -lm ../vidix/libvidix.a | |
1135 | |
1136 int main(int argc,char* argv[]){ | |
1137 if(nv_probe(0,0)){ | |
1138 printf("no supported chip found\n"); | |
1139 return 1; | |
1140 } | |
1141 if(nv_init()){ | |
1142 printf("could not init\n"); | |
1143 return 1; | |
1144 } | |
1145 if(info->chip.arch >= NV_ARCH_10){ | |
1146 printf("NV_PVIDEO_BASE (0x900) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x900)); | |
1147 printf("NV_PVIDEO_LIMIT (0x908) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x908)); | |
1148 printf("NV_PVIDEO_OFFSET (0x920) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x920)); | |
1149 printf("NV_PVIDEO_FORMAT (0x958) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x958)); | |
1150 printf("NV_PVIDEO_STOP (0x704) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x704)); | |
1151 printf("NV_PVIDEO_BUFFER (0x700) 0x%x\n",VID_RD32(info->chip.PVIDEO, 0x700)); | |
1152 } | |
1153 | |
1154 nv_destroy(); | |
1155 return 0; | |
1156 } | |
1157 | |
1158 #endif | |
1159 |