Mercurial > mplayer.hg
comparison vidix/drivers/nvidia_vid.c @ 19068:59d10ceb72c8
drops casts from void * on malloc/calloc from vidix/
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 21:22:56 +0000 |
parents | 26a30496ec96 |
children | 1767c271d710 |
comparison
equal
deleted
inserted
replaced
19067:920a210b7fdc | 19068:59d10ceb72c8 |
---|---|
702 | 702 |
703 | 703 |
704 | 704 |
705 int vixInit(void){ | 705 int vixInit(void){ |
706 int mtrr; | 706 int mtrr; |
707 info = (rivatv_info*)calloc(1,sizeof(rivatv_info)); | 707 info = calloc(1,sizeof(rivatv_info)); |
708 info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000); | 708 info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000); |
709 info->chip.arch = nvidia_card_ids[find_chip(pci_info.device)].arch; | 709 info->chip.arch = nvidia_card_ids[find_chip(pci_info.device)].arch; |
710 printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base); | 710 printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base); |
711 info->chip.PFIFO = (uint32_t *) (info->control_base + 0x00002000); | 711 info->chip.PFIFO = (uint32_t *) (info->control_base + 0x00002000); |
712 info->chip.FIFO = (uint32_t *) (info->control_base + 0x00800000); | 712 info->chip.FIFO = (uint32_t *) (info->control_base + 0x00800000); |