* 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:
parent
696b8e46f3
commit
96e0e6d137
@ -512,12 +512,12 @@ rtl8169_open(const char *name, uint32 flags, void** cookie)
|
||||
|
||||
// map registers into memory
|
||||
|
||||
if (device->pciInfo->device == 0x8168)
|
||||
mmioIndex = 0;
|
||||
if (device->pciInfo->device_id == 0x8168)
|
||||
mmioIndex = 2;
|
||||
else
|
||||
mmioIndex = 1;
|
||||
|
||||
TRACE("hardware register address %p\n",
|
||||
TRACE("hardware register address [%i] %p\n", mmioIndex,
|
||||
(void *)device->pciInfo->u.h0.base_registers[mmioIndex]);
|
||||
|
||||
device->regArea = map_mem(&device->regAddr,
|
||||
|
Loading…
Reference in New Issue
Block a user