Go to the documentation of this file.
28 #define DRIVER_VERSION "v0.0.1"
29 #define DRIVER_VERSION_NUM 0x000001
31 #define MAX_ISO_BUFS 3
32 #define ISO_FRAMES_PER_DESC 16
33 #define ISO_MAX_FRAME_SIZE 3 * 1024
34 #define ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE)
37 #define PREFIX "stkwebcam: "
38 #define STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args)
39 #define STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args)
40 #define STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args)
74 #define is_present(dev) ((dev)->status & S_PRESENT)
75 #define is_initialised(dev) ((dev)->status & S_INITIALISED)
76 #define is_streaming(dev) ((dev)->status & S_STREAMING)
77 #define is_memallocd(dev) ((dev)->status & S_MEMALLOCD)
78 #define set_present(dev) ((dev)->status = S_PRESENT)
79 #define unset_present(dev) ((dev)->status &= \
80 ~(S_PRESENT|S_INITIALISED|S_STREAMING))
81 #define set_initialised(dev) ((dev)->status |= S_INITIALISED)
82 #define unset_initialised(dev) ((dev)->status &= ~S_INITIALISED)
83 #define set_memallocd(dev) ((dev)->status |= S_MEMALLOCD)
84 #define unset_memallocd(dev) ((dev)->status &= ~S_MEMALLOCD)
85 #define set_streaming(dev) ((dev)->status |= S_STREAMING)
86 #define unset_streaming(dev) ((dev)->status &= ~S_STREAMING)
123 #define vdev_to_camera(d) container_of(d, struct stk_camera, vdev)