Skip to content

Commit

Permalink
merge latest mieze/master
Browse files Browse the repository at this point in the history
  • Loading branch information
RehabMan committed Nov 1, 2018
2 parents deb1dff + 7be90f7 commit 4b19a49
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
24 changes: 21 additions & 3 deletions IntelMausiEthernet.xcodeproj/project.pbxproj
Expand Up @@ -240,7 +240,7 @@
D3CB5B6C1A4394A800A37FAA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0820;
LastUpgradeCheck = 0930;
ORGANIZATIONNAME = "Laura Müller";
};
buildConfigurationList = D3CB5B6F1A4394A800A37FAA /* Build configuration list for PBXProject "IntelMausiEthernet" */;
Expand Down Expand Up @@ -308,14 +308,22 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
Expand Down Expand Up @@ -357,14 +365,22 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
Expand Down Expand Up @@ -398,6 +414,7 @@
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_ENABLE_MODULES = NO;
CLANG_ENABLE_OBJC_ARC = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = $MODULE_VERSION;
GCC_CW_ASM_SYNTAX = NO;
Expand All @@ -407,7 +424,7 @@
GCC_PREFIX_HEADER = "IntelMausiEthernet/IntelMausiEthernetV2-Prefix.pch";
INFOPLIST_FILE = "IntelMausiEthernet/IntelMausiEthernet-Info.plist";
MODULE_NAME = com.insanelymac.IntelMausiEthernet;
MODULE_VERSION = 2.4.0d0;
MODULE_VERSION = 2.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.insanelymac.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = IntelMausiEthernet;
WRAPPER_EXTENSION = kext;
Expand All @@ -421,6 +438,7 @@
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_ENABLE_MODULES = NO;
CLANG_ENABLE_OBJC_ARC = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = $MODULE_VERSION;
GCC_CW_ASM_SYNTAX = NO;
Expand All @@ -430,7 +448,7 @@
GCC_PREFIX_HEADER = "IntelMausiEthernet/IntelMausiEthernetV2-Prefix.pch";
INFOPLIST_FILE = "IntelMausiEthernet/IntelMausiEthernet-Info.plist";
MODULE_NAME = com.insanelymac.IntelMausiEthernet;
MODULE_VERSION = 2.4.0d0;
MODULE_VERSION = 2.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.insanelymac.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = IntelMausiEthernet;
WRAPPER_EXTENSION = kext;
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3CB5B751A4394A800A37FAA"
BlueprintIdentifier = "D3F3189D1AB3B0E300DA9D9A"
BuildableName = "IntelMausiEthernet.kext"
BlueprintName = "IntelMausiEthernet"
ReferencedContainer = "container:IntelMausiEthernet.xcodeproj">
Expand Down Expand Up @@ -45,7 +45,7 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3CB5B751A4394A800A37FAA"
BlueprintIdentifier = "D3F3189D1AB3B0E300DA9D9A"
BuildableName = "IntelMausiEthernet.kext"
BlueprintName = "IntelMausiEthernet"
ReferencedContainer = "container:IntelMausiEthernet.xcodeproj">
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
9 changes: 7 additions & 2 deletions IntelMausiEthernet/IntelMausiEthernet.cpp
Expand Up @@ -1595,7 +1595,8 @@ void IntelMausi::setLinkUp()
DebugLog("Ethernet [IntelMausi]: MANC=0x%08x\n", intelReadMem32(E1000_MANC));
DebugLog("Ethernet [IntelMausi]: MANC2H=0x%08x\n", intelReadMem32(E1000_MANC2H));
DebugLog("Ethernet [IntelMausi]: LTRV=0x%08x\n", intelReadMem32(E1000_LTRV));
DebugLog("Ethernet [IntelMausi]: PBA=0x%08x\n", intelReadMem32(E1000_PBA));
DebugLog("Ethernet [IntelMausi]: FWSM=0x%08x\n", intelReadMem32(E1000_FWSM));
DebugLog("Ethernet [IntelMausi]: SWSM2=0x%08x\n", intelReadMem32(E1000_SWSM2));
}

void IntelMausi::setLinkDown()
Expand Down Expand Up @@ -1984,8 +1985,12 @@ bool IntelMausi::checkForDeadlock()
if (++deadlockWarn >= kTxDeadlockTreshhold) {
mbuf_t m = txBufArray[txDirtyIndex].mbuf;
UInt32 pktSize;
UInt16 i, index;
UInt16 index;

#ifdef DEBUG
UInt16 i;
UInt16 stalledIndex = txDirtyIndex;
#endif
//UInt8 data;

IOLog("Ethernet [IntelMausi]: Tx stalled? Resetting chipset. txDirtyDescIndex=%u, STATUS=0x%08x, TCTL=0x%08x.\n", txDirtyIndex, intelReadMem32(E1000_STATUS), intelReadMem32(E1000_TCTL));
Expand Down

0 comments on commit 4b19a49

Please sign in to comment.