History log of /openbsd-current/sys/dev/pci/if_rl_pci.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.35 24-May-2024 jsg

remove unneeded includes; ok miod@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.34 11-Mar-2022 mpi

Constify struct cfattach.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.33 24-Nov-2015 mpi

You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.


# 1.32 24-Nov-2015 mpi

The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.


Revision tags: OPENBSD_5_8_BASE
# 1.31 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.30 22-Dec-2014 tedu

unifdef INET


# 1.29 24-Nov-2014 brad

use the correct capitalization for Realtek.


Revision tags: OPENBSD_5_6_BASE
# 1.28 22-Jul-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE
# 1.27 07-Aug-2013 bluhm

Most network drivers include netinet/in_var.h, but apparently they
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@


Revision tags: OPENBSD_5_4_BASE
# 1.26 07-Mar-2013 brad

Fix and simplify determining whether we're using a 8129 or 8139 chipset. Only
the 8129 PCI id is a 8129, everything else is a 8139.

Allows the D-Link DFE-520TX board to work and would ensure proper determination
of the chipset for at least the 8138 based boards (PCI/CardBus).

Tested by kirby@
Ok kirby@ sthen@ chris@


Revision tags: OPENBSD_5_3_BASE
# 1.25 08-Feb-2013 jasper

add another DFE-530TX+

ok sthen@


# 1.24 29-Jan-2013 brad

Add the PCI id for the D-Link DFE-520TX C1 board.

ok jsg@


# 1.23 16-Jan-2013 brad

Some corrections for D-Link device names.

ok jsing@


# 1.22 16-Jan-2013 brad

Sort the PCI ids.

ok dtucker@ jsing@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.21 03-Apr-2011 jasper

use nitems(); no binary change for drivers that are compiled on amd64.

ok claudio@


Revision tags: OPENBSD_4_9_BASE
# 1.20 27-Aug-2010 deraadt

Move the activate function from pci to the the main driver, so that the
powerhook can use it
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.19 27-Jul-2010 deraadt

ca_activate function for suspend/resume
tested by mlarkin


Revision tags: OPENBSD_4_7_BASE
# 1.18 21-Dec-2009 naddy

Some cleaning for the rl(4) driver:
- ANSI
- KNF
- remove the use of register

from Brad


Revision tags: OPENBSD_4_6_BASE
# 1.17 02-Jun-2009 jsg

make rl at pci detachable; untested.


# 1.16 02-Jun-2009 jsg

Add more CardBus ids to PCI attachments to cope with
things like the crazy ExpressCard->CardBus adapters which
make CardBus devices show as PCI devices.


Revision tags: OPENBSD_4_5_BASE
# 1.15 13-Aug-2008 brad

Add the 8139D PCI id.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.14 23-May-2006 brad

according to the Linux 8139cp driver the TTTech MC322 adapter uses
the 8139C+ chipset, so attach with re(4) instead of rl(4).

ok dlg@


# 1.13 16-May-2006 brad

attach 8139's capable of C+ mode to the re(4) driver, instead of the rl(4)
driver.


Revision tags: OPENBSD_3_9_BASE
# 1.12 24-Feb-2006 brad

add TTTech MC322

PCI id from the Linux 8139cp driver.


# 1.11 24-Oct-2005 brad

- remove some redundnt checks before pci_mapreg_map()
- iosize -> size


# 1.10 11-Sep-2005 mickey

do not inline pci_mapreg_map() anymore as it is olrite now; brad@ ok


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 29-Dec-2003 brad

no vtophys(), don't need uvm_extern.h anymore.

tested on alpha, i386, macppc and sparc64.

ok millert@ mickey@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE UBC_SYNC_A
# 1.8 19-Nov-2002 jason

Add a simplistic table driven lookup routine and use it where appropriate.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.7 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: UBC_BASE
# 1.6 06-Nov-2001 miod

branches: 1.6.2;
Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.
(Look ma, I might have broken the tree)


Revision tags: OPENBSD_3_0_BASE
# 1.5 11-Sep-2001 miod

Don't include <vm/vm_kern.h> if you don't need foo_map.


# 1.4 25-Aug-2001 art

Change pci_intr_map to take pci_attach_args as an argument.
All callers actually took all arguments to pci_intr_map from pci_attach_args
structs, so this simplifies code.
This also allows more complicated interrupt assignment schemes like the one
on sparc64.

This makes sparc64 pci interrupts work.

Inspired by the same change in NetBSD.


# 1.3 12-Aug-2001 mickey

remove redundant vm includes


Revision tags: OPENBSD_2_9_BASE
# 1.2 13-Apr-2001 aaron

branches: 1.2.4;
Define RL_USEIOSPACE in the PCI bus piece, not the common piece; thanks jason@


# 1.1 10-Apr-2001 aaron

Split RealTek 8129/8139 driver into bus-dependent and bus-independent parts;
prep for an rl CardBus attachment.


# 1.34 11-Mar-2022 mpi

Constify struct cfattach.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.33 24-Nov-2015 mpi

You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.


# 1.32 24-Nov-2015 mpi

The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.


Revision tags: OPENBSD_5_8_BASE
# 1.31 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.30 22-Dec-2014 tedu

unifdef INET


# 1.29 24-Nov-2014 brad

use the correct capitalization for Realtek.


Revision tags: OPENBSD_5_6_BASE
# 1.28 22-Jul-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE
# 1.27 07-Aug-2013 bluhm

Most network drivers include netinet/in_var.h, but apparently they
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@


Revision tags: OPENBSD_5_4_BASE
# 1.26 07-Mar-2013 brad

Fix and simplify determining whether we're using a 8129 or 8139 chipset. Only
the 8129 PCI id is a 8129, everything else is a 8139.

Allows the D-Link DFE-520TX board to work and would ensure proper determination
of the chipset for at least the 8138 based boards (PCI/CardBus).

Tested by kirby@
Ok kirby@ sthen@ chris@


Revision tags: OPENBSD_5_3_BASE
# 1.25 08-Feb-2013 jasper

add another DFE-530TX+

ok sthen@


# 1.24 29-Jan-2013 brad

Add the PCI id for the D-Link DFE-520TX C1 board.

ok jsg@


# 1.23 16-Jan-2013 brad

Some corrections for D-Link device names.

ok jsing@


# 1.22 16-Jan-2013 brad

Sort the PCI ids.

ok dtucker@ jsing@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.21 03-Apr-2011 jasper

use nitems(); no binary change for drivers that are compiled on amd64.

ok claudio@


Revision tags: OPENBSD_4_9_BASE
# 1.20 27-Aug-2010 deraadt

Move the activate function from pci to the the main driver, so that the
powerhook can use it
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.19 27-Jul-2010 deraadt

ca_activate function for suspend/resume
tested by mlarkin


Revision tags: OPENBSD_4_7_BASE
# 1.18 21-Dec-2009 naddy

Some cleaning for the rl(4) driver:
- ANSI
- KNF
- remove the use of register

from Brad


Revision tags: OPENBSD_4_6_BASE
# 1.17 02-Jun-2009 jsg

make rl at pci detachable; untested.


# 1.16 02-Jun-2009 jsg

Add more CardBus ids to PCI attachments to cope with
things like the crazy ExpressCard->CardBus adapters which
make CardBus devices show as PCI devices.


Revision tags: OPENBSD_4_5_BASE
# 1.15 13-Aug-2008 brad

Add the 8139D PCI id.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.14 23-May-2006 brad

according to the Linux 8139cp driver the TTTech MC322 adapter uses
the 8139C+ chipset, so attach with re(4) instead of rl(4).

ok dlg@


# 1.13 16-May-2006 brad

attach 8139's capable of C+ mode to the re(4) driver, instead of the rl(4)
driver.


Revision tags: OPENBSD_3_9_BASE
# 1.12 24-Feb-2006 brad

add TTTech MC322

PCI id from the Linux 8139cp driver.


# 1.11 24-Oct-2005 brad

- remove some redundnt checks before pci_mapreg_map()
- iosize -> size


# 1.10 11-Sep-2005 mickey

do not inline pci_mapreg_map() anymore as it is olrite now; brad@ ok


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 29-Dec-2003 brad

no vtophys(), don't need uvm_extern.h anymore.

tested on alpha, i386, macppc and sparc64.

ok millert@ mickey@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE UBC_SYNC_A
# 1.8 19-Nov-2002 jason

Add a simplistic table driven lookup routine and use it where appropriate.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.7 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: UBC_BASE
# 1.6 06-Nov-2001 miod

branches: 1.6.2;
Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.
(Look ma, I might have broken the tree)


Revision tags: OPENBSD_3_0_BASE
# 1.5 11-Sep-2001 miod

Don't include <vm/vm_kern.h> if you don't need foo_map.


# 1.4 25-Aug-2001 art

Change pci_intr_map to take pci_attach_args as an argument.
All callers actually took all arguments to pci_intr_map from pci_attach_args
structs, so this simplifies code.
This also allows more complicated interrupt assignment schemes like the one
on sparc64.

This makes sparc64 pci interrupts work.

Inspired by the same change in NetBSD.


# 1.3 12-Aug-2001 mickey

remove redundant vm includes


Revision tags: OPENBSD_2_9_BASE
# 1.2 13-Apr-2001 aaron

branches: 1.2.4;
Define RL_USEIOSPACE in the PCI bus piece, not the common piece; thanks jason@


# 1.1 10-Apr-2001 aaron

Split RealTek 8129/8139 driver into bus-dependent and bus-independent parts;
prep for an rl CardBus attachment.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.33 24-Nov-2015 mpi

You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.


# 1.32 24-Nov-2015 mpi

The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.


Revision tags: OPENBSD_5_8_BASE
# 1.31 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.30 22-Dec-2014 tedu

unifdef INET


# 1.29 24-Nov-2014 brad

use the correct capitalization for Realtek.


Revision tags: OPENBSD_5_6_BASE
# 1.28 22-Jul-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE
# 1.27 07-Aug-2013 bluhm

Most network drivers include netinet/in_var.h, but apparently they
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@


Revision tags: OPENBSD_5_4_BASE
# 1.26 07-Mar-2013 brad

Fix and simplify determining whether we're using a 8129 or 8139 chipset. Only
the 8129 PCI id is a 8129, everything else is a 8139.

Allows the D-Link DFE-520TX board to work and would ensure proper determination
of the chipset for at least the 8138 based boards (PCI/CardBus).

Tested by kirby@
Ok kirby@ sthen@ chris@


Revision tags: OPENBSD_5_3_BASE
# 1.25 08-Feb-2013 jasper

add another DFE-530TX+

ok sthen@


# 1.24 29-Jan-2013 brad

Add the PCI id for the D-Link DFE-520TX C1 board.

ok jsg@


# 1.23 16-Jan-2013 brad

Some corrections for D-Link device names.

ok jsing@


# 1.22 16-Jan-2013 brad

Sort the PCI ids.

ok dtucker@ jsing@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.21 03-Apr-2011 jasper

use nitems(); no binary change for drivers that are compiled on amd64.

ok claudio@


Revision tags: OPENBSD_4_9_BASE
# 1.20 27-Aug-2010 deraadt

Move the activate function from pci to the the main driver, so that the
powerhook can use it
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.19 27-Jul-2010 deraadt

ca_activate function for suspend/resume
tested by mlarkin


Revision tags: OPENBSD_4_7_BASE
# 1.18 21-Dec-2009 naddy

Some cleaning for the rl(4) driver:
- ANSI
- KNF
- remove the use of register

from Brad


Revision tags: OPENBSD_4_6_BASE
# 1.17 02-Jun-2009 jsg

make rl at pci detachable; untested.


# 1.16 02-Jun-2009 jsg

Add more CardBus ids to PCI attachments to cope with
things like the crazy ExpressCard->CardBus adapters which
make CardBus devices show as PCI devices.


Revision tags: OPENBSD_4_5_BASE
# 1.15 13-Aug-2008 brad

Add the 8139D PCI id.


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.14 23-May-2006 brad

according to the Linux 8139cp driver the TTTech MC322 adapter uses
the 8139C+ chipset, so attach with re(4) instead of rl(4).

ok dlg@


# 1.13 16-May-2006 brad

attach 8139's capable of C+ mode to the re(4) driver, instead of the rl(4)
driver.


Revision tags: OPENBSD_3_9_BASE
# 1.12 24-Feb-2006 brad

add TTTech MC322

PCI id from the Linux 8139cp driver.


# 1.11 24-Oct-2005 brad

- remove some redundnt checks before pci_mapreg_map()
- iosize -> size


# 1.10 11-Sep-2005 mickey

do not inline pci_mapreg_map() anymore as it is olrite now; brad@ ok


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B
# 1.9 29-Dec-2003 brad

no vtophys(), don't need uvm_extern.h anymore.

tested on alpha, i386, macppc and sparc64.

ok millert@ mickey@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE UBC_SYNC_A
# 1.8 19-Nov-2002 jason

Add a simplistic table driven lookup routine and use it where appropriate.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_SYNC_B
# 1.7 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: UBC_BASE
# 1.6 06-Nov-2001 miod

branches: 1.6.2;
Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.
(Look ma, I might have broken the tree)


Revision tags: OPENBSD_3_0_BASE
# 1.5 11-Sep-2001 miod

Don't include <vm/vm_kern.h> if you don't need foo_map.


# 1.4 25-Aug-2001 art

Change pci_intr_map to take pci_attach_args as an argument.
All callers actually took all arguments to pci_intr_map from pci_attach_args
structs, so this simplifies code.
This also allows more complicated interrupt assignment schemes like the one
on sparc64.

This makes sparc64 pci interrupts work.

Inspired by the same change in NetBSD.


# 1.3 12-Aug-2001 mickey

remove redundant vm includes


Revision tags: OPENBSD_2_9_BASE
# 1.2 13-Apr-2001 aaron

branches: 1.2.4;
Define RL_USEIOSPACE in the PCI bus piece, not the common piece; thanks jason@


# 1.1 10-Apr-2001 aaron

Split RealTek 8129/8139 driver into bus-dependent and bus-independent parts;
prep for an rl CardBus attachment.