/* e1000_check_64k_bound - check that memory doesn't cross 64kB boundary @adapter: address of board private structure @start: address of beginning of memory @len: length of memory  */
static bool e1000_check_64k_bound(struct e1000_adapter *adapter, void *start, unsigned long len)
/* e1000_check_64k_bound - check that memory doesn't cross 64kB boundary @adapter: address of board private structure @start: address of beginning of memory @len: length of memory  */
static bool e1000_check_64k_bound(struct e1000_adapter *adapter, void *start, unsigned long len)
{
	struct e1000_hw *hw = &adapter->hw;
	unsigned long begin = (unsigned long)start;
	unsigned long end = begin + len;
	if (hw->mac_type == e1000_82545 ||
	    hw->mac_type == e1000_82546) {
		return ((begin ^ (end - 1)) >> 16) != 0 ? false : true;
	}
	return true;
}