18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
48c2ecf20Sopenharmony_ci * Copyright (C) 2001 RidgeRun, Inc (glonnon@ridgerun.com)
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef __UM_UBD_USER_H
88c2ecf20Sopenharmony_ci#define __UM_UBD_USER_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciextern int start_io_thread(unsigned long sp, int *fds_out);
118c2ecf20Sopenharmony_ciextern int io_thread(void *arg);
128c2ecf20Sopenharmony_ciextern int kernel_fd;
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciextern int ubd_read_poll(int timeout);
158c2ecf20Sopenharmony_ciextern int ubd_write_poll(int timeout);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define UBD_REQ_BUFFER_SIZE 64
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif
208c2ecf20Sopenharmony_ci
21