From: Witek Krêcicki (adasi@grubno.da.ru)
Date: Fri 28 Jun 2002 - 22:36:56 IDT
I'm not subscribed to the list so CC me in case. Also, sorry if this went out on the list earlier. But: If you want to run svgalib_helper on 2.5 kernel there is a patch (some things may be off-seted since this svgalib is lil' bit patched): ---- --- main.c~ Fri Jun 28 21:36:07 2002 +++ main.c Fri Jun 28 21:36:07 2002 @@ -67,7 +67,7 @@ io_t iov; pcic_t pciv; - int minor = MINOR(inode->i_rdev); + int minor = minor(inode->i_rdev); struct pci_dev *pdev; io_string_t iostr; int i; @@ -192,7 +192,7 @@ static int svgalib_helper_open( struct inode *inode, struct file * filp) { - int minor = MINOR(inode->i_rdev); + int minor = minor(inode->i_rdev); if(minor>=num_devices) return -ENODEV; @@ -210,7 +210,7 @@ static int svgalib_helper_mmap(struct file *filp, struct vm_area_struct *vma) { int start=vma->vm_start; int end=vma->vm_end; - int minor = MINOR(filp->f_dentry->d_inode->i_rdev); + int minor = minor(filp->f_dentry->d_inode->i_rdev); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) int ofs=vma->vm_pgoff*PAGE_SIZE; #else @@ -227,7 +227,7 @@ if (boot_cpu_data.x86 > 3) pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; #endif - if (remap_page_range(start, ofs, end-start, + if (remap_page_range(vma, start, ofs, end-start, vma->vm_page_prot)) return -EAGAIN; if(ofs>=0xa0000)vma->vm_flags|=VM_IO; return 0; @@ -242,7 +242,7 @@ if (boot_cpu_data.x86 > 3) pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; #endif - if (remap_page_range(start, ofs, end-start, + if (remap_page_range(vma, start, ofs, end-start, vma->vm_page_prot)) return -EAGAIN; return 0; } @@ -257,7 +257,7 @@ if (boot_cpu_data.x86 > 3) pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; #endif - if (remap_page_range(start, ofs, end-start, + if (remap_page_range(vma, start, ofs, end-start, vma->vm_page_prot)) return -EAGAIN; return 0; } -------- It may be not working as it should (it was written at 3 o'clock when I wanted to see a movie with -vo svga), it does not shutdown correctly, so DON'T change console while using this. WK ------------------------------------------------------------------ Unsubscribe: To: listbot@svgalib.org Body: unsubscribe linux-svgalib
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST