History log of /openbsd-current/sys/dev/pcmcia/if_ep_pcmcia.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.52 26-May-2024 jsg

remove unneeded includes


Revision tags: OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.51 11-Sep-2023 mvs

Remove unnecessary <sys/selinfo.h> includes.

ok jsg


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.50 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.49 07-Mar-2021 jsg

ansi


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
# 1.48 25-Nov-2015 mpi

Network drivers should not include <net/route.h> or <net/netisr.h>


# 1.47 24-Nov-2015 mpi

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


# 1.46 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.45 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.44 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_6_BASE
# 1.43 04-May-2014 sf

format string fixes for bus_addr_t and bus_size_t

bus_addr_t and bus_size_t are u_long everywhere

ok kettenis@


Revision tags: OPENBSD_5_5_BASE
# 1.42 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.41 03-Jul-2011 matthew

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago


# 1.40 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.39 30-Aug-2010 deraadt

Convert the pcmcia power hook to an activate function. Then change the
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND
not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout,
which needs fixing.
wdc(4), ne(4), and wi(4) have been fully tested and actually work better
than they ever have before (no more wdc timeouts on resume!)
malo(4) has some other nasty bug which has not yet been spotted which
causes crazy panics.
The other drivers are more rare and will be fixed if people show up
with hardware; for now at least they have been adapted to the new model.
ok kettenis


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.38 13-Oct-2009 pirofti

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.37 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_2_BASE OPENBSD_4_3_BASE
# 1.36 08-May-2007 deraadt

#ifdef notdef functions which are only called in #ifdef notdef contexts


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.35 17-Jun-2006 brad

add sys/timeout.h


Revision tags: OPENBSD_3_9_BASE
# 1.34 21-Nov-2005 millert

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


Revision tags: OPENBSD_3_8_BASE
# 1.33 08-Jun-2005 henning

remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes
"looks good" deraadt miod brad


Revision tags: OPENBSD_3_7_BASE
# 1.32 27-Jan-2005 millert

Use pcmcia_intr_string() for printing the irq (or error) string.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.31 12-May-2004 tedu

network drivers don't need to include bpfdesc.h
ok krw@ canacar@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.30 08-Jul-2003 mickey

no need for an explicit machine/intr.h; tested on alpha, i386, sparc


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.29 01-Jul-2002 fgsch

when printing the size, use what we have map'ed, not what's in the
configuration.


Revision tags: OPENBSD_3_1_BASE
# 1.28 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.27 17-Aug-2001 deraadt

branches: 1.27.4;
quieten pcmcia/cardbus interrupt handling at unsuspend time


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.26 15-Sep-2000 aaron

Support the ejection of mii ep(4) devices, i.e., the 3c574.


# 1.25 28-Jun-2000 millert

Remove pointless variable. It is set to 0, then returned without modification.


# 1.24 29-May-2000 aaron

Support for 3c574 and 3CCFEM556BI PCMCIA Ethernet; from NetBSD.


Revision tags: OPENBSD_2_7_BASE
# 1.23 24-Apr-2000 niklas

Do not unmap CCR before using them for the last time


# 1.22 24-Apr-2000 fgsch

3C1 and 3CCFEM556BI (this one uses boomerang chipset, so no support yet);
from NetBSD.


Revision tags: SMP_BASE
# 1.21 02-Feb-2000 deraadt

branches: 1.21.2;
make the activate routines do xxstop() and xxinit()


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.20 16-Aug-1999 deraadt

manufacturer and product are 16 bits, 0xffff is the special case


# 1.19 16-Aug-1999 fgsch

more shorten dmesg output.


# 1.18 16-Aug-1999 fgsch

Remove unnecessary code. Shorten dmesg output.


# 1.17 14-Aug-1999 fgsch

Support for 3CXEM556B-INT.


# 1.16 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.15 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


# 1.14 28-May-1999 niklas

0 alignment is bad, now aic at pcmcia at least attaches!


Revision tags: OPENBSD_2_5_BASE
# 1.13 28-Jan-1999 fgsch

Add support for:
- 3COM 3CXEM556 (Ethernet/Modem)
- SVEC Combo and Lancard
- Corega PCC-T
Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies.
Add more products to pcmciadevs.
Correctly read 1 controller if CL-PD6729.
Remove some unused vars.


# 1.12 17-Dec-1998 fgsch

Disable 3c574 until all the MII code required is added.


Revision tags: OPENBSD_2_4_BASE
# 1.11 19-Sep-1998 maja

Added if_media support from NetBSD. -moj


# 1.10 16-Sep-1998 deraadt

fix ep probe message printouts


# 1.9 11-Sep-1998 fgsch

PCMCIA code ported from NetBSD.
Support for aic, ep, pccom and sm.


Revision tags: OPENBSD_2_3_BASE
# 1.8 17-Mar-1998 deraadt

delete extra print


Revision tags: OPENBSD_2_2_BASE
# 1.7 30-Jul-1997 niklas

Sync to NetBSD. Adapt to use bus_space_multi_raw* interface of OpenBSD.
Some KNF too.


Revision tags: OPENBSD_2_1_BASE
# 1.6 28-Nov-1996 niklas

Adaption to new bus.h from NetBSD. Various driver has been updated to
NetBSD 961107 state. Other has not, partly because sometimes the bus.h
changes was coupled with other changes.


# 1.5 12-Nov-1996 niklas

s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy road
possibly taken in small steps


# 1.4 16-Oct-1996 deraadt

unused var


Revision tags: OPENBSD_2_0_BASE
# 1.3 07-May-1996 deraadt

convert to machine/bus.h


# 1.2 05-May-1996 mickey

add general ether_ioctl call in net/if_ethersubr.c,
NS,IPX,X.25 special processing is now handled in there.
reflect this amazing addition in all the ether ifaces.
ppl, pls check the stuff.


# 1.1 03-May-1996 deraadt

pcmcia version of if_ep (duct-taped together by me)


# 1.51 11-Sep-2023 mvs

Remove unnecessary <sys/selinfo.h> includes.

ok jsg


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.50 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.49 07-Mar-2021 jsg

ansi


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
# 1.48 25-Nov-2015 mpi

Network drivers should not include <net/route.h> or <net/netisr.h>


# 1.47 24-Nov-2015 mpi

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


# 1.46 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.45 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.44 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_6_BASE
# 1.43 04-May-2014 sf

format string fixes for bus_addr_t and bus_size_t

bus_addr_t and bus_size_t are u_long everywhere

ok kettenis@


Revision tags: OPENBSD_5_5_BASE
# 1.42 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.41 03-Jul-2011 matthew

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago


# 1.40 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.39 30-Aug-2010 deraadt

Convert the pcmcia power hook to an activate function. Then change the
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND
not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout,
which needs fixing.
wdc(4), ne(4), and wi(4) have been fully tested and actually work better
than they ever have before (no more wdc timeouts on resume!)
malo(4) has some other nasty bug which has not yet been spotted which
causes crazy panics.
The other drivers are more rare and will be fixed if people show up
with hardware; for now at least they have been adapted to the new model.
ok kettenis


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.38 13-Oct-2009 pirofti

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.37 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_2_BASE OPENBSD_4_3_BASE
# 1.36 08-May-2007 deraadt

#ifdef notdef functions which are only called in #ifdef notdef contexts


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.35 17-Jun-2006 brad

add sys/timeout.h


Revision tags: OPENBSD_3_9_BASE
# 1.34 21-Nov-2005 millert

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


Revision tags: OPENBSD_3_8_BASE
# 1.33 08-Jun-2005 henning

remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes
"looks good" deraadt miod brad


Revision tags: OPENBSD_3_7_BASE
# 1.32 27-Jan-2005 millert

Use pcmcia_intr_string() for printing the irq (or error) string.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.31 12-May-2004 tedu

network drivers don't need to include bpfdesc.h
ok krw@ canacar@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.30 08-Jul-2003 mickey

no need for an explicit machine/intr.h; tested on alpha, i386, sparc


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.29 01-Jul-2002 fgsch

when printing the size, use what we have map'ed, not what's in the
configuration.


Revision tags: OPENBSD_3_1_BASE
# 1.28 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.27 17-Aug-2001 deraadt

branches: 1.27.4;
quieten pcmcia/cardbus interrupt handling at unsuspend time


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.26 15-Sep-2000 aaron

Support the ejection of mii ep(4) devices, i.e., the 3c574.


# 1.25 28-Jun-2000 millert

Remove pointless variable. It is set to 0, then returned without modification.


# 1.24 29-May-2000 aaron

Support for 3c574 and 3CCFEM556BI PCMCIA Ethernet; from NetBSD.


Revision tags: OPENBSD_2_7_BASE
# 1.23 24-Apr-2000 niklas

Do not unmap CCR before using them for the last time


# 1.22 24-Apr-2000 fgsch

3C1 and 3CCFEM556BI (this one uses boomerang chipset, so no support yet);
from NetBSD.


Revision tags: SMP_BASE
# 1.21 02-Feb-2000 deraadt

branches: 1.21.2;
make the activate routines do xxstop() and xxinit()


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.20 16-Aug-1999 deraadt

manufacturer and product are 16 bits, 0xffff is the special case


# 1.19 16-Aug-1999 fgsch

more shorten dmesg output.


# 1.18 16-Aug-1999 fgsch

Remove unnecessary code. Shorten dmesg output.


# 1.17 14-Aug-1999 fgsch

Support for 3CXEM556B-INT.


# 1.16 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.15 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


# 1.14 28-May-1999 niklas

0 alignment is bad, now aic at pcmcia at least attaches!


Revision tags: OPENBSD_2_5_BASE
# 1.13 28-Jan-1999 fgsch

Add support for:
- 3COM 3CXEM556 (Ethernet/Modem)
- SVEC Combo and Lancard
- Corega PCC-T
Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies.
Add more products to pcmciadevs.
Correctly read 1 controller if CL-PD6729.
Remove some unused vars.


# 1.12 17-Dec-1998 fgsch

Disable 3c574 until all the MII code required is added.


Revision tags: OPENBSD_2_4_BASE
# 1.11 19-Sep-1998 maja

Added if_media support from NetBSD. -moj


# 1.10 16-Sep-1998 deraadt

fix ep probe message printouts


# 1.9 11-Sep-1998 fgsch

PCMCIA code ported from NetBSD.
Support for aic, ep, pccom and sm.


Revision tags: OPENBSD_2_3_BASE
# 1.8 17-Mar-1998 deraadt

delete extra print


Revision tags: OPENBSD_2_2_BASE
# 1.7 30-Jul-1997 niklas

Sync to NetBSD. Adapt to use bus_space_multi_raw* interface of OpenBSD.
Some KNF too.


Revision tags: OPENBSD_2_1_BASE
# 1.6 28-Nov-1996 niklas

Adaption to new bus.h from NetBSD. Various driver has been updated to
NetBSD 961107 state. Other has not, partly because sometimes the bus.h
changes was coupled with other changes.


# 1.5 12-Nov-1996 niklas

s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy road
possibly taken in small steps


# 1.4 16-Oct-1996 deraadt

unused var


Revision tags: OPENBSD_2_0_BASE
# 1.3 07-May-1996 deraadt

convert to machine/bus.h


# 1.2 05-May-1996 mickey

add general ether_ioctl call in net/if_ethersubr.c,
NS,IPX,X.25 special processing is now handled in there.
reflect this amazing addition in all the ether ifaces.
ppl, pls check the stuff.


# 1.1 03-May-1996 deraadt

pcmcia version of if_ep (duct-taped together by me)


# 1.50 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.49 07-Mar-2021 jsg

ansi


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
# 1.48 25-Nov-2015 mpi

Network drivers should not include <net/route.h> or <net/netisr.h>


# 1.47 24-Nov-2015 mpi

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


# 1.46 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.45 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.44 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_6_BASE
# 1.43 04-May-2014 sf

format string fixes for bus_addr_t and bus_size_t

bus_addr_t and bus_size_t are u_long everywhere

ok kettenis@


Revision tags: OPENBSD_5_5_BASE
# 1.42 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.41 03-Jul-2011 matthew

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago


# 1.40 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.39 30-Aug-2010 deraadt

Convert the pcmcia power hook to an activate function. Then change the
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND
not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout,
which needs fixing.
wdc(4), ne(4), and wi(4) have been fully tested and actually work better
than they ever have before (no more wdc timeouts on resume!)
malo(4) has some other nasty bug which has not yet been spotted which
causes crazy panics.
The other drivers are more rare and will be fixed if people show up
with hardware; for now at least they have been adapted to the new model.
ok kettenis


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.38 13-Oct-2009 pirofti

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.37 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_2_BASE OPENBSD_4_3_BASE
# 1.36 08-May-2007 deraadt

#ifdef notdef functions which are only called in #ifdef notdef contexts


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.35 17-Jun-2006 brad

add sys/timeout.h


Revision tags: OPENBSD_3_9_BASE
# 1.34 21-Nov-2005 millert

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


Revision tags: OPENBSD_3_8_BASE
# 1.33 08-Jun-2005 henning

remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes
"looks good" deraadt miod brad


Revision tags: OPENBSD_3_7_BASE
# 1.32 27-Jan-2005 millert

Use pcmcia_intr_string() for printing the irq (or error) string.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.31 12-May-2004 tedu

network drivers don't need to include bpfdesc.h
ok krw@ canacar@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.30 08-Jul-2003 mickey

no need for an explicit machine/intr.h; tested on alpha, i386, sparc


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.29 01-Jul-2002 fgsch

when printing the size, use what we have map'ed, not what's in the
configuration.


Revision tags: OPENBSD_3_1_BASE
# 1.28 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.27 17-Aug-2001 deraadt

branches: 1.27.4;
quieten pcmcia/cardbus interrupt handling at unsuspend time


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.26 15-Sep-2000 aaron

Support the ejection of mii ep(4) devices, i.e., the 3c574.


# 1.25 28-Jun-2000 millert

Remove pointless variable. It is set to 0, then returned without modification.


# 1.24 29-May-2000 aaron

Support for 3c574 and 3CCFEM556BI PCMCIA Ethernet; from NetBSD.


Revision tags: OPENBSD_2_7_BASE
# 1.23 24-Apr-2000 niklas

Do not unmap CCR before using them for the last time


# 1.22 24-Apr-2000 fgsch

3C1 and 3CCFEM556BI (this one uses boomerang chipset, so no support yet);
from NetBSD.


Revision tags: SMP_BASE
# 1.21 02-Feb-2000 deraadt

branches: 1.21.2;
make the activate routines do xxstop() and xxinit()


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.20 16-Aug-1999 deraadt

manufacturer and product are 16 bits, 0xffff is the special case


# 1.19 16-Aug-1999 fgsch

more shorten dmesg output.


# 1.18 16-Aug-1999 fgsch

Remove unnecessary code. Shorten dmesg output.


# 1.17 14-Aug-1999 fgsch

Support for 3CXEM556B-INT.


# 1.16 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.15 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


# 1.14 28-May-1999 niklas

0 alignment is bad, now aic at pcmcia at least attaches!


Revision tags: OPENBSD_2_5_BASE
# 1.13 28-Jan-1999 fgsch

Add support for:
- 3COM 3CXEM556 (Ethernet/Modem)
- SVEC Combo and Lancard
- Corega PCC-T
Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies.
Add more products to pcmciadevs.
Correctly read 1 controller if CL-PD6729.
Remove some unused vars.


# 1.12 17-Dec-1998 fgsch

Disable 3c574 until all the MII code required is added.


Revision tags: OPENBSD_2_4_BASE
# 1.11 19-Sep-1998 maja

Added if_media support from NetBSD. -moj


# 1.10 16-Sep-1998 deraadt

fix ep probe message printouts


# 1.9 11-Sep-1998 fgsch

PCMCIA code ported from NetBSD.
Support for aic, ep, pccom and sm.


Revision tags: OPENBSD_2_3_BASE
# 1.8 17-Mar-1998 deraadt

delete extra print


Revision tags: OPENBSD_2_2_BASE
# 1.7 30-Jul-1997 niklas

Sync to NetBSD. Adapt to use bus_space_multi_raw* interface of OpenBSD.
Some KNF too.


Revision tags: OPENBSD_2_1_BASE
# 1.6 28-Nov-1996 niklas

Adaption to new bus.h from NetBSD. Various driver has been updated to
NetBSD 961107 state. Other has not, partly because sometimes the bus.h
changes was coupled with other changes.


# 1.5 12-Nov-1996 niklas

s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy road
possibly taken in small steps


# 1.4 16-Oct-1996 deraadt

unused var


Revision tags: OPENBSD_2_0_BASE
# 1.3 07-May-1996 deraadt

convert to machine/bus.h


# 1.2 05-May-1996 mickey

add general ether_ioctl call in net/if_ethersubr.c,
NS,IPX,X.25 special processing is now handled in there.
reflect this amazing addition in all the ether ifaces.
ppl, pls check the stuff.


# 1.1 03-May-1996 deraadt

pcmcia version of if_ep (duct-taped together by me)


# 1.49 07-Mar-2021 jsg

ansi


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
# 1.48 25-Nov-2015 mpi

Network drivers should not include <net/route.h> or <net/netisr.h>


# 1.47 24-Nov-2015 mpi

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


# 1.46 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.45 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.44 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_6_BASE
# 1.43 04-May-2014 sf

format string fixes for bus_addr_t and bus_size_t

bus_addr_t and bus_size_t are u_long everywhere

ok kettenis@


Revision tags: OPENBSD_5_5_BASE
# 1.42 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.41 03-Jul-2011 matthew

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago


# 1.40 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.39 30-Aug-2010 deraadt

Convert the pcmcia power hook to an activate function. Then change the
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND
not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout,
which needs fixing.
wdc(4), ne(4), and wi(4) have been fully tested and actually work better
than they ever have before (no more wdc timeouts on resume!)
malo(4) has some other nasty bug which has not yet been spotted which
causes crazy panics.
The other drivers are more rare and will be fixed if people show up
with hardware; for now at least they have been adapted to the new model.
ok kettenis


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.38 13-Oct-2009 pirofti

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.37 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_2_BASE OPENBSD_4_3_BASE
# 1.36 08-May-2007 deraadt

#ifdef notdef functions which are only called in #ifdef notdef contexts


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.35 17-Jun-2006 brad

add sys/timeout.h


Revision tags: OPENBSD_3_9_BASE
# 1.34 21-Nov-2005 millert

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


Revision tags: OPENBSD_3_8_BASE
# 1.33 08-Jun-2005 henning

remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes
"looks good" deraadt miod brad


Revision tags: OPENBSD_3_7_BASE
# 1.32 27-Jan-2005 millert

Use pcmcia_intr_string() for printing the irq (or error) string.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.31 12-May-2004 tedu

network drivers don't need to include bpfdesc.h
ok krw@ canacar@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.30 08-Jul-2003 mickey

no need for an explicit machine/intr.h; tested on alpha, i386, sparc


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.29 01-Jul-2002 fgsch

when printing the size, use what we have map'ed, not what's in the
configuration.


Revision tags: OPENBSD_3_1_BASE
# 1.28 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.27 17-Aug-2001 deraadt

branches: 1.27.4;
quieten pcmcia/cardbus interrupt handling at unsuspend time


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.26 15-Sep-2000 aaron

Support the ejection of mii ep(4) devices, i.e., the 3c574.


# 1.25 28-Jun-2000 millert

Remove pointless variable. It is set to 0, then returned without modification.


# 1.24 29-May-2000 aaron

Support for 3c574 and 3CCFEM556BI PCMCIA Ethernet; from NetBSD.


Revision tags: OPENBSD_2_7_BASE
# 1.23 24-Apr-2000 niklas

Do not unmap CCR before using them for the last time


# 1.22 24-Apr-2000 fgsch

3C1 and 3CCFEM556BI (this one uses boomerang chipset, so no support yet);
from NetBSD.


Revision tags: SMP_BASE
# 1.21 02-Feb-2000 deraadt

branches: 1.21.2;
make the activate routines do xxstop() and xxinit()


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.20 16-Aug-1999 deraadt

manufacturer and product are 16 bits, 0xffff is the special case


# 1.19 16-Aug-1999 fgsch

more shorten dmesg output.


# 1.18 16-Aug-1999 fgsch

Remove unnecessary code. Shorten dmesg output.


# 1.17 14-Aug-1999 fgsch

Support for 3CXEM556B-INT.


# 1.16 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.15 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


# 1.14 28-May-1999 niklas

0 alignment is bad, now aic at pcmcia at least attaches!


Revision tags: OPENBSD_2_5_BASE
# 1.13 28-Jan-1999 fgsch

Add support for:
- 3COM 3CXEM556 (Ethernet/Modem)
- SVEC Combo and Lancard
- Corega PCC-T
Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies.
Add more products to pcmciadevs.
Correctly read 1 controller if CL-PD6729.
Remove some unused vars.


# 1.12 17-Dec-1998 fgsch

Disable 3c574 until all the MII code required is added.


Revision tags: OPENBSD_2_4_BASE
# 1.11 19-Sep-1998 maja

Added if_media support from NetBSD. -moj


# 1.10 16-Sep-1998 deraadt

fix ep probe message printouts


# 1.9 11-Sep-1998 fgsch

PCMCIA code ported from NetBSD.
Support for aic, ep, pccom and sm.


Revision tags: OPENBSD_2_3_BASE
# 1.8 17-Mar-1998 deraadt

delete extra print


Revision tags: OPENBSD_2_2_BASE
# 1.7 30-Jul-1997 niklas

Sync to NetBSD. Adapt to use bus_space_multi_raw* interface of OpenBSD.
Some KNF too.


Revision tags: OPENBSD_2_1_BASE
# 1.6 28-Nov-1996 niklas

Adaption to new bus.h from NetBSD. Various driver has been updated to
NetBSD 961107 state. Other has not, partly because sometimes the bus.h
changes was coupled with other changes.


# 1.5 12-Nov-1996 niklas

s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy road
possibly taken in small steps


# 1.4 16-Oct-1996 deraadt

unused var


Revision tags: OPENBSD_2_0_BASE
# 1.3 07-May-1996 deraadt

convert to machine/bus.h


# 1.2 05-May-1996 mickey

add general ether_ioctl call in net/if_ethersubr.c,
NS,IPX,X.25 special processing is now handled in there.
reflect this amazing addition in all the ether ifaces.
ppl, pls check the stuff.


# 1.1 03-May-1996 deraadt

pcmcia version of if_ep (duct-taped together by me)


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.48 25-Nov-2015 mpi

Network drivers should not include <net/route.h> or <net/netisr.h>


# 1.47 24-Nov-2015 mpi

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


# 1.46 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.45 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.44 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_6_BASE
# 1.43 04-May-2014 sf

format string fixes for bus_addr_t and bus_size_t

bus_addr_t and bus_size_t are u_long everywhere

ok kettenis@


Revision tags: OPENBSD_5_5_BASE
# 1.42 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.41 03-Jul-2011 matthew

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago


# 1.40 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.39 30-Aug-2010 deraadt

Convert the pcmcia power hook to an activate function. Then change the
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND
not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout,
which needs fixing.
wdc(4), ne(4), and wi(4) have been fully tested and actually work better
than they ever have before (no more wdc timeouts on resume!)
malo(4) has some other nasty bug which has not yet been spotted which
causes crazy panics.
The other drivers are more rare and will be fixed if people show up
with hardware; for now at least they have been adapted to the new model.
ok kettenis


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.38 13-Oct-2009 pirofti

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.37 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_2_BASE OPENBSD_4_3_BASE
# 1.36 08-May-2007 deraadt

#ifdef notdef functions which are only called in #ifdef notdef contexts


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.35 17-Jun-2006 brad

add sys/timeout.h


Revision tags: OPENBSD_3_9_BASE
# 1.34 21-Nov-2005 millert

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


Revision tags: OPENBSD_3_8_BASE
# 1.33 08-Jun-2005 henning

remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes
"looks good" deraadt miod brad


Revision tags: OPENBSD_3_7_BASE
# 1.32 27-Jan-2005 millert

Use pcmcia_intr_string() for printing the irq (or error) string.


Revision tags: OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.31 12-May-2004 tedu

network drivers don't need to include bpfdesc.h
ok krw@ canacar@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.30 08-Jul-2003 mickey

no need for an explicit machine/intr.h; tested on alpha, i386, sparc


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.29 01-Jul-2002 fgsch

when printing the size, use what we have map'ed, not what's in the
configuration.


Revision tags: OPENBSD_3_1_BASE
# 1.28 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.27 17-Aug-2001 deraadt

branches: 1.27.4;
quieten pcmcia/cardbus interrupt handling at unsuspend time


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.26 15-Sep-2000 aaron

Support the ejection of mii ep(4) devices, i.e., the 3c574.


# 1.25 28-Jun-2000 millert

Remove pointless variable. It is set to 0, then returned without modification.


# 1.24 29-May-2000 aaron

Support for 3c574 and 3CCFEM556BI PCMCIA Ethernet; from NetBSD.


Revision tags: OPENBSD_2_7_BASE
# 1.23 24-Apr-2000 niklas

Do not unmap CCR before using them for the last time


# 1.22 24-Apr-2000 fgsch

3C1 and 3CCFEM556BI (this one uses boomerang chipset, so no support yet);
from NetBSD.


Revision tags: SMP_BASE
# 1.21 02-Feb-2000 deraadt

branches: 1.21.2;
make the activate routines do xxstop() and xxinit()


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.20 16-Aug-1999 deraadt

manufacturer and product are 16 bits, 0xffff is the special case


# 1.19 16-Aug-1999 fgsch

more shorten dmesg output.


# 1.18 16-Aug-1999 fgsch

Remove unnecessary code. Shorten dmesg output.


# 1.17 14-Aug-1999 fgsch

Support for 3CXEM556B-INT.


# 1.16 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.15 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


# 1.14 28-May-1999 niklas

0 alignment is bad, now aic at pcmcia at least attaches!


Revision tags: OPENBSD_2_5_BASE
# 1.13 28-Jan-1999 fgsch

Add support for:
- 3COM 3CXEM556 (Ethernet/Modem)
- SVEC Combo and Lancard
- Corega PCC-T
Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies.
Add more products to pcmciadevs.
Correctly read 1 controller if CL-PD6729.
Remove some unused vars.


# 1.12 17-Dec-1998 fgsch

Disable 3c574 until all the MII code required is added.


Revision tags: OPENBSD_2_4_BASE
# 1.11 19-Sep-1998 maja

Added if_media support from NetBSD. -moj


# 1.10 16-Sep-1998 deraadt

fix ep probe message printouts


# 1.9 11-Sep-1998 fgsch

PCMCIA code ported from NetBSD.
Support for aic, ep, pccom and sm.


Revision tags: OPENBSD_2_3_BASE
# 1.8 17-Mar-1998 deraadt

delete extra print


Revision tags: OPENBSD_2_2_BASE
# 1.7 30-Jul-1997 niklas

Sync to NetBSD. Adapt to use bus_space_multi_raw* interface of OpenBSD.
Some KNF too.


Revision tags: OPENBSD_2_1_BASE
# 1.6 28-Nov-1996 niklas

Adaption to new bus.h from NetBSD. Various driver has been updated to
NetBSD 961107 state. Other has not, partly because sometimes the bus.h
changes was coupled with other changes.


# 1.5 12-Nov-1996 niklas

s/bus.h/bus.old.h/ to make the transit to the bus_space bus.h an easy road
possibly taken in small steps


# 1.4 16-Oct-1996 deraadt

unused var


Revision tags: OPENBSD_2_0_BASE
# 1.3 07-May-1996 deraadt

convert to machine/bus.h


# 1.2 05-May-1996 mickey

add general ether_ioctl call in net/if_ethersubr.c,
NS,IPX,X.25 special processing is now handled in there.
reflect this amazing addition in all the ether ifaces.
ppl, pls check the stuff.


# 1.1 03-May-1996 deraadt

pcmcia version of if_ep (duct-taped together by me)