18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __PORT_H__ 78c2ecf20Sopenharmony_ci#define __PORT_H__ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciextern void *port_data(int port); 108c2ecf20Sopenharmony_ciextern int port_wait(void *data); 118c2ecf20Sopenharmony_ciextern void port_kern_close(void *d); 128c2ecf20Sopenharmony_ciextern int port_connection(int fd, int *socket_out, int *pid_out); 138c2ecf20Sopenharmony_ciextern int port_listen_fd(int port); 148c2ecf20Sopenharmony_ciextern void port_read(int fd, void *data); 158c2ecf20Sopenharmony_ciextern void port_kern_free(void *d); 168c2ecf20Sopenharmony_ciextern int port_rcv_fd(int fd); 178c2ecf20Sopenharmony_ciextern void port_remove_dev(void *d); 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 21