Error ("hpcMouseProc ioctl VUIDSFORMAT");
hpcError ("hpcMouseProc ioctl VUIDSFORMAT");
hpcMouseProc(device, what)    DeviceIntPtr  device;   	/* Mouse to play with */    int	    	  what;	    	/* What to do with it */{    DevicePtr	  pMouse = (DevicePtr) device;    int	    	  format;    static int	  oformat;    BYTE    	  map[4];    char	  *dev;    switch (what) {	case DEVICE_INIT:	    if (pMouse != LookupPointerDevice()) {		ErrorF ("Cannot open non-system mouse");		return !Success;	    }	    if (hpcPtrPriv.fd == -1)		return !Success;	    pMouse->devicePrivate = (pointer) &hpcPtrPriv;	    pMouse->on = FALSE;	    map[1] = 1;	    map[2] = 2;	    map[3] = 3;	    InitPointerDeviceStruct(		pMouse, map, 5, miPointerGetMotionEvents, 		hpcMouseCtrl, miPointerGetMotionBufferSize());	    break;	case DEVICE_ON:#if 0	    if (ioctl (hpcPtrPriv.fd, VUIDGFORMAT, &oformat) == -1) {		Error ("hpcMouseProc ioctl VUIDGFORMAT");		return !Success;	    }	    format = VUID_FIRM_EVENT;	    if (ioctl (hpcPtrPriv.fd, VUIDSFORMAT, &format) == -1) {		Error ("hpcMouseProc ioctl VUIDSFORMAT");		return !Success;	    }#endif	    if (!hpcPtrPriv.bedev) {		hpcPtrPriv.bedev = (hpcKbdPrivPtr)(((DeviceIntPtr)		 LookupKeyboardDevice())->public.devicePrivate);		if (hpcPtrPriv.bedev)		    hpcPtrPriv.bedev->bedev = &hpcPtrPriv;	    }	    hpcPtrPriv.bemask = 0;	    hpcPtrPriv.brmask = 0;	    hpcPtrPriv.ebdown = 0;	    AddEnabledDevice (hpcPtrPriv.fd);	    pMouse->on = TRUE;	    break;	case DEVICE_CLOSE:#if 0	    if (ioctl (hpcPtrPriv.fd, VUIDSFORMAT, &oformat) == -1)		Error ("hpcMouseProc ioctl VUIDSFORMAT");#endif	    break;	case DEVICE_OFF:	    pMouse->on = FALSE;	    RemoveEnabledDevice (hpcPtrPriv.fd);	    break;    }    return Success;}