Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-chip-ident.h>
#include <media/ov7670.h>
#include <media/videobuf-dma-sg.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/pm_qos.h>
#include <linux/via-core.h>
#include <linux/via-gpio.h>
#include <linux/via_i2c.h>
#include <asm/olpc.h>
#include "via-camera.h"
Go to the source code of this file.
Data Structures | |
struct | via_camera |
struct | via_format |
Macros | |
#define | VGA_WIDTH 640 |
#define | VGA_HEIGHT 480 |
#define | QCIF_WIDTH 176 |
#define | QCIF_HEIGHT 144 |
#define | CF_DMA_ACTIVE 0 /* A frame is incoming */ |
#define | CF_CONFIG_NEEDED 1 /* Must configure hardware */ |
#define | sensor_call(cam, optype, func, args...) v4l2_subdev_call(cam->sensor, optype, func, ##args) |
#define | cam_err(cam, fmt, arg...) dev_err(&(cam)->platdev->dev, fmt, ##arg); |
#define | cam_warn(cam, fmt, arg...) dev_warn(&(cam)->platdev->dev, fmt, ##arg); |
#define | cam_dbg(cam, fmt, arg...) dev_dbg(&(cam)->platdev->dev, fmt, ##arg); |
#define | N_VIA_FMTS ARRAY_SIZE(via_formats) |
#define | VIACAM_SERIAL_DEVFN 0x88 |
#define | VIACAM_SERIAL_CREG 0x46 |
#define | VIACAM_SERIAL_BIT 0x40 |
Enumerations | |
enum | viacam_opstate { S_IDLE = 0, S_RUNNING = 1 } |
Functions | |
MODULE_ALIAS ("platform:viafb-camera") | |
MODULE_AUTHOR ("Jonathan Corbet <[email protected]>") | |
MODULE_DESCRIPTION ("VIA framebuffer-based camera controller driver") | |
MODULE_LICENSE ("GPL") | |
module_param (flip_image, bool, 0444) | |
MODULE_PARM_DESC (flip_image,"If set, the sensor will be instructed to flip the image ""vertically.") | |
module_param (override_serial, bool, 0444) | |
MODULE_PARM_DESC (override_serial,"The camera driver will normally refuse to load if ""the XO 1.5 serial port is enabled. Set this option ""to force-enable the camera.") | |
module_platform_driver (viacam_driver) | |
Definition at line 139 of file via-camera.c.
Definition at line 135 of file via-camera.c.
Definition at line 137 of file via-camera.c.
#define CF_CONFIG_NEEDED 1 /* Must configure hardware */ |
Definition at line 123 of file via-camera.c.
Definition at line 122 of file via-camera.c.
#define N_VIA_FMTS ARRAY_SIZE(via_formats) |
Definition at line 165 of file via-camera.c.
#define QCIF_HEIGHT 144 |
Definition at line 57 of file via-camera.c.
#define QCIF_WIDTH 176 |
Definition at line 56 of file via-camera.c.
#define sensor_call | ( | cam, | |
optype, | |||
func, | |||
args... | |||
) | v4l2_subdev_call(cam->sensor, optype, func, ##args) |
Definition at line 129 of file via-camera.c.
#define VGA_HEIGHT 480 |
Definition at line 55 of file via-camera.c.
#define VGA_WIDTH 640 |
Definition at line 54 of file via-camera.c.
#define VIACAM_SERIAL_BIT 0x40 |
Definition at line 1325 of file via-camera.c.
#define VIACAM_SERIAL_CREG 0x46 |
Definition at line 1324 of file via-camera.c.
#define VIACAM_SERIAL_DEVFN 0x88 |
Definition at line 1323 of file via-camera.c.
enum viacam_opstate |
Definition at line 62 of file via-camera.c.
MODULE_ALIAS | ( | "platform:viafb-camera" | ) |
MODULE_AUTHOR | ( | "Jonathan Corbet <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "VIA framebuffer-based camera controller driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | flip_image | , |
bool | , | ||
0444 | |||
) |
module_param | ( | override_serial | , |
bool | , | ||
0444 | |||
) |
MODULE_PARM_DESC | ( | flip_image | , |
"If | set, | ||
the sensor will be instructed to flip the image""vertically." | |||
) |
MODULE_PARM_DESC | ( | override_serial | , |
"The camera driver will normally refuse to load if ""the XO 1.5 serial port is enabled. Set this option ""to force-enable the camera." | |||
) |
module_platform_driver | ( | viacam_driver | ) |