History log of /freebsd/sys/dev/cardbus/cardbus.c (Results 76 – 100 of 214)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7e2ff8bb 19-Jan-2007 Warner Losh <imp@FreeBSD.org>

Cope gracefully with device_get_children returning an error.

Obtained from: Hans Petter Selasky
P4: http://perforce.freebsd.org/chv.cgi?CH=112957


Revision tags: release/6.2.0_cvs, release/6.2.0
# a63eba96 12-Jun-2006 Warner Losh <imp@FreeBSD.org>

When we can't parse the CIS, note with a warning that the bogus CIS
was ignored, rather than freaking out. In the past, it wasn't possible
to not parse the CIS, so this changes no behavior.


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 5aa58b3e 20-Jan-2006 John Baldwin <jhb@FreeBSD.org>

Make the 'pci_devclass' pointer variable private (drivers really shouldn't
share devclass pointers, a mistake I've encouraged in the past) and
move the declaration of the pci_driver kobj class from c

Make the 'pci_devclass' pointer variable private (drivers really shouldn't
share devclass pointers, a mistake I've encouraged in the past) and
move the declaration of the pci_driver kobj class from cardbus.c to
pci_private.h so that other drivers can inherit from pci_driver.

show more ...


# 388395cc 30-Dec-2005 Warner Losh <imp@FreeBSD.org>

Remove now-obsolete printf warning.


# ef5cc9ac 30-Dec-2005 Warner Losh <imp@FreeBSD.org>

Move all of the resource allocation into the pci layer. The resource
allocation here just duplicated it (badly).


# 6afb2250 30-Dec-2005 Gleb Smirnoff <glebius@FreeBSD.org>

- Retire BARBIT in favor of new PCI_RID2BAR.
- Fix build.


# 408b85a1 29-Dec-2005 Gleb Smirnoff <glebius@FreeBSD.org>

Help Warner with merge from p4.


# 47147ce7 29-Dec-2005 Warner Losh <imp@FreeBSD.org>

Implement /dev/cardbus%d.cis, same thing as /dev/pccard%d.cis. There
are some rough edges with this still, but it seems to work well enough
to commit.


# 08674561 28-Dec-2005 Gleb Smirnoff <glebius@FreeBSD.org>

When in rev. 1.47 cardbus_alloc_resources() function was moved from
cardbus_cis.c to this file, some code was not merged and thus resource
list entries were invalid. They didn't have a resources atta

When in rev. 1.47 cardbus_alloc_resources() function was moved from
cardbus_cis.c to this file, some code was not merged and thus resource
list entries were invalid. They didn't have a resources attached to
them.
However, the problem was masked for some time later, because newer
resources list entries were added to the head of the list, and
resource_list_find() always returned the first matching resource list
entry. Usually the underlying driver allocated a valid resource and
added it to the head of the list, and invalid one wasn't used.
In rev. 1.174 of subr_bus.c the sorting of resource list entries was
reversed demasking the problem in cardbus_alloc_resources().
This commit fixes the problem returning back some code from
cardbus_cis.c, pre-1.49 revisions.

PR: kern/87114
PR: kern/90441
Hardware provided by: Vasily Olekhov <olekhov yandex.ru>
Reviewed by: imp

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0
# 6811d2bc 28-Oct-2005 Warner Losh <imp@FreeBSD.org>

Cardbus has only 1 slot, so simplify a little.


# 360d00a0 27-Sep-2005 Ruslan Ermilov <ru@FreeBSD.org>

Calling rman_get_start() after bus_release_resource() is evil.
It became fatal after a recent "struct resource" split change.


Revision tags: release/5.4.0_cvs, release/5.4.0
# 36fed965 18-Mar-2005 Warner Losh <imp@FreeBSD.org>

Use STAILQ in preference to SLIST for the resources. Insert new resources
last in the list rather than first.

This makes the resouces print in the 4.x order rather than the 5.x order
(eg fdc0 at 0x

Use STAILQ in preference to SLIST for the resources. Insert new resources
last in the list rather than first.

This makes the resouces print in the 4.x order rather than the 5.x order
(eg fdc0 at 0x3f0-0x3f5,0x3f7 is 4.x, but 0x3f7,0x3f0-0x3f5 is 5.x). This
also means that the pci code will once again print the resources in BAR
ascending order.

show more ...


# 2219bbc5 11-Mar-2005 Warner Losh <imp@FreeBSD.org>

Doh! silly typo precludes compiling


# 0f675788 11-Mar-2005 Warner Losh <imp@FreeBSD.org>

Revert changes of 1.49. Lots-a-people broke with it, for reasons
unknown (since my sony vaio didn't :-(.

Instead, fix the problem described by 1.49 in a different way: just
add the two calls I'd ho

Revert changes of 1.49. Lots-a-people broke with it, for reasons
unknown (since my sony vaio didn't :-(.

Instead, fix the problem described by 1.49 in a different way: just
add the two calls I'd hoped I'd avoid in 1.49 by doing the (wrong)
gymnastics there. While 1.49 is a good direction to go in, each step
of the way should work :-(.

show more ...


# af5e97c1 28-Feb-2005 Warner Losh <imp@FreeBSD.org>

There were two calls to cardbus_do_cis when cardbus_do_cis changed,
yet I only changed one of them. So when we loaded drivers, we'd fail
to allocate resources correct.

This pointed out that we were

There were two calls to cardbus_do_cis when cardbus_do_cis changed,
yet I only changed one of them. So when we loaded drivers, we'd fail
to allocate resources correct.

This pointed out that we were doing the wrong thing when we failed to
attach a child. We released all the resources and almost deleted the
child. Instead, we should keep the resources allocated so when/if a
driver is loaded, we can go w/o having to allocate them. We use
pci_cfg_save/restore to restore the BARs with these resources.

This seems to fix the problems that we were seeing that I thought
might have magically gone away in the last revision of cardbus.c (but
really didn't).

Noticed by: avatar (nicely done!)

show more ...


# 164b1965 20-Feb-2005 Warner Losh <imp@FreeBSD.org>

style(9) nit


# 440b5ade 06-Feb-2005 Warner Losh <imp@FreeBSD.org>

Move resource allocation routines from cardbus_cis.c to cardbus.c.
They have nothing at all to do with CIS parsing.

Remove some unused funce parsing: nothing used the results.

Use more of pccard_ci

Move resource allocation routines from cardbus_cis.c to cardbus.c.
They have nothing at all to do with CIS parsing.

Remove some unused funce parsing: nothing used the results.

Use more of pccard_cis.h's deifnitions for the cardbus specific cis
parsing we do. More work is needed in this area.

This reduces the size of the cardbus module by 380 bytes or so...

show more ...


Revision tags: release/4.11.0_cvs, release/4.11.0
# 2dd5c91e 13-Jan-2005 Warner Losh <imp@FreeBSD.org>

Use the standard FreeBSD license

Approved by: imp, jon


# 098ca2bd 06-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start each of the license/copyright comments with /*-, minor shuffle of lines


Revision tags: release/5.3.0_cvs, release/5.3.0
# 5d11e83f 27-Jun-2004 Warner Losh <imp@FreeBSD.org>

MFp4:

The hack for setting the bus has been moved down into the cbb driver.
I've been running without this hack in my tree for so long I had
forgotten that I'd removed it :-). Please let me know if

MFp4:

The hack for setting the bus has been moved down into the cbb driver.
I've been running without this hack in my tree for so long I had
forgotten that I'd removed it :-). Please let me know if this causes
difficulty for your laptop.

show more ...


# 41ee9f1c 30-May-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Add some missing <sys/module.h> includes which are masked by the
one on death-row in <sys/kernel.h>


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0
# aec21b56 01-Nov-2003 Doug Rabson <dfr@FreeBSD.org>

Make the cardbus driver a derived class of the pci driver. In theory, this
should allow many of the pci methods to be re-staticised.


Revision tags: release/4.9.0_cvs, release/4.9.0
# f6e01094 06-Oct-2003 Warner Losh <imp@FreeBSD.org>

remove the cardbus cis reading code. nobody ever used it and it has
locking issues down to the api level.


# aad970f1 24-Aug-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID().
Also some minor style cleanups.


# 3920999d 01-Jul-2003 Thomas Moestl <tmm@FreeBSD.org>

Add a new PCI interface method, assign_interrupt, to determine the
interrupt to be used for a device. This is intended solely for internal
use of PCI bus implementations, and exists so that PCI bus d

Add a new PCI interface method, assign_interrupt, to determine the
interrupt to be used for a device. This is intended solely for internal
use of PCI bus implementations, and exists so that PCI bus drivers
implementing special interrupt assignment methods which require
additional work at the bus level to work right can be easily derived
from the generic driver (or any other one) without resorting to hacks.

It will be used in the sparc64 ofw_pcibus driver, which will be
committed shortly.

Make use of this method in the generic implementation, and add it to
the method table of bus drivers derived from the PCI one.

Reviewed by: imp, -hackers

show more ...


123456789