Move device info into ddbridge-hw.c and use get_ddb_info

in ddbridge.c, ddbridge-core.c and octonet.c to get
ddb_info for specific devices.

This unifies the method for getting the device info for all hardware.
It also no longer relies on driver_data in struct pci_dev_id
which is deprecated to be used as a pointer.
This commit is contained in:
Ralph Metzler
2017-07-24 22:24:47 +02:00
parent 862c7bfc60
commit 3556d6464b
4 changed files with 21 additions and 687 deletions

View File

@@ -750,4 +750,8 @@ int ddbridge_flashread(struct ddb *dev, u32 link, u8 *buf, u32 addr, u32 len);
#define DDBRIDGE_VERSION "0.9.29"
/* linked functions */
struct ddb_info *get_ddb_info(u16 vendor, u16 device, u16 subvendor, u16 subdevice);
#endif