Definitions in cdev.h

Preprocessor macro definitions for the cdev.h header file

Definitions:

#include <qvm/cdev.h>
#define CDSF_DELAYED 0x0001

No point in delaying configuration when using standard input.

#define CDSF_CONFIGURED 0x0002

The device is already configured.

#define CDSF_NEEDS_RESTORE 0x0004

Need to restore the device configuration.

#define CDSF_OWN_BUFFERS 0x0008

Use the device's buffers.

#define CDSF_DRAINED 0x0010

The device buffers have been drained.

#define CDSF_OUTPUT_BUSY 0x0020

The output device is busy.

#define CDEV_INPUT_AVAILABLE_PULSE_CODE 0

The device has input available.

#define CDEV_OUTPUT_AVAILABLE_PULSE_CODE 1

The device is available for output.

#define CDEV_NUM_PULSE_CODES 2

The number of the next pulse code you can use for your character vdev. For example, MY_EXTRA_PULSE (CDEV_NUM_PULSE_CODES).

#define CDEV_OPTIONS [CDEV_OPT_HOSTDEV_IDX] = "hostdev",	\
    [CDEV_OPT_DELAYED_IDX] = "delayed", \
    [CDEV_OPT_BATCH_IDX] = "batch"

Macro combining startup options.

Library:

Provided by qvm; no external library is required.