#
86615b82 |
|
30-Sep-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd_network: Remove unneeded functions from if_var.h. FreeBSD puts these in ifq.h (which we do not have), and no driver we have actually uses them. We can re-add the newer versions of them if we ever import a driver which does.
|
#
8548a4ad |
|
12-May-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd_network: Adaptations in preparation for the OpenBSD layer. Most of these changes however add things that FreeBSD has (with a few exceptions noted in comments) which the OpenBSD shim layer merely needs to make use of. (FreeBSD used to have support for IFF_NEEDSGIANT but removed it. The support instated here is very similar to what FreeBSD used to have.)
|
#
2155cf67 |
|
20-Oct-2021 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd_network: Add new APIs used by FreeBSD 13 drivers.
|
#
7b5d0b35 |
|
21-Feb-2019 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd_network: Reorder if_var.h slightly. Some of the functions moved lower in this commit use functions that were previously defined below them, which was a warning in GCC but an error in Clang.
|
#
f733714a |
|
07-Jan-2019 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd_network: Changes for FreeBSD 12 net80211.
|
#
dba28784 |
|
24-Dec-2018 |
Augustin Cavalier <waddlesplash@gmail.com> |
freebsd11_network -> freebsd_network. FreeBSD 12 has no major changes to the ifnet KPIs that constitute a source compatibility break, save a single one related to locking which doesn't really apply to us, and so we don't need to create a "freebsd12_network" directory to work through the upgrades.
|
#
a7359754 |
|
18-Jan-2017 |
Andrew Aldridge <i80and@foxquill.com> |
Sync atheros813x with FreeBSD Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Fixes #12328. Fixed a style error (2 lines between functions).
|
#
f0993145 |
|
30-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use a rw_lock instead of a mutex. This however doesn't seem to improve performance here. Need to investigate lock contention I think.
|
#
8dc03de6 |
|
11-Apr-2011 |
Jérôme Duval <korli@users.berlios.de> |
merged changes from 8.2 FreeBSD release for most wlan drivers and net80211. updated several firmwares for iprowifi4965 and iprowifi3945. Tested on iprowifi4965 only. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41240 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14627e08 |
|
22-Oct-2009 |
Colin Günther <coling@gmx.de> |
* reordering of headerfile inclusion to comply to FreeBSD 8 ordering. this makes porting driver (especially wifi ones) more convinient * based on FreeBSD svn revision 196691 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33739 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e78ad19f |
|
21-Oct-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Added new methods introduced in freebsd head that encapsulate macros to allow better binary compatibility if the locking way ever changes. These are not really useful, but needed for newer drivers sourcecode. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33714 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
44ec2ebd |
|
18-Feb-2009 |
Karsten Heimrich <host.haiku@gmx.de> |
* update freebsd compat with stubbed eventhandler * get e1000 to compile * remove dev/em from the build (might be removed later on) * tested on VirtualBox (gcc2,gcc4), VMware(gcc4) and natively on ThinkPad T500 (gcc4) * courtesy of Michael Weirauch (emwe) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29247 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
080b265a |
|
29-Nov-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Completely renovated the FreeBSD compatibility layer: * Removed NETDEV() and DEVNET() macros and functionality. * The exported devices are now attached to ifnet objects only, therefore, the ifnet object now has the receive queue, and everything else a device could need. * There is now a root device where everything else is attached, it currently only holds the pci_info structure, so it's more or less a PCI child. * This simplified the device handling a bit everywhere. * We now attach drivers already in init_driver() - this is needed as drivers may publish more than one interface when being attached. * Implemented device_delete_child(), device_attach() (which bus_generic_attach() now uses), device_is_attached(), and device_is_alive(). * Therefore, if_initname() does now the actual job of registering the devices. * On open, if_init() is called which comes pretty close to what our open() is supposed to do. * Updated ukphy.c to the one from FreeBSD 7 where used (we should probably move that into the compat layer, anyway). * The MII driver array must now be NULL terminated; therefore you don't need to specify the count anymore. * Moved PCI code from compat.c to bus.c. * Moved the driver code from device.c to driver.c. * Removed superfluous init_compat_layer() function. * Fixed a few bugs, a few things weren't brought down correctly. * The rtl8139 interrupt routine now checks if it really was the cause of the interrupt - this code is not tested, either, it may not work (which would then require a work-around like I did for the 3com driver). * The HAIKU_PROTECT_INTR_REGISTER in the rtl8139 driver was pretty much useless which is why I removed it. * Probably introduced a lot of new bugs, though - I haven't tested this code at all yet. It will probably just crash :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23019 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07ef8870 |
|
08-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: multicast support. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21081 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ddcaaa61 |
|
04-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: added open(), which calls into the driver's attach. when testing with PCNET, a interface is already presented to the stack, it is even able to obtain the MAC address from the device, but still more work to do. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21030 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
00212abe |
|
04-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: a few more methods, preparing for pcnet git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21026 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
750ddafd |
|
02-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
initial work towards a FreeBSD network driver source level compatibility layer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20985 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f099314535596f3d1119302d6921087c9bcd2946 |
|
30-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use a rw_lock instead of a mutex. This however doesn't seem to improve performance here. Need to investigate lock contention I think.
|
#
8dc03de632faeed754033a549eec60b411308cad |
|
11-Apr-2011 |
Jérôme Duval <korli@users.berlios.de> |
merged changes from 8.2 FreeBSD release for most wlan drivers and net80211. updated several firmwares for iprowifi4965 and iprowifi3945. Tested on iprowifi4965 only. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41240 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
14627e087b920676d05d45cec5f28688744e1fdb |
|
22-Oct-2009 |
Colin Günther <coling@gmx.de> |
* reordering of headerfile inclusion to comply to FreeBSD 8 ordering. this makes porting driver (especially wifi ones) more convinient * based on FreeBSD svn revision 196691 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33739 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e78ad19f6b090c1826c061f95a970450b6784ce2 |
|
21-Oct-2009 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Added new methods introduced in freebsd head that encapsulate macros to allow better binary compatibility if the locking way ever changes. These are not really useful, but needed for newer drivers sourcecode. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33714 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
44ec2ebd200f18741d00fb8a76ddfb85485541cd |
|
18-Feb-2009 |
Karsten Heimrich <host.haiku@gmx.de> |
* update freebsd compat with stubbed eventhandler * get e1000 to compile * remove dev/em from the build (might be removed later on) * tested on VirtualBox (gcc2,gcc4), VMware(gcc4) and natively on ThinkPad T500 (gcc4) * courtesy of Michael Weirauch (emwe) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29247 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
080b265acd2f9903dcaf3d1e5076b0ecb8c20c6c |
|
29-Nov-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Completely renovated the FreeBSD compatibility layer: * Removed NETDEV() and DEVNET() macros and functionality. * The exported devices are now attached to ifnet objects only, therefore, the ifnet object now has the receive queue, and everything else a device could need. * There is now a root device where everything else is attached, it currently only holds the pci_info structure, so it's more or less a PCI child. * This simplified the device handling a bit everywhere. * We now attach drivers already in init_driver() - this is needed as drivers may publish more than one interface when being attached. * Implemented device_delete_child(), device_attach() (which bus_generic_attach() now uses), device_is_attached(), and device_is_alive(). * Therefore, if_initname() does now the actual job of registering the devices. * On open, if_init() is called which comes pretty close to what our open() is supposed to do. * Updated ukphy.c to the one from FreeBSD 7 where used (we should probably move that into the compat layer, anyway). * The MII driver array must now be NULL terminated; therefore you don't need to specify the count anymore. * Moved PCI code from compat.c to bus.c. * Moved the driver code from device.c to driver.c. * Removed superfluous init_compat_layer() function. * Fixed a few bugs, a few things weren't brought down correctly. * The rtl8139 interrupt routine now checks if it really was the cause of the interrupt - this code is not tested, either, it may not work (which would then require a work-around like I did for the 3com driver). * The HAIKU_PROTECT_INTR_REGISTER in the rtl8139 driver was pretty much useless which is why I removed it. * Probably introduced a lot of new bugs, though - I haven't tested this code at all yet. It will probably just crash :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23019 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07ef8870a37b1f275963aee79332df4b672335ee |
|
08-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: multicast support. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21081 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ddcaaa6129d2c66d69c4bd3d0c238ce813ed62d7 |
|
04-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: added open(), which calls into the driver's attach. when testing with PCNET, a interface is already presented to the stack, it is even able to obtain the MAC address from the device, but still more work to do. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21030 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
00212abe1c16a1cd1fdef6f0fddb2a67e48af934 |
|
04-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
freebsd compat. layer: a few more methods, preparing for pcnet git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21026 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
750ddafd50d75eff1baf4e34ed5f037863fb9cdc |
|
02-May-2007 |
Hugo Santos <hugosantos@nowhere.fake> |
initial work towards a FreeBSD network driver source level compatibility layer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20985 a95241bf-73f2-0310-859d-f6bbb57e9c96
|