mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
[bhnd] Add support for matching of MIPS & ARM cores
Extend macros for MIPS & ARM cores. Now only BCM cores can be matched by matching mechanism. Submitted by: Michael Zhilin <mizhka@gmail.com> Differential Revision: https://reviews.freebsd.org/D6246
This commit is contained in:
parent
010e93758f
commit
9d8ae244a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299989
@ -316,12 +316,18 @@ struct bhnd_device {
|
||||
uint32_t device_flags; /**< required BHND_DF_* flags */
|
||||
};
|
||||
|
||||
#define _BHND_DEVICE(_device, _desc, _quirks, _flags, ...) \
|
||||
{ BHND_CORE_MATCH(BHND_MFGID_BCM, BHND_COREID_ ## _device, \
|
||||
#define _BHND_DEVICE(_vendor, _device, _desc, _quirks, _flags, ...) \
|
||||
{ BHND_CORE_MATCH(BHND_MFGID_ ## _vendor, BHND_COREID_ ## _device, \
|
||||
BHND_HWREV_ANY), _desc, _quirks, _flags }
|
||||
|
||||
#define BHND_MIPS_DEVICE(_device, _desc, _quirks, ...) \
|
||||
_BHND_DEVICE(MIPS, _device, _desc, _quirks, ## __VA_ARGS__, 0)
|
||||
|
||||
#define BHND_ARM_DEVICE(_device, _desc, _quirks, ...) \
|
||||
_BHND_DEVICE(ARM, _device, _desc, _quirks, ## __VA_ARGS__, 0)
|
||||
|
||||
#define BHND_DEVICE(_device, _desc, _quirks, ...) \
|
||||
_BHND_DEVICE(_device, _desc, _quirks, ## __VA_ARGS__, 0)
|
||||
_BHND_DEVICE(BCM, _device, _desc, _quirks, ## __VA_ARGS__, 0)
|
||||
|
||||
#define BHND_DEVICE_END { BHND_CORE_MATCH_ANY, NULL, NULL, 0 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user