define macro for older kernels

This commit is contained in:
rjkm 2021-12-06 15:40:05 +01:00
parent 56afb2acc1
commit be19cdb31d
1 changed files with 6 additions and 0 deletions

View File

@ -400,6 +400,12 @@ fail:
/****************************************************************************/
/****************************************************************************/
#ifndef PCI_DEVICE_SUB
#define PCI_DEVICE_SUB(vend, dev, subvend, subdev) \
.vendor = (vend), .device = (dev), \
.subvendor = (subvend), .subdevice = (subdev)
#endif
#define DDB_DEVICE_ANY(_device) \
{ PCI_DEVICE_SUB(0xdd01, _device, 0xdd01, PCI_ANY_ID) }