For more information about the general subject of device definitions and managing them, see About Device Definition.
Win4Lin allows DOS and Windows to use hardware devices such as the printers and scanners connected to your parallel port as well as game controllers attached to the game port. This is done by "directly attaching" to the parallel or game ports. This means that a Linux device driver is not used, and DOS or Windows directly uses the hardware ports. When Win4Lin is installed it creates definitions for the standard parallel and game ports.
You can also create your own custom device definitions to provide access to other types of devices.
Note: Win4Lin does not support direct attachment of hardware devices that are "Plug-and-Play" because the attachment setting of these type of devices can change each time the Linux system is restarted. The "Plug-and-Play" mechanism is not used from within Win4Lin to detect or configure hardware.
Custom devices defined here are available for attachment in the Devices view of the Personal Win4Lin Session Configuration window.
To add a new custom device:
Alternatively, you can select an existing custom device definition from the list of tokens, modify the settings appropriately, and then save the resulting definition under a new token name.
In the Configuration text box, select the hardware parameter that you want to modify from the following list:
Note: Attachment of IRQ is not currently supported.
Follow these steps to specify IRQ for a custom device:
If you make a mistake, click on the incorrect entry to highlight it, and then click on the Remove button to delete the incorrect entry. Then, reenter the correct IRQ as described in step 1.
A dialog box appears in which you can enter a the virtual IRQ value. The value can be 0, 2 through 7, 9 through 13, or 15. You cannot choose a virtual IRQ value that another device is already using as a physical or virtual IRQ at the same time as this device. (Note: by default, the virtual IRQ5 is used in your Win4Lin sessions by the Win4Lin mouse driver.)
If virtual mapping has been established for the device and you want to delete it, click on the Unmap button.
Note: Attachment of DMA is not currently supported.
Follow these steps to specify DMA for a custom device:
If you make a mistake, click on the incorrect entry to highlight it, and then click Remove. Then, reenter the correct DMA value as described in step 1.
A dialog box appears in which you can enter a virtual DMA value. The value can be from 0 through 7. You cannot choose a virtual DMA channel that another device is already using as a physical or virtual DMA channel at the same time as this device.
If virtual mapping has been established for the device and you want to delete it, click on the Unmap button.
Note: Only attachment of IO ports is currently supported. Attachment of Memory Mapped IO is not supported.
Follow these steps to specify IO Port or Memory Mapped IO for a custom device:
If you make a mistake, click on the incorrect entry to highlight it, and then click Remove. Then, enter the correct value as described in step 1.
A dialog box appears in which you can enter the virtual address range. The address is given in same hexadecimal notation. You cannot choose a virtual address that another device is already using as a physical or virtual address at the same time as this device.
If virtual mapping has been established for the device and you want to delete it, click on the Unmap button.
Follow these steps to specify a UMB buffer to be reserved.
If you make a mistake, click on the incorrect entry to highlight it, and then click Remove. Then, enter the correct address range as described above.