1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * names.h -- USB name database manipul 3 * names.h -- USB name database manipulation routines 4 * 4 * 5 * Copyright (C) 1999, 2000 Thomas Saile 5 * Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch) 6 * 6 * 7 * Copyright (C) 2005 Takahiro Hirofuchi 7 * Copyright (C) 2005 Takahiro Hirofuchi 8 * - names_free() is added. 8 * - names_free() is added. 9 */ 9 */ 10 10 11 #ifndef _NAMES_H 11 #ifndef _NAMES_H 12 #define _NAMES_H 12 #define _NAMES_H 13 13 14 #include <sys/types.h> 14 #include <sys/types.h> 15 15 16 /* used by usbip_common.c */ 16 /* used by usbip_common.c */ 17 extern const char *names_vendor(u_int16_t vend 17 extern const char *names_vendor(u_int16_t vendorid); 18 extern const char *names_product(u_int16_t ven 18 extern const char *names_product(u_int16_t vendorid, u_int16_t productid); 19 extern const char *names_class(u_int8_t classi 19 extern const char *names_class(u_int8_t classid); 20 extern const char *names_subclass(u_int8_t cla 20 extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid); 21 extern const char *names_protocol(u_int8_t cla 21 extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid, 22 u_int8_t pro 22 u_int8_t protocolid); 23 extern int names_init(char *n); 23 extern int names_init(char *n); 24 extern void names_free(void); 24 extern void names_free(void); 25 25 26 #endif /* _NAMES_H */ 26 #endif /* _NAMES_H */ 27 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.