apply Darron's patches - new IOCTL for midrange PIC and it ops