[MPlayer-cygwin] vidix and win2k?

Sascha Sommer saschasommer at freenet.de
Sat Mar 27 18:28:31 CET 2004


> At 3/26/2004 2:04:00 PM, you wrote:
> >Can you add a few printfs to vixInit
> >to find out where it fails? I'm not sure but afaik not every mach64 card
is
> >working with this vidix driver.
>
> i suck with source code :) any examples?
>


int vixInit(void)
{
  int err;
  if(!probed)
  {
    printf("[mach64] Driver was not probed but is being initializing\n");
    return EINTR;
  }
  if(__verbose>0) printf("[mach64] version %s\n", VERSION);

  if((mach64_mmio_base = map_phys_mem(pci_info.base2,0x4000))==(void *)-1)
return ENOMEM;
  printf("mapped mmio base\n");
  mach64_wait_for_idle();
  printf("idle\n");
  mach64_ram_size = INREG(MEM_CNTL) & CTL_MEM_SIZEB;
  printf("got ram size\n");
  if (mach64_ram_size < 8) mach64_ram_size = (mach64_ram_size + 1) * 512;
  else if (mach64_ram_size < 12) mach64_ram_size = (mach64_ram_size - 3) *
1024;
  else mach64_ram_size = (mach64_ram_size - 7) * 2048;
  mach64_ram_size *= 0x400; /* KB -> bytes */
  if((mach64_mem_base = map_phys_mem(pci_info.base0,mach64_ram_size))==(void
*)-1) return ENOMEM;
  printf("mapped mem base\n");




Sascha




More information about the MPlayer-cygwin mailing list