aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_hub_acpi.c
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* usb(4): Substitute "unsigned int" using the equivalent and shorter ↵Hans Petter Selasky2022-10-071-2/+2
| | | | | | | "unsigned" keyword. MFC after: 1 week Sponsored by: NVIDIA Networking
* usb: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-061-3/+2
|
* usb(4): Use the global BUS topology lock where appropriate.Hans Petter Selasky2022-03-171-2/+2
| | | | | MFC after: 1 week Sponsored by: NVIDIA Networking
* Add USB UEFI locator supportWarner Losh2022-03-011-2/+2
| | | | | | Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32788
* bus: Add ACPI locator supportWarner Losh2022-03-011-0/+12
| | | | | | | | | | | Add support for printing ACPI paths. This is a bit of a degenerate case for this interface since it's always just the device handle if the device has one. But it is illustrtive of how to do this for a few nodes in the tree. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32748
* newbus: Move from bus_child_{pnpinfo,location}_src to ↵Warner Losh2021-06-231-9/+6
| | | | | | | | | | | | | | | | | | | | | | bus_child_{pnpinfo,location} with sbuf Now that the upper layers all go through a layer to tie into these information functions that translates an sbuf into char * and len. The current interface suffers issues of what to do in cases of truncation, etc. Instead, migrate all these functions to using struct sbuf and these issues go away. The caller is also in charge of any memory allocation and/or expansion that's needed during this process. Create a bus_generic_child_{pnpinfo,location} and make it default. It just returns success. This is for those busses that have no information for these items. Migrate the now-empty routines to using this as appropriate. Document these new interfaces with man pages, and oversight from before. Reviewed by: jhb, bcr Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29937
* usb: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-4/+1
| | | | Notes: svn path=/head/; revision=365084
* Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (2 of many)Pawel Biernacki2020-02-151-10/+8
| | | | | | | | | | | | | | | r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes. This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags. Reviewed by: hselasky, kib Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D23632 Notes: svn path=/head/; revision=357972
* Fix format spec for ILP32.Konstantin Belousov2019-08-031-1/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=350562
* Add per hub sysctl to expose port information for phyisical form etc.Takanori Watanabe2019-08-031-64/+221
| | | | | | | | Reviewed by:hselasky Differential Revision: https://reviews.freebsd.org/D20865 Notes: svn path=/head/; revision=350558
* Put USB ACPI code into own module, uacpi.ko.Hans Petter Selasky2019-07-081-3/+7
| | | | | | | | | The code needs more testing before being enabled by default. Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=349851
* Minor code cleanup of USB ACPI code after r349161.Hans Petter Selasky2019-07-081-120/+109
| | | | | | | | | | | While at it fix an invalid memory access issue when attaching external USB HUBs, which are not mapped by ACPI, due to missing status check when calling AcpiGetObjectInfo() from acpi_usb_hub_port_probe_cb(). Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=349844
* Fix the case where no root hub object while host controller object exist in ↵Takanori Watanabe2019-06-201-6/+11
| | | | | | | | | | | | ACPI namespace. Also you can disable ACPI support for USB by setting debug.acpi.disabled="usb" PR: 238711 Notes: svn path=/head/; revision=349251
* Add ACPI support for USB driver.Takanori Watanabe2019-06-171-0/+451
This adds ACPI device path on devinfo(8) output and show value of _UPC(usb port capabilities), _PLD (physical location of device) when hw.usb.debug >= 1 . Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D20630 Notes: svn path=/head/; revision=349161