History log of /openbsd-current/sys/dev/cardbus/ehci_cardbus.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.24 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.23 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.22 11-Nov-2015 jsg

mark ehci_intr() as IPL_MPSAFE here as well
ok mpi@


Revision tags: OPENBSD_5_8_BASE
# 1.21 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.20 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_5_6_BASE
# 1.19 17-May-2014 stsp

Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().
Since no DPRINTF() call remains also remove its definition (requested by mpi@).
ok mpi, and also reported by Jean-Philippe Ouellet


# 1.18 16-May-2014 mpi

There is no need to remember which usb(4) device is the child of an USB
host controller because autoconf(9) already does it.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.17 15-Apr-2013 mglocker

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.16 08-Oct-2012 deraadt

Revamp the sequences for suspend/hibernate -> resume so that the code
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 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.14 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.13 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.12 02-Jun-2009 deraadt

Fix some minor format string problems found in a maze of false positives
provided by Parfait
ok oga


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.11 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.10 25-Feb-2008 brad

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

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.9 20-May-2007 jsg

Convert ehci and ucom to rwlock.
Kill the usb specific lockmgr wrapper as nothing uses it now.

ok thib@


Revision tags: OPENBSD_4_1_BASE
# 1.8 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.7 12-Jul-2006 jolan

make dmesg lines openbsd-style, ok dlg@


# 1.6 21-Jun-2006 fkr

removal of '#ifdef rbus ... #else ...' directives, we use rbus in all
cases anyways, so we might as well remove code (the !rbus case) thats been
dead throughout the last years and just use the rbus code without ifdefs.

brad, miod "I am all for this diff"
ok deraadt, mickey


Revision tags: OPENBSD_3_9_BASE
# 1.5 30-Dec-2005 dlg

remove the tailq used to locate ehci's companion controllers. i have
absolutely no idea how this compiled since the usb_cardbus struct (which is
what the list was made of) was defined in usb_cardbus.h. usb_cardbus.h was
removed from the tree over 8 months ago. gcc must be crap.


# 1.4 30-Dec-2005 dlg

while looking for device_ptr_t typedef cruft i noticed #if __NetBSD__. why
did i put that in? this cleans up the if __NetBSD__ goo


Revision tags: OPENBSD_3_8_BASE
# 1.3 11-Apr-2005 dlg

get rid of the lines on ehci attach that show the version and the companion
controllers. remove the insane amount of support code needed just for the
printing of the companion controllers while here.

zap it deraadt@ sure pascoe@


Revision tags: OPENBSD_3_7_BASE
# 1.2 29-Dec-2004 dlg

from freebsd: ehci.c 1.13, ehci_pci.c 1.13, ehcireg.h 1.5, ehcivar.h 1.3
log message:
Attempt to follow the correct procedure for synchronising with the
system BIOS to disable legacy device emulation as per the "EHCI
Extended Capability: Pre-OS to OS Handoff Synchronisation" section
of the EHCI spec. BIOSes that implement legacy emulation using SMIs
are supposed to disable the emulation when this procedure is performed.

tested on various archs by jsg@ and me
ok pascoe@, looks sane jsg@


# 1.1 07-Dec-2004 dlg

ohci and ehci at cardbus support from netbsd

this relies on a fix to kthreads that is not yet committed, so it wont
be enabled for now.

my boss said it was ok to commit this while im at work. ok deraadt@ drahn@.


# 1.23 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.22 11-Nov-2015 jsg

mark ehci_intr() as IPL_MPSAFE here as well
ok mpi@


Revision tags: OPENBSD_5_8_BASE
# 1.21 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.20 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_5_6_BASE
# 1.19 17-May-2014 stsp

Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().
Since no DPRINTF() call remains also remove its definition (requested by mpi@).
ok mpi, and also reported by Jean-Philippe Ouellet


# 1.18 16-May-2014 mpi

There is no need to remember which usb(4) device is the child of an USB
host controller because autoconf(9) already does it.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.17 15-Apr-2013 mglocker

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.16 08-Oct-2012 deraadt

Revamp the sequences for suspend/hibernate -> resume so that the code
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 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.14 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.13 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.12 02-Jun-2009 deraadt

Fix some minor format string problems found in a maze of false positives
provided by Parfait
ok oga


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.11 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.10 25-Feb-2008 brad

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

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.9 20-May-2007 jsg

Convert ehci and ucom to rwlock.
Kill the usb specific lockmgr wrapper as nothing uses it now.

ok thib@


Revision tags: OPENBSD_4_1_BASE
# 1.8 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.7 12-Jul-2006 jolan

make dmesg lines openbsd-style, ok dlg@


# 1.6 21-Jun-2006 fkr

removal of '#ifdef rbus ... #else ...' directives, we use rbus in all
cases anyways, so we might as well remove code (the !rbus case) thats been
dead throughout the last years and just use the rbus code without ifdefs.

brad, miod "I am all for this diff"
ok deraadt, mickey


Revision tags: OPENBSD_3_9_BASE
# 1.5 30-Dec-2005 dlg

remove the tailq used to locate ehci's companion controllers. i have
absolutely no idea how this compiled since the usb_cardbus struct (which is
what the list was made of) was defined in usb_cardbus.h. usb_cardbus.h was
removed from the tree over 8 months ago. gcc must be crap.


# 1.4 30-Dec-2005 dlg

while looking for device_ptr_t typedef cruft i noticed #if __NetBSD__. why
did i put that in? this cleans up the if __NetBSD__ goo


Revision tags: OPENBSD_3_8_BASE
# 1.3 11-Apr-2005 dlg

get rid of the lines on ehci attach that show the version and the companion
controllers. remove the insane amount of support code needed just for the
printing of the companion controllers while here.

zap it deraadt@ sure pascoe@


Revision tags: OPENBSD_3_7_BASE
# 1.2 29-Dec-2004 dlg

from freebsd: ehci.c 1.13, ehci_pci.c 1.13, ehcireg.h 1.5, ehcivar.h 1.3
log message:
Attempt to follow the correct procedure for synchronising with the
system BIOS to disable legacy device emulation as per the "EHCI
Extended Capability: Pre-OS to OS Handoff Synchronisation" section
of the EHCI spec. BIOSes that implement legacy emulation using SMIs
are supposed to disable the emulation when this procedure is performed.

tested on various archs by jsg@ and me
ok pascoe@, looks sane jsg@


# 1.1 07-Dec-2004 dlg

ohci and ehci at cardbus support from netbsd

this relies on a fix to kthreads that is not yet committed, so it wont
be enabled for now.

my boss said it was ok to commit this while im at work. ok deraadt@ drahn@.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.22 11-Nov-2015 jsg

mark ehci_intr() as IPL_MPSAFE here as well
ok mpi@


Revision tags: OPENBSD_5_8_BASE
# 1.21 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.20 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_5_6_BASE
# 1.19 17-May-2014 stsp

Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().
Since no DPRINTF() call remains also remove its definition (requested by mpi@).
ok mpi, and also reported by Jean-Philippe Ouellet


# 1.18 16-May-2014 mpi

There is no need to remember which usb(4) device is the child of an USB
host controller because autoconf(9) already does it.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.17 15-Apr-2013 mglocker

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.16 08-Oct-2012 deraadt

Revamp the sequences for suspend/hibernate -> resume so that the code
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 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.14 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.13 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.12 02-Jun-2009 deraadt

Fix some minor format string problems found in a maze of false positives
provided by Parfait
ok oga


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.11 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.10 25-Feb-2008 brad

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

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.9 20-May-2007 jsg

Convert ehci and ucom to rwlock.
Kill the usb specific lockmgr wrapper as nothing uses it now.

ok thib@


Revision tags: OPENBSD_4_1_BASE
# 1.8 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.7 12-Jul-2006 jolan

make dmesg lines openbsd-style, ok dlg@


# 1.6 21-Jun-2006 fkr

removal of '#ifdef rbus ... #else ...' directives, we use rbus in all
cases anyways, so we might as well remove code (the !rbus case) thats been
dead throughout the last years and just use the rbus code without ifdefs.

brad, miod "I am all for this diff"
ok deraadt, mickey


Revision tags: OPENBSD_3_9_BASE
# 1.5 30-Dec-2005 dlg

remove the tailq used to locate ehci's companion controllers. i have
absolutely no idea how this compiled since the usb_cardbus struct (which is
what the list was made of) was defined in usb_cardbus.h. usb_cardbus.h was
removed from the tree over 8 months ago. gcc must be crap.


# 1.4 30-Dec-2005 dlg

while looking for device_ptr_t typedef cruft i noticed #if __NetBSD__. why
did i put that in? this cleans up the if __NetBSD__ goo


Revision tags: OPENBSD_3_8_BASE
# 1.3 11-Apr-2005 dlg

get rid of the lines on ehci attach that show the version and the companion
controllers. remove the insane amount of support code needed just for the
printing of the companion controllers while here.

zap it deraadt@ sure pascoe@


Revision tags: OPENBSD_3_7_BASE
# 1.2 29-Dec-2004 dlg

from freebsd: ehci.c 1.13, ehci_pci.c 1.13, ehcireg.h 1.5, ehcivar.h 1.3
log message:
Attempt to follow the correct procedure for synchronising with the
system BIOS to disable legacy device emulation as per the "EHCI
Extended Capability: Pre-OS to OS Handoff Synchronisation" section
of the EHCI spec. BIOSes that implement legacy emulation using SMIs
are supposed to disable the emulation when this procedure is performed.

tested on various archs by jsg@ and me
ok pascoe@, looks sane jsg@


# 1.1 07-Dec-2004 dlg

ohci and ehci at cardbus support from netbsd

this relies on a fix to kthreads that is not yet committed, so it wont
be enabled for now.

my boss said it was ok to commit this while im at work. ok deraadt@ drahn@.