^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * Driver for Rockchip Smart Card Reader Controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2012-2016 ROCKCHIP, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * This software is licensed under the terms of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * License version 2, as published by the Free Software Foundation, and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * may be copied, distributed, and modified under those terms.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * This program is distributed in the hope that it will be useful,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * but WITHOUT ANY WARRANTY; without even the implied warranty of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #ifndef __RK_SCR_API_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define __RK_SCR_API_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int scr_open(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int scr_close(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int scr_check_card_insert(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int scr_reset(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) int scr_get_atr_data(unsigned char *atr_buf, unsigned char *atr_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) ssize_t scr_write(unsigned char *buf, unsigned int write_cnt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) unsigned int *to_read_cnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) ssize_t scr_read(unsigned char *buf, unsigned int to_read_cnt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) unsigned int *have_read_cnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void scr_set_etu_duration(unsigned int F, unsigned int D);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) void scr_set_work_waitingtime(unsigned char wi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif /* __RK_SCR_API_H__ */