History log of /haiku-fatelf/src/add-ons/kernel/drivers/network/bcm570x/b57um.c
Revision Date Author Comments
# 172971a1 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch link speed unit to bit/s to support low bitrate speed too
(hello slow dialup line...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39581 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


# b0884f0c 07-Aug-2008 Axel Dörfler <axeld@pinc-software.de>

* Fixed a ton of wrong usages of B_CONTIGUOUS + B_FULL_LOCK.
* The use of B_{READ|WRITE}_AREA throughout the drivers is surely alarming.
Defining these flags means that *every user* application can access these
buffers read/write, it becomes visible in userspace like any other memory
(just shared among all apps). I would like to ask each driver maintainer
to see if that is really wished here. If you only need one app to be able
to access it, cloning the area would be more appropriate.
* I came across the use of B_ANY_KERNEL_BLOCK_ADDRESS a number of times. This
is almost completely useless for most usages, as it tries to align the
virtual to a multiple of the size of the area. It just makes the allocation
more likely to fail. Please only use where appropriate, and please review
your code.
* Minor cleanup.


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


# 1d54a24d 19-Sep-2007 Jérôme Duval <korli@users.berlios.de>

correctly release resources on error in init, or on uninit


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


# e58b9aef 25-May-2007 François Revol <revol@free.fr>

export api_version even though we don't support select() in them.


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


# e477dd18 08-May-2007 Jérôme Duval <korli@users.berlios.de>

now polls the link status for older revisions of bcm440x
inversed active status


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


# d752ee3b 07-May-2007 Jérôme Duval <korli@users.berlios.de>

added missing ioctl for handling link state change. I noted it's not supported on my bcm440x chipset


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


# 811c52c0 10-Apr-2007 Bryan Varner <bvarner@nowhere.fake>

Small adjustment to reduce the number of comparisons when publishing devices.

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


# 0cac8bd1 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Forgot to set IFM_ETHER in all drivers; "ethernet" now also sets it just in case.


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


# 9206bb37 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Changed ETHER_GET_LINK_STATE ethernet driver interface, added ETHER_SET_LINK_STATE_SEM.
* The device interface list now uses class DoublyLinkedList instead of struct list.
* Implemented SIOC[SG]IFMEDIA for setting (not supported by any device yet), and
retrieving the device media information.
* Fixed a locking bug in list_domain_interfaces().
* Added new stack function device_link_changed() that should be called in case the
link state (media) changed.
* The ethernet device module now spawns a thread and will periodically check the media
state of all ethernet devices that support this (if any).
* Minor cleanup.


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


# 15fda8f5 03-Apr-2007 Jérôme Duval <korli@users.berlios.de>

implemented ETHER_GETLINKSTATE for bcm440x and bcm570x


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


# 6c05095c 14-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Last set of minor fixes for GCC 4 build.
More will follow later, need to clean the fixes up a little :)



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


# ff50d32d 12-Apr-2005 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Confirmed I was a moron in one of axeld's TODOs, changed B_LOMEM to B_FULL_LOCK | B_CONTIGUOUS.


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


# c46e419b 11-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed the most obvious bugs:
- it's restore_interrupts() not enable_interrupts()
- B_READ_AREA|B_WRITE_AREA gives every *userland* application full access
- fixed coding style
- the PCI module was never put away (but get_module() was called almost everywhere)
- added comments where the code looked buggy on first sight


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


# 7a480637 06-Feb-2005 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Added net_server compatibility to the Broadcom drivers (i.e. fixed non-blocking mode to actually work)


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


# 81a1fbae 29-Nov-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Made the same modification to blocking-mode handling I just made to the 440x driver.


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


# 518ba2b8 01-Oct-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Fixed a crashing bug when large fast uploads are in progress.


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


# d774d9a0 30-Sep-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

While we're modifying ether_driver.h, added in an ioctl for link state detection, and implemented it in the two Broadcom drivers.


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


# d4010e5e 30-Sep-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Added a driver for the Broadcom 570x (aka Tigon 3), version 7.3.5, using the SubIncludeGPL rule.


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


# 172971a18fc072efbbe9e3bd997bbecef4b7e31f 23-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch link speed unit to bit/s to support low bitrate speed too
(hello slow dialup line...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39581 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


# b0884f0cb812cdaf8035e6028f69dcf0d7721953 07-Aug-2008 Axel Dörfler <axeld@pinc-software.de>

* Fixed a ton of wrong usages of B_CONTIGUOUS + B_FULL_LOCK.
* The use of B_{READ|WRITE}_AREA throughout the drivers is surely alarming.
Defining these flags means that *every user* application can access these
buffers read/write, it becomes visible in userspace like any other memory
(just shared among all apps). I would like to ask each driver maintainer
to see if that is really wished here. If you only need one app to be able
to access it, cloning the area would be more appropriate.
* I came across the use of B_ANY_KERNEL_BLOCK_ADDRESS a number of times. This
is almost completely useless for most usages, as it tries to align the
virtual to a multiple of the size of the area. It just makes the allocation
more likely to fail. Please only use where appropriate, and please review
your code.
* Minor cleanup.


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


# 1d54a24d4dae9d37704c810a46681dca345d5c8d 19-Sep-2007 Jérôme Duval <korli@users.berlios.de>

correctly release resources on error in init, or on uninit


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


# e58b9aef6236d81f54d82302086fbdf4c800b24c 25-May-2007 François Revol <revol@free.fr>

export api_version even though we don't support select() in them.


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


# e477dd1845f2f80f7a839c9fe901a1b86bebb4be 08-May-2007 Jérôme Duval <korli@users.berlios.de>

now polls the link status for older revisions of bcm440x
inversed active status


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


# d752ee3be8a6c56ef59e2be6378d5fe908c11ec0 07-May-2007 Jérôme Duval <korli@users.berlios.de>

added missing ioctl for handling link state change. I noted it's not supported on my bcm440x chipset


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


# 811c52c0e85f166d244cfba6e00f37c2ed6977eb 10-Apr-2007 Bryan Varner <bvarner@nowhere.fake>

Small adjustment to reduce the number of comparisons when publishing devices.

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


# 0cac8bd145974b7b386f6e848f74cd9ee2123dc4 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Forgot to set IFM_ETHER in all drivers; "ethernet" now also sets it just in case.


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


# 9206bb37797df1a6448d3f1c336e954b4ddb790d 04-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Changed ETHER_GET_LINK_STATE ethernet driver interface, added ETHER_SET_LINK_STATE_SEM.
* The device interface list now uses class DoublyLinkedList instead of struct list.
* Implemented SIOC[SG]IFMEDIA for setting (not supported by any device yet), and
retrieving the device media information.
* Fixed a locking bug in list_domain_interfaces().
* Added new stack function device_link_changed() that should be called in case the
link state (media) changed.
* The ethernet device module now spawns a thread and will periodically check the media
state of all ethernet devices that support this (if any).
* Minor cleanup.


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


# 15fda8f5474264c14309af77e9394399ea41bd00 03-Apr-2007 Jérôme Duval <korli@users.berlios.de>

implemented ETHER_GETLINKSTATE for bcm440x and bcm570x


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


# 6c05095ca633fe9862c0dcf75cb499d4e15d65b6 14-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Last set of minor fixes for GCC 4 build.
More will follow later, need to clean the fixes up a little :)



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


# ff50d32d9dcfca855ad1167251ca7c74fe6863cb 12-Apr-2005 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Confirmed I was a moron in one of axeld's TODOs, changed B_LOMEM to B_FULL_LOCK | B_CONTIGUOUS.


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


# c46e419bc5f7f21bc3a0b0ab5aea0352eb03c2e0 11-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed the most obvious bugs:
- it's restore_interrupts() not enable_interrupts()
- B_READ_AREA|B_WRITE_AREA gives every *userland* application full access
- fixed coding style
- the PCI module was never put away (but get_module() was called almost everywhere)
- added comments where the code looked buggy on first sight


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


# 7a480637d8cb6cf7b9a8c08a07059b8cdbefee28 06-Feb-2005 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Added net_server compatibility to the Broadcom drivers (i.e. fixed non-blocking mode to actually work)


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


# 81a1fbaee26290e35324a637de41db4848fe3ca0 29-Nov-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Made the same modification to blocking-mode handling I just made to the 440x driver.


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


# 518ba2b80cedba4a54c433de2957310b0cf6493b 01-Oct-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Fixed a crashing bug when large fast uploads are in progress.


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


# d774d9a0a1c99c89fa1a2dc401b15c8b40ec3c8a 30-Sep-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

While we're modifying ether_driver.h, added in an ioctl for link state detection, and implemented it in the two Broadcom drivers.


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


# d4010e5eae8a61abe15ecc8afd2298d7db910e63 30-Sep-2004 Nathan Whitehorn <nwhitehorn@nowhere.fake>

Added a driver for the Broadcom 570x (aka Tigon 3), version 7.3.5, using the SubIncludeGPL rule.


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