I feel like a law requiring open hardware, or even just requiring hardware to interoperate with any computer software system through the documentation published by the manufacturer, would very quickly solve this problem, at least for the bigger corpos. Of course, the law would also mandate that the means by which interoperability is acheived is no more difficult/complex than whatever the manufacturer does to communicate with the hardware.
This would be absolutely fantastic for ensuring that China (which would have no such law) would be able to maintain technological parity with the United States, especially in important fields like AI and weapons.
It's basically the default state. There's a certain webcam sensor manufacturer that has notoriously terrible public datasheets, that basically tell you nothing and all the drivers that exist are just reverse-engineered blobs of 'write this value to this address'. I've heard from people who have signed NDAs and such with them, working with larger projects where you would expect to maybe get the full datasheet. Nope, they're not working with anything better in terms of documentation, what you get is being able to talk with their engineers to maybe figure out how to do what you want.