History log of /haiku-fatelf/src/add-ons/kernel/drivers/network/ipro1000/if_em_osdep.h
Revision Date Author Comments
# 24309cde 21-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed more issues with 64 bit physical addresses. Mostly by restricting
allocations to 32 bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64d79eff 27-May-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed physical_entry::{address,size} to phys_{addr,size}_t and changed
map_physical_memory()'s physicalAddress parameter type from void* to
phys_addr_t. This breaks source compatibility, but -- as long as
phys_{addr,size}_t remain 32 bit wide -- keeps binary compatibility with
BeOS.
* Adjusted all code using the affected interfaces (Oh what fun!). Added a few
TODOs in places where the wrong types (e.g. void* for physical addresses
are used). Looks like quite a few drivers aren't 64 bit safe and others
will break with PAE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09b89797 01-May-2007 Hugo Santos <hugosantos@nowhere.fake>

added ADDMULTI/REMMULTI support to ipro1000. Also cleaned up the compat. layer a bit to reuse some of the system's definitions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a34967de 03-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Prepared implementation of ETHER_GETLINKSTATE - it would need a bit more work to
get it to work as intended, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20537 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cc30d340 27-Jan-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

When getting the memory map, ask only for 2046 bytes instead of
2048 bytes. This should fix bugs #993 and #997.
On BeOS R5 asking for 2 bytes too much wasn't a problem, as we
only need the first page_entry, and it didn't return any Error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19992 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 55a5f66c 27-Jan-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

Made the "get_memory_map failed" error panic the kernel, to avoid random
crashes at a later time. I observed one error at 8033a802, but the address
was allocated by the driver and should have been fully locked.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5aa5ce24 12-Jun-2004 beveloper <beveloper@nowhere.fake>

Huge cleanup of debugging code. Also fixed a few warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 89739e8c 09-May-2004 beveloper <beveloper@nowhere.fake>

Added ASSERT() macro to debug.h
Cleanup of printf calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7476 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ec64b89 09-May-2004 beveloper <beveloper@nowhere.fake>

Added a new timer function which can be used similar to the BeOS kernel add_timer function.
The difference is that these callback functions will be executed in thread (not interrupt) context,
and that they shouldn't crash (as add_timer does).
Integrated the timer funtions into the timeout() and untimeout() FreeBSD emulation framework.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7474 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 014c3fc0 09-May-2004 beveloper <beveloper@nowhere.fake>

Cleanup of event handling.
Disable debugging.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7469 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 720aa693 06-May-2004 beveloper <beveloper@nowhere.fake>

removed many compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7435 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8708997 03-May-2004 beveloper <beveloper@nowhere.fake>

the add_timer() function does panic, also it would call the hook in interrupt context, both it not acceptable. Commented it out


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7392 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5f1aaa70 03-May-2004 beveloper <beveloper@nowhere.fake>

added some BeOS compatiblity stuff for settings up resources, PCI access, Interrupt handling, etc...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7388 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d0dfa0f 03-May-2004 beveloper <beveloper@nowhere.fake>

FreeBSD Driver for the Intel(R) PRO/1000 Family of Adapters


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 24309cde24fb6937ebc305a67a6ef840e5565639 21-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed more issues with 64 bit physical addresses. Mostly by restricting
allocations to 32 bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64d79eff7290437d24b1a420537c3ed5c144ab96 27-May-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Changed physical_entry::{address,size} to phys_{addr,size}_t and changed
map_physical_memory()'s physicalAddress parameter type from void* to
phys_addr_t. This breaks source compatibility, but -- as long as
phys_{addr,size}_t remain 32 bit wide -- keeps binary compatibility with
BeOS.
* Adjusted all code using the affected interfaces (Oh what fun!). Added a few
TODOs in places where the wrong types (e.g. void* for physical addresses
are used). Looks like quite a few drivers aren't 64 bit safe and others
will break with PAE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09b89797afe0af65822df50011079e16ca8b99b4 01-May-2007 Hugo Santos <hugosantos@nowhere.fake>

added ADDMULTI/REMMULTI support to ipro1000. Also cleaned up the compat. layer a bit to reuse some of the system's definitions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a34967de860ba059df8274413c3ae9bc570ca3d9 03-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Prepared implementation of ETHER_GETLINKSTATE - it would need a bit more work to
get it to work as intended, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20537 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cc30d340c388f8b14b8e5fc8684f05ad731c7141 27-Jan-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

When getting the memory map, ask only for 2046 bytes instead of
2048 bytes. This should fix bugs #993 and #997.
On BeOS R5 asking for 2 bytes too much wasn't a problem, as we
only need the first page_entry, and it didn't return any Error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19992 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 55a5f66c21208a423dcdb5225f5993e0f32b65d9 27-Jan-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

Made the "get_memory_map failed" error panic the kernel, to avoid random
crashes at a later time. I observed one error at 8033a802, but the address
was allocated by the driver and should have been fully locked.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5aa5ce24e2adc2c1b0803e66ffba1748bc86de8f 12-Jun-2004 beveloper <beveloper@nowhere.fake>

Huge cleanup of debugging code. Also fixed a few warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 89739e8c0a67dfdf759007345bcf0b7adb34015c 09-May-2004 beveloper <beveloper@nowhere.fake>

Added ASSERT() macro to debug.h
Cleanup of printf calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7476 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0ec64b89a9ddebabb9126e808693c86d12e8b7bb 09-May-2004 beveloper <beveloper@nowhere.fake>

Added a new timer function which can be used similar to the BeOS kernel add_timer function.
The difference is that these callback functions will be executed in thread (not interrupt) context,
and that they shouldn't crash (as add_timer does).
Integrated the timer funtions into the timeout() and untimeout() FreeBSD emulation framework.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7474 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 014c3fc0c37a1503ef03f52e14cd32575db6fa14 09-May-2004 beveloper <beveloper@nowhere.fake>

Cleanup of event handling.
Disable debugging.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7469 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 720aa693898dc7d6ab8b004e8c7c8d5889f85001 06-May-2004 beveloper <beveloper@nowhere.fake>

removed many compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7435 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8708997c57feff8414453b749ac81a535eb47b3 03-May-2004 beveloper <beveloper@nowhere.fake>

the add_timer() function does panic, also it would call the hook in interrupt context, both it not acceptable. Commented it out


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7392 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5f1aaa70ceafb56a5a85be77ff7550e75aee5090 03-May-2004 beveloper <beveloper@nowhere.fake>

added some BeOS compatiblity stuff for settings up resources, PCI access, Interrupt handling, etc...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7388 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d0dfa0f7e691ae0766b4259beb4e78f9dc27b45 03-May-2004 beveloper <beveloper@nowhere.fake>

FreeBSD Driver for the Intel(R) PRO/1000 Family of Adapters


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7377 a95241bf-73f2-0310-859d-f6bbb57e9c96