Example #1
0
static int
isavga_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
    int prot, vm_memattr_t *memattr)
{
	return (vga_mmap(dev, VGA_SOFTC(VGA_UNIT(dev)), offset, paddr, prot,
	    memattr));
}
Example #2
0
static int
isavga_write(struct dev_write_args *ap)
{
	cdev_t dev = ap->a_head.a_dev;

	return vga_write(dev, VGA_SOFTC(VGA_UNIT(dev)), ap->a_uio, ap->a_ioflag);
}
Example #3
0
static int
isavga_ioctl(struct dev_ioctl_args *ap)
{
	cdev_t dev = ap->a_head.a_dev;

	return vga_ioctl(dev, VGA_SOFTC(VGA_UNIT(dev)), ap->a_cmd, ap->a_data, ap->a_fflag, ap->a_cred);
}
Example #4
0
static int
isavga_mmap(struct dev_mmap_args *ap)
{
	cdev_t dev = ap->a_head.a_dev;

	ap->a_result = vga_mmap(dev, VGA_SOFTC(VGA_UNIT(dev)), ap->a_offset, ap->a_nprot);
	return(0);
}
Example #5
0
static int
isavga_close(struct dev_close_args *ap)
{
	cdev_t dev = ap->a_head.a_dev;

	return vga_close(dev, VGA_SOFTC(VGA_UNIT(dev)),
			 ap->a_fflag, ap->a_devtype);
}
Example #6
0
static int
isavga_open(struct dev_open_args *ap)
{
	cdev_t dev = ap->a_head.a_dev;

	return vga_open(dev, VGA_SOFTC(VGA_UNIT(dev)), ap->a_oflags,
			ap->a_devtype, ap->a_cred);
}
Example #7
0
static int
isavga_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
{
	return (vga_ioctl(dev, VGA_SOFTC(VGA_UNIT(dev)), cmd, arg, flag, td));
}
Example #8
0
static int
isavga_write(struct cdev *dev, struct uio *uio, int flag)
{
	return (vga_write(dev, VGA_SOFTC(VGA_UNIT(dev)), uio, flag));
}
Example #9
0
static int
isavga_close(struct cdev *dev, int flag, int mode, struct thread *td)
{
	return (vga_close(dev, VGA_SOFTC(VGA_UNIT(dev)), flag, mode, td));
}
static int
isavga_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int prot)
{
	return vga_mmap(dev, VGA_SOFTC(VGA_UNIT(dev)), offset, paddr, prot);
}
static int
isavga_read(struct cdev *dev, struct uio *uio, int flag)
{
	return vga_read(dev, VGA_SOFTC(VGA_UNIT(dev)), uio, flag);
}
static int
isavga_open(struct cdev *dev, int flag, int mode, struct thread *td)
{
	return vga_open(dev, VGA_SOFTC(VGA_UNIT(dev)), flag, mode, td);
}