Commit f4e96cf4 authored by Simon Evans's avatar Simon Evans Committed by Greg Kroah-Hartman

[PATCH] typedef uvd_t removal in usbvideo

This patch replaces typedef struct { .. } uvd_t with struct uvd as a
cleanup removing typedef *_t types.
parent 3118f2e8
This diff is collapsed.
...@@ -129,7 +129,7 @@ struct konicawc { ...@@ -129,7 +129,7 @@ struct konicawc {
#define konicawc_set_value(uvd, value, index) konicawc_ctrl_msg(uvd, USB_DIR_OUT, 2, value, index, NULL, 0) #define konicawc_set_value(uvd, value, index) konicawc_ctrl_msg(uvd, USB_DIR_OUT, 2, value, index, NULL, 0)
static int konicawc_ctrl_msg(uvd_t *uvd, u8 dir, u8 request, u16 value, u16 index, void *buf, int len) static int konicawc_ctrl_msg(struct uvd *uvd, u8 dir, u8 request, u16 value, u16 index, void *buf, int len)
{ {
int retval = usb_control_msg(uvd->dev, int retval = usb_control_msg(uvd->dev,
dir ? usb_rcvctrlpipe(uvd->dev, 0) : usb_sndctrlpipe(uvd->dev, 0), dir ? usb_rcvctrlpipe(uvd->dev, 0) : usb_sndctrlpipe(uvd->dev, 0),
...@@ -138,21 +138,21 @@ static int konicawc_ctrl_msg(uvd_t *uvd, u8 dir, u8 request, u16 value, u16 inde ...@@ -138,21 +138,21 @@ static int konicawc_ctrl_msg(uvd_t *uvd, u8 dir, u8 request, u16 value, u16 inde
} }
static inline void konicawc_camera_on(uvd_t *uvd) static inline void konicawc_camera_on(struct uvd *uvd)
{ {
DEBUG(0, "camera on"); DEBUG(0, "camera on");
konicawc_set_misc(uvd, 0x2, 1, 0x0b); konicawc_set_misc(uvd, 0x2, 1, 0x0b);
} }
static inline void konicawc_camera_off(uvd_t *uvd) static inline void konicawc_camera_off(struct uvd *uvd)
{ {
DEBUG(0, "camera off"); DEBUG(0, "camera off");
konicawc_set_misc(uvd, 0x2, 0, 0x0b); konicawc_set_misc(uvd, 0x2, 0, 0x0b);
} }
static void konicawc_set_camera_size(uvd_t *uvd) static void konicawc_set_camera_size(struct uvd *uvd)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
...@@ -166,7 +166,7 @@ static void konicawc_set_camera_size(uvd_t *uvd) ...@@ -166,7 +166,7 @@ static void konicawc_set_camera_size(uvd_t *uvd)
} }
static int konicawc_setup_on_open(uvd_t *uvd) static int konicawc_setup_on_open(struct uvd *uvd)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
...@@ -192,7 +192,7 @@ static int konicawc_setup_on_open(uvd_t *uvd) ...@@ -192,7 +192,7 @@ static int konicawc_setup_on_open(uvd_t *uvd)
} }
static void konicawc_adjust_picture(uvd_t *uvd) static void konicawc_adjust_picture(struct uvd *uvd)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
...@@ -218,7 +218,7 @@ static void konicawc_adjust_picture(uvd_t *uvd) ...@@ -218,7 +218,7 @@ static void konicawc_adjust_picture(uvd_t *uvd)
} }
static int konicawc_compress_iso(uvd_t *uvd, struct urb *dataurb, struct urb *stsurb) static int konicawc_compress_iso(struct uvd *uvd, struct urb *dataurb, struct urb *stsurb)
{ {
char *cdata; char *cdata;
int i, totlen = 0; int i, totlen = 0;
...@@ -316,7 +316,7 @@ static int konicawc_compress_iso(uvd_t *uvd, struct urb *dataurb, struct urb *st ...@@ -316,7 +316,7 @@ static int konicawc_compress_iso(uvd_t *uvd, struct urb *dataurb, struct urb *st
} }
static void resubmit_urb(uvd_t *uvd, struct urb *urb) static void resubmit_urb(struct uvd *uvd, struct urb *urb)
{ {
int i, ret; int i, ret;
for (i = 0; i < FRAMES_PER_DESC; i++) { for (i = 0; i < FRAMES_PER_DESC; i++) {
...@@ -334,7 +334,7 @@ static void resubmit_urb(uvd_t *uvd, struct urb *urb) ...@@ -334,7 +334,7 @@ static void resubmit_urb(uvd_t *uvd, struct urb *urb)
static void konicawc_isoc_irq(struct urb *urb) static void konicawc_isoc_irq(struct urb *urb)
{ {
uvd_t *uvd = urb->context; struct uvd *uvd = urb->context;
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
/* We don't want to do anything if we are about to be removed! */ /* We don't want to do anything if we are about to be removed! */
...@@ -375,7 +375,7 @@ static void konicawc_isoc_irq(struct urb *urb) ...@@ -375,7 +375,7 @@ static void konicawc_isoc_irq(struct urb *urb)
} }
static int konicawc_start_data(uvd_t *uvd) static int konicawc_start_data(struct uvd *uvd)
{ {
struct usb_device *dev = uvd->dev; struct usb_device *dev = uvd->dev;
int i, errFlag; int i, errFlag;
...@@ -453,7 +453,7 @@ static int konicawc_start_data(uvd_t *uvd) ...@@ -453,7 +453,7 @@ static int konicawc_start_data(uvd_t *uvd)
} }
static void konicawc_stop_data(uvd_t *uvd) static void konicawc_stop_data(struct uvd *uvd)
{ {
int i, j; int i, j;
struct konicawc *cam; struct konicawc *cam;
...@@ -488,7 +488,7 @@ static void konicawc_stop_data(uvd_t *uvd) ...@@ -488,7 +488,7 @@ static void konicawc_stop_data(uvd_t *uvd)
} }
static void konicawc_process_isoc(uvd_t *uvd, usbvideo_frame_t *frame) static void konicawc_process_isoc(struct uvd *uvd, usbvideo_frame_t *frame)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
int maxline = cam->maxline; int maxline = cam->maxline;
...@@ -587,7 +587,7 @@ static int konicawc_find_fps(int size, int fps) ...@@ -587,7 +587,7 @@ static int konicawc_find_fps(int size, int fps)
} }
static int konicawc_set_video_mode(uvd_t *uvd, struct video_window *vw) static int konicawc_set_video_mode(struct uvd *uvd, struct video_window *vw)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
int newspeed = cam->speed; int newspeed = cam->speed;
...@@ -653,14 +653,14 @@ static int konicawc_set_video_mode(uvd_t *uvd, struct video_window *vw) ...@@ -653,14 +653,14 @@ static int konicawc_set_video_mode(uvd_t *uvd, struct video_window *vw)
} }
static int konicawc_calculate_fps(uvd_t *uvd) static int konicawc_calculate_fps(struct uvd *uvd)
{ {
struct konicawc *cam = uvd->user_data; struct konicawc *cam = uvd->user_data;
return spd_to_fps[cam->size][cam->speed]/3; return spd_to_fps[cam->size][cam->speed]/3;
} }
static void konicawc_configure_video(uvd_t *uvd) static void konicawc_configure_video(struct uvd *uvd)
{ {
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
u8 buf[2]; u8 buf[2];
...@@ -719,7 +719,7 @@ static void konicawc_configure_video(uvd_t *uvd) ...@@ -719,7 +719,7 @@ static void konicawc_configure_video(uvd_t *uvd)
static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const struct usb_device_id *devid) static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const struct usb_device_id *devid)
{ {
uvd_t *uvd = NULL; struct uvd *uvd = NULL;
int i, nas; int i, nas;
int actInterface=-1, inactInterface=-1, maxPS=0; int actInterface=-1, inactInterface=-1, maxPS=0;
unsigned char video_ep = 0; unsigned char video_ep = 0;
...@@ -795,7 +795,7 @@ static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const st ...@@ -795,7 +795,7 @@ static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const st
uvd = usbvideo_AllocateDevice(cams); uvd = usbvideo_AllocateDevice(cams);
if (uvd != NULL) { if (uvd != NULL) {
struct konicawc *cam = (struct konicawc *)(uvd->user_data); struct konicawc *cam = (struct konicawc *)(uvd->user_data);
/* Here uvd is a fully allocated uvd_t object */ /* Here uvd is a fully allocated uvd object */
for(i = 0; i < USBVIDEO_NUMSBUF; i++) { for(i = 0; i < USBVIDEO_NUMSBUF; i++) {
cam->sts_urb[i] = usb_alloc_urb(FRAMES_PER_DESC, GFP_KERNEL); cam->sts_urb[i] = usb_alloc_urb(FRAMES_PER_DESC, GFP_KERNEL);
if(cam->sts_urb[i] == NULL) { if(cam->sts_urb[i] == NULL) {
...@@ -858,7 +858,7 @@ static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const st ...@@ -858,7 +858,7 @@ static void *konicawc_probe(struct usb_device *dev, unsigned int ifnum, const st
} }
static void konicawc_free_uvd(uvd_t *uvd) static void konicawc_free_uvd(struct uvd *uvd)
{ {
int i; int i;
struct konicawc *cam = (struct konicawc *)uvd->user_data; struct konicawc *cam = (struct konicawc *)uvd->user_data;
......
...@@ -103,7 +103,7 @@ MODULE_PARM_DESC(hue_correction, "YUV colorspace regulation: 0-255 (default=128) ...@@ -103,7 +103,7 @@ MODULE_PARM_DESC(hue_correction, "YUV colorspace regulation: 0-255 (default=128)
* 02-Nov-2000 First (mostly dummy) version. * 02-Nov-2000 First (mostly dummy) version.
* 06-Nov-2000 Rewrote to dump all data into frame. * 06-Nov-2000 Rewrote to dump all data into frame.
*/ */
void ultracam_ProcessIsocData(uvd_t *uvd, usbvideo_frame_t *frame) void ultracam_ProcessIsocData(struct uvd *uvd, usbvideo_frame_t *frame)
{ {
int n; int n;
...@@ -140,7 +140,7 @@ void ultracam_ProcessIsocData(uvd_t *uvd, usbvideo_frame_t *frame) ...@@ -140,7 +140,7 @@ void ultracam_ProcessIsocData(uvd_t *uvd, usbvideo_frame_t *frame)
* 1/27/00 Added check for dev == NULL; this happens if camera is unplugged. * 1/27/00 Added check for dev == NULL; this happens if camera is unplugged.
*/ */
static int ultracam_veio( static int ultracam_veio(
uvd_t *uvd, struct uvd *uvd,
unsigned char req, unsigned char req,
unsigned short value, unsigned short value,
unsigned short index, unsigned short index,
...@@ -193,7 +193,7 @@ static int ultracam_veio( ...@@ -193,7 +193,7 @@ static int ultracam_veio(
/* /*
* ultracam_calculate_fps() * ultracam_calculate_fps()
*/ */
static int ultracam_calculate_fps(uvd_t *uvd) static int ultracam_calculate_fps(struct uvd *uvd)
{ {
return 3 + framerate*4 + framerate/2; return 3 + framerate*4 + framerate/2;
} }
...@@ -201,14 +201,14 @@ static int ultracam_calculate_fps(uvd_t *uvd) ...@@ -201,14 +201,14 @@ static int ultracam_calculate_fps(uvd_t *uvd)
/* /*
* ultracam_adjust_contrast() * ultracam_adjust_contrast()
*/ */
static void ultracam_adjust_contrast(uvd_t *uvd) static void ultracam_adjust_contrast(struct uvd *uvd)
{ {
} }
/* /*
* ultracam_change_lighting_conditions() * ultracam_change_lighting_conditions()
*/ */
static void ultracam_change_lighting_conditions(uvd_t *uvd) static void ultracam_change_lighting_conditions(struct uvd *uvd)
{ {
} }
...@@ -219,7 +219,7 @@ static void ultracam_change_lighting_conditions(uvd_t *uvd) ...@@ -219,7 +219,7 @@ static void ultracam_change_lighting_conditions(uvd_t *uvd)
* range [0..6], where 0 is most smooth and 6 is most sharp (raw image, I guess). * range [0..6], where 0 is most smooth and 6 is most sharp (raw image, I guess).
* Recommended value is 4. Cameras model 2 do not have this feature at all. * Recommended value is 4. Cameras model 2 do not have this feature at all.
*/ */
static void ultracam_set_sharpness(uvd_t *uvd) static void ultracam_set_sharpness(struct uvd *uvd)
{ {
} }
...@@ -228,11 +228,11 @@ static void ultracam_set_sharpness(uvd_t *uvd) ...@@ -228,11 +228,11 @@ static void ultracam_set_sharpness(uvd_t *uvd)
* *
* This procedure changes brightness of the picture. * This procedure changes brightness of the picture.
*/ */
static void ultracam_set_brightness(uvd_t *uvd) static void ultracam_set_brightness(struct uvd *uvd)
{ {
} }
static void ultracam_set_hue(uvd_t *uvd) static void ultracam_set_hue(struct uvd *uvd)
{ {
} }
...@@ -242,7 +242,7 @@ static void ultracam_set_hue(uvd_t *uvd) ...@@ -242,7 +242,7 @@ static void ultracam_set_hue(uvd_t *uvd)
* This procedure gets called from V4L interface to update picture settings. * This procedure gets called from V4L interface to update picture settings.
* Here we change brightness and contrast. * Here we change brightness and contrast.
*/ */
static void ultracam_adjust_picture(uvd_t *uvd) static void ultracam_adjust_picture(struct uvd *uvd)
{ {
ultracam_adjust_contrast(uvd); ultracam_adjust_contrast(uvd);
ultracam_set_brightness(uvd); ultracam_set_brightness(uvd);
...@@ -255,7 +255,7 @@ static void ultracam_adjust_picture(uvd_t *uvd) ...@@ -255,7 +255,7 @@ static void ultracam_adjust_picture(uvd_t *uvd)
* This code tells camera to stop streaming. The interface remains * This code tells camera to stop streaming. The interface remains
* configured and bandwidth - claimed. * configured and bandwidth - claimed.
*/ */
static void ultracam_video_stop(uvd_t *uvd) static void ultracam_video_stop(struct uvd *uvd)
{ {
} }
...@@ -266,24 +266,24 @@ static void ultracam_video_stop(uvd_t *uvd) ...@@ -266,24 +266,24 @@ static void ultracam_video_stop(uvd_t *uvd)
* resets the video pipe. This sequence was observed to reinit the * resets the video pipe. This sequence was observed to reinit the
* camera or, at least, to initiate ISO data stream. * camera or, at least, to initiate ISO data stream.
*/ */
static void ultracam_reinit_iso(uvd_t *uvd, int do_stop) static void ultracam_reinit_iso(struct uvd *uvd, int do_stop)
{ {
} }
static void ultracam_video_start(uvd_t *uvd) static void ultracam_video_start(struct uvd *uvd)
{ {
ultracam_change_lighting_conditions(uvd); ultracam_change_lighting_conditions(uvd);
ultracam_set_sharpness(uvd); ultracam_set_sharpness(uvd);
ultracam_reinit_iso(uvd, 0); ultracam_reinit_iso(uvd, 0);
} }
static int ultracam_resetPipe(uvd_t *uvd) static int ultracam_resetPipe(struct uvd *uvd)
{ {
usb_clear_halt(uvd->dev, uvd->video_endp); usb_clear_halt(uvd->dev, uvd->video_endp);
return 0; return 0;
} }
static int ultracam_alternateSetting(uvd_t *uvd, int setting) static int ultracam_alternateSetting(struct uvd *uvd, int setting)
{ {
static const char proc[] = "ultracam_alternateSetting"; static const char proc[] = "ultracam_alternateSetting";
int i; int i;
...@@ -299,7 +299,7 @@ static int ultracam_alternateSetting(uvd_t *uvd, int setting) ...@@ -299,7 +299,7 @@ static int ultracam_alternateSetting(uvd_t *uvd, int setting)
/* /*
* Return negative code on failure, 0 on success. * Return negative code on failure, 0 on success.
*/ */
static int ultracam_setup_on_open(uvd_t *uvd) static int ultracam_setup_on_open(struct uvd *uvd)
{ {
int setup_ok = 0; /* Success by default */ int setup_ok = 0; /* Success by default */
/* Send init sequence only once, it's large! */ /* Send init sequence only once, it's large! */
...@@ -487,7 +487,7 @@ static int ultracam_setup_on_open(uvd_t *uvd) ...@@ -487,7 +487,7 @@ static int ultracam_setup_on_open(uvd_t *uvd)
return setup_ok; return setup_ok;
} }
static void ultracam_configure_video(uvd_t *uvd) static void ultracam_configure_video(struct uvd *uvd)
{ {
if (uvd == NULL) if (uvd == NULL)
return; return;
...@@ -539,7 +539,7 @@ static void ultracam_configure_video(uvd_t *uvd) ...@@ -539,7 +539,7 @@ static void ultracam_configure_video(uvd_t *uvd)
*/ */
static void *ultracam_probe(struct usb_device *dev, unsigned int ifnum ,const struct usb_device_id *devid) static void *ultracam_probe(struct usb_device *dev, unsigned int ifnum ,const struct usb_device_id *devid)
{ {
uvd_t *uvd = NULL; struct uvd *uvd = NULL;
int i, nas; int i, nas;
int actInterface=-1, inactInterface=-1, maxPS=0; int actInterface=-1, inactInterface=-1, maxPS=0;
unsigned char video_ep = 0; unsigned char video_ep = 0;
...@@ -628,7 +628,7 @@ static void *ultracam_probe(struct usb_device *dev, unsigned int ifnum ,const st ...@@ -628,7 +628,7 @@ static void *ultracam_probe(struct usb_device *dev, unsigned int ifnum ,const st
MOD_INC_USE_COUNT; MOD_INC_USE_COUNT;
uvd = usbvideo_AllocateDevice(cams); uvd = usbvideo_AllocateDevice(cams);
if (uvd != NULL) { if (uvd != NULL) {
/* Here uvd is a fully allocated uvd_t object */ /* Here uvd is a fully allocated uvd object */
uvd->flags = flags; uvd->flags = flags;
uvd->debug = debug; uvd->debug = debug;
uvd->dev = dev; uvd->dev = dev;
......
This diff is collapsed.
...@@ -203,7 +203,7 @@ typedef struct { ...@@ -203,7 +203,7 @@ typedef struct {
struct s_usbvideo_t; struct s_usbvideo_t;
typedef struct { struct uvd {
struct video_device vdev; /* Must be the first field! */ struct video_device vdev; /* Must be the first field! */
struct usb_device *dev; struct usb_device *dev;
struct s_usbvideo_t *handle; /* Points back to the usbvideo_t */ struct s_usbvideo_t *handle; /* Points back to the usbvideo_t */
...@@ -248,7 +248,7 @@ typedef struct { ...@@ -248,7 +248,7 @@ typedef struct {
usbvideo_statistics_t stats; usbvideo_statistics_t stats;
struct proc_dir_entry *procfs_vEntry; /* /proc/video/MYDRIVER/video2 */ struct proc_dir_entry *procfs_vEntry; /* /proc/video/MYDRIVER/video2 */
char videoName[32]; /* Holds name like "video7" */ char videoName[32]; /* Holds name like "video7" */
} uvd_t; };
/* /*
* usbvideo callbacks (virtual methods). They are set when usbvideo * usbvideo callbacks (virtual methods). They are set when usbvideo
...@@ -257,22 +257,22 @@ typedef struct { ...@@ -257,22 +257,22 @@ typedef struct {
*/ */
typedef struct { typedef struct {
void *(*probe)(struct usb_device *, unsigned int,const struct usb_device_id *); void *(*probe)(struct usb_device *, unsigned int,const struct usb_device_id *);
void (*userFree)(uvd_t *); void (*userFree)(struct uvd *);
void (*disconnect)(struct usb_device *, void *); void (*disconnect)(struct usb_device *, void *);
int (*setupOnOpen)(uvd_t *); int (*setupOnOpen)(struct uvd *);
void (*videoStart)(uvd_t *); void (*videoStart)(struct uvd *);
void (*videoStop)(uvd_t *); void (*videoStop)(struct uvd *);
void (*processData)(uvd_t *, usbvideo_frame_t *); void (*processData)(struct uvd *, usbvideo_frame_t *);
void (*postProcess)(uvd_t *, usbvideo_frame_t *); void (*postProcess)(struct uvd *, usbvideo_frame_t *);
void (*adjustPicture)(uvd_t *); void (*adjustPicture)(struct uvd *);
int (*getFPS)(uvd_t *); int (*getFPS)(struct uvd *);
int (*overlayHook)(uvd_t *, usbvideo_frame_t *); int (*overlayHook)(struct uvd *, usbvideo_frame_t *);
int (*getFrame)(uvd_t *, int); int (*getFrame)(struct uvd *, int);
int (*procfs_read)(char *page,char **start,off_t off,int count,int *eof,void *data); int (*procfs_read)(char *page,char **start,off_t off,int count,int *eof,void *data);
int (*procfs_write)(struct file *file,const char *buffer,unsigned long count,void *data); int (*procfs_write)(struct file *file,const char *buffer,unsigned long count,void *data);
int (*startDataPump)(uvd_t *uvd); int (*startDataPump)(struct uvd *uvd);
void (*stopDataPump)(uvd_t *uvd); void (*stopDataPump)(struct uvd *uvd);
int (*setVideoMode)(uvd_t *uvd, struct video_window *vw); int (*setVideoMode)(struct uvd *uvd, struct video_window *vw);
} usbvideo_cb_t; } usbvideo_cb_t;
struct s_usbvideo_t { struct s_usbvideo_t {
...@@ -282,7 +282,7 @@ struct s_usbvideo_t { ...@@ -282,7 +282,7 @@ struct s_usbvideo_t {
struct semaphore lock; /* Mutex protecting camera structures */ struct semaphore lock; /* Mutex protecting camera structures */
usbvideo_cb_t cb; /* Table of callbacks (virtual methods) */ usbvideo_cb_t cb; /* Table of callbacks (virtual methods) */
struct video_device vdt; /* Video device template */ struct video_device vdt; /* Video device template */
uvd_t *cam; /* Array of camera structures */ struct uvd *cam; /* Array of camera structures */
int uses_procfs; /* Non-zero if we create /proc entries */ int uses_procfs; /* Non-zero if we create /proc entries */
struct proc_dir_entry *procfs_dEntry; /* /proc/video/MYDRIVER */ struct proc_dir_entry *procfs_dEntry; /* /proc/video/MYDRIVER */
struct module *md_module; /* Minidriver module */ struct module *md_module; /* Minidriver module */
...@@ -290,7 +290,7 @@ struct s_usbvideo_t { ...@@ -290,7 +290,7 @@ struct s_usbvideo_t {
typedef struct s_usbvideo_t usbvideo_t; typedef struct s_usbvideo_t usbvideo_t;
/* /*
* This macro retrieves callback address from the uvd_t object. * This macro retrieves callback address from the struct uvd object.
* No validity checks are done here, so be sure to check the * No validity checks are done here, so be sure to check the
* callback beforehand with VALID_CALLBACK. * callback beforehand with VALID_CALLBACK.
*/ */
...@@ -328,7 +328,7 @@ void usbvideo_DrawLine( ...@@ -328,7 +328,7 @@ void usbvideo_DrawLine(
unsigned char cr, unsigned char cg, unsigned char cb); unsigned char cr, unsigned char cg, unsigned char cb);
void usbvideo_HexDump(const unsigned char *data, int len); void usbvideo_HexDump(const unsigned char *data, int len);
void usbvideo_SayAndWait(const char *what); void usbvideo_SayAndWait(const char *what);
void usbvideo_TestPattern(uvd_t *uvd, int fullframe, int pmode); void usbvideo_TestPattern(struct uvd *uvd, int fullframe, int pmode);
/* Memory allocation routines */ /* Memory allocation routines */
unsigned long usbvideo_kvirt_to_pa(unsigned long adr); unsigned long usbvideo_kvirt_to_pa(unsigned long adr);
...@@ -341,13 +341,13 @@ int usbvideo_register( ...@@ -341,13 +341,13 @@ int usbvideo_register(
const usbvideo_cb_t *cbTable, const usbvideo_cb_t *cbTable,
struct module *md, struct module *md,
const struct usb_device_id *id_table); const struct usb_device_id *id_table);
uvd_t *usbvideo_AllocateDevice(usbvideo_t *cams); struct uvd *usbvideo_AllocateDevice(usbvideo_t *cams);
int usbvideo_RegisterVideoDevice(uvd_t *uvd); int usbvideo_RegisterVideoDevice(struct uvd *uvd);
void usbvideo_Deregister(usbvideo_t **uvt); void usbvideo_Deregister(usbvideo_t **uvt);
int usbvideo_v4l_initialize(struct video_device *dev); int usbvideo_v4l_initialize(struct video_device *dev);
void usbvideo_DeinterlaceFrame(uvd_t *uvd, usbvideo_frame_t *frame); void usbvideo_DeinterlaceFrame(struct uvd *uvd, usbvideo_frame_t *frame);
/* /*
* This code performs bounds checking - use it when working with * This code performs bounds checking - use it when working with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment