| #
c7fb772b |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
| #
2685996b |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass a
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
show more ...
|
| #
8021ad2e |
| 09-Apr-2018 |
jakllsch <jakllsch@NetBSD.org> |
Stop potential misuse of vendor names and USB vendor IDs in root hub device and string descriptors.
Firstly: Few vendors have identical PCI-SIG vendor IDs and USB-IF vendor IDs. As such, using the
Stop potential misuse of vendor names and USB vendor IDs in root hub device and string descriptors.
Firstly: Few vendors have identical PCI-SIG vendor IDs and USB-IF vendor IDs. As such, using the PCI vendor ID as a USB vendor ID may trample on whomever is allocated that USB vendor ID.
Secondly: The vendor of the host controller hardware implementation has little to nothing to do with our usbroothub implementation. Thus we should not potentially associate any problems therewith to such third party.
This change will result in root hubs being identified by USB Vendor ID 0x0000. Root hub vendor string will now be "NetBSD" (or, specifically: ostype). Product ID (0x0000) and product strings remain unchanged.
show more ...
|
| #
4e8e6643 |
| 23-Apr-2016 |
skrll <skrll@NetBSD.org> |
Merge nick-nhusb
- API / infrastructure changes to support memory management changes. - Memory management improvements and bug fixes. - HCDs should now be MP safe - conversion to KERNHIST based debu
Merge nick-nhusb
- API / infrastructure changes to support memory management changes. - Memory management improvements and bug fixes. - HCDs should now be MP safe - conversion to KERNHIST based debug - FS/LS isoc support on ehci(4). - conversion to kmem(9) - Some USB 3 support - mostly from Takahiro HAYASHI (t-hash). - interrupt transfers now get proper DMA operations - general bug fixes - kern/48308 - uhub status notification improvements - umass(4) probe fix (applied to HEAD already) - ohci(4) short transfer fix
show more ...
|
| #
d7039df4 |
| 21-Sep-2014 |
christos <christos@NetBSD.org> |
adjust for the new findvendor
|
| #
e58a356c |
| 29-Mar-2014 |
christos <christos@NetBSD.org> |
make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
| #
f5b064ee |
| 01-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
#include <sys/bus.h> instead of <machine/bus.h>.
|
| #
2d953f41 |
| 25-May-2010 |
pgoyette <pgoyette@NetBSD.org> |
Revert earlier changes to callers of pci_find{vendor,product} since the original routine entrypoint name has been restored.
Requested by dyoung@ and mrg@
|
| #
b18bc9ea |
| 24-May-2010 |
pgoyette <pgoyette@NetBSD.org> |
Update all callers of the pci_find{vendor,product} routines to now call these routines through their global pointers.
|
| #
74341862 |
| 04-Dec-2009 |
njoly <njoly@NetBSD.org> |
Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
| #
ad6eeaad |
| 04-May-2009 |
cegger <cegger@NetBSD.org> |
struct device * -> device_t, use device_private() No functional changes intended.
|
| #
02018c59 |
| 06-Jul-2008 |
cegger <cegger@NetBSD.org> |
ryo shimizu: gscsehci doesn't work.
Correctly initialize softc. Fix from PR port-i386/39109.
|
| #
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
| #
fd0ded75 |
| 28-Mar-2008 |
drochner <drochner@NetBSD.org> |
split device/softc for USB host controllers and the usb (control) device, this is hairy stuff, and I've only tested with uhci/ehci at pci, please test the rest and report problems
|
| #
424b422c |
| 08-Jul-2007 |
jmcneill <jmcneill@NetBSD.org> |
Add gcscehci(4), an EHCI glue driver for the AMD CS5536 companion controller. This driver enables USB 2.0 high speed support on the Soekris net5501 (comBIOS ver. 1.31m).
|