diff options
author | Landon J. Fuller <landonf@FreeBSD.org> | 2016-08-28 20:39:53 +0000 |
---|---|---|
committer | Landon J. Fuller <landonf@FreeBSD.org> | 2016-08-28 20:39:53 +0000 |
commit | d851916ef2373be39838427fcdc5ea4ef097b120 (patch) | |
tree | d66b7640d2a612ebece1414b4cc9fb3acefee3ed /sys/dev/bhnd/bhnd.h | |
parent | 99cbd70f0b8da8e6547f63651c786efdd02081ab (diff) | |
download | src-d851916ef2373be39838427fcdc5ea4ef097b120.tar.gz src-d851916ef2373be39838427fcdc5ea4ef097b120.zip |
bhnd(4): Apply the siba chipid ncore fixup in bhnd_read_chipid(), ensuring
that bhndb et al are always operating on a valid core count.
Approved by: adrian (mentor, implicit)
Notes
Notes:
svn path=/head/; revision=304967
Diffstat (limited to 'sys/dev/bhnd/bhnd.h')
-rw-r--r-- | sys/dev/bhnd/bhnd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/bhnd/bhnd.h b/sys/dev/bhnd/bhnd.h index 95512629df78..9b5db371359a 100644 --- a/sys/dev/bhnd/bhnd.h +++ b/sys/dev/bhnd/bhnd.h @@ -317,6 +317,10 @@ void bhnd_release_resources(device_t dev, struct bhnd_chipid bhnd_parse_chipid(uint32_t idreg, bhnd_addr_t enum_addr); +int bhnd_chipid_fixed_ncores( + const struct bhnd_chipid *cid, + uint16_t chipc_hwrev, uint8_t *ncores); + int bhnd_read_chipid(device_t dev, struct resource_spec *rs, bus_size_t chipc_offset, |