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

remove unneeded includes


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.38 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.37 05-Jan-2020 jsg

consistently uppercase pci product defines

ok mpi@


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
# 1.36 24-Nov-2015 mpi

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


# 1.35 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.34 19-Dec-2014 guenther

Use <sys/endian.h> instead of <machine/endian.h>

ok dlg@ mpi@ bcook@ millert@ miod@


# 1.33 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 06-Dec-2013 deraadt

Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people


# 1.31 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


# 1.30 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_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.29 02-Apr-2011 jasper

- use nitems(); no binary change@

ok jsg@


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

Since the pci-specific activate function does nothing, move it to fxp.c.
Then it is possible for fxp_powerhook to use it.


Revision tags: OPENBSD_4_8_BASE
# 1.27 27-Mar-2010 jsg

Give cardbus the pci_chipset_tag_t from pccbb and push it out through
cardbus_attach_args so we can switch to using proper pci config
space functions instead of callback based wrappers.

ok oga@ krw@ kettenis@


# 1.26 27-Mar-2010 jsg

Bring back cardbus_chipset_tag_t which is in practice a
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t
which can be passed to the normal pci functions.

Suggested by and ok kettenis@


# 1.25 22-Mar-2010 jsg

Remove some cardbus defines and types which are identical to
their pci counterparts, similar to recent changes in NetBSD.

ok oga@ deraadt@ jasper@


Revision tags: OPENBSD_4_7_BASE
# 1.24 15-Oct-2009 deraadt

Add detach support to a few more drivers, and in others do the neccessary
operations in the detach function in the right order. Also ensure that the
interrupt handlers not trust registers that go away.
read over very carefully by dms, tested by me


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

Make fxp at pci detachable; untested.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.22 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.21 25-Feb-2008 brad

Following up with further dmesg display tweaking after the cardbusprint()
change.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.20 08-May-2007 deraadt

repair com/fxp foo_detach() stuff, the hardest part being the pccom mess


# 1.19 08-May-2007 deraadt

put more foo_detach() routines where they are used


Revision tags: OPENBSD_4_1_BASE
# 1.18 12-Oct-2006 grange

Add a symbolic name parameter to cardbus_intr_establish().
Count cardbus devices interrupts in cbb(4) using evcount(9).

ok deraadt@


Revision tags: OPENBSD_4_0_BASE
# 1.17 01-Jul-2006 brad

(fxp/re)_attach_common -> (fxp/re)_attach


# 1.16 17-Jun-2006 brad

add sys/timeout.h


# 1.15 08-Jun-2006 fkr

substitute the Cardbus_conf_read/Cardbus_conf_write macros with
cardbus_conf_read/cardbus_conf_write. This makes fxp* at cardbus?
work (again?) on macppc. tested by various users.


# 1.14 04-Jun-2006 fkr

KNF and whitespace cleanup, no functional change
ok mbalmer@


# 1.13 16-Apr-2006 miod

Use __func__ to get the current function name, no need to declare a variable
for this...


Revision tags: OPENBSD_3_9_BASE
# 1.12 01-Jan-2006 brad

update for pcidevs name change


Revision tags: OPENBSD_3_8_BASE
# 1.11 16-May-2005 brad

Use cardbus_matchbyid().

ok millert@ jsg@


Revision tags: OPENBSD_3_7_BASE
# 1.10 14-Jan-2005 pvalchev

minor prototypes style; ok deraadt


# 1.9 07-Oct-2004 brad

cardbusdevs -> pcidevs

From NetBSD


Revision tags: OPENBSD_3_6_BASE
# 1.8 04-Aug-2004 mickey

interrupt coalescing on post 82557 chips; from freebsd via Dmitry Bogdan <dsb@poi.dvo.ru>


# 1.7 27-Jun-2004 brad

stop passing an empty enaddr around since we figure out the
MAC address in the common attach code and not the PCI/CardBus
specific portions, this was a side effect of the code being
split to support CardBus.

ok beck@


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.6 07-May-2004 brad

CardBus fxp's use the 82558 chipset which has a Long Receive bit,
we need to enable this to receive VLAN sized frames.

ok deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 12-Oct-2002 krw

Remove more '\n's from panic() statements. Both trailing and leading.

Diff generated by Chris Kuethe.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.3 09-Aug-2001 jason

branches: 1.3.4;
- scb_wait() is now time based (not cpu speed based)
- rearrange multicast setup to be part of init
- convert cu operations to bus_dma(9) (still have to do RFA ops).


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 17-Sep-2000 aaron

branches: 1.2.6;
Support detach of fxp devices to allow ejection of Intel CardBus adapters.


# 1.1 17-Sep-2000 aaron

Add support for Intel PRO/100 CardBus PC Card Ethernet; from NetBSD.


# 1.38 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.37 05-Jan-2020 jsg

consistently uppercase pci product defines

ok mpi@


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
# 1.36 24-Nov-2015 mpi

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


# 1.35 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.34 19-Dec-2014 guenther

Use <sys/endian.h> instead of <machine/endian.h>

ok dlg@ mpi@ bcook@ millert@ miod@


# 1.33 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 06-Dec-2013 deraadt

Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people


# 1.31 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


# 1.30 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_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.29 02-Apr-2011 jasper

- use nitems(); no binary change@

ok jsg@


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

Since the pci-specific activate function does nothing, move it to fxp.c.
Then it is possible for fxp_powerhook to use it.


Revision tags: OPENBSD_4_8_BASE
# 1.27 27-Mar-2010 jsg

Give cardbus the pci_chipset_tag_t from pccbb and push it out through
cardbus_attach_args so we can switch to using proper pci config
space functions instead of callback based wrappers.

ok oga@ krw@ kettenis@


# 1.26 27-Mar-2010 jsg

Bring back cardbus_chipset_tag_t which is in practice a
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t
which can be passed to the normal pci functions.

Suggested by and ok kettenis@


# 1.25 22-Mar-2010 jsg

Remove some cardbus defines and types which are identical to
their pci counterparts, similar to recent changes in NetBSD.

ok oga@ deraadt@ jasper@


Revision tags: OPENBSD_4_7_BASE
# 1.24 15-Oct-2009 deraadt

Add detach support to a few more drivers, and in others do the neccessary
operations in the detach function in the right order. Also ensure that the
interrupt handlers not trust registers that go away.
read over very carefully by dms, tested by me


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

Make fxp at pci detachable; untested.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.22 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.21 25-Feb-2008 brad

Following up with further dmesg display tweaking after the cardbusprint()
change.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.20 08-May-2007 deraadt

repair com/fxp foo_detach() stuff, the hardest part being the pccom mess


# 1.19 08-May-2007 deraadt

put more foo_detach() routines where they are used


Revision tags: OPENBSD_4_1_BASE
# 1.18 12-Oct-2006 grange

Add a symbolic name parameter to cardbus_intr_establish().
Count cardbus devices interrupts in cbb(4) using evcount(9).

ok deraadt@


Revision tags: OPENBSD_4_0_BASE
# 1.17 01-Jul-2006 brad

(fxp/re)_attach_common -> (fxp/re)_attach


# 1.16 17-Jun-2006 brad

add sys/timeout.h


# 1.15 08-Jun-2006 fkr

substitute the Cardbus_conf_read/Cardbus_conf_write macros with
cardbus_conf_read/cardbus_conf_write. This makes fxp* at cardbus?
work (again?) on macppc. tested by various users.


# 1.14 04-Jun-2006 fkr

KNF and whitespace cleanup, no functional change
ok mbalmer@


# 1.13 16-Apr-2006 miod

Use __func__ to get the current function name, no need to declare a variable
for this...


Revision tags: OPENBSD_3_9_BASE
# 1.12 01-Jan-2006 brad

update for pcidevs name change


Revision tags: OPENBSD_3_8_BASE
# 1.11 16-May-2005 brad

Use cardbus_matchbyid().

ok millert@ jsg@


Revision tags: OPENBSD_3_7_BASE
# 1.10 14-Jan-2005 pvalchev

minor prototypes style; ok deraadt


# 1.9 07-Oct-2004 brad

cardbusdevs -> pcidevs

From NetBSD


Revision tags: OPENBSD_3_6_BASE
# 1.8 04-Aug-2004 mickey

interrupt coalescing on post 82557 chips; from freebsd via Dmitry Bogdan <dsb@poi.dvo.ru>


# 1.7 27-Jun-2004 brad

stop passing an empty enaddr around since we figure out the
MAC address in the common attach code and not the PCI/CardBus
specific portions, this was a side effect of the code being
split to support CardBus.

ok beck@


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.6 07-May-2004 brad

CardBus fxp's use the 82558 chipset which has a Long Receive bit,
we need to enable this to receive VLAN sized frames.

ok deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 12-Oct-2002 krw

Remove more '\n's from panic() statements. Both trailing and leading.

Diff generated by Chris Kuethe.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.3 09-Aug-2001 jason

branches: 1.3.4;
- scb_wait() is now time based (not cpu speed based)
- rearrange multicast setup to be part of init
- convert cu operations to bus_dma(9) (still have to do RFA ops).


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 17-Sep-2000 aaron

branches: 1.2.6;
Support detach of fxp devices to allow ejection of Intel CardBus adapters.


# 1.1 17-Sep-2000 aaron

Add support for Intel PRO/100 CardBus PC Card Ethernet; from NetBSD.


# 1.37 05-Jan-2020 jsg

consistently uppercase pci product defines

ok mpi@


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
# 1.36 24-Nov-2015 mpi

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


# 1.35 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.34 19-Dec-2014 guenther

Use <sys/endian.h> instead of <machine/endian.h>

ok dlg@ mpi@ bcook@ millert@ miod@


# 1.33 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 06-Dec-2013 deraadt

Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people


# 1.31 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


# 1.30 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_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.29 02-Apr-2011 jasper

- use nitems(); no binary change@

ok jsg@


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

Since the pci-specific activate function does nothing, move it to fxp.c.
Then it is possible for fxp_powerhook to use it.


Revision tags: OPENBSD_4_8_BASE
# 1.27 27-Mar-2010 jsg

Give cardbus the pci_chipset_tag_t from pccbb and push it out through
cardbus_attach_args so we can switch to using proper pci config
space functions instead of callback based wrappers.

ok oga@ krw@ kettenis@


# 1.26 27-Mar-2010 jsg

Bring back cardbus_chipset_tag_t which is in practice a
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t
which can be passed to the normal pci functions.

Suggested by and ok kettenis@


# 1.25 22-Mar-2010 jsg

Remove some cardbus defines and types which are identical to
their pci counterparts, similar to recent changes in NetBSD.

ok oga@ deraadt@ jasper@


Revision tags: OPENBSD_4_7_BASE
# 1.24 15-Oct-2009 deraadt

Add detach support to a few more drivers, and in others do the neccessary
operations in the detach function in the right order. Also ensure that the
interrupt handlers not trust registers that go away.
read over very carefully by dms, tested by me


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

Make fxp at pci detachable; untested.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.22 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.21 25-Feb-2008 brad

Following up with further dmesg display tweaking after the cardbusprint()
change.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.20 08-May-2007 deraadt

repair com/fxp foo_detach() stuff, the hardest part being the pccom mess


# 1.19 08-May-2007 deraadt

put more foo_detach() routines where they are used


Revision tags: OPENBSD_4_1_BASE
# 1.18 12-Oct-2006 grange

Add a symbolic name parameter to cardbus_intr_establish().
Count cardbus devices interrupts in cbb(4) using evcount(9).

ok deraadt@


Revision tags: OPENBSD_4_0_BASE
# 1.17 01-Jul-2006 brad

(fxp/re)_attach_common -> (fxp/re)_attach


# 1.16 17-Jun-2006 brad

add sys/timeout.h


# 1.15 08-Jun-2006 fkr

substitute the Cardbus_conf_read/Cardbus_conf_write macros with
cardbus_conf_read/cardbus_conf_write. This makes fxp* at cardbus?
work (again?) on macppc. tested by various users.


# 1.14 04-Jun-2006 fkr

KNF and whitespace cleanup, no functional change
ok mbalmer@


# 1.13 16-Apr-2006 miod

Use __func__ to get the current function name, no need to declare a variable
for this...


Revision tags: OPENBSD_3_9_BASE
# 1.12 01-Jan-2006 brad

update for pcidevs name change


Revision tags: OPENBSD_3_8_BASE
# 1.11 16-May-2005 brad

Use cardbus_matchbyid().

ok millert@ jsg@


Revision tags: OPENBSD_3_7_BASE
# 1.10 14-Jan-2005 pvalchev

minor prototypes style; ok deraadt


# 1.9 07-Oct-2004 brad

cardbusdevs -> pcidevs

From NetBSD


Revision tags: OPENBSD_3_6_BASE
# 1.8 04-Aug-2004 mickey

interrupt coalescing on post 82557 chips; from freebsd via Dmitry Bogdan <dsb@poi.dvo.ru>


# 1.7 27-Jun-2004 brad

stop passing an empty enaddr around since we figure out the
MAC address in the common attach code and not the PCI/CardBus
specific portions, this was a side effect of the code being
split to support CardBus.

ok beck@


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.6 07-May-2004 brad

CardBus fxp's use the 82558 chipset which has a Long Receive bit,
we need to enable this to receive VLAN sized frames.

ok deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 12-Oct-2002 krw

Remove more '\n's from panic() statements. Both trailing and leading.

Diff generated by Chris Kuethe.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.3 09-Aug-2001 jason

branches: 1.3.4;
- scb_wait() is now time based (not cpu speed based)
- rearrange multicast setup to be part of init
- convert cu operations to bus_dma(9) (still have to do RFA ops).


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 17-Sep-2000 aaron

branches: 1.2.6;
Support detach of fxp devices to allow ejection of Intel CardBus adapters.


# 1.1 17-Sep-2000 aaron

Add support for Intel PRO/100 CardBus PC Card Ethernet; from NetBSD.


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

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


# 1.35 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.34 19-Dec-2014 guenther

Use <sys/endian.h> instead of <machine/endian.h>

ok dlg@ mpi@ bcook@ millert@ miod@


# 1.33 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 06-Dec-2013 deraadt

Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people


# 1.31 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


# 1.30 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_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.29 02-Apr-2011 jasper

- use nitems(); no binary change@

ok jsg@


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

Since the pci-specific activate function does nothing, move it to fxp.c.
Then it is possible for fxp_powerhook to use it.


Revision tags: OPENBSD_4_8_BASE
# 1.27 27-Mar-2010 jsg

Give cardbus the pci_chipset_tag_t from pccbb and push it out through
cardbus_attach_args so we can switch to using proper pci config
space functions instead of callback based wrappers.

ok oga@ krw@ kettenis@


# 1.26 27-Mar-2010 jsg

Bring back cardbus_chipset_tag_t which is in practice a
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t
which can be passed to the normal pci functions.

Suggested by and ok kettenis@


# 1.25 22-Mar-2010 jsg

Remove some cardbus defines and types which are identical to
their pci counterparts, similar to recent changes in NetBSD.

ok oga@ deraadt@ jasper@


Revision tags: OPENBSD_4_7_BASE
# 1.24 15-Oct-2009 deraadt

Add detach support to a few more drivers, and in others do the neccessary
operations in the detach function in the right order. Also ensure that the
interrupt handlers not trust registers that go away.
read over very carefully by dms, tested by me


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

Make fxp at pci detachable; untested.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.22 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.21 25-Feb-2008 brad

Following up with further dmesg display tweaking after the cardbusprint()
change.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.20 08-May-2007 deraadt

repair com/fxp foo_detach() stuff, the hardest part being the pccom mess


# 1.19 08-May-2007 deraadt

put more foo_detach() routines where they are used


Revision tags: OPENBSD_4_1_BASE
# 1.18 12-Oct-2006 grange

Add a symbolic name parameter to cardbus_intr_establish().
Count cardbus devices interrupts in cbb(4) using evcount(9).

ok deraadt@


Revision tags: OPENBSD_4_0_BASE
# 1.17 01-Jul-2006 brad

(fxp/re)_attach_common -> (fxp/re)_attach


# 1.16 17-Jun-2006 brad

add sys/timeout.h


# 1.15 08-Jun-2006 fkr

substitute the Cardbus_conf_read/Cardbus_conf_write macros with
cardbus_conf_read/cardbus_conf_write. This makes fxp* at cardbus?
work (again?) on macppc. tested by various users.


# 1.14 04-Jun-2006 fkr

KNF and whitespace cleanup, no functional change
ok mbalmer@


# 1.13 16-Apr-2006 miod

Use __func__ to get the current function name, no need to declare a variable
for this...


Revision tags: OPENBSD_3_9_BASE
# 1.12 01-Jan-2006 brad

update for pcidevs name change


Revision tags: OPENBSD_3_8_BASE
# 1.11 16-May-2005 brad

Use cardbus_matchbyid().

ok millert@ jsg@


Revision tags: OPENBSD_3_7_BASE
# 1.10 14-Jan-2005 pvalchev

minor prototypes style; ok deraadt


# 1.9 07-Oct-2004 brad

cardbusdevs -> pcidevs

From NetBSD


Revision tags: OPENBSD_3_6_BASE
# 1.8 04-Aug-2004 mickey

interrupt coalescing on post 82557 chips; from freebsd via Dmitry Bogdan <dsb@poi.dvo.ru>


# 1.7 27-Jun-2004 brad

stop passing an empty enaddr around since we figure out the
MAC address in the common attach code and not the PCI/CardBus
specific portions, this was a side effect of the code being
split to support CardBus.

ok beck@


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.6 07-May-2004 brad

CardBus fxp's use the 82558 chipset which has a Long Receive bit,
we need to enable this to receive VLAN sized frames.

ok deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 12-Oct-2002 krw

Remove more '\n's from panic() statements. Both trailing and leading.

Diff generated by Chris Kuethe.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.3 09-Aug-2001 jason

branches: 1.3.4;
- scb_wait() is now time based (not cpu speed based)
- rearrange multicast setup to be part of init
- convert cu operations to bus_dma(9) (still have to do RFA ops).


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.2 17-Sep-2000 aaron

branches: 1.2.6;
Support detach of fxp devices to allow ejection of Intel CardBus adapters.


# 1.1 17-Sep-2000 aaron

Add support for Intel PRO/100 CardBus PC Card Ethernet; from NetBSD.