History log of /openbsd-current/sys/dev/cardbus/if_pgt_cardbus.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 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.19 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.18 11-Dec-2015 mpi

Replace mountroothook_establish(9) by config_mountroot(9) a narrower API
similar to config_defer(9).

ok mikeb@, deraadt@


# 1.17 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.16 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.15 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.14 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.13 06-Sep-2010 deraadt

All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}


# 1.12 27-Aug-2010 deraadt

Massage the powerhook function into an activate function, and since we do
not neccessarily have a working filesystem for the firmware yet, use a workq
to postpone resume. Then make the powerhook function call the activate
function. There remains some questions about the sc_power functions...
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.11 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.10 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.9 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_6_BASE OPENBSD_4_7_BASE
# 1.8 29-Mar-2009 sthen

make various strings ("can't map mem space" and similar) more consistent
between instances, saving space in the kernel. feedback from many (some
incorporated, some left for future work).

ok deraadt, kettenis, "why not" miod.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.7 11-Nov-2006 maja

Add support for 3Com 3CRWE154G72. -moj


# 1.6 10-Nov-2006 damien

acx(4) doesn't use rssadapt(9).
pgt(4) doesn't use rssadapt(9) nor amrr.
=> remove useless #include.


# 1.5 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@


# 1.4 09-Oct-2006 mglocker

Add powerhooks. Tested with a Netgear WG511v1 on my X40.

ok claudio@


# 1.3 06-Oct-2006 mglocker

Fix cardbus support for pgt(4). Tested with a Netgear WG511.

ok claudio@


# 1.2 02-Oct-2006 mglocker

Simplify device attachment. From brad@ with a tiny correction.


# 1.1 28-Sep-2006 mglocker

Add cardbus support for pgt(4).

We are still looking for PrismGT cardbus devices for testing. One
common model should be the Netgear WG511 v1/v2 made in Taiwan.

ok deraadt@


# 1.19 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.18 11-Dec-2015 mpi

Replace mountroothook_establish(9) by config_mountroot(9) a narrower API
similar to config_defer(9).

ok mikeb@, deraadt@


# 1.17 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.16 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.15 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.14 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.13 06-Sep-2010 deraadt

All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}


# 1.12 27-Aug-2010 deraadt

Massage the powerhook function into an activate function, and since we do
not neccessarily have a working filesystem for the firmware yet, use a workq
to postpone resume. Then make the powerhook function call the activate
function. There remains some questions about the sc_power functions...
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.11 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.10 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.9 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_6_BASE OPENBSD_4_7_BASE
# 1.8 29-Mar-2009 sthen

make various strings ("can't map mem space" and similar) more consistent
between instances, saving space in the kernel. feedback from many (some
incorporated, some left for future work).

ok deraadt, kettenis, "why not" miod.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.7 11-Nov-2006 maja

Add support for 3Com 3CRWE154G72. -moj


# 1.6 10-Nov-2006 damien

acx(4) doesn't use rssadapt(9).
pgt(4) doesn't use rssadapt(9) nor amrr.
=> remove useless #include.


# 1.5 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@


# 1.4 09-Oct-2006 mglocker

Add powerhooks. Tested with a Netgear WG511v1 on my X40.

ok claudio@


# 1.3 06-Oct-2006 mglocker

Fix cardbus support for pgt(4). Tested with a Netgear WG511.

ok claudio@


# 1.2 02-Oct-2006 mglocker

Simplify device attachment. From brad@ with a tiny correction.


# 1.1 28-Sep-2006 mglocker

Add cardbus support for pgt(4).

We are still looking for PrismGT cardbus devices for testing. One
common model should be the Netgear WG511 v1/v2 made in Taiwan.

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 11-Dec-2015 mpi

Replace mountroothook_establish(9) by config_mountroot(9) a narrower API
similar to config_defer(9).

ok mikeb@, deraadt@


# 1.17 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.16 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_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.15 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.14 14-Nov-2013 dlg

replace workqs with tasks for handling resume

from kimberley manning


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.13 06-Sep-2010 deraadt

All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}


# 1.12 27-Aug-2010 deraadt

Massage the powerhook function into an activate function, and since we do
not neccessarily have a working filesystem for the firmware yet, use a workq
to postpone resume. Then make the powerhook function call the activate
function. There remains some questions about the sc_power functions...
ok kettenis


Revision tags: OPENBSD_4_8_BASE
# 1.11 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.10 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.9 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_6_BASE OPENBSD_4_7_BASE
# 1.8 29-Mar-2009 sthen

make various strings ("can't map mem space" and similar) more consistent
between instances, saving space in the kernel. feedback from many (some
incorporated, some left for future work).

ok deraadt, kettenis, "why not" miod.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.7 11-Nov-2006 maja

Add support for 3Com 3CRWE154G72. -moj


# 1.6 10-Nov-2006 damien

acx(4) doesn't use rssadapt(9).
pgt(4) doesn't use rssadapt(9) nor amrr.
=> remove useless #include.


# 1.5 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@


# 1.4 09-Oct-2006 mglocker

Add powerhooks. Tested with a Netgear WG511v1 on my X40.

ok claudio@


# 1.3 06-Oct-2006 mglocker

Fix cardbus support for pgt(4). Tested with a Netgear WG511.

ok claudio@


# 1.2 02-Oct-2006 mglocker

Simplify device attachment. From brad@ with a tiny correction.


# 1.1 28-Sep-2006 mglocker

Add cardbus support for pgt(4).

We are still looking for PrismGT cardbus devices for testing. One
common model should be the Netgear WG511 v1/v2 made in Taiwan.

ok deraadt@