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

remove unneeded includes


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

Remove unnecessary <sys/selinfo.h> includes.

ok jsg


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

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.38 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.37 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_8_BASE
# 1.36 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.35 03-Dec-2014 krw

More duplicate #include cleanout.

ok deraadt@ tedu@


# 1.34 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.33 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.32 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.31 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.30 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.29 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.28 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_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.27 17-Jun-2006 brad

add sys/timeout.h


# 1.26 20-Apr-2006 miod

Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@


Revision tags: OPENBSD_3_9_BASE
# 1.25 23-Jan-2006 martin

update sm(4) from NetBSD, including support for more models and MII;
also activate ISA attachment;

ok brad@


# 1.24 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.23 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.22 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.21 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.20 04-Sep-2003 avsm

remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@


Revision tags: OPENBSD_3_3_BASE UBC_SYNC_A
# 1.19 18-Feb-2003 jmc

intial -> initial;

the great intial witch hunt, as prompted by tdeval@

os-aix-dso.c: ok henning@
ab.C: ok drahn@


# 1.18 19-Nov-2002 jason

Use queue.h macros instead of using the structure names directly.


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.17 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.16 14-Mar-2002 millert

First round of __P removal in sys


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

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


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.14 04-Aug-2000 aaron

Support for the Psion Goldcard; pt98kfr@student.hk-r.se


# 1.13 20-Jun-2000 niklas

Almost make a Megahertz card working, still rx probs though


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

Do not unmap CCR before using them for the last time


Revision tags: SMP_BASE
# 1.11 02-Feb-2000 fgsch

branches: 1.11.2;
Call xxx_init and xxx_stop on activate.


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.10 01-Oct-1999 downsj

Attach to SMC 8020 cards, they seem to work fine.


# 1.9 16-Aug-1999 deraadt

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


# 1.8 16-Aug-1999 fgsch

Remove unneeded ifdefs.


# 1.7 16-Aug-1999 fgsch

Don't establish irq later.


# 1.6 16-Aug-1999 fgsch

shorten dmesg output.


# 1.5 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.4 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.3 14-Oct-1998 fgsch

sync


# 1.2 12-Sep-1998 fgsch

if_media support.


# 1.1 11-Sep-1998 fgsch

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


# 1.40 11-Sep-2023 mvs

Remove unnecessary <sys/selinfo.h> includes.

ok jsg


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

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.38 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.37 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_8_BASE
# 1.36 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.35 03-Dec-2014 krw

More duplicate #include cleanout.

ok deraadt@ tedu@


# 1.34 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.33 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.32 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.31 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.30 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.29 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.28 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_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.27 17-Jun-2006 brad

add sys/timeout.h


# 1.26 20-Apr-2006 miod

Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@


Revision tags: OPENBSD_3_9_BASE
# 1.25 23-Jan-2006 martin

update sm(4) from NetBSD, including support for more models and MII;
also activate ISA attachment;

ok brad@


# 1.24 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.23 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.22 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.21 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.20 04-Sep-2003 avsm

remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@


Revision tags: OPENBSD_3_3_BASE UBC_SYNC_A
# 1.19 18-Feb-2003 jmc

intial -> initial;

the great intial witch hunt, as prompted by tdeval@

os-aix-dso.c: ok henning@
ab.C: ok drahn@


# 1.18 19-Nov-2002 jason

Use queue.h macros instead of using the structure names directly.


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.17 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.16 14-Mar-2002 millert

First round of __P removal in sys


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

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


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.14 04-Aug-2000 aaron

Support for the Psion Goldcard; pt98kfr@student.hk-r.se


# 1.13 20-Jun-2000 niklas

Almost make a Megahertz card working, still rx probs though


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

Do not unmap CCR before using them for the last time


Revision tags: SMP_BASE
# 1.11 02-Feb-2000 fgsch

branches: 1.11.2;
Call xxx_init and xxx_stop on activate.


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.10 01-Oct-1999 downsj

Attach to SMC 8020 cards, they seem to work fine.


# 1.9 16-Aug-1999 deraadt

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


# 1.8 16-Aug-1999 fgsch

Remove unneeded ifdefs.


# 1.7 16-Aug-1999 fgsch

Don't establish irq later.


# 1.6 16-Aug-1999 fgsch

shorten dmesg output.


# 1.5 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.4 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.3 14-Oct-1998 fgsch

sync


# 1.2 12-Sep-1998 fgsch

if_media support.


# 1.1 11-Sep-1998 fgsch

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


# 1.39 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.38 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.37 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_8_BASE
# 1.36 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.35 03-Dec-2014 krw

More duplicate #include cleanout.

ok deraadt@ tedu@


# 1.34 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.33 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.32 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.31 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.30 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.29 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.28 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_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.27 17-Jun-2006 brad

add sys/timeout.h


# 1.26 20-Apr-2006 miod

Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@


Revision tags: OPENBSD_3_9_BASE
# 1.25 23-Jan-2006 martin

update sm(4) from NetBSD, including support for more models and MII;
also activate ISA attachment;

ok brad@


# 1.24 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.23 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.22 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.21 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.20 04-Sep-2003 avsm

remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@


Revision tags: OPENBSD_3_3_BASE UBC_SYNC_A
# 1.19 18-Feb-2003 jmc

intial -> initial;

the great intial witch hunt, as prompted by tdeval@

os-aix-dso.c: ok henning@
ab.C: ok drahn@


# 1.18 19-Nov-2002 jason

Use queue.h macros instead of using the structure names directly.


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.17 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.16 14-Mar-2002 millert

First round of __P removal in sys


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

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


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.14 04-Aug-2000 aaron

Support for the Psion Goldcard; pt98kfr@student.hk-r.se


# 1.13 20-Jun-2000 niklas

Almost make a Megahertz card working, still rx probs though


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

Do not unmap CCR before using them for the last time


Revision tags: SMP_BASE
# 1.11 02-Feb-2000 fgsch

branches: 1.11.2;
Call xxx_init and xxx_stop on activate.


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.10 01-Oct-1999 downsj

Attach to SMC 8020 cards, they seem to work fine.


# 1.9 16-Aug-1999 deraadt

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


# 1.8 16-Aug-1999 fgsch

Remove unneeded ifdefs.


# 1.7 16-Aug-1999 fgsch

Don't establish irq later.


# 1.6 16-Aug-1999 fgsch

shorten dmesg output.


# 1.5 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.4 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.3 14-Oct-1998 fgsch

sync


# 1.2 12-Sep-1998 fgsch

if_media support.


# 1.1 11-Sep-1998 fgsch

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


# 1.38 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.37 24-Nov-2015 mpi

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


Revision tags: OPENBSD_5_8_BASE
# 1.36 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.35 03-Dec-2014 krw

More duplicate #include cleanout.

ok deraadt@ tedu@


# 1.34 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.33 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.32 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.31 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.30 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.29 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.28 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_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.27 17-Jun-2006 brad

add sys/timeout.h


# 1.26 20-Apr-2006 miod

Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@


Revision tags: OPENBSD_3_9_BASE
# 1.25 23-Jan-2006 martin

update sm(4) from NetBSD, including support for more models and MII;
also activate ISA attachment;

ok brad@


# 1.24 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.23 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.22 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.21 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.20 04-Sep-2003 avsm

remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@


Revision tags: OPENBSD_3_3_BASE UBC_SYNC_A
# 1.19 18-Feb-2003 jmc

intial -> initial;

the great intial witch hunt, as prompted by tdeval@

os-aix-dso.c: ok henning@
ab.C: ok drahn@


# 1.18 19-Nov-2002 jason

Use queue.h macros instead of using the structure names directly.


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.17 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.16 14-Mar-2002 millert

First round of __P removal in sys


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

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


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.14 04-Aug-2000 aaron

Support for the Psion Goldcard; pt98kfr@student.hk-r.se


# 1.13 20-Jun-2000 niklas

Almost make a Megahertz card working, still rx probs though


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

Do not unmap CCR before using them for the last time


Revision tags: SMP_BASE
# 1.11 02-Feb-2000 fgsch

branches: 1.11.2;
Call xxx_init and xxx_stop on activate.


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.10 01-Oct-1999 downsj

Attach to SMC 8020 cards, they seem to work fine.


# 1.9 16-Aug-1999 deraadt

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


# 1.8 16-Aug-1999 fgsch

Remove unneeded ifdefs.


# 1.7 16-Aug-1999 fgsch

Don't establish irq later.


# 1.6 16-Aug-1999 fgsch

shorten dmesg output.


# 1.5 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.4 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.3 14-Oct-1998 fgsch

sync


# 1.2 12-Sep-1998 fgsch

if_media support.


# 1.1 11-Sep-1998 fgsch

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


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

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


Revision tags: OPENBSD_5_8_BASE
# 1.36 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.35 03-Dec-2014 krw

More duplicate #include cleanout.

ok deraadt@ tedu@


# 1.34 11-Aug-2014 mpi

Fewer <netinet/in_systm.h>


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.33 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.32 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.31 31-Mar-2011 jasper

- use nitems(); no binary change.

ok fgsch@


Revision tags: OPENBSD_4_9_BASE
# 1.30 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.29 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.28 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_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.27 17-Jun-2006 brad

add sys/timeout.h


# 1.26 20-Apr-2006 miod

Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@


Revision tags: OPENBSD_3_9_BASE
# 1.25 23-Jan-2006 martin

update sm(4) from NetBSD, including support for more models and MII;
also activate ISA attachment;

ok brad@


# 1.24 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.23 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.22 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.21 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.20 04-Sep-2003 avsm

remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@


Revision tags: OPENBSD_3_3_BASE UBC_SYNC_A
# 1.19 18-Feb-2003 jmc

intial -> initial;

the great intial witch hunt, as prompted by tdeval@

os-aix-dso.c: ok henning@
ab.C: ok drahn@


# 1.18 19-Nov-2002 jason

Use queue.h macros instead of using the structure names directly.


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.17 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.16 14-Mar-2002 millert

First round of __P removal in sys


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

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


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.14 04-Aug-2000 aaron

Support for the Psion Goldcard; pt98kfr@student.hk-r.se


# 1.13 20-Jun-2000 niklas

Almost make a Megahertz card working, still rx probs though


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

Do not unmap CCR before using them for the last time


Revision tags: SMP_BASE
# 1.11 02-Feb-2000 fgsch

branches: 1.11.2;
Call xxx_init and xxx_stop on activate.


Revision tags: OPENBSD_2_6_BASE kame_19991208
# 1.10 01-Oct-1999 downsj

Attach to SMC 8020 cards, they seem to work fine.


# 1.9 16-Aug-1999 deraadt

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


# 1.8 16-Aug-1999 fgsch

Remove unneeded ifdefs.


# 1.7 16-Aug-1999 fgsch

Don't establish irq later.


# 1.6 16-Aug-1999 fgsch

shorten dmesg output.


# 1.5 08-Aug-1999 niklas

Add detaching support to networking pcmcia cards


# 1.4 26-Jul-1999 deraadt

shrink code, cleanup port printouts, repairs various comments


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.3 14-Oct-1998 fgsch

sync


# 1.2 12-Sep-1998 fgsch

if_media support.


# 1.1 11-Sep-1998 fgsch

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