/* This file is automatically generated with "make proto". DO NOT EDIT */

u32 readl(volatile void *addr);
void writel(u32 v, void *addr);
int mchip_hsize(void);
int mchip_vsize(void);
void mchip_hic_stop(void);
void mchip_set_framerate(double framerate);
void mchip_take_picture(void);
void mchip_get_picture(u8 *buf, int bufsize);
void mchip_continuous_start(void);
int mchip_continuous_read(u8 *buf, int bufsize);
int mchip_compress_frame(u8 *buf, int bufsize);
int mchip_uncompress_frame(u8 *img, int imgsize, u8 *buf, int bufsize);
void mchip_cont_compression_start(void);
int mchip_cont_compression_read(u8 *buf, int bufsize);
void mchip_subsample(int sub);
void mchip_init(void);
void mchip_shutdown(void);
int main(int argc, char *argv[]);
void dump_pci_if_registers(void);
void print_bit(const char *prefix,
		      int regpos, const char *true, const char *false);
void dump_hic_registers(void);
void dump_mcc_registers(void);
void dump_vrj_registers(void);
void dump_all_registers(void);
void spic_camera_off(void);
void spic_camera_on(void);
int spic_capture_pressed(void);
int spic_jogger_pressed(void);
int spic_jogger_turned(void);
int spic_jogger(void);
void spic_settings(int brightness, int contrast, int hue, int color, int sharpness, int picture, int agc);
void spic_setup_vga(void);
void spic_show_settings(void);
void spic_init(void);
void sdelay(u32 usecs);
void spic_shutdown(int power_off);
int pci_find_device(u32 vendor, u32 device);
int pci_config_write_u8(int fd, int ofs, u8 v);
int pci_config_write_u16(int fd, int ofs, u16 v);
int pci_config_write_u32(int fd, int ofs, u32 v);
int pci_config_read_u8(int fd, int ofs, u8 *v);
int pci_config_read_u16(int fd, int ofs, u16 *v);
int pci_config_read_u32(int fd, int ofs, u32 *v);
u32 pci_read_base_address(u32 vendor, u32 device);
void yuv_convert(u8 *buf, u8 *rgb, int xsize, int ysize);
void yuv_block_convert(u8 *buf, u8 *rgb, int xsize, int ysize);
void timer_start(void);
double timer_end(void);
void avi_start(int fd);
void avi_add(int fd, u8 *buf, int size);
void avi_end(int fd, int width, int height, int fps);
void avi_explode(char *fname);
void cmd_take_picture(char *fname);
void cmd_continuous_out(char *fname, double framerate);
void cmd_jpeg_capture(char *fname);
void cmd_avi_capture(char *fname, double captime, double framerate);
void cmd_mjpeg_capture(char *fname, int numframes, double framerate);
void cmd_snap(double framerate);
void cmd_test(char *fname);
void display_rgb(u8 *rgb, int width, int height, char *name);
void display_image(char *fname);
void display_jpeg_image(u8 *img, int size);
void display_image(char *fname);
void *ptable_init(int npages, u32 *pt_addr);
u16 *jpeg_quantisation_tables(int *size, int quality);
u16 *jpeg_huffman_tables(int *size);
