* Applied patch by Justin O'Dell: the 8168 MMIO region is obviously in the
third range, not the first. * This finally closes #1853 again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26904 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -512,12 +512,12 @@ rtl8169_open(const char *name, uint32 flags, void** cookie)
|
|||||||
|
|
||||||
// map registers into memory
|
// map registers into memory
|
||||||
|
|
||||||
if (device->pciInfo->device == 0x8168)
|
if (device->pciInfo->device_id == 0x8168)
|
||||||
mmioIndex = 0;
|
mmioIndex = 2;
|
||||||
else
|
else
|
||||||
mmioIndex = 1;
|
mmioIndex = 1;
|
||||||
|
|
||||||
TRACE("hardware register address %p\n",
|
TRACE("hardware register address [%i] %p\n", mmioIndex,
|
||||||
(void *)device->pciInfo->u.h0.base_registers[mmioIndex]);
|
(void *)device->pciInfo->u.h0.base_registers[mmioIndex]);
|
||||||
|
|
||||||
device->regArea = map_mem(&device->regAddr,
|
device->regArea = map_mem(&device->regAddr,
|
||||||
|
|||||||
Reference in New Issue
Block a user