#ifndef _VGA_BALL_H
#define _VGA_BALL_H

#include <linux/ioctl.h>

typedef struct {
unsigned short red, green,blue,paddle_left,ball_h,ball_v,brick_status0,brick_status1,brick_status2,brick_status3,brick_status4,brick_status5,brick_status6, audio_choose,heart_status,score1,score2,score3,gamestatus;         
} hardware_p;
    

typedef struct {  
  hardware_p alldata;
} vga_ball_arg_t;

#define VGA_BALL_MAGIC 'q'

/* ioctls and their arguments */
#define VGA_BALL_WRITE_alldata _IOW(VGA_BALL_MAGIC, 1, vga_ball_arg_t *)
#define VGA_BALL_READ_alldata  _IOR(VGA_BALL_MAGIC, 2, vga_ball_arg_t *)

#endif
