/* * Copyright (C) 2003-2008 Takahiro Hirofuchi * * This 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 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. */ #ifndef __USBIP_STUB_H #define __USBIP_STUB_H #include #include #include #include #include #include #define STUB_BUSID_OTHER 0 #define STUB_BUSID_REMOV 1 #define STUB_BUSID_ADDED 2 #define STUB_BUSID_ALLOC 3 struct stub_device { struct usb_device *udev; struct usbip_device ud; __u32 devid; /* * stub_priv preserves private data of each urb. * It is allocated as stub_priv_cache and assigned to urb->context. * * stub_priv is always linked to any one of 3 lists; * priv_init: linked to this until the comletion of a urb. * priv_tx : linked to this after the completion of a urb. * priv_free: linked to this after the sending of the result. * * Any of these list operations should be locked by priv_lock. */ spinlock_t priv_lock; struct list_head priv_init; struct list_head priv_tx; struct list_head priv_free; /* see comments for unlinking in stub_rx.c */ struct list_head unlink_tx; struct list_head unlink_free; wait_queue_head_t tx_waitq; }; /* private data into urb->priv */ struct stub_priv { unsigned long seqnum; struct list_head list; struct stub_device *sdev; struct urb *urb; int unlinking; }; struct stub_unlink { unsigned long seqnum; struct list_head list; __u32 status; }; /* same as SYSFS_BUS_ID_SIZE */ #define BUSID_SIZE 32 struct bus_id_priv { char name[BUSID_SIZE]; char status; int interf_count; struct stub_device *sdev; struct usb_device *udev; char shutdown_busid; }; /* stub_priv is allocated from stub_priv_cache */ extern struct kmem_cache *stub_priv_cache; /* stub_dev.c */ extern struct usb_device_driver stub_driver; /* stub_main.c */ struct bus_id_priv *get_busid_priv(const char *busid); int del_match_busid(char *busid); void stub_device_cleanup_urbs(struct stub_device *sdev); /* stub_rx.c */ int stub_rx_loop(void *data); /* stub_tx.c */ void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum, __u32 status); void stub_complete(struct urb *urb); int stub_tx_loop(void *data); #endif /* __USBIP_STUB_H */ nux/net-next.git/log/?h=nds-private-remove&id=cdb478e5e413864df73096ef4f0e5d518395a92b'>root/drivers/usb/dwc3/Kconfig
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 19:36:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 19:36:04 -0800
commit8b1b41ee74f9712c355d66dc105bbea663ae0afd (patch)
tree4c3f410f3cb01c7b00b474e376a60f27a7ff99a8 /drivers/usb/host/xhci-mvebu.h
parentf7d6040aa45df6ffd9e891114125dc919f18b96b (diff)
parentbfb34527a32a1a576d9bfb7026d3ab0369a6cd60 (diff)
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fixes from Dan Williams: "None of these are showstoppers for 4.10 and could wait for 4.11 merge window, but they are low enough risk for this late in the cycle and the fixes have waiting users . They have received a build success notification from the 0day robot, pass the latest ndctl unit tests, and appeared in next: - Fix a crash that can result when SIGINT is sent to a process that is awaiting completion of an address range scrub command. We were not properly cleaning up the workqueue after wait_event_interruptible(). - Fix a memory hotplug failure condition that results from not reserving enough space out of persistent memory for the memmap. By default we align to 2M allocations that the memory hotplug code assumes, but if the administrator specifies a non-default 4K-alignment then we can fail to correctly size the reservation. - A one line fix to improve the predictability of libnvdimm block device names. A common operation is to reconfigure /dev/pmem0 into a different mode. For example, a reconfiguration might set a new mode that reserves some of the capacity for a struct page memmap array. It surprises users if the device name changes to "/dev/pmem0.1" after the mode change and then back to /dev/pmem0 after a reboot. - Add 'const' to some function pointer tables" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: libnvdimm, pfn: fix memmap reservation size versus 4K alignment acpi, nfit: fix acpi_nfit_flush_probe() crash libnvdimm, namespace: do not delete namespace-id 0 nvdimm: constify device_type structures
Diffstat (limited to 'drivers/usb/host/xhci-mvebu.h')