History log of /haiku/src/add-ons/kernel/drivers/network/ipro1000/dev/e1000/e1000_osdep.h
Revision Date Author Comments
# a381a48f 04-Jan-2019 Augustin Cavalier <waddlesplash@gmail.com>

ipro1000: Always use DELAY() for microsecond pauses (on Haiku.)

pause() has granularity of "hz", which on FreeBSD and in our compat layer
is defined to be 1000 (so, 1ms.) As "safe_pause_us" is used copoiously
throughout startup code, this meant that (1) startup takes 100-1000x longer
than it needed to (this driver seems to most commonly delay for 10us),
and (2) this could in theory block the boot for multiple minutes if one
got particularly unlucky with the scheduler.

Probably helps with or even outright fixes #14795.


# 67a0cb89 03-Jan-2019 Augustin Cavalier <waddlesplash@gmail.com>

ipro1000: Upgrade to FreeBSD 12.

Thanks to AGMS for helping test on real hardware!


# b3fb200f 14-Nov-2017 Jérôme Duval <jerome.duval@gmail.com>

ipro1000: Update with the 11.1 release of the e1000 driver.

* switch compat layer.
* tested on Qemu and Intel I217-LM.


# d57b6246 08-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

Update FreeBSD network drivers with the 9.2 release


# 648db733 03-Jan-2013 Jérôme Duval <jerome.duval@gmail.com>

Update FreeBSD network drivers with the 9.1 release


# d1e17090 23-Aug-2011 Siarzhuk Zharski <zharik@gmx.li>

* ipro1000 driver updated to FreeBSD 8.2 level:
it incorporate now "em" and "lem" freebsd drivers.
Note: if_igb is not used - too much "undeclared"
stuff required from the compatibility layer. :-(



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


# 2d3e6927 05-Jun-2011 Fredrik Modeen <fredrik@modeen.se>

Reverting so I can work on it without disturbing the GSoC project ;)

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


# 981bdb5a 29-May-2011 Fredrik Modeen <fredrik@modeen.se>

Hope I fix more than I breake with this update of ipro1000
it's taken from freebsd driver e1000 r221505

This include alot of cards (including my HP)

I had to "remove" som parts. led was the easiest part. All code shoulc have haiku in them

The part below was perhaps needed but I could not fix the error that whas showing (located in if_em.c) aslo it works as is on my HP 8540.

static int
em_sysctl_reg_handler(SYSCTL_HANDLER_ARGS)
{
struct adapter *adapter;
u_int val;

adapter = oidp->oid_arg1;
val = E1000_READ_REG(&adapter->hw, oidp->oid_arg2);
return (sysctl_handle_int(oidp, &val, 0, req));
}

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


# ab64e1fa 18-Feb-2009 Karsten Heimrich <host.haiku@gmx.de>

* integrate e1000 FreeBSD driver



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


# d57b62466731e7902f08c20b5c309186200428e6 08-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

Update FreeBSD network drivers with the 9.2 release


# 648db7333e8d0ae6e0386ba1e71eafb6a793c97d 03-Jan-2013 Jérôme Duval <jerome.duval@gmail.com>

Update FreeBSD network drivers with the 9.1 release


# d1e1709087f986fa437f3db30d0beff372fd6864 23-Aug-2011 Siarzhuk Zharski <zharik@gmx.li>

* ipro1000 driver updated to FreeBSD 8.2 level:
it incorporate now "em" and "lem" freebsd drivers.
Note: if_igb is not used - too much "undeclared"
stuff required from the compatibility layer. :-(



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


# 2d3e6927ca1c7f9919e645c21e033d3cf8f143ae 05-Jun-2011 Fredrik Modeen <fredrik@modeen.se>

Reverting so I can work on it without disturbing the GSoC project ;)

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


# 981bdb5af9b06b73a0d9cdb837d563e6ed41e499 29-May-2011 Fredrik Modeen <fredrik@modeen.se>

Hope I fix more than I breake with this update of ipro1000
it's taken from freebsd driver e1000 r221505

This include alot of cards (including my HP)

I had to "remove" som parts. led was the easiest part. All code shoulc have haiku in them

The part below was perhaps needed but I could not fix the error that whas showing (located in if_em.c) aslo it works as is on my HP 8540.

static int
em_sysctl_reg_handler(SYSCTL_HANDLER_ARGS)
{
struct adapter *adapter;
u_int val;

adapter = oidp->oid_arg1;
val = E1000_READ_REG(&adapter->hw, oidp->oid_arg2);
return (sysctl_handle_int(oidp, &val, 0, req));
}

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


# ab64e1faa3a9d5ff9f968572f034915f1fb64ddc 18-Feb-2009 Karsten Heimrich <host.haiku@gmx.de>

* integrate e1000 FreeBSD driver



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