hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/input/touchscreen/gt9xx/gt9xx.h
....@@ -154,8 +154,8 @@
154154 struct regulator *tp_regulator;
155155 };
156156
157
-extern u16 show_len;
158
-extern u16 total_len;
157
+//extern u16 show_len;
158
+//extern u16 total_len;
159159
160160
161161 //*************************** PART2:TODO define **********************************
....@@ -391,7 +391,22 @@
391391 }while (0)
392392
393393 //*****************************End of Part III********************************
394
-#define TRUE 1
395
-#define FALSE 0
394
+//#define TRUE 1
395
+//#define FALSE 0
396
+
397
+extern struct i2c_client *gtp_i2c_connect_client;
398
+
399
+s32 gtp_fw_startup(struct i2c_client *client);
400
+s32 gtp_i2c_read_dbl_check(struct i2c_client *client, u16 addr, u8 *rxbuf, int len);
401
+void gtp_irq_disable(struct goodix_ts_data *ts);
402
+void gtp_irq_enable(struct goodix_ts_data *ts);
403
+s32 gtp_read_version(struct i2c_client *client, u16 *version);
404
+void gtp_reset_guitar(struct i2c_client *client, s32 ms);
405
+s32 gtp_send_cfg(struct i2c_client *client);
406
+u8 gtp_gup_check_fs_mounted(char *path_name);
407
+s32 gtp_gup_fw_download_proc(void *dir, u8 dwn_mode);
408
+s32 gtp_i2c_read_bytes(struct i2c_client *client, u16 addr, u8 *buf, s32 len);
409
+s32 gtp_i2c_write_bytes(struct i2c_client *client, u16 addr, u8 *buf, s32 len);
410
+s32 gtp_gup_clk_calibration(void);
396411
397412 #endif /* _GOODIX_GT9XX_H_ */