2 * drivers/media/video/omap/camera_hw_if.h
4 * Copyright (C) 2004 Texas Instruments, Inc.
6 * Camera interface to OMAP camera capture drivers
7 * Camera interface hardware driver should implement this interface
9 * This package is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 #ifndef OMAP_CAMERA_HW_IF_H
19 #define OMAP_CAMERA_HW_IF_H
21 #define LEN_HW_IF_NAME 31
25 struct camera_hardware {
26 unsigned int version; //version of camera driver module
27 char name[LEN_HW_IF_NAME + 1];
30 int (*cleanup)(void *);
32 int (*open)(void *); /* acquire h/w resources (irq,DMA), etc. */
33 int (*close)(void *); /* free h/w resources, stop i/f */
35 int (*enable)(void *);
36 int (*disable)(void *);
40 int (*set_xclk)(int, void *);
42 int (*init_dma)(void *);
43 int (*start_dma)(struct sgdma_state *, void (*)(void *arg1, void *arg2),
44 void *, void *, void *);
45 int (*finish_dma)(void *);
48 extern struct camera_hardware camera_hardware_if;
50 #endif /* OMAP_CAMERA_HW_IF_H */