usb_error.c (193045) | usb_error.c (194228) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_error.c 193045 2009-05-29 18:46:57Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_error.c 194228 2009-06-15 01:02:43Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 47 unchanged lines hidden (view full) --- 57 [USB_ERR_DMA_LOAD_FAILED] = "USB_ERR_DMA_LOAD_FAILED", 58 [USB_ERR_BAD_CONTEXT] = "USB_ERR_BAD_CONTEXT", 59 [USB_ERR_NO_ROOT_HUB] = "USB_ERR_NO_ROOT_HUB", 60 [USB_ERR_NO_INTR_THREAD] = "USB_ERR_NO_INTR_THREAD", 61 [USB_ERR_NOT_LOCKED] = "USB_ERR_NOT_LOCKED", 62}; 63 64/*------------------------------------------------------------------------* | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 47 unchanged lines hidden (view full) --- 57 [USB_ERR_DMA_LOAD_FAILED] = "USB_ERR_DMA_LOAD_FAILED", 58 [USB_ERR_BAD_CONTEXT] = "USB_ERR_BAD_CONTEXT", 59 [USB_ERR_NO_ROOT_HUB] = "USB_ERR_NO_ROOT_HUB", 60 [USB_ERR_NO_INTR_THREAD] = "USB_ERR_NO_INTR_THREAD", 61 [USB_ERR_NOT_LOCKED] = "USB_ERR_NOT_LOCKED", 62}; 63 64/*------------------------------------------------------------------------* |
65 * usb2_errstr | 65 * usbd_errstr |
66 * 67 * This function converts an USB error code into a string. 68 *------------------------------------------------------------------------*/ 69const char * | 66 * 67 * This function converts an USB error code into a string. 68 *------------------------------------------------------------------------*/ 69const char * |
70usb2_errstr(usb_error_t err) | 70usbd_errstr(usb_error_t err) |
71{ 72 return (err < USB_ERR_MAX ? usb_errstr_table[err] : "USB_ERR_UNKNOWN"); 73} | 71{ 72 return (err < USB_ERR_MAX ? usb_errstr_table[err] : "USB_ERR_UNKNOWN"); 73} |