/* * * Copyright (c) 2003 by Karsten Wiese * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ enum E_In84{ eFader0 = 0, eFader1, eFader2, eFader3, eFader4, eFader5, eFader6, eFader7, eFaderM, eTransport, eModifier = 10, eFilterSelect, eSelect, eMute, eSwitch = 15, eWheelGain, eWheelFreq, eWheelQ, eWheelPan, eWheel = 20 }; #define T_RECORD 1 #define T_PLAY 2 #define T_STOP 4 #define T_F_FWD 8 #define T_REW 0x10 #define T_SOLO 0x20 #define T_REC 0x40 #define T_NULL 0x80 struct us428_ctls { unsigned char Fader[9]; unsigned char Transport; unsigned char Modifier; unsigned char FilterSelect; unsigned char Select; unsigned char Mute; unsigned char UNKNOWN; unsigned char Switch; unsigned char Wheel[5]; }; struct us428_setByte { unsigned char Offset, Value; }; enum { eLT_Volume = 0, eLT_Light }; struct usX2Y_volume { unsigned char Channel, LH, LL, RH, RL; }; struct us428_lights { struct us428_setByte Light[7]; }; struct us428_p4out { char type; union { struct usX2Y_volume vol; struct us428_lights lights; } val; }; #define N_us428_ctl_BUFS 16 #define N_us428_p4out_BUFS 16 struct us428ctls_sharedmem{ struct us428_ctls CtlSnapShot[N_us428_ctl_BUFS]; int CtlSnapShotDiffersAt[N_us428_ctl_BUFS]; int CtlSnapShotLast, CtlSnapShotRed; struct us428_p4out p4out[N_us428_p4out_BUFS]; int p4outLast, p4outSent; }; ca9cf3f'>commitdiff
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 13:22:54 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 13:22:54 -0800
commit55aac6ef53e114c28170ee3f79065cfa8ca9cf3f (patch)
tree7eac44b0f280f8faea96c9ff09d2f650f04e3d46 /drivers/usb/dwc3/gadget.c
parent2b369478e1856e3809f439495567474725931585 (diff)
parentb22bc27868e8c11fe3f00937a341b44f80b50364 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Pull SCSI target fixes from Nicholas Bellinger: "This target series for v4.10 contains fixes which address a few long-standing bugs that DATERA's QA + automation teams have uncovered while putting v4.1.y target code into production usage. We've been running the top three in our nightly automated regression runs for the last two months, and the COMPARE_AND_WRITE fix Mr. Gary Guo has been manually verifying against a four node ESX cluster this past week. Note all of them have CC' stable tags. Summary: - Fix a bug with ESX EXTENDED_COPY + SAM_STAT_RESERVATION_CONFLICT status, where target_core_xcopy.c logic was incorrectly returning SAM_STAT_CHECK_CONDITION for all non SAM_STAT_GOOD cases (Nixon Vincent) - Fix a TMR LUN_RESET hung task bug while other in-flight TMRs are being aborted, before the new one had been dispatched into tmr_wq (Rob Millner) - Fix a long standing double free OOPs, where a dynamically generated 'demo-mode' NodeACL has multiple sessions associated with it, and the /sys/kernel/config/target/$FABRIC/$WWN/ subsequently disables demo-mode, but never converts the dynamic ACL into a explicit ACL (Rob Millner) - Fix a long standing reference leak with ESX VAAI COMPARE_AND_WRITE when the second phase WRITE COMMIT command fails, resulting in CHECK_CONDITION response never being sent and se_cmd->cmd_kref never reaching zero (Gary Guo) Beyond these items on v4.1.y we've reproduced, fixed, and run through our regression test suite using iscsi-target exports, there are two additional outstanding list items: - Remove a >= v4.2 RCU conversion BUG_ON that would trigger when dynamic node NodeACLs where being converted to explicit NodeACLs. The patch drops the BUG_ON to follow how pre RCU conversion worked for this special case (Benjamin Estrabaud) - Add ibmvscsis target_core_fabric_ops->max_data_sg_nent assignment to match what IBM's Virtual SCSI hypervisor is already enforcing at transport layer. (Bryant Ly + Steven Royer)" * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: ibmvscsis: Add SGL limit target: Fix COMPARE_AND_WRITE ref leak for non GOOD status target: Fix multi-session dynamic se_node_acl double free OOPs target: Fix early transport_generic_handle_tmr abort scenario target: Use correct SCSI status during EXTENDED_COPY exception target: Don't BUG_ON during NodeACL dynamic -> explicit conversion
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')