mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Add FreeBSD stable/10 version checks for the availability of the
CDAI_FLAG_NONE advanced information CCB flag. Support for the flag was merged to stable/10 in r279329, and the __FreeBSD_version in stable/10 was bumped to 1001510. Check for that version in the mps(4) and mpr(4) drivers when determining whether to use the flag. Sponsored by: Spectra Logic MFC after: 3 days
This commit is contained in:
1 parent
c4b725f42a
commit
6c0541fa8e
2 files changed
+4
-2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279336
No files matched your search
@@ -3082,7 +3082,8 @@ mprsas_async(void *callback_arg, uint32_t code, struct cam_path *path,
|
||||
cdai.ccb_h.func_code = XPT_DEV_ADVINFO;
|
||||
cdai.ccb_h.flags = CAM_DIR_IN;
|
||||
cdai.buftype = CDAI_TYPE_RCAPLONG;
|
||||
#if __FreeBSD_version >= 1100061
|
||||
#if (__FreeBSD_version >= 1100061) || \
|
||||
((__FreeBSD_version >= 1001510) && (__FreeBSD_version < 1100000))
|
||||
cdai.flags = CDAI_FLAG_NONE;
|
||||
#else
|
||||
cdai.flags = 0;
|
||||
|
||||
@@ -3277,7 +3277,8 @@ mpssas_async(void *callback_arg, uint32_t code, struct cam_path *path,
|
||||
cdai.ccb_h.func_code = XPT_DEV_ADVINFO;
|
||||
cdai.ccb_h.flags = CAM_DIR_IN;
|
||||
cdai.buftype = CDAI_TYPE_RCAPLONG;
|
||||
#if __FreeBSD_version >= 1100061
|
||||
#if (__FreeBSD_version >= 1100061) || \
|
||||
((__FreeBSD_version >= 1001510) && (__FreeBSD_version < 1100000))
|
||||
cdai.flags = CDAI_FLAG_NONE;
|
||||
#else
|
||||
cdai.flags = 0;
|
||||
|
||||
Reference in new issue
Block a user