Rearrange AHCI code, attempt to read WIP

This commit is contained in:
Justin C. Miller
2018-05-11 01:24:59 -07:00
parent 8ae3eea19c
commit d06dd2ef43
15 changed files with 774 additions and 243 deletions

View File

@@ -6,7 +6,7 @@ template<typename E>
struct is_enum_bitfield { static constexpr bool value = false; };
#define IS_BITFIELD(name) \
template<> struct is_enum_bitfield<name> {static constexpr bool value=true;}
template<> struct ::is_enum_bitfield<name> {static constexpr bool value=true;}
template <typename E>
typename std::enable_if<is_enum_bitfield<E>::value,E>::type
@@ -84,7 +84,7 @@ operator ! (E rhs)
template <typename E>
typename std::enable_if<is_enum_bitfield<E>::value,bool>::type
bitfield_contains(E set, E flag)
bitfield_has(E set, E flag)
{
return (set & flag) == flag;
}